@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================
   THEME SYSTEM — Dark (default) + Light mode
   Toggle via [data-theme] on <html>
   ============================================ */
:root,
[data-theme="dark"] {
  --bg: #07070f;
  --surface: #0f0f1a;
  --surface2: #16162a;
  --primary: #6c63ff;
  --primary-glow: rgba(108,99,255,0.25);
  --accent: #00d4ff;
  --accent-glow: rgba(0,212,255,0.15);
  --green: #00e676;
  --text: #f0f0ff;
  --muted: #7878a0;
  --border: rgba(255,255,255,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-bg: rgba(7,7,15,0.88);
  --card-hover-bg: rgba(108,99,255,0.05);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --form-bg: rgba(255,255,255,0.05);
  --toggle-track: rgba(255,255,255,0.1);
  --toggle-thumb: #fff;
}

[data-theme="light"] {
  --bg: #f5f5ff;
  --surface: #ffffff;
  --surface2: #ebebff;
  --primary: #5b52e8;
  --primary-glow: rgba(91,82,232,0.2);
  --accent: #0088bb;
  --accent-glow: rgba(0,136,187,0.12);
  --green: #00b058;
  --text: #0d0d20;
  --muted: #5a5a80;
  --border: rgba(0,0,0,0.09);
  --nav-bg: rgba(245,245,255,0.92);
  --card-hover-bg: rgba(91,82,232,0.04);
  --shadow-card: 0 4px 24px rgba(91,82,232,0.08);
  --form-bg: rgba(0,0,0,0.04);
  --toggle-track: rgba(91,82,232,0.15);
  --toggle-thumb: #5b52e8;
}

/* Smooth theme transition */
*, *::before, *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease, box-shadow 0.3s ease;
}
/* Exclude elements that shouldn't transition (prevents flash) */
.btn, .nav, .orb { transition-duration: 0s !important; }
.btn { transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s !important; }


html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%; transition: width 0.1s linear;
}

/* NAV */
.nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled { padding: 10px 0; box-shadow: 0 4px 30px rgba(108,99,255,0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 1.6rem; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* THEME TOGGLE BUTTON */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--card-hover-bg); }
.theme-toggle svg { width: 18px; height: 18px; }

/* HAMBURGER MENU */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  cursor: pointer; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV DRAWER */
.nav-mobile-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--bg);
  padding-top: 80px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a {
  color: var(--text); text-decoration: none;
  font-size: 1.5rem; font-weight: 700;
  transition: color 0.2s;
}
.nav-mobile-drawer a:hover { color: var(--primary); }
.nav-mobile-drawer .mobile-nav-cta { display: flex; flex-direction: column; gap: 12px; width: 240px; }


/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s; white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff; box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.4); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
[data-theme="light"] .btn-ghost { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.14); color: var(--text); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.08); }
[data-theme="light"] .btn-outline { border-color: rgba(0,0,0,0.15); }


/* SECTION BASE */
.section { padding: 100px 0; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.5px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin-bottom: 60px; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: rgba(108,99,255,0.15); top: -100px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(0,212,255,0.08); bottom: 0; left: -100px; }
.orb-3 { width: 300px; height: 300px; background: rgba(147,51,234,0.1); top: 40%; right: 20%; }

.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 50px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent); font-size: 0.875rem; font-weight: 600;
  margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.5} }

.hero-title { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-bottom: 40px; line-height: 1.8; }
.hero-sub strong { color: var(--text); }
.hero-sub em { color: var(--accent); font-style: normal; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 0.875rem; margin-bottom: 60px; flex-wrap: wrap; }
.trust-sep { color: var(--border); }

.hero-stats { display: flex; align-items: center; gap: 40px; padding: 28px 36px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); width: fit-content; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

/* HERO 2-COLUMN LAYOUT */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; }
.hero-visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.hero-visual-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-visual-label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
/* PIPELINE TERMINAL */
.pipeline-terminal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.pipeline-step.done  { border-color: var(--green); color: var(--green); }
.pipeline-step.active { border-color: var(--primary); color: var(--text); }
.pipeline-step-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.pipeline-step-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline-step-bar {
  width: 48px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.pipeline-step-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 1.8s ease;
}
.pipeline-step.active .pipeline-step-bar-fill { width: 55%; }
.pipeline-step.done   .pipeline-step-bar-fill { width: 100%; background: var(--green); }
/* Output preview */
.pipeline-output {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.pipeline-output-icon { font-size: 1.6rem; flex-shrink: 0; }
.pipeline-output-info { flex: 1; min-width: 0; }
.pipeline-output-name { font-weight: 700; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline-output-meta { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.pipeline-output-badge { font-size: 0.72rem; font-weight: 700; color: var(--green); flex-shrink: 0; border: 1px solid var(--green); border-radius: 6px; padding: 2px 8px; }

/* Mobile: collapse to 1 col */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { display: none; }
}


/* PROBLEM */
.problem-section { background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.problem-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  transition: all 0.3s;
}
.problem-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-4px); }
.problem-icon { font-size: 2.5rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.problem-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* HOW IT WORKS */
.how-section { background: var(--bg); }
.steps-flow { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; margin: 0 0 48px; }
.step-card {
  flex: 1; min-width: 200px; padding: 32px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.3s; position: relative;
}
.step-card:hover { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.step-num { font-family: 'JetBrains Mono',monospace; font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-bottom: 12px; letter-spacing: 2px; }
.step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.step-chip { display: inline-block; padding: 4px 12px; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2); border-radius: 20px; color: var(--primary); font-size: 0.75rem; font-weight: 600; }
.step-arrow { font-size: 1.8rem; color: var(--primary); padding: 0 12px; margin-top: 60px; opacity: 0.5; }
.how-cta { text-align: center; }

/* FEATURES */
.features-section { background: var(--surface); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 20px; margin-top: 48px; }
.feature-large { grid-column: span 2; }
.feature-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-tags span { padding: 4px 10px; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); border-radius: 20px; color: var(--accent); font-size: 0.72rem; font-weight: 600; }

/* PRICING */
.pricing-section { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; align-items: start; }
.pricing-card {
  padding: 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; transition: all 0.3s;
}
.pricing-featured {
  background: linear-gradient(145deg, rgba(108,99,255,0.12), rgba(0,212,255,0.05));
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
  transform: scale(1.03);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 18px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price-amount { font-size: 2.8rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-period { color: var(--muted); font-size: 0.95rem; }
.plan-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 28px; }
.plan-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 0.9rem; color: var(--text); }
.plan-features li.disabled { color: var(--muted); opacity: 0.45; }

/* NEW PRICING NOTES & 4-COLUMN GRID */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}
.pricing-cost-note {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 32px auto 0;
  max-width: 960px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  text-align: left;
}
.pricing-cost-note span:first-child {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.plan-overflow {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
}
.pricing-compare-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 48px auto 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 960px;
}
.compare-item {
  display: flex;
  gap: 16px;
  text-align: left;
}
.compare-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.compare-item div {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.compare-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}

/* FAQ TWO-COLUMN GRID */
.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.faq-two-col .faq-list {
  margin-top: 0;
  max-width: none;
}

/* RESPONSIVE UPDATES FOR NEW LAYOUTS */
@media (max-width: 1100px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .faq-two-col {
    grid-template-columns: 1fr;
  }
  .pricing-compare-note {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 680px) {
  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* LIGHT MODE OVERRIDES FOR NEW ELEMENTS */
[data-theme="light"] .pricing-cost-note {
  background: rgba(91, 82, 232, 0.05);
  border-color: rgba(91, 82, 232, 0.12);
}
[data-theme="light"] .pricing-compare-note {
  background: #fff;
  box-shadow: var(--shadow-card);
}




/* TESTIMONIALS */
.testimonials-section { background: var(--surface); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.testimonial-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  transition: all 0.3s;
}
.testimonial-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-3px); }
.testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 16px; }
.testimonial-card > p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-channel { color: var(--muted); font-size: 0.8rem; }

/* FAQ */
.faq-section { background: var(--bg); }
.faq-list { max-width: 800px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: rgba(108,99,255,0.4); }
.faq-question {
  width: 100%; padding: 20px 24px; background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 0.975rem; font-weight: 600;
  border: none; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 24px 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 200px; }

/* FINAL CTA */
.final-cta-section { background: var(--surface); }
.cta-box {
  position: relative; overflow: hidden;
  padding: 72px 60px; border-radius: 24px;
  background: linear-gradient(145deg, rgba(108,99,255,0.1), rgba(0,212,255,0.05));
  border: 1px solid rgba(108,99,255,0.25);
  text-align: center;
}
.orb-cta-1 { width: 350px; height: 350px; background: rgba(108,99,255,0.12); top: -100px; right: -80px; animation: float 8s ease-in-out infinite; }
.orb-cta-2 { width: 250px; height: 250px; background: rgba(0,212,255,0.08); bottom: -80px; left: -60px; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)} }
.cta-box h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; position: relative; z-index: 1; }
.register-form { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.form-row input {
  flex: 1; min-width: 180px; padding: 14px 18px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-row input:focus { outline: none; border-color: var(--primary); }
.form-row input::placeholder { color: var(--muted); }
.form-note { color: var(--muted); font-size: 0.825rem; margin-bottom: 32px; }
.cta-trust { display: flex; justify-content: center; gap: 20px; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* FOOTER */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-top { display: flex; gap: 60px; margin-bottom: 48px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--primary); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 140px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: var(--muted); font-size: 0.8rem; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* SCROLL TO TOP */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--primary-glow);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1.2rem;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(108,99,255,0.5); }

/* LIGHT MODE SPECIFIC OVERRIDES */
[data-theme="light"] .hero {
  background: linear-gradient(160deg, #f0efff 0%, #f5f5ff 60%, #e8f4ff 100%);
}
[data-theme="light"] .grid-overlay {
  background-image: linear-gradient(rgba(91,82,232,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,82,232,0.06) 1px, transparent 1px);
}
[data-theme="light"] .problem-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .testimonial-card {
  background: #fff;
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .step-card {
  background: #fff;
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .pricing-card {
  background: #fff;
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .pricing-featured {
  background: linear-gradient(145deg, rgba(91,82,232,0.08), rgba(0,136,187,0.04));
  box-shadow: 0 0 40px var(--primary-glow), var(--shadow-card);
}
[data-theme="light"] .faq-question {
  background: #fff;
}
[data-theme="light"] .hero-stats {
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .cta-box {
  background: linear-gradient(145deg, rgba(91,82,232,0.07), rgba(0,136,187,0.04));
  border-color: rgba(91,82,232,0.18);
}
[data-theme="light"] .form-row input {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
[data-theme="light"] .login-modal {
  background: rgba(200,200,220,0.6);
}
[data-theme="light"] .login-modal-content {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 20px 60px rgba(91,82,232,0.12);
}
[data-theme="light"] .login-form-group input {
  background: #f5f5ff;
  border-color: rgba(91,82,232,0.15);
  color: var(--text);
}
[data-theme="light"] .nav-mobile-drawer {
  background: #f5f5ff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feature-large { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-flow { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: 0 auto; padding: 8px 0; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 60px; height: 1px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .form-row { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
  .hero-stats { display: none; }
  .scroll-top-btn { bottom: 16px; right: 16px; }
}


/* LOGIN MODAL POPUP */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.login-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.login-modal-content {
  background: rgba(15, 15, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 480px;
  max-width: 95%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  text-align: center;
}
.password-input-wrapper {
  position: relative;
  width: 100%;
}
.password-input-wrapper input {
  padding-right: 44px !important;
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s;
}
.password-toggle-btn:hover {
  color: var(--text);
}
.login-modal.open .login-modal-content {
  transform: translateY(0);
}
.login-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.login-modal-close:hover {
  color: var(--text);
}
.login-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.login-modal h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.login-modal-sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.login-form-group {
  text-align: left;
  margin-bottom: 16px;
}
.login-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.login-form-group input {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.login-form-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.login-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 500;
  display: none;
}
.login-btn-submit {
  width: 100%;
  margin-top: 8px;
}
.login-separator {
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.login-separator::before,
.login-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-google-btn {
  background: #ffffff;
  color: #1f2937;
  width: 100%;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-google-btn:hover {
  background: #f9fafb;
}
.login-toggle-mode {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
.login-toggle-mode a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.login-toggle-mode a:hover {
  text-decoration: underline;
}
