/*
  ══════════════════════════════════════════════════════
  Limitless Design System v2.0
  Theme: AI-native · Dark · Precise · Undetectable
  ══════════════════════════════════════════════════════
*/

/* ==========================================================================
   SELF-HOSTED FONTS (GDPR / Munich Ruling Compliant)
   Served locally from /fonts with zero remote IP transfers.
   ========================================================================== */

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-v13-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v13-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-v13-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-v13-latin-600.woff2') format('woff2');
}

/* Outfit */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/outfit-v11-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/outfit-v11-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/outfit-v11-latin-700.woff2') format('woff2');
}

/* Hanken Grotesk */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-v6-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-v6-latin-700.woff2') format('woff2');
}

/* Geist */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-v1-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/geist-v1-latin-500.woff2') format('woff2');
}

/* Material Symbols Outlined (font-display: block prevents ligature FOUT) */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('/fonts/material-symbols-outlined.woff2') format('woff2');
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Tokens ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:    #07070E;
  --bg-surface: #0E0E1A;
  --bg-card:    #141422;
  --bg-card-hover: #1C1C2E;
  --bg-glass:   rgba(255,255,255,0.04);
  --bg-glass-border: rgba(255,255,255,0.08);

  /* Legacy compat (used in auth.html) */
  --bg-base:   #F9F8F6;
  --bg-subtle: #F0EEE9;
  --bg-dark:   #07070E;

  /* Accent */
  --teal-400:  #2DD4BF;
  --teal-500:  #0D9488;
  --teal-600:  #0F766E;
  --teal-glow: rgba(13,148,136,0.18);
  --teal-glow-strong: rgba(13,148,136,0.35);

  /* Violet accent for variety */
  --violet:    #7C3AED;
  --violet-soft: rgba(124,58,237,0.12);

  /* Text */
  --text-primary:   #F0F0F8;
  --text-secondary: #A0A0C0;
  --text-muted:     #94A3B8;
  --text-inverse:   #FFFFFF;
  --text-on-dark:   #F0F0F8;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: clamp(5rem, 10vh, 8rem);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Effects */
  --transition-fast:   0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-smooth: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   0.6s cubic-bezier(0.4,0,0.2,1);
  --shadow-glow: 0 0 40px rgba(13,148,136,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 1.5rem; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem);   margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p  { margin-bottom: 1rem; }
a  { text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img, video { max-width: 100%; }

/* ─── Global Canvas ──────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
}

.scene-inner {
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

/* ─── Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7,7,14,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 0.85rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.navbar .logo {
  font-size: 2.8rem;
}

.logo span { color: var(--teal-400); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover { color: var(--text-primary); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 12px;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-400) 100%);
  color: #fff;
  box-shadow: 0 0 0 0 var(--teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--teal-glow-strong);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--bg-glass-border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ─── Badge / Pill ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-teal {
  background: var(--teal-glow);
  color: var(--teal-400);
  border: 1px solid rgba(45,212,191,0.2);
}

.badge-platform {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--bg-glass-border);
  font-size: 0.7rem;
}

/* ─── Device Frame ───────────────────────────────── */
.device-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px var(--teal-glow);
  background: var(--bg-surface);
}

.device-frame video,
.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 1px);
}

.device-frame .frame-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.frame-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.frame-dot.red   { background: #FF5F57; }
.frame-dot.amber { background: #FEBC2E; }
.frame-dot.green { background: #28C840; }

/* ─── Annotations ────────────────────────────────── */
.annotation-layer {
  position: relative;
  display: inline-block;
  width: 100%;
}

.annotation {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(7,7,14,0.85);
  border: 1px solid var(--teal-glow-strong);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-400);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px var(--teal-glow);
  transition: var(--transition-smooth);
  cursor: default;
}

.annotation::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px var(--teal-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

.annotation:hover {
  background: var(--teal-glow);
  border-color: var(--teal-400);
  box-shadow: 0 0 24px var(--teal-glow-strong);
}

.ann-1 { top: 12%; left: -14%; }
.ann-2 { top: 42%; right: -16%; }
.ann-3 { bottom: 18%; left: -18%; }

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

/* ─── Scene Labels ───────────────────────────────── */
.scene-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scene-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--teal-400);
}

/* ─── Section Titles ─────────────────────────────── */
.section-title {
  margin-bottom: 1.5rem;
}

.section-title .accent { color: var(--teal-400); }

/* ─── CTA Group ──────────────────────────────────── */
.cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ─── Bullet Feature List ────────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li .fi {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--teal-400);
  font-style: normal;
}

.feature-list li strong { color: var(--text-primary); }

/* ─── Hero ───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

#hero .scene-inner > .container > .two-col {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-eyebrow {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--teal-glow);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-400);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-video-wrap {
  position: relative;
}

.video-platform-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ─── Pipeline Diagram ───────────────────────────── */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  width: 2px;
  height: calc(100% + 0px);
  background: linear-gradient(to bottom, var(--teal-500), transparent);
  opacity: 0.4;
}

.pipeline-step-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1.5px solid rgba(45,212,191,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-400);
  position: relative;
  z-index: 1;
}

.pipeline-step-body {
  padding: 0.6rem 0 1.5rem;
}

.pipeline-step-body h4,
.pipeline-step-body h3 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.pipeline-step-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.pipeline-step.active .pipeline-step-icon {
  background: var(--teal-500);
  color: #fff;
  box-shadow: 0 0 16px var(--teal-glow-strong);
}

/* ─── Use Case Cards ─────────────────────────────── */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-500), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.use-case-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(13,148,136,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(13,148,136,0.1);
}

.use-case-card:hover::before { opacity: 1; }

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.use-case-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.use-case-benefit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-400);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.use-case-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── Pricing ────────────────────────────────────── */
#pricing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: 100px;
  padding: 4px;
  margin: 2rem auto 0;
  width: fit-content;
}

.pricing-toggle button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pricing-toggle button.active {
  background: var(--teal-500);
  color: #fff;
  box-shadow: 0 2px 12px var(--teal-glow-strong);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  border-color: rgba(13,148,136,0.3);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: var(--teal-500);
  background: linear-gradient(145deg, var(--bg-card), rgba(13,148,136,0.06));
  box-shadow: 0 0 40px rgba(13,148,136,0.15);
}

.pricing-card .plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 0.4rem;
  min-height: 3.5rem;
}

.plan-price .currency { font-size: 1.2rem; color: var(--text-secondary); line-height: 1; margin-bottom: 8px; }
.plan-price .amount   { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.plan-price .period   { font-size: 0.8rem; color: var(--text-muted); line-height: 1; margin-bottom: 10px; }
.plan-price .free-tag { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }

.plan-save-note {
  font-size: 0.72rem;
  color: var(--teal-400);
  font-weight: 600;
  min-height: 1.2rem;
  margin-bottom: 1.5rem;
}

.plan-divider {
  height: 1px;
  background: var(--bg-glass-border);
  margin: 1.25rem 0;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-features li::before {
  content: '✓';
  color: var(--teal-400);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cta {
  margin-top: auto;
}

.plan-cta .btn {
  width: 100%;
}

/* ─── FAQ Accordion ──────────────────────────────── */
#faq {
  min-height: auto;
  padding: var(--section-pad) 0;
}

.faq-list {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(13,148,136,0.25);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--teal-400); }

.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--teal-400); }

.faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-body p { margin-bottom: 0.6rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong { color: var(--text-primary); }

/* ─── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-inner { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-inner video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* ─── Footer ─────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-glass-border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { font-size: 1.2rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 240px;
}

.footer-col h5,
.footer-col h4,
.footer-col .footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul a:hover { color: var(--teal-400); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--bg-glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Coding section platform note ──────────────── */
.platform-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.45rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-note .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 6px var(--teal-400);
}

/* ─── Agentic compare box ────────────────────────── */
.agentic-compare {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.agentic-compare.muted {
  color: var(--text-muted);
  text-decoration-line: none;
}

.agentic-compare strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.agentic-compare.highlight {
  background: var(--teal-glow);
  border-color: rgba(13,148,136,0.3);
  color: var(--text-secondary);
}

.agentic-compare.highlight strong { color: var(--teal-400); }

/* ─── Scroll reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Legal Pages ────────────────────────────────── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,14,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 1rem 0;
}

.legal-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-body {
  min-height: calc(100vh - 200px);
  padding: 5rem 0;
  background: var(--bg-deep);
  color: var(--text-secondary);
}

.legal-body .container {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bg-glass-border);
}

.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.legal-header .legal-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bg-glass-border);
}

.legal-section h2:first-child {
  margin-top: 0;
  border-top: none;
}

.legal-section p {
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-section ul, .legal-section ol {
  margin: 0.75rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-section ul li, .legal-section ol li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-section a {
  color: var(--teal-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-glass-border);
  padding: 2rem 0;
}

.legal-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-footer p, .legal-footer a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-footer a:hover { color: var(--teal-400); }

.legal-footer .legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.flip { direction: ltr; }

  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(7,7,14,0.97);
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-glass-border);
  }
  .nav-links.open a { padding: 0.75rem 0; border-bottom: 1px solid var(--bg-glass-border); color: var(--text-primary); }
  .nav-mobile-toggle { display: flex; }

  .use-cases-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .ann-1, .ann-2, .ann-3 { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #hero .scene-inner > .container > .two-col { grid-template-columns: 1fr; }

  .pipeline-step:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .cta-group { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; }
}


/* ── Refund Policy link ───────────────────────────── */
.refund-policy-wrap {
  text-align: center;
  margin-top: 2rem;
}

.refund-policy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted, #94A3B8);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
  padding: 4px 8px;
  letter-spacing: 0.02em;
}

.refund-policy-btn:hover,
.refund-policy-btn:focus-visible {
  opacity: 1;
  color: var(--text-primary, #ffffff);
}

/* ── Refund Policy modal inner overrides ─────────── */
.refund-modal-inner {
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
}

.refund-modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary, #fff);
}

.refund-modal-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  margin-bottom: 1rem;
}

.refund-modal-body p:last-child {
  margin-bottom: 0;
}
