/* Driving Instructor Apps — "Night drive" design system */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..800&family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #07070f;
  --bg-2: #0c0c1a;
  --bg-3: #12122a;
  --ink: #f4f3ff;
  --ink-2: #b9b6d6;
  --ink-3: #7c7a9c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --indigo: #4f46ff;
  --violet: #a855f7;
  --magenta: #d946ef;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --brand: linear-gradient(135deg, #3b82f6 0%, #6d4aff 45%, #a855f7 100%);
  --brand-soft: linear-gradient(135deg, rgba(59,130,246,.18), rgba(168,85,247,.18));
  --glow: 0 0 0 1px rgba(168,85,247,.25), 0 30px 80px -20px rgba(109,74,255,.55);
  --radius: 22px;
  --radius-sm: 12px;
  --font-display: 'Bricolage Grotesque', 'Figtree', sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(168,85,247,.45); }

/* grain + atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; }
.orb--a { width: 520px; height: 520px; background: #4f46ff; top: -160px; left: -140px; }
.orb--b { width: 460px; height: 460px; background: #a855f7; top: 20%; right: -160px; opacity: .4; }
.orb--c { width: 380px; height: 380px; background: #22d3ee; bottom: -120px; left: 30%; opacity: .18; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-cyan { background: linear-gradient(90deg, #22d3ee, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 20px); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(109,74,255,.8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(168,85,247,.9); }
.btn--ghost { border: 1px solid var(--line-2); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: #0f0f1f; border: 1px solid var(--line-2); color: #fff; line-height: 1.05; min-width: 168px;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.store:hover { transform: translateY(-2px); border-color: rgba(168,85,247,.6); background: #15152b; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.store b { display: block; font-size: 16px; font-weight: 600; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7,7,15,.55); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(109,74,255,.9); }
.logo-mark svg { width: 20px; height: 20px; }
.logo span em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .btn { margin-left: 8px; color: #fff; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: rgba(7,7,15,.96); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 12px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  .menu-btn { display: grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .55; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7,7,15,.96) 0%, rgba(7,7,15,.82) 38%, rgba(7,7,15,.35) 70%, rgba(7,7,15,.65) 100%),
  linear-gradient(180deg, rgba(7,7,15,.5), rgba(7,7,15,0) 30%, rgba(7,7,15,.2) 70%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); font-weight: 700; letter-spacing: -.035em; line-height: .98; max-width: 12ch; }
.hero h1 .line { display: block; }
.hero .lede { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--ink-2); font-size: 14px; }
.hero-proof b { color: var(--ink); font-family: var(--font-display); font-size: 20px; display: block; letter-spacing: -.02em; }
.pill-ai {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.08); color: #c9f6fd; margin-bottom: 22px;
}
.pill-ai .dot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: grid; place-items: center; }
.pill-ai .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .6; } }

/* phone stack in hero */
.hero-stage { position: relative; height: 560px; }
.hero-stage .phone { position: absolute; }
.hero-stage .phone--1 { left: 6%; top: 60px; transform: rotate(-7deg); z-index: 2; }
.hero-stage .phone--2 { left: 40%; top: 0; z-index: 3; }
.hero-stage .phone--3 { right: -2%; top: 90px; transform: rotate(8deg); z-index: 1; }
.hero-stage .phone { animation: floaty 7s ease-in-out infinite; }
.hero-stage .phone--2 { animation-delay: -2s; }
.hero-stage .phone--3 { animation-delay: -4s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 440px; max-width: 560px; margin: 10px auto 0; }
}
@media (max-width: 560px) {
  .hero-stage { height: 380px; }
  .hero-stage .phone--1 { left: -4%; top: 40px; }
  .hero-stage .phone--3 { right: -6%; top: 60px; }
}

/* ---------- Phone mockup ---------- */
.phone {
  --w: 230px;
  width: var(--w); aspect-ratio: 1181 / 2560; border-radius: calc(var(--w) * .16);
  background: #0a0a14; padding: calc(var(--w) * .035);
  box-shadow: 0 0 0 1.5px #2a2a44, 0 0 0 5px #0b0b16, 0 0 0 6px #33334f, 0 40px 80px -30px rgba(0,0,0,.9), 0 20px 60px -20px rgba(109,74,255,.35);
  position: relative;
}
.phone .screen { position: absolute; inset: calc(var(--w) * .035); border-radius: calc(var(--w) * .13); overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: calc(var(--w) * .075); left: 50%; translate: -50% 0; width: calc(var(--w) * .3); height: calc(var(--w) * .085); border-radius: 999px; background: #000; z-index: 2;
}
.phone--lg { --w: 300px; }
.phone--xl { --w: 340px; }
.phone-glow { position: relative; }
.phone-glow::before { content: ""; position: absolute; inset: 10% 15%; background: var(--brand); filter: blur(60px); opacity: .45; border-radius: 50%; z-index: -1; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { white-space: nowrap; font-family: var(--font-display); font-size: 17px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 40px; }
.ticker-track span::after { content: "✦"; color: var(--violet); font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 16px; }
.section-head .lede { margin-top: 18px; }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.why::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.22), transparent 60%); opacity: 0; transition: opacity .4s; }
.why:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.45); }
.why:hover::before { opacity: 1; }
.why .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); border: 1px solid rgba(168,85,247,.3); display: grid; place-items: center; margin-bottom: 20px; }
.why .icon svg { width: 22px; height: 22px; stroke: #d9d4ff; }
.why h3 { font-size: 22px; margin-bottom: 10px; }
.why p { color: var(--ink-2); font-size: 15.5px; position: relative; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* App showcase */
.app { padding: clamp(70px, 9vw, 130px) 0; position: relative; overflow: clip; }
.app + .app { border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.app--flip .app-grid > .app-copy { order: 2; }
.app-num { font-family: var(--font-display); font-size: clamp(110px, 18vw, 240px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); position: absolute; top: 20px; right: 2%; user-select: none; pointer-events: none; }
.app--flip .app-num { right: auto; left: 2%; }
.app-icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-icon { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 10px 25px -10px rgba(0,0,0,.8), 0 0 0 1px var(--line-2); }
.app-icon-row .meta { font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .04em; }
.app-icon-row .meta b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; }
.app h2 { font-size: clamp(32px, 4vw, 52px); }
.app .lede { margin-top: 16px; }
.feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.feats li b { color: var(--ink); }
.feats li .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); border: 1px solid rgba(168,85,247,.4); display: grid; place-items: center; margin-top: 2px; }
.feats li .tick svg { width: 12px; height: 12px; stroke: #fff; }
.app-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-ctas .more { color: var(--ink-2); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; }
.app-ctas .more:hover { color: var(--ink); }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.price-tag b { font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: -.02em; }

/* stage: lifestyle image + demo phone */
.app-stage { position: relative; min-height: 560px; }
.app-stage .scene { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.app-stage .scene img, .app-stage .scene video { width: 100%; height: 100%; object-fit: cover; }
.app-stage .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,7,15,.6)); }
.app-stage .phone { position: absolute; bottom: -30px; right: -20px; z-index: 2; }
.app--flip .app-stage .phone { right: auto; left: -20px; }
.scene-tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(7,7,15,.55); backdrop-filter: blur(10px); border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }
.scene-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
@media (max-width: 960px) {
  .app-grid { grid-template-columns: 1fr; }
  .app--flip .app-grid > .app-copy { order: 0; }
  .app-stage { min-height: 480px; margin-top: 10px; max-width: 620px; }
  .app-num { font-size: 120px; top: 0; }
}
@media (max-width: 560px) {
  .app-stage { min-height: 420px; }
  .app-stage .phone { --w: 190px; right: -8px; bottom: -20px; }
  .app--flip .app-stage .phone { left: -8px; }
}

/* ---------- Live demos inside phones ---------- */
.demo { position: absolute; inset: 0; background: linear-gradient(160deg, #3b4cf0 0%, #6b4ae8 55%, #a955f5 100%); color: #fff; font-family: -apple-system, 'Figtree', sans-serif; padding: 16% 7% 6%; display: flex; flex-direction: column; gap: 8px; font-size: 9px; }
.demo .d-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 6px; }
.demo .d-card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 9px 10px; backdrop-filter: blur(6px); }
.demo .d-card.light { background: #fff; color: #1b1b2f; }
.demo .d-label { font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; display: flex; align-items: center; gap: 5px; }
.demo .d-big { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; line-height: 1.15; }
.demo .d-q { font-size: 12px; font-weight: 600; line-height: 1.35; min-height: 48px; }
.demo .d-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 7.5px; font-weight: 600; background: rgba(255,255,255,.2); }
.demo .d-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.demo .d-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 6px; }
.demo .d-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width 1.6s var(--ease); }
.demo .d-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.2); font-size: 7px; opacity: .85; }
.demo .d-nav b { display: block; width: 14px; height: 14px; margin: 0 auto 3px; border-radius: 4px; background: rgba(255,255,255,.3); }
.demo .d-nav .on b { background: #fff; }
.demo .d-ai { background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(255,255,255,.12)); border-color: rgba(34,211,238,.5); }
.demo .d-type::after { content: "▍"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo .d-fab { position: absolute; right: 8%; bottom: 14%; width: 30px; height: 30px; border-radius: 50%; background: #2563eb; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); }
.demo .d-fab svg { width: 14px; height: 14px; }
.demo .d-fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* Pocket trainer demo (light) */
.demo.pt { background: #f6f6fb; color: #16162a; align-items: center; text-align: center; padding-top: 18%; }
.demo.pt .d-title { font-size: 11px; font-weight: 600; }
.demo.pt .mic { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #5b4bff, #8b5cf6); display: grid; place-items: center; position: relative; margin: 10px 0 6px; box-shadow: 0 10px 25px -10px rgba(91,75,255,.8); }
.demo.pt .mic svg { width: 24px; height: 24px; }
.demo.pt .mic::before, .demo.pt .mic::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(124,92,255,.35); animation: ring 2.4s ease-out infinite; }
.demo.pt .mic::after { animation-delay: 1.2s; }
.demo.pt .timer { font-family: var(--font-mono); font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.demo.pt .wave { display: flex; gap: 2.5px; align-items: center; height: 26px; margin: 6px 0; }
.demo.pt .wave i { width: 3px; border-radius: 2px; background: #7c5cff; height: 30%; animation: wave 1.1s ease-in-out infinite; }
.demo.pt .wave i:nth-child(2n) { animation-delay: .15s; } .demo.pt .wave i:nth-child(3n) { animation-delay: .3s; } .demo.pt .wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes wave { 0%,100% { height: 25%; } 50% { height: 95%; } }
.demo.pt .d-card { width: 100%; text-align: left; background: #fff; border: 1px solid #e7e7f3; box-shadow: 0 4px 14px -8px rgba(0,0,0,.2); }
.demo.pt .score { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 8px; font-weight: 700; color: #fff; }
.demo.pt .s-g { background: #16a34a; } .demo.pt .s-a { background: #f59e0b; }
.demo.pt .end { margin-top: auto; width: 100%; background: #ef4444; color: #fff; border-radius: 12px; padding: 9px; font-weight: 600; font-size: 10px; }
.demo .phase { display: none; flex-direction: column; gap: 8px; flex: 1; width: 100%; align-items: inherit; }
.demo .phase.on { display: flex; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- AI section ---------- */
.ai { position: relative; overflow: hidden; }
.ai-bg { position: absolute; inset: 0; z-index: -1; }
.ai-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.ai-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,7,15,.55) 40%, rgba(7,7,15,.55) 60%, var(--bg) 100%); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.ai-card { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px; background: rgba(12,12,26,.6); backdrop-filter: blur(14px); }
.ai-card .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.ai-card h3 { font-size: 21px; margin: 12px 0 8px; }
.ai-card p { color: var(--ink-2); font-size: 15px; }
.ai-chat { margin-top: 48px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(12,12,26,.7); backdrop-filter: blur(14px); padding: 22px; max-width: 720px; }
.ai-chat .bubble { padding: 12px 16px; border-radius: 16px; font-size: 15px; max-width: 85%; line-height: 1.5; }
.ai-chat .me { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.ai-chat .bot { background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; margin-top: 12px; white-space: pre-wrap; min-height: 48px; }
.ai-chat .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.ai-chat .who .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.quote .stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }
.quote p { color: var(--ink); font-size: 16px; line-height: 1.55; flex: 1; }
.quote p::before { content: "“"; font-family: var(--font-display); font-size: 36px; line-height: 0; vertical-align: -14px; margin-right: 4px; color: var(--violet); }
.quote footer { font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); }
.quote footer b { color: var(--ink-2); font-family: var(--font-body); font-weight: 600; display: block; font-size: 14px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Built by ---------- */
.builder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.builder-photo { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4/5; max-width: 460px; }
.builder-photo img { width: 100%; height: 100%; object-fit: cover; }
.builder-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,7,15,.85)); }
.builder-photo .cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
.builder-photo .cap b { font-family: var(--font-display); font-size: 22px; display: block; }
.builder-photo .cap span { color: var(--ink-2); font-size: 14px; }
.builder h2 { font-size: clamp(30px, 3.8vw, 48px); margin-top: 16px; }
.builder .lede { margin-top: 18px; }
.builder .creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.builder .creds span { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }

/* ---------- Download / pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); }
.plan .app-icon-row { margin: 0; }
.plan .price { font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.plan .note { font-size: 14px; color: var(--ink-2); }
.plan .stores { margin-top: auto; }
.plan .store { min-width: 0; flex: 1; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 12px; max-width: 70ch; }

/* ---------- CTA banner ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 80px); text-align: center; border: 1px solid rgba(168,85,247,.35); background: radial-gradient(900px 400px at 50% 120%, rgba(109,74,255,.5), transparent 60%), var(--bg-3); }
.cta h2 { font-size: clamp(32px, 4.6vw, 60px); }
.cta .lede { margin: 18px auto 0; }
.cta .stores { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); }
.footer .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- App detail pages ---------- */
.page-hero { position: relative; padding: clamp(50px, 7vw, 100px) 0 clamp(40px, 5vw, 70px); overflow: hidden; }
.page-hero .app-grid { align-items: center; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -.035em; line-height: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; justify-items: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.gallery .phone { --w: 200px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--font-mono); color: var(--cyan); font-size: 12px; letter-spacing: .12em; }
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.band { border-radius: 28px; overflow: hidden; position: relative; min-height: 420px; border: 1px solid var(--line-2); }
.band img, .band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .band-copy { position: relative; z-index: 2; padding: clamp(28px, 5vw, 60px); max-width: 560px; background: linear-gradient(90deg, rgba(7,7,15,.9), rgba(7,7,15,.6) 70%, transparent); min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.band h3 { font-size: clamp(26px, 3.2vw, 40px); }
.band p { color: var(--ink-2); }

/* legal */
.legal { max-width: 780px; padding: clamp(50px, 7vw, 90px) 0; }
.legal h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 10px; }
.legal .meta { color: var(--ink-3); font-family: var(--font-mono); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--violet); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.legal a { color: #c7bfff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* demo state helpers */
.demo .d-fav { transition: background .3s, color .3s; }
.demo .d-fav.on { background: #6b4ae8; color: #fff; }
.demo .d-card.light .d-chip { background: #eef0ff; color: #3b3b6b; }
.demo .d-card.light .d-fav.on { background: #6b4ae8; color: #fff; }

/* hero phone stack sizing (keeps the fan inside the stage at every width) */
.hero-stage .phone--1, .hero-stage .phone--3 { --w: 215px; }
.hero-stage .phone--2 { --w: 270px; }
.hero-stage .phone--1 { left: 0; top: 70px; }
.hero-stage .phone--2 { left: 34%; top: 0; }
.hero-stage .phone--3 { right: 0; top: 100px; }
@media (max-width: 1200px) {
  .hero-stage .phone--1, .hero-stage .phone--3 { --w: 185px; }
  .hero-stage .phone--2 { --w: 240px; }
}
@media (max-width: 1000px) {
  .hero-stage { height: 520px; }
  .hero-stage .phone--1, .hero-stage .phone--3 { --w: 200px; }
  .hero-stage .phone--2 { --w: 260px; }
}
@media (max-width: 560px) {
  .hero-stage { height: 440px; }
  .hero-stage .phone--1, .hero-stage .phone--3 { --w: 150px; }
  .hero-stage .phone--2 { --w: 195px; }
  .hero-stage .phone--1 { left: 0; top: 40px; }
  .hero-stage .phone--3 { right: 0; top: 60px; }
}
