/* ==========================================================================
   Rapid Ai 10x, Premium AI Platform Design System
   Deep space purple + neon green, glassmorphism, aurora light
   ========================================================================== */
:root {
  --void: #06060A;
  --deep-purple: #1A103D;
  --surface: #121218;
  --surface-2: #17171F;
  --primary: #7C3AED;
  --primary-light: #9D6FFF;
  --primary-deep: #4C1D95;
  --accent: #7DFF4D;
  --glow: #B7FF63;
  --success: #00E676;
  --danger: #FF5C7A;
  --warning: #FFB84D;
  --info: #6FB4FF;
  --text: #FFFFFF;
  --text-secondary: #A3A3B2;
  --text-tertiary: #6E6E82;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --glass-bg: rgba(255,255,255,0.035);
  --glass-bg-strong: rgba(255,255,255,0.06);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --shadow-elevated: 0 20px 60px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.4);
  --glow-primary: 0 0 0 1px rgba(124,58,237,.35), 0 8px 30px rgba(124,58,237,.35);
  --glow-accent: 0 0 0 1px rgba(125,255,77,.3), 0 8px 24px rgba(125,255,77,.22);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.ic { flex-shrink: 0; }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
section.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(26,16,61,.35) 15%, rgba(26,16,61,.35) 85%, transparent); }

.section-head { max-width: 660px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2, .section-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: .85rem; }
.section-head p { margin-top: 1.1rem; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.65; }
.section-lead { color: var(--text-secondary); font-size: 1.08rem; margin-top: 1.1rem; line-height: 1.65; }

/* ---------- Sub-page hero + breadcrumb ---------- */
.page-hero { padding: 2.5rem 0 1rem; }
.page-hero .section-head { margin-bottom: 2.5rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .78rem; color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }
.breadcrumb .is-current { color: var(--text); }
.page-section-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.25rem; }
.page-prose { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; max-width: 760px; }
.page-prose + .page-prose { margin-top: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.related-card { border-radius: var(--radius-md); padding: 1.25rem 1.4rem; display: block; transition: transform .25s var(--ease-spring), border-color .25s ease; }
.related-card:hover { transform: translateY(-3px); }
.related-card h4 { font-size: .98rem; margin-bottom: .35rem; }
.related-card p { font-size: .84rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 760px) {
  .page-hero { padding: 1.5rem 0 .5rem; }
}

.grad-text {
  background: linear-gradient(100deg, var(--primary-light) 0%, var(--accent) 60%, var(--glow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .03em;
  padding: .45rem .95rem; border-radius: 999px;
  background: rgba(124,58,237,.14); color: #C9A8FF;
  border: 1px solid rgba(124,58,237,.35);
}
.eyebrow-muted { background: var(--glass-bg); color: var(--accent); border-color: var(--border); }
.eyebrow-on-glass { background: rgba(255,255,255,.08); color: var(--glow); border-color: rgba(255,255,255,.18); }

.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(125,255,77,.6);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(125,255,77,.55); }
  70% { box-shadow: 0 0 0 8px rgba(125,255,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(125,255,77,0); }
}

/* ==========================================================================
   Background system: grid overlay, aurora blobs, cursor glow
   ========================================================================== */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; z-index: 1;
  pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,58,237,.16), rgba(125,255,77,.05) 45%, transparent 70%);
  opacity: 0; transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.blob-purple { background: radial-gradient(circle, var(--primary) 0%, transparent 70%); }
.blob-green { background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .3; }

.aurora-hero .b1 { width: 620px; height: 620px; top: -220px; left: -160px; animation: drift1 26s ease-in-out infinite; }
.aurora-hero .b2 { width: 480px; height: 480px; top: 40px; right: -140px; animation: drift2 22s ease-in-out infinite; }
.aurora-hero .b3 { width: 420px; height: 420px; bottom: -220px; left: 30%; animation: drift3 30s ease-in-out infinite; opacity: .35; }
.aurora-side { z-index: 0; }
.aurora-side .blob { width: 500px; height: 500px; opacity: .28; }
.aurora-side .b4 { top: 10%; right: -180px; animation: drift2 24s ease-in-out infinite; }
.aurora-side .b5 { top: 15%; left: -180px; animation: drift1 28s ease-in-out infinite; }
.aurora-side .b6 { bottom: -10%; right: -160px; animation: drift3 25s ease-in-out infinite; }
.aurora-cta { border-radius: inherit; }
.aurora-cta .b7 { width: 420px; height: 420px; top: -140px; left: -100px; animation: drift1 20s ease-in-out infinite; }
.aurora-cta .b8 { width: 360px; height: 360px; bottom: -160px; right: -100px; opacity: .3; animation: drift2 24s ease-in-out infinite; }

@keyframes drift1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes drift2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-35px, 25px) scale(1.05); } }
@keyframes drift3 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, -30px) scale(1.1); } }

.container > *, section > .container { position: relative; z-index: 2; }

/* ==========================================================================
   Glassmorphism
   ========================================================================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .93rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-spring), background-color .25s ease, border-color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff; box-shadow: var(--glow-primary);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(124,58,237,.5), 0 10px 40px rgba(124,58,237,.5); transform: translateY(-2px); }
.btn-glass { background: var(--glass-bg-strong); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-full { width: 100%; }

.magnetic { will-change: transform; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; padding: 1rem 1.25rem 0; }
.header-inner {
  max-width: 1200px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4rem; padding: 0 1.25rem; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 32px; height: 32px; border-radius: .7rem; overflow: hidden; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; display: flex; align-items: baseline; gap: .35rem; }
.brand-badge { font-family: var(--font-mono); font-size: .6rem; font-weight: 700; padding: .12rem .38rem; border-radius: .4rem; background: rgba(125,255,77,.15); color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a { font-size: .88rem; font-weight: 500; color: var(--text-secondary); transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .7rem .5rem .8rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--glass-bg);
  color: var(--text-tertiary); font-size: .8rem; transition: all .2s ease;
}
.cmdk-trigger:hover { color: var(--text-secondary); border-color: var(--border-strong); }
.cmdk-trigger kbd { font-family: var(--font-mono); font-size: .68rem; background: rgba(255,255,255,.08); padding: .12rem .4rem; border-radius: .35rem; color: var(--text-secondary); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass-bg); color: var(--text-secondary); cursor: pointer; transition: all .2s ease;
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.nav-toggle { display: none; }
.header-signin { display: inline-flex; }

.mobile-nav { display: none; flex-direction: column; gap: .1rem; margin: .6rem 1.25rem 0; padding: .75rem 1.25rem 1.25rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.mobile-nav a { padding: .7rem 0; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mobile-nav.is-open { display: flex; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-signin { display: none; }
  .header-cta { display: none; }
  .cmdk-trigger span, .cmdk-trigger kbd { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Command palette
   ========================================================================== */
.cmdk { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(6,6,10,.7); backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.cmdk-panel {
  position: relative; width: min(560px, 90vw); border-radius: var(--radius-md); overflow: hidden;
  background: rgba(18,18,24,.92); box-shadow: var(--shadow-elevated);
  animation: cmdkIn .25s var(--ease-spring);
}
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cmdk-input-row { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text-tertiary); }
.cmdk-input-row input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: .98rem; font-family: var(--font-body); }
.cmdk-input-row input::placeholder { color: var(--text-tertiary); }
.cmdk-input-row kbd { font-family: var(--font-mono); font-size: .7rem; background: rgba(255,255,255,.08); padding: .2rem .45rem; border-radius: .4rem; color: var(--text-secondary); }
.cmdk-list { max-height: 60vh; overflow-y: auto; padding: .6rem; }
.cmdk-item { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: .8rem; color: var(--text-secondary); font-size: .9rem; transition: background .15s ease; }
.cmdk-item svg { color: var(--accent); }
.cmdk-item span { flex: 1; color: var(--text); font-weight: 500; }
.cmdk-item em { font-style: normal; font-size: .72rem; color: var(--text-tertiary); font-family: var(--font-mono); }
.cmdk-item:hover, .cmdk-item.is-selected { background: rgba(124,58,237,.16); }
.cmdk-item[hidden] { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 6.5rem 0 5rem; overflow: hidden; }
.constellation { position: absolute; top: 0; right: -8%; width: 55%; height: 100%; opacity: .55; z-index: 0; }
.const-nodes circle { animation: nodePulse 3.2s ease-in-out infinite; }
.const-nodes circle:nth-child(2) { animation-delay: .4s; }
.const-nodes circle:nth-child(3) { animation-delay: .8s; }
.const-nodes circle:nth-child(4) { animation-delay: 1.2s; }
.const-nodes circle:nth-child(5) { animation-delay: 1.6s; }
.const-nodes circle:nth-child(6) { animation-delay: 2s; }
@keyframes nodePulse { 0%, 100% { opacity: .5; r: 3; } 50% { opacity: 1; } }

.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-top: 1.2rem; letter-spacing: -.03em; }
.hero-sub { margin-top: 1.4rem; font-size: 1.15rem; color: var(--text-secondary); max-width: 32rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-proof { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.hero-proof p { font-size: .88rem; color: var(--text-secondary); }
.hero-proof strong { color: var(--text); }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700; color: #06060A;
  background: linear-gradient(135deg, var(--glow), var(--accent));
  border: 2px solid var(--void); margin-left: -10px; position: relative; z-index: calc(10 - var(--i));
}
.avatar-stack span:first-child { margin-left: 0; }

.hero-visual { position: relative; }
.orb-ring {
  position: absolute; inset: -8%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
  filter: blur(60px); opacity: .18; animation: spin 16s linear infinite; z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mock-window { border-radius: var(--radius-lg); overflow: hidden; }
.mock-titlebar { display: flex; align-items: center; gap: .4rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.d-r { background: var(--danger); opacity: .8; }
.d-y { background: var(--warning); opacity: .8; }
.d-g { background: var(--success); opacity: .8; }
.mock-title { margin-left: .5rem; font-size: .74rem; color: var(--text-tertiary); font-weight: 600; font-family: var(--font-mono); }
.mock-live { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 600; color: var(--accent); font-family: var(--font-mono); }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 1.1rem; }
.mock-kpi { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .85rem; }
.mock-kpi-label { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); font-weight: 600; font-family: var(--font-mono); }
.mock-kpi-value { display: block; margin-top: .35rem; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--text); }

.mock-chart { padding: 0 1.1rem 1.1rem; }
.mock-chart-svg { width: 100%; height: 70px; }

.mock-rows { border-top: 1px solid var(--border); padding: .6rem .6rem .9rem; display: flex; flex-direction: column; gap: .3rem; }
.mock-illustrative { margin: 0; padding: .55rem .9rem .8rem; font-size: .68rem; font-style: italic; color: var(--text-tertiary); text-align: center; }
.mock-row, .mock-lead-card { display: flex; align-items: center; gap: .65rem; padding: .6rem .65rem; border-radius: var(--radius-sm); transition: background .2s ease; }
.mock-row:hover { background: rgba(255,255,255,.04); }
.mock-avatar {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff; font-size: .66rem; font-weight: 700; font-family: var(--font-mono);
}
.mock-avatar--ai { background: linear-gradient(135deg, var(--glow), var(--accent)); color: #06060A; }
.mock-avatar--ok { background: rgba(0,230,118,.15); color: var(--success); }
.mock-avatar--warn { background: rgba(255,184,77,.15); color: var(--warning); }
.mock-avatar--info { background: rgba(111,180,255,.15); color: var(--info); }
.mock-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mock-row-text strong { font-size: .82rem; font-weight: 600; }
.mock-row-text small { font-size: .72rem; color: var(--text-tertiary); }
.mock-pill { flex-shrink: 0; font-size: .64rem; font-weight: 700; padding: .28rem .65rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-mono); }
.pill-success { background: rgba(0,230,118,.14); color: var(--success); }
.pill-info { background: rgba(111,180,255,.14); color: var(--info); }
.pill-warn { background: rgba(255,184,77,.14); color: var(--warning); }

.typing-dots { display: inline-flex; gap: 3px; margin-top: .2rem; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: typingBounce 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.floaty {
  position: absolute; font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  border-radius: 999px; padding: .5rem 1rem; color: var(--glow);
  animation: float 5s ease-in-out infinite; display: flex; align-items: center; gap: .4rem;
}
.floaty-1 { top: -16px; right: 14px; }
.floaty-2 { bottom: -16px; left: 14px; animation-delay: 1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 4.5rem; font-size: .72rem; color: var(--text-tertiary); font-family: var(--font-mono); animation: bounceCue 2.2s ease-in-out infinite; }
@keyframes bounceCue { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .constellation { display: none; }
}

/* ==========================================================================
   Replaces strip
   ========================================================================== */
.replaces { padding: 2.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.replaces-label { text-align: center; font-size: .82rem; color: var(--text-tertiary); margin-bottom: 1.1rem; font-family: var(--font-mono); }
.replaces-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.replace-chip {
  font-size: .82rem; font-weight: 600; padding: .5rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-tertiary);
  text-decoration: line-through; text-decoration-color: rgba(255,92,122,.5);
}
.replace-chip--ai { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; background: rgba(125,255,77,.12); color: var(--accent); border-color: rgba(125,255,77,.3); }

/* ==========================================================================
   Problem
   ========================================================================== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.problem-card { border-radius: var(--radius-md); padding: 1.7rem; transition: transform .3s var(--ease-spring), border-color .3s ease; }
.problem-card:hover { transform: translateY(-4px); border-color: rgba(255,92,122,.3); }
.problem-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); background: rgba(255,92,122,.12); color: var(--danger); margin-bottom: 1.1rem; }
.problem-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.problem-card p { font-size: .89rem; color: var(--text-secondary); line-height: 1.6; }
.problem-transition { text-align: center; margin-top: 2.5rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Vision
   ========================================================================== */
.vision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; max-width: 980px; margin: 0 auto; }
.vision-item { display: flex; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 600; padding: .9rem 1.05rem; border-radius: var(--radius-sm); transition: transform .25s var(--ease-spring), border-color .25s ease; }
.vision-item:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.vision-item svg { color: var(--accent); }
@media (max-width: 780px) { .vision-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Modules grid
   ========================================================================== */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.module-card { border-radius: var(--radius-md); padding: 1.6rem; transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-spring), border-color .3s ease; }
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-elevated); border-color: var(--border-strong); }
.module-card--highlight { background: linear-gradient(160deg, rgba(124,58,237,.16), var(--glass-bg)); border-color: rgba(124,58,237,.35); }
.module-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; border-radius: var(--radius-sm); background: rgba(124,58,237,.16); color: var(--primary-light); margin-bottom: 1.1rem; }
.module-icon--accent { background: rgba(125,255,77,.14); color: var(--accent); }
.module-card h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.module-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 900px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Tabs / deep dive
   ========================================================================== */
.tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.75rem; }
.tab-btn {
  font-size: .84rem; font-weight: 600; padding: .6rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--glass-bg); color: var(--text-secondary);
  transition: all .25s var(--ease-out);
}
.tab-btn:hover { color: var(--text); border-color: var(--border-strong); }
.tab-btn.is-active { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; border-color: transparent; box-shadow: var(--glow-primary); }

.tab-panel { display: none; animation: fadein .35s var(--ease-out); }
.tab-panel.is-active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.panel-kicker { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-family: var(--font-mono); }
.panel-grid h3 { font-size: 1.55rem; margin-top: .55rem; margin-bottom: 1.35rem; }

.check-list { display: flex; flex-direction: column; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: rgba(255,255,255,.82); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .32rem; width: 17px; height: 17px; border-radius: 50%; background: rgba(125,255,77,.14); }
.check-list li::after { content: "✓"; position: absolute; left: 3.5px; top: .17rem; font-size: .6rem; font-weight: 800; color: var(--accent); }
.check-list--lg li { font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.pill { font-size: .74rem; font-weight: 600; padding: .38rem .8rem; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--border); color: var(--text-secondary); }

.panel-mock { border-radius: var(--radius-md); padding: 1.35rem; display: flex; flex-direction: column; gap: .9rem; }
.mock-search { display: flex; flex-direction: column; gap: .5rem; }
.mock-search-row { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; padding: .55rem .75rem; background: rgba(255,255,255,.03); border-radius: var(--radius-sm); }
.mock-search-row span { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.mock-tags { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .72rem; font-weight: 600; color: var(--text-secondary); font-family: var(--font-mono); }
.mock-tags span { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .65rem; border-radius: 999px; background: rgba(255,255,255,.03); }
.mock-tags svg { color: var(--success); }
.mock-code { font-family: var(--font-mono); font-size: .82rem; background: rgba(255,255,255,.03); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .85rem 1.05rem; display: flex; flex-direction: column; gap: .3rem; color: var(--text-secondary); }
.pipeline-track { display: flex; flex-wrap: wrap; gap: .5rem; }
.pipeline-track span { font-size: .78rem; font-weight: 600; padding: .55rem .85rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text-secondary); }
.pipeline-track .pipeline-won { background: rgba(0,230,118,.14); color: var(--success); border-color: transparent; }

@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================================
   Dashboard KPIs
   ========================================================================== */
.dash-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.dash-kpi { border-radius: var(--radius-md); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; transition: transform .25s var(--ease-spring); }
.dash-kpi:hover { transform: translateY(-3px); }
.dash-kpi span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); font-weight: 700; font-family: var(--font-mono); }
.dash-kpi strong { font-family: var(--font-mono); font-size: 1.45rem; }
.dash-kpi--accent { background: linear-gradient(160deg, rgba(125,255,77,.12), var(--glass-bg)); border-color: rgba(125,255,77,.3); }
.dash-kpi--accent strong { color: var(--accent); }

.dash-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dash-widget { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; padding: 1rem 1.15rem; border-radius: var(--radius-sm); color: var(--text-secondary); border-style: dashed; }
.dash-widget svg { color: var(--primary-light); }

@media (max-width: 860px) { .dash-kpi-grid, .dash-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dash-kpi-grid, .dash-widgets { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   AI Assistant spotlight
   ========================================================================== */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.ai-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: .65rem; }
.ai-demo { display: flex; flex-direction: column; gap: 1rem; }
.ai-demo-card { border-radius: var(--radius-md); padding: 1.15rem; }
.ai-demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.ai-demo-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; text-align: center; }
.ai-demo-stats strong { display: block; font-family: var(--font-mono); font-size: 1.05rem; }
.ai-demo-stats span { display: block; font-size: .64rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .03em; margin-top: .25rem; font-family: var(--font-mono); }

.ai-prompt, .ai-output { border-radius: var(--radius-md); padding: 1.05rem 1.2rem; font-size: .88rem; line-height: 1.65; }
.ai-prompt { font-style: italic; color: var(--text-secondary); }
.ai-output { background: linear-gradient(160deg, rgba(124,58,237,.14), var(--glass-bg)); border-color: rgba(124,58,237,.3); }
.ai-output p { margin-bottom: .5rem; }
.ai-output p:last-child { margin-bottom: 0; }
.ai-subject { font-weight: 700; }
.ai-prompt-label { display: flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: .55rem; font-family: var(--font-mono); }

@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 480px) { .ai-demo-stats { grid-template-columns: repeat(3, 1fr); row-gap: .75rem; } }

/* ==========================================================================
   Diagrams
   ========================================================================== */
.diagrams-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.diagram-card { border-radius: var(--radius-md); padding: 1.6rem; }
.diagram-card h3 { font-size: 1rem; margin-bottom: 1.3rem; text-align: center; }
.diagram-caption { text-align: center; font-size: .78rem; color: var(--text-tertiary); margin-top: 1rem; font-style: italic; }

.built-inside-card {
  position: relative; max-width: 46rem; margin: 0 auto; text-align: center;
  border-radius: 32px; padding: 3.5rem 2rem;
}
.built-inside-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: .9rem; }
.built-inside-card p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; max-width: 34rem; margin-left: auto; margin-right: auto; }
.built-inside-lead { font-weight: 700; color: var(--text); font-size: 1.15rem !important; }

.flow-top { text-align: center; font-size: .74rem; font-weight: 700; background: rgba(124,58,237,.16); color: var(--primary-light); border-radius: var(--radius-sm); padding: .55rem; margin-bottom: .9rem; }
.flow-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: .9rem; }
.flow-branches span { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .62rem; font-weight: 600; color: var(--text-secondary); background: rgba(255,255,255,.03); border-radius: var(--radius-sm); padding: .5rem .2rem; }
.flow-branches svg { color: var(--accent); }
.flow-stack { display: flex; flex-direction: column; gap: .4rem; }
.flow-stack div { text-align: center; font-size: .74rem; font-weight: 600; padding: .55rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); color: var(--text-secondary); }
.flow-final { background: linear-gradient(135deg, var(--primary-light), var(--accent)) !important; color: #06060A !important; font-weight: 700 !important; }

.flow-vertical { display: flex; flex-direction: column; gap: .4rem; }
.flow-vertical span { text-align: center; font-size: .76rem; font-weight: 600; padding: .55rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); color: var(--text-secondary); }
.flow-vertical--tight span { font-size: .66rem; padding: .42rem; }

.flywheel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; position: relative; }
.flywheel-ring { position: relative; width: 220px; height: 220px; }
.flywheel-ring span {
  position: absolute; top: 50%; left: 50%; width: 84px; margin-left: -42px; margin-top: -20px;
  text-align: center; font-size: .6rem; font-weight: 700; line-height: 1.2;
  padding: .4rem .3rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); color: var(--text-secondary);
  transform: rotate(calc(360deg / 7 * var(--i))) translate(0, -110px) rotate(calc(-360deg / 7 * var(--i)));
}
.flywheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent)); color: #06060A;
  box-shadow: var(--glow-primary); animation: pulseCenter 3s ease-in-out infinite;
}
@keyframes pulseCenter { 0%, 100% { box-shadow: var(--glow-primary); } 50% { box-shadow: 0 0 0 1px rgba(125,255,77,.4), 0 8px 34px rgba(125,255,77,.4); } }

@media (max-width: 980px) { .diagrams-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .diagrams-grid { grid-template-columns: 1fr; } .flywheel-ring { width: 250px; height: 250px; } .flywheel-ring span { transform: rotate(calc(360deg / 7 * var(--i))) translate(0, -125px) rotate(calc(-360deg / 7 * var(--i))); } }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table th, .compare-table td { padding: 1rem 1.15rem; text-align: center; font-size: .88rem; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: var(--font-display); font-weight: 700; background: rgba(255,255,255,.02); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .ok { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.compare-table .no { color: var(--text-tertiary); opacity: .5; font-weight: 800; font-size: 1.05rem; }
.compare-table .limited { color: var(--warning); font-weight: 700; font-size: .78rem; }
.compare-table .col-rapid { background: rgba(124,58,237,.1); }
.compare-table th.col-rapid { background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(125,255,77,.15)); color: var(--glow); }

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calc-card { max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg); padding: 2.2rem; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.calc-field { display: flex; flex-direction: column; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--text-secondary); }
.calc-field input {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .7rem .9rem; width: 100%;
}
.calc-field input:focus { outline: none; border-color: var(--primary-light); }
.calc-input-prefix { display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 .9rem; }
.calc-input-prefix span { font-family: var(--font-mono); color: var(--text-tertiary); }
.calc-input-prefix input { background: none; border: none; padding: .7rem 0; }
.calc-input-prefix:focus-within { border-color: var(--primary-light); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.calc-result { display: flex; flex-direction: column; gap: .4rem; }
.calc-result span { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); font-weight: 700; font-family: var(--font-mono); }
.calc-result strong { font-family: var(--font-mono); font-size: 1.9rem; }
.calc-result--accent strong { color: var(--accent); }
.calc-note { margin-top: 1.5rem; font-size: .76rem; color: var(--text-tertiary); font-style: italic; }
@media (max-width: 640px) { .calc-inputs, .calc-results { grid-template-columns: 1fr; } }

.pricing-note { text-align: center; margin-top: 2.25rem; font-size: .85rem; color: var(--text-tertiary); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card { position: relative; border-radius: var(--radius-lg); padding: 2rem 1.85rem; display: flex; flex-direction: column; transition: transform .3s var(--ease-spring); }
.price-card:hover { transform: translateY(-6px); }
.price-card h3 { font-size: 1.25rem; }
.price-desc { margin-top: .5rem; font-size: .86rem; color: var(--text-secondary); min-height: 2.6em; }
.price-amount { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; margin: 1.4rem 0 1.6rem; display: flex; align-items: baseline; gap: .2rem; }
.price-amount--custom { font-size: 2rem; }
.price-currency { font-size: 1.2rem; color: var(--text-secondary); }
.price-period { font-size: .95rem; font-weight: 500; color: var(--text-tertiary); }
.price-features { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.8rem; }
.price-features li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-secondary); }
.price-features svg { color: var(--accent); flex-shrink: 0; }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700;
  padding: .4rem .9rem; border-radius: 999px; background: linear-gradient(135deg, var(--glow), var(--accent));
  color: #06060A; box-shadow: var(--glow-accent);
}
.price-card--popular { border-color: rgba(124,58,237,.5); background: linear-gradient(180deg, rgba(124,58,237,.14), var(--glass-bg)); box-shadow: var(--glow-primary), var(--shadow-elevated); }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .price-card--popular { order: -1; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { border-radius: var(--radius-lg); padding: 1.85rem; display: flex; flex-direction: column; gap: 1.25rem; transition: transform .3s var(--ease-spring); }
.testi-card:hover { transform: translateY(-5px); }
.testi-stars { display: flex; gap: .2rem; color: var(--glow); }
.testi-card blockquote { margin: 0; font-size: .96rem; line-height: 1.65; color: rgba(255,255,255,.9); }
.testi-card figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testi-card figcaption strong { display: block; font-size: .88rem; }
.testi-card figcaption small { color: var(--text-tertiary); font-size: .78rem; }

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

/* ==========================================================================
   Roadmap
   ========================================================================== */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.roadmap-item { position: relative; padding-top: 2.85rem; }
.roadmap-item::before { content: ""; position: absolute; top: 1.4rem; left: calc(50% + 1.45rem); width: calc(100% - 1.45rem); height: 1px; background: linear-gradient(90deg, var(--primary), transparent); }
.roadmap-item:last-child::before { display: none; }
.roadmap-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2.85rem; height: 2.85rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff;
  box-shadow: var(--glow-primary); z-index: 1;
}
.roadmap-body { border-radius: var(--radius-md); padding: 1.15rem; text-align: center; }
.roadmap-body h3 { font-size: .95rem; margin-bottom: .75rem; }
.roadmap-body ul { display: flex; flex-direction: column; gap: .4rem; }
.roadmap-body li { font-size: .78rem; color: var(--text-secondary); }

@media (max-width: 980px) { .roadmap { grid-template-columns: repeat(2, 1fr); } .roadmap-item::before { display: none; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .85rem; }
.faq-item { border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; background: none; border: none; color: var(--text); font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-align: left; }
.faq-chevron { color: var(--text-tertiary); transition: transform .3s var(--ease-spring); flex-shrink: 0; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-spring); }
.faq-a p { overflow: hidden; padding: 0 1.5rem; font-size: .92rem; line-height: 1.65; color: var(--text-secondary); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { padding-bottom: 1.35rem; }
.faq-a > p { min-height: 0; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-section { padding-bottom: 7rem; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px;
  padding: 4rem 2rem; background: linear-gradient(165deg, var(--deep-purple), var(--surface) 70%);
  border: 1px solid var(--border-strong);
}
.cta-card h2 { position: relative; z-index: 2; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-top: 1rem; max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-card p { position: relative; z-index: 2; margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; }
.cta-form { position: relative; z-index: 2; display: flex; gap: .7rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.cta-form input {
  font-family: var(--font-body); font-size: .95rem; padding: .9rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.05); color: #fff; min-width: 280px;
}
.cta-form input::placeholder { color: var(--text-tertiary); }
.cta-form input:focus { outline: none; border-color: var(--primary-light); }
.cta-note { position: relative; z-index: 2; margin-top: 1.1rem; font-size: .8rem; color: var(--text-tertiary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 1.5rem; position: relative; z-index: 2; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: .9rem; font-size: .85rem; color: var(--text-secondary); max-width: 20rem; line-height: 1.6; }
.footer-live { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .76rem; font-family: var(--font-mono); color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); margin-bottom: .3rem; font-family: var(--font-mono); }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.75); transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-tertiary); font-family: var(--font-mono); }

@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive base
   ========================================================================== */
@media (max-width: 640px) {
  section.section { padding: 4rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .header-inner { border-radius: 22px; }
}

/* ==========================================================================
   Intro video curtain
   Full-bleed film on load, then rides up to hand the page over.
   ========================================================================== */
/* Curtain is only ever shown when the head gate opted this load in. Marking the
   skip case display:none pre-paint means a repeat view shows no flash at all. */
html.intro-open, html.intro-open body { overflow: hidden; }
html.intro-skip .intro-curtain { display: none !important; }

.intro-curtain {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 0%, var(--deep-purple) 0%, var(--void) 62%);
  transform: translateY(0);
  transition: transform 1.05s var(--ease-spring);
  will-change: transform;
}
.intro-curtain.is-leaving { transform: translateY(-100%); }

.intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
  background: var(--void);
}
.intro-curtain.is-playing .intro-video { opacity: 1; }
/* Portrait viewports: letterbox rather than crop the 16:9 film to a sliver. */
@media (max-aspect-ratio: 1/1) { .intro-video { object-fit: contain; } }

/* Vignette so the brand mark and controls stay readable over any frame. */
.intro-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,6,10,.72) 0%, rgba(6,6,10,0) 26%, rgba(6,6,10,0) 62%, rgba(6,6,10,.86) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(6,6,10,0) 45%, rgba(6,6,10,.55) 100%);
}

.intro-brand {
  position: absolute; top: 1.9rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.01em; color: var(--text);
  opacity: 0; animation: introFade .8s var(--ease-out) .25s forwards;
}
.intro-brand .brand-mark { width: 30px; height: 30px; display: block; }
.intro-brand .brand-mark svg { width: 100%; height: 100%; display: block; }

.intro-controls {
  position: absolute; right: 1.5rem; bottom: 1.6rem;
  display: flex; align-items: center; gap: .6rem;
  opacity: 0; animation: introFade .8s var(--ease-out) .6s forwards;
}
.intro-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.05rem; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s var(--ease-spring);
}
.intro-btn:hover { color: var(--text); background: rgba(255,255,255,.11); transform: translateY(-1px); }
.intro-btn.is-live { color: var(--accent); border-color: rgba(125,255,77,.4); background: rgba(125,255,77,.12); }
.intro-btn--skip { color: var(--text); }
.intro-btn--skip:hover { border-color: rgba(125,255,77,.45); box-shadow: var(--glow-accent); }

.intro-foot {
  position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.6rem;
  display: flex; flex-direction: column; gap: .7rem;
  max-width: 20rem; pointer-events: none;
  opacity: 0; animation: introFade .8s var(--ease-out) .6s forwards;
}
.intro-progress { height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.intro-progress-bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left center;
}
.intro-hint { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--text-tertiary); }

@keyframes introFade { to { opacity: 1; } }

@media (max-width: 640px) {
  .intro-brand { top: 1.3rem; font-size: .95rem; }
  .intro-controls { right: 1rem; left: 1rem; bottom: 1.1rem; justify-content: center; }
  .intro-foot { left: 1rem; right: 1rem; bottom: 4.2rem; max-width: none; }
}

/* ---------- Two-plan pricing ---------- */
.pricing-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.price-yearly { margin-top: -1rem; margin-bottom: 1.4rem; font-family: var(--font-mono); font-size: .76rem; color: var(--text-tertiary); }
.price-yearly strong { color: var(--accent); font-weight: 600; }
.price-group { margin-top: 1.6rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); font-family: var(--font-mono); display: flex; align-items: center; gap: .45rem; }
.price-group:first-child { margin-top: 0; }
.price-group svg { color: var(--accent); flex-shrink: 0; }
.price-features + .price-group { margin-top: 1.5rem; }
.price-features--sub { margin-top: .8rem; }
.agent-plan-note { text-align: center; max-width: 640px; margin: 1.5rem auto 0; font-size: .88rem; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 900px) { .pricing-grid--two { grid-template-columns: 1fr; max-width: 420px; } }

/* ==========================================================================
   Early access overlay
   Full-screen takeover on submit: working state, then the confirmation.
   `data-state` on the overlay is the single switch; each stage block shows
   only for its own state so there is never more than one visible at a time.
   ========================================================================== */
.access-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(120% 90% at 50% 0%, rgba(26,16,61,.96), rgba(6,6,10,.985));
  backdrop-filter: blur(10px);
  animation: accessFade .28s var(--ease-out);
}
.access-overlay[hidden] { display: none; }

.access-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.access-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.access-blob--purple { width: 460px; height: 460px; top: -12%; left: 8%; background: var(--primary); }
.access-blob--green  { width: 380px; height: 380px; bottom: -14%; right: 6%; background: var(--accent); opacity: .28; }

.access-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 3rem 2.5rem 2.75rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-elevated);
  animation: accessRise .4s var(--ease-spring);
}

.access-close {
  position: absolute; top: 1rem; right: 1rem;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 50%;
  background: none; color: var(--text-tertiary);
  cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.access-close:hover { color: var(--text); border-color: var(--border-strong); }
/* No way out while the request is still in flight. */
.access-overlay[data-state="loading"] .access-close { display: none; }

/* --- stage visibility --- */
.access-stage { display: none; }
.access-overlay[data-state="loading"] .access-stage--loading,
.access-overlay[data-state="done"]    .access-stage--done,
.access-overlay[data-state="error"]   .access-stage--error { display: block; }

/* --- working --- */
.access-spinner { display: grid; place-items: center; height: 72px; margin-bottom: 1.75rem; }
.access-spinner span {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  animation: accessSpin .8s linear infinite;
}

.access-steps {
  display: flex; flex-direction: column; gap: .7rem;
  max-width: 260px; margin: 0 auto 1.9rem; text-align: left;
}
.access-steps li {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text-tertiary);
  transition: color .3s ease;
}
.access-steps li i {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 1.5px solid currentColor; border-radius: 50%;
  position: relative;
}
.access-steps li.is-active { color: var(--text-secondary); }
.access-steps li.is-done { color: var(--accent); }
.access-steps li.is-done i { background: var(--accent); border-color: var(--accent); }
/* Tick drawn in CSS so the step list needs no extra markup per row. */
.access-steps li.is-done i::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid var(--void); border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}

/* --- result marks --- */
.access-mark { display: grid; place-items: center; margin-bottom: 1.75rem; }
.access-mark-ring { stroke: var(--accent); opacity: .3; }
.access-mark-tick { stroke: var(--accent); stroke-dasharray: 60; stroke-dashoffset: 60; animation: accessDraw .5s var(--ease-out) .12s forwards; }
.access-mark--error .access-mark-ring,
.access-mark--error .access-mark-tick { stroke: var(--danger); }
.access-mark--error .access-mark-tick { stroke-dasharray: 90; stroke-dashoffset: 90; }

/* --- copy --- */
.access-title { font-size: clamp(1.55rem, 4vw, 2rem); }
.access-lead { margin-top: .85rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.65; }
.access-email {
  margin-top: 1.1rem; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  font-family: var(--font-mono); font-size: .85rem; color: var(--text);
  word-break: break-all;
}
.access-email[hidden] { display: none; }
.access-action { margin-top: 1.9rem; min-width: 200px; }
.access-action[hidden] { display: none; }

@keyframes accessFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes accessRise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes accessSpin { to { transform: rotate(360deg); } }
@keyframes accessDraw { to { stroke-dashoffset: 0; } }

/* A frozen spinner reads as a hung page, so rotation survives the global
   reduced-motion reset below. It is slowed down and everything else here
   (the rise, the aurora, the tick draw) still stops. */
@media (prefers-reduced-motion: reduce) {
  .access-spinner span { animation: accessSpin 1.8s linear infinite !important; }
  .access-mark-tick { stroke-dashoffset: 0; }
}

@media (max-width: 520px) {
  .access-panel { padding: 2.5rem 1.5rem 2.25rem; }
  .access-steps { max-width: 100%; }
}
