/* ============================================
   SPARK DESIGN SYSTEM
   Navy blue + light blue, clean & professional
   ============================================ */

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* LIGHT MODE (default) */
:root,
[data-theme='light'] {
  --color-bg: #f5f8fc;
  --color-surface: #ffffff;
  --color-surface-2: #eef3fa;
  --color-surface-offset: #e4ecf5;

  --color-text: #0f1b2d;
  --color-text-muted: #4a5568;
  --color-text-faint: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Navy Blue Primary */
  --color-primary: #0a2463;
  --color-primary-hover: #071d52;
  --color-primary-active: #051641;
  --color-primary-light: #1e3a8a;

  /* Light Blue Accent */
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-light: #dbeafe;
  --color-accent-soft: #eff6ff;

  /* Semantic */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;

  --color-border: rgba(15, 27, 45, 0.1);
  --color-divider: rgba(15, 27, 45, 0.06);

  --shadow-sm: 0 1px 2px rgba(10, 36, 99, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 36, 99, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 36, 99, 0.12);
  --shadow-xl: 0 20px 48px rgba(10, 36, 99, 0.16);
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #0b1120;
  --color-surface: #111827;
  --color-surface-2: #1e293b;
  --color-surface-offset: #162033;

  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-faint: #64748b;
  --color-text-inverse: #0f1b2d;

  --color-primary: #60a5fa;
  --color-primary-hover: #93c5fd;
  --color-primary-active: #bfdbfe;
  --color-primary-light: #3b82f6;

  --color-accent: #60a5fa;
  --color-accent-hover: #93c5fd;
  --color-accent-light: #1e3a5f;
  --color-accent-soft: #172554;

  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f87171;

  --color-border: rgba(226, 232, 240, 0.12);
  --color-divider: rgba(226, 232, 240, 0.06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1120;
    --color-surface: #111827;
    --color-surface-2: #1e293b;
    --color-surface-offset: #162033;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-faint: #64748b;
    --color-text-inverse: #0f1b2d;
    --color-primary: #60a5fa;
    --color-primary-hover: #93c5fd;
    --color-primary-active: #bfdbfe;
    --color-primary-light: #3b82f6;
    --color-accent: #60a5fa;
    --color-accent-hover: #93c5fd;
    --color-accent-light: #1e3a5f;
    --color-accent-soft: #172554;
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --color-error: #f87171;
    --color-border: rgba(226, 232, 240, 0.12);
    --color-divider: rgba(226, 232, 240, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #ffffff;
  z-index: 100;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: var(--radius-md);
}

.nav__mobile-toggle:hover {
  background: var(--color-surface-offset);
}

/* Mobile nav */
.nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

.nav__mobile-menu.is-open {
  display: block;
}

.nav__mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.nav__mobile-menu a:hover {
  background: var(--color-surface-2);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__mobile-toggle {
    display: flex;
  }
  .nav__actions .btn--primary {
    display: none;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.4;
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
  min-height: 52px;
}

/* --- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-4);
  padding-bottom: clamp(var(--space-12), 8vw, var(--space-24));
  background: linear-gradient(
    168deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 50%,
    var(--color-accent) 100%
  );
  color: #ffffff;
}

.hero__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: #ffffff;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero .btn--primary {
  background: #ffffff;
  color: var(--color-primary);
}

.hero .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: #0f172a;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero__phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__phone-header {
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__phone-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__phone-spark-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__phone-spark-icon svg {
  width: 16px;
  height: 16px;
}

.hero__phone-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.hero__phone-subject {
  font-size: 10px;
  color: #94a3b8;
}

.hero__phone-content {
  flex: 1;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.phone-card {
  background: #1e293b;
  border-radius: 12px;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-card__tag {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  margin-bottom: var(--space-1);
}

.phone-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: var(--space-1);
}

.phone-card__desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}

.phone-card__progress {
  margin-top: var(--space-2);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.phone-card__progress-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.hero__phone-nav {
  display: flex;
  justify-content: space-around;
  padding: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #64748b;
  font-size: 9px;
}

.phone-nav-item.active {
  color: #60a5fa;
}

.phone-nav-item svg {
  width: 18px;
  height: 18px;
}

/* Floating decorative elements behind phone */
.hero__float {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__float--1 {
  width: 120px;
  padding: var(--space-3);
  top: 20%;
  left: -10%;
  animation: float 6s ease-in-out infinite;
}

.hero__float--2 {
  width: 100px;
  padding: var(--space-2);
  bottom: 15%;
  right: -5%;
  animation: float 8s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__float-label {
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero__float-value {
  font-size: 18px;
  font-weight: 700;
  color: #4ade80;
}

.hero__float-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__phone {
    width: 220px;
    height: 440px;
    border-radius: 28px;
  }

  .hero__phone-screen {
    border-radius: 22px;
  }

  .hero__float {
    display: none;
  }

  .hero__badge {
    margin-inline: auto;
  }
}

/* --- SECTIONS --- */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
}

.section__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
  max-width: 680px;
  margin-inline: auto;
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 58ch;
  margin-inline: auto;
}

/* --- PROBLEM SECTION --- */
.problem {
  background: var(--color-surface);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.problem__content {
  max-width: 540px;
}

.problem__content .section__title {
  text-align: left;
}

.problem__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stat-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.stat-card__source {
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  font-style: italic;
}

.problem__visual {
  display: flex;
  justify-content: center;
}

.problem__illustration {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.problem__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }

  .problem__content {
    text-align: center;
    margin-inline: auto;
  }

  .problem__content .section__title {
    text-align: center;
  }

  .problem__visual {
    order: -1;
  }
}

/* --- HOW IT WORKS --- */
.steps {
  background: var(--color-bg);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

/* Connecting line between steps */
.steps__grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-primary),
    var(--color-accent)
  );
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

.step-card__icon svg {
  width: 24px;
  height: 24px;
}

.step-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 32ch;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .steps__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 400px;
    margin-inline: auto;
  }

  .steps__grid::before {
    display: none;
  }
}

/* --- WHY SPARK --- */
.why {
  background: var(--color-surface);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.why-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.why-card__icon svg {
  width: 24px;
  height: 24px;
}

.why-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.why-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}

/* --- MISSION BANNER --- */
.mission-banner {
  background: var(--color-primary);
  color: #ffffff;
  padding: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-4);
}

.mission-banner__inner {
  max-width: var(--content-default);
  margin-inline: auto;
  text-align: center;
}

.mission-banner__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  max-width: 100%;
}

/* --- CONTACT / CTA SECTION --- */
.contact {
  background: var(--color-bg);
}

.contact__inner {
  max-width: 640px;
  margin-inline: auto;
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: var(--space-6);
}

.form-submit .btn {
  width: 100%;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-12) var(--space-4);
}

.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: #ffffff;
  font-weight: 700;
  font-size: var(--text-lg);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }

/* --- THEME TOGGLE --- */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-success);
}

.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-success__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-faint);
}

/* --- STEPS NOTE --- */
.steps__note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 600px;
  margin: var(--space-10) auto 0;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.steps__note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

/* --- COMPARISON TABLE --- */
.compare {
  background: var(--color-bg);
}

.compare__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.compare__table {
  min-width: 640px;
  font-size: var(--text-sm);
}

.compare__table thead {
  background: var(--color-surface-2);
}

.compare__table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare__table td {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}

.compare__table tr:last-child td {
  padding-bottom: var(--space-4);
}

.compare__highlight {
  background: var(--color-accent-soft);
}

.compare__yes {
  color: var(--color-success);
  font-weight: 700;
  font-size: var(--text-base);
}

.compare__no {
  color: var(--color-error);
  font-weight: 700;
  font-size: var(--text-base);
  opacity: 0.5;
}

.compare__na {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* --- FAQ --- */
.faq {
  background: var(--color-surface);
}

.faq__list {
  max-width: 760px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-divider);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-divider);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-faint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq__item[open] .faq__question::after {
  content: '\2212';
  color: var(--color-accent);
}

.faq__answer {
  padding-bottom: var(--space-5);
}

.faq__answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}
