/* SHARED STYLES FOR READU INTERACTIVE */

:root {
  /* Darker, deeper space theme - kept neutral/black */
  --bg-dark: #050505;
  --bg-secondary: #0a0a0a;

  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: 24px;
  
  /* Brand Accents (Red-Orange from Logo) */
  --accent-primary: #ef3022;
  /* Red-Orange */
  --accent-secondary: #ff5722;
  /* Lighter Orange */
  --accent-glow: rgba(239, 48, 34, 0.4);

  --text-main: #ffffff;
  --text-muted: #a0aab2;

  --max-w: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg-dark);
  background-image: url('onboarding-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* Global Dark Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  /* Heavy dark overlay for readability */
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* GLASS UTILS */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel {
  border-radius: 24px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 48, 34, 0.1);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(239, 48, 34, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 15px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(239, 48, 34, 0.5);
}

.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(239, 48, 34, 0.5);
  color: #fff;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(239, 48, 34, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(239, 48, 34, 0.3);
}

/* LAYOUT */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section {
  padding: 120px 0;
  position: relative;
}

section.hero-page {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(2, 2, 2, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 12px 0;
  background: rgba(2, 2, 2, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001; /* Above mobile menu */
}

.logo-img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  background: linear-gradient(90deg, #fff, #bbb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* NAV LINKS (Desktop) */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-primary);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.4s ease;
  border-radius: 3px;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav-links a {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(5) { transition-delay: 0.6s; }
.mobile-menu-overlay.active .btn { 
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.7s;
  margin-top: 20px;
}
.mobile-menu-overlay.active .btn.show {
  opacity: 1;
  transform: translateY(0);
}


/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media(max-width: 900px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* FOOTER */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  background: #020202;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: radial-gradient(circle, rgba(239, 48, 34, 0.5) 0%, transparent 100%);
}

/* UTILITIES */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-primary) 80%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* PAGE SPECIFIC: BLOG & FAQ */
.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-title {
  font-size: clamp(40px, 8vw, 72px);
  margin-bottom: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}

.lead {
  font-size: clamp(18px, 4vw, 22px);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-item {
  margin-bottom: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: 0.3s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  list-style: none;
  padding: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  position: relative;
  padding-right: 50px;
  color: #fff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--accent-primary);
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item[open] {
  background: rgba(239, 48, 34, 0.05);
  border-color: rgba(239, 48, 34, 0.2);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, display 0.6s ease;
}

#loader.hidden {
  opacity: 0;
}

/* TEXT BUTTON */
.btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
  display: inline-block;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-text:hover {
  color: #fff;
}

.btn-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background: #fff;
}

.loader-logo {
  width: 250px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 30px rgba(239, 48, 34, 0.5));
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 30px rgba(239, 48, 34, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(239, 48, 34, 0.8));
  }
}
