@font-face { font-family: "Space Grotesk"; src: url(assets/fonts/SpaceGrotesk-latin-variable.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-latin-variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #020617; --ink-2: #070b16; --ink-3: #0b1220;
  --glass: rgba(15, 23, 42, 0.55); --line: rgba(148, 163, 184, 0.14); --line-2: rgba(0, 162, 255, 0.35);
  --text: #e2e8f0; --text-2: #cbd5e1; --muted: #94a3b8; --muted-2: #64748b;
  --blu: #00a2ff; --cobalt: #2563eb; --cyan: #22d3ee; --amber: #f59e0b; --red: #ef4444; --green: #22c55e; --violet: #7c6cff;
  --display: "Space Grotesk", "Segoe UI Variable Display", sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  --code: "Cascadia Code", Consolas, "JetBrains Mono", monospace;
  --r: 12px; --r-s: 8px; --max: 1200px; --gutter: clamp(16px, 4vw, 48px);
  --rail-w: 232px; --strip-h: 40px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; transition: padding .4s ease; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(900px 500px at 85% -10%, rgba(0,162,255,.18), transparent 60%),
  radial-gradient(700px 600px at -10% 40%, rgba(37,99,235,.12), transparent 60%),
  var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 88px); }
h2 { font-size: clamp(30px, 3.8vw, 52px); max-width: 20ch; }
h3 { font-size: 22px; }
p { margin: 0; }
a { color: var(--text); }
code { font-family: var(--code); font-size: .92em; color: #9be7ff; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; border-radius: 4px; }
section { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p, .lede { color: var(--text-2); font-size: 18px; margin-top: 18px; max-width: 62ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--blu); background: rgba(0,162,255,.08); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--blu); border-color: var(--blu); color: #021025; }
.btn.solid:hover { background: #33b5ff; }
.btn.lg { padding: 14px 24px; font-size: 17px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); backdrop-filter: blur(14px); background: rgba(2,6,23,.6); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.top-nav { display: flex; gap: 22px; margin-left: 12px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; gap: 10px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: clamp(40px, 7vw, 96px); }
.hero-kicker { color: var(--blu); font-weight: 500; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; color: var(--text-2); max-width: 60ch; }
.hero-facts b { color: var(--text); }
.hero-stage { position: relative; min-height: 560px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15,23,42,.6), rgba(2,6,23,.2)); overflow: hidden; display: flex; flex-direction: column; }
#foxCanvas { width: 100%; flex: 1; min-height: 380px; display: block; cursor: crosshair; }
/* Boot composition: crew clouds above the fox, booting readout in the corner (mirrors the app's splash) */
.hero-sky { position: absolute; left: 0; right: 0; top: 11%; height: 36%; pointer-events: none; z-index: 2; }
.hero-cloud { position: absolute; width: 78px; height: 52px; display: grid; place-items: center; transform: translate(-50%, 0); animation: hero-drift 5.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.hero-cloud::before, .hero-cloud::after { content: ""; position: absolute; border-radius: 50%; background: rgba(224,242,254,.94); box-shadow: 0 0 18px rgba(0,162,255,.28); }
.hero-cloud::before { inset: 15px 0 0 0; border-radius: 26px; }
.hero-cloud::after { width: 40px; height: 40px; left: 19px; top: 0; }
.hero-cloud canvas { position: relative; z-index: 1; width: 46px; height: 46px; margin-top: -4px; transition: transform .35s ease; }
.hero-cloud.is-watched { animation-play-state: paused; }
.hero-cloud.is-watched canvas { transform: translateY(-3px) scale(1.12); }
.hero-boot { position: absolute; left: 18px; top: 16px; z-index: 3; display: grid; gap: 6px; pointer-events: none; }
.hero-boot-pct { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #38bdf8; }
.hero-boot-bar { display: block; width: 150px; height: 3px; border-radius: 3px; background: rgba(0,162,255,.15); overflow: hidden; }
.hero-boot-bar b { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #00a2ff, #7c6cff); transition: width .25s ease; }
@keyframes hero-drift { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .hero-cloud { animation: none; } }
.fox-ui { padding: 16px 18px 20px; display: grid; gap: 12px; border-top: 1px solid var(--line); background: rgba(2,6,23,.5); }
.moods { display: flex; gap: 6px; flex-wrap: wrap; }
.moods button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.moods button.on { border-color: var(--blu); color: var(--text); background: rgba(0,162,255,.12); }
.say { display: flex; gap: 8px; }
.say input { flex: 1; min-width: 0; background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--text); }
.fox-note { font-size: 13px; color: var(--muted); }

/* why */
.why-head { max-width: 780px; margin-bottom: 40px; }
.why-head p { color: var(--text-2); font-size: 18px; margin-top: 18px; }
.compare { width: 100%; border-collapse: collapse; }
.compare th { text-align: left; font-family: var(--display); font-size: 18px; padding: 0 20px 14px; color: var(--muted); }
.compare th + th { color: var(--blu); }
.compare td { vertical-align: top; padding: 18px 20px; border-top: 1px solid var(--line); color: var(--text-2); width: 50%; }
.compare td:first-child { color: var(--muted); }
.compare td + td { color: var(--text); border-left: 1px solid var(--line); }

/* screens */
.screens-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.screen-list { display: grid; gap: 4px; }
.screen-list button { text-align: left; border: 1px solid transparent; background: transparent; border-radius: var(--r); padding: 10px 14px; cursor: pointer; display: grid; gap: 2px; }
.screen-list button b { font-family: var(--display); font-size: 16px; }
.screen-list button span { color: var(--muted); font-size: 14px; }
.screen-list button.on { background: var(--glass); border-color: var(--line-2); }
.screen-list button:hover { background: var(--glass); }
.screen-player { margin: 0; position: sticky; top: 80px; }
.screen-player video { width: 100%; display: block; border-radius: 16px; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.screen-player figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* features */
.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-cols h3 { color: var(--blu); margin-bottom: 14px; font-size: 20px; }
.feature-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--text-2); font-size: 15px; }
.feature-cols li { padding-left: 14px; border-left: 2px solid var(--line); }
.feature-cols b { color: var(--text); }

/* integrations */
.integ-groups { display: grid; gap: 22px; }
.integ-group { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.integ-group h3 { font-size: 18px; }
.integ-group small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { position: relative; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; cursor: default; }
.tile:hover, .tile:focus-within { border-color: var(--blu); }
.tile .tip { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; width: 280px; padding: 12px 14px; border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.tile:hover .tip, .tile:focus-within .tip { opacity: 1; transform: none; }
.tile .tip code { display: block; margin-top: 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.plan { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); display: grid; gap: 10px; }
.plan.featured { border-color: var(--blu); background: linear-gradient(180deg, rgba(0,162,255,.14), rgba(15,23,42,.6)); padding-top: 36px; }
.price { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 18px; color: var(--muted); font-weight: 500; }
.bill { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.plan ul li::before { content: "·"; color: var(--blu); margin-right: 8px; font-weight: 700; }
.plan .btn { justify-content: center; }
.founder { margin-top: 20px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; padding: 32px; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 0% 0%, rgba(0,162,255,.2), transparent 70%), var(--ink-3); }
.founder p { color: var(--text-2); margin-top: 12px; }
.founder .price { margin-top: 10px; }
.founder-left { color: var(--muted); font-size: 14px; }
.founder-left b { color: var(--blu); }
.founder-side { display: grid; gap: 14px; align-content: center; }
.founder-side .btn { justify-content: center; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* network */
.tree { display: grid; gap: 18px; }
.node { display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.node canvas { grid-row: span 2; width: 56px; height: 56px; }
.node b { font-family: var(--display); font-size: 18px; }
.node span { color: var(--muted); font-size: 14px; }
.node.root { max-width: 420px; border-color: var(--line-2); }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; padding-top: 18px; }
.branches::before { content: ""; position: absolute; left: 24px; right: 50%; top: 0; height: 18px; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.branch { display: grid; gap: 10px; }
.leaves { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 15px; border-left: 1px solid var(--line); }
.leaves li::before { content: ""; display: inline-block; width: 12px; border-top: 1px solid var(--line); margin-right: 8px; vertical-align: middle; }
.leaves em { color: var(--blu); font-style: normal; font-weight: 600; }
.network-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; color: var(--text-2); font-size: 15px; }
.network-facts b { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--display); }

/* cta */
.cta { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
#ctaFox { width: 260px; height: 260px; }
.cta p { color: var(--text-2); font-size: 18px; margin-top: 16px; max-width: 60ch; }

.foot { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: var(--max); margin: 0 auto; }
.foot div { display: flex; align-items: center; gap: 12px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2,6,23,.7); backdrop-filter: blur(6px); padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(480px, 100%); padding: 28px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--ink-3); display: grid; gap: 14px; }
.modal-card p { color: var(--text-2); font-size: 15px; }
.modal-card form, .otp { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.modal-card input { flex: 1; min-width: 160px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--text); }
.otp p { width: 100%; }
.key code { display: block; font-size: 20px; padding: 12px; background: var(--ink); border-radius: var(--r-s); margin: 8px 0; color: var(--blu); user-select: all; }
.modal-close { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; color: var(--muted); cursor: pointer; }

/* live app frame */
.live-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.live-bar button[data-screen] { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.live-bar button[data-screen].on, .live-bar button[data-screen]:hover { border-color: var(--blu); color: var(--text); background: rgba(0,162,255,.12); }
.live-spacer { flex: 1; }
.live-frame { border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 100px rgba(0,0,0,.5); aspect-ratio: 16 / 9.4; min-height: 520px; }
.live-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--ink); }
.live-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* full-size overlay */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: 44px 1fr; background: var(--ink); }
.overlay-bar { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--ink-2); }
.overlay-bar .btn { margin-left: auto; }
.overlay iframe { width: 100%; height: 100%; border: 0; display: block; }

/* responsive */
@media (max-width: 1024px) {
  .hero, .founder, .cta { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .feature-cols, .network-facts { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .screen-player { position: static; }
  .screen-list { grid-template-columns: 1fr 1fr; }
  .top-nav { display: none; }
  .live-frame { aspect-ratio: auto; height: 70vh; }
  #ctaFox { width: 200px; height: 200px; }
}
@media (max-width: 640px) {
  .plans, .screen-list, .branches { grid-template-columns: 1fr; }
  .top-actions .ghost { display: none; }
  .hero-stage { min-height: 480px; }
  .compare td { display: block; width: auto; border-left: 0; padding: 12px 0; }
  .compare td + td { padding-top: 0; border-top: 0; }
  .compare thead { display: none; }
  .compare td:first-child::before { content: "Jarvis: "; color: var(--muted-2); }
  .compare td + td::before { content: "BluFox: "; color: var(--blu); }
  .integ-group { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ===== launch: film, chapters, waitlist, 3-plan pricing, AppSumo preview ===== */
.hero-offer { margin-top: 18px; color: var(--text-2); font-size: 15px; }
.hero-offer b { color: var(--blu); }
.hero-offer s, .price s { color: var(--muted-2); font-weight: 500; }
.hero-offer a { color: var(--text); }

.film-frame { margin: 0; }
.film-frame video { width: 100%; display: block; border-radius: 20px; border: 1px solid var(--line-2); background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 80px rgba(0,162,255,.12); }
.film-wide { aspect-ratio: 16/9; }
.film-tall { display: none !important; aspect-ratio: 9/16; max-height: 80vh; margin: 0 auto; width: auto !important; max-width: 100%; }

.chapter { margin: 0 0 18px; }
.chapter video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #000; }
.chapter.wide { margin-top: 40px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
.chapter figcaption { color: var(--text-2); font-size: 16px; }
.chapter figcaption b { display: block; color: var(--text); font-family: var(--display); font-size: 22px; margin-bottom: 8px; }

.plans.three { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { position: relative; }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--blu); color: #021025; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.plan-badge.gold { background: var(--amber); }
.plan.lifetime { border-color: rgba(245,158,11,.55); background: radial-gradient(420px 220px at 100% 0%, rgba(245,158,11,.14), transparent 70%), var(--glass); padding-top: 36px; }
.plan .price s { font-size: 22px; margin-left: 6px; }
.plan .fine { font-size: 13px; color: var(--muted); }

.compare-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); }
.plans-compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.plans-compare caption { text-align: left; padding: 20px 22px 6px; font-family: var(--display); font-size: 20px; color: var(--text); }
.plans-compare th, .plans-compare td { padding: 12px 22px; border-top: 1px solid var(--line); text-align: left; }
.plans-compare thead th { font-family: var(--display); color: var(--muted); border-top: 0; }
.plans-compare tbody th { font-weight: 500; color: var(--text-2); }
.plans-compare td { color: var(--text); }
.plans-compare .hl { background: rgba(0,162,255,.07); color: var(--text); }
.plans-compare thead .hl { color: var(--blu); }
.plans-fine { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 80ch; }

.appsumo { margin-top: 28px; display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; padding: 32px; border-radius: 24px; border: 1px dashed rgba(245,158,11,.6); background: repeating-linear-gradient(135deg, rgba(245,158,11,.05) 0 12px, transparent 12px 24px), var(--ink-3); }
.appsumo[hidden] { display: none; }
.appsumo-flag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--amber); color: var(--amber); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.appsumo h3 { margin-top: 10px; font-size: 26px; }
.appsumo p { color: var(--text-2); margin-top: 10px; }
.appsumo-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.as-tier { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); display: grid; gap: 4px; }
.as-tier small { color: var(--muted); }
.as-price { font-family: var(--display); font-size: 28px; font-weight: 700; }
.appsumo-side { display: grid; gap: 12px; align-content: center; }
.appsumo-redeem { display: grid; gap: 10px; }
.appsumo-redeem label { font-weight: 600; }
.appsumo-redeem input { background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; color: var(--text); font-family: var(--code); letter-spacing: .06em; }

.modal-card form#modalForm { display: grid; gap: 10px; }
.plan-pick { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; gap: 6px; margin: 0; }
.plan-pick legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.plan-pick label { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 15px; cursor: pointer; }
.plan-pick input { flex: none; min-width: 0; accent-color: var(--blu); }
.trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.2em; margin: 0; }
.modal-card .btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 1024px) {
  .plans.three { grid-template-columns: 1fr; }
  .chapter.wide, .appsumo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .film-wide { display: none !important; }
  .film-tall { display: block !important; }
  .appsumo-tiers { grid-template-columns: 1fr; }
}
