:root {
  --bg: #0b0b13;
  --bg2: #11111a;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1effa;
  --muted: #a3a0b5;
  --faint: #6e6b82;
  --accent: #b3a2fa;
  --accent2: #8670e0;
  --violet: #b892ff;
  --sky: #7aa7ff;
  --radius: 18px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #e9e3ff 30%, var(--violet) 75%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(11, 11, 19, 0.62);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 26px; margin-left: 12px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.status-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px var(--ui); color: var(--accent);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(179, 162, 250, .35); background: rgba(179, 162, 250, .08);
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(179,162,250,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(179,162,250,0); } 100% { box-shadow: 0 0 0 0 rgba(179,162,250,0); } }

/* ---------- hero ---------- */
section { position: relative; padding: 140px max(24px, calc((100vw - 1240px) / 2)); }
.hero { padding-top: 150px; padding-bottom: 80px; text-align: center; overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none; filter: blur(90px); opacity: .75; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 620px; height: 420px; left: 12%; top: 18%; background: radial-gradient(circle, rgba(179,162,250,.55), transparent 65%); }
.aurora span:nth-child(2) { width: 700px; height: 500px; right: 8%; top: 6%; background: radial-gradient(circle, rgba(184,146,255,.45), transparent 65%); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 520px; height: 380px; left: 40%; top: 40%; background: radial-gradient(circle, rgba(122,167,255,.35), transparent 65%); animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.hero-copy { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.eyebrow { font: 500 13.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 800; line-height: .98; }
.lede { max-width: 690px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font: 600 15.5px var(--ui); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn.primary { background: linear-gradient(180deg, #c9bdfc, var(--accent)); color: #16112b; box-shadow: 0 10px 30px -8px rgba(179,162,250,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(179,162,250,.75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.ghost { border: 1px solid var(--line); background: var(--panel); }
.btn.ghost:hover { background: rgba(255,255,255,.07); }

.hero-shot {
  position: relative; z-index: 1; margin: 72px auto 0; max-width: 1180px;
  perspective: 1800px;
}
.hero-shot img {
  border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px -20px rgba(179,162,250,.18);
  transform: rotateX(calc(8deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg));
  transform-origin: 50% 0; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero-shot .glow { position: absolute; inset: 10% 8% -6%; background: radial-gradient(ellipse at 50% 30%, rgba(179,162,250,.35), rgba(184,146,255,.18) 45%, transparent 70%); filter: blur(60px); z-index: -1; }
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 32%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; border-radius: 0 0 14px 14px; }

.stats { list-style: none; padding: 0; margin: 10px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; z-index: 2; }
.stats li { background: var(--bg2); padding: 26px 22px; text-align: left; }
.stats b { display: block; font: 700 40px/1 var(--display); letter-spacing: -.03em; }
.stats small { font-size: 20px; color: var(--muted); margin-left: 2px; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- features ---------- */
.kicker { font: 600 13px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; line-height: 1.04; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.feature .copy p { margin-top: 22px; color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16px; }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9e3ff, var(--accent) 60%, var(--accent2)); box-shadow: 0 0 12px rgba(179,162,250,.5); }

.shot img { border-radius: 12px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 20px 60px -30px rgba(184,146,255,.25); }
.tilt-left img { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }
.tilt-right img { transform: perspective(1600px) rotateY(7deg) rotateX(2deg); }
.shot img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: perspective(1600px) rotateY(0) rotateX(0); }
figure { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font: 600 13px var(--ui); padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.chip.sug { background: var(--accent); color: #16112b; border-color: transparent; }

.stack { display: grid; padding: 8% 0 6% 6%; }
.stack .shot { grid-area: 1 / 1; }
.stack .back { transform: translate(6%, -12%) scale(.9); opacity: .5; filter: saturate(.8); }
.stack .front { transform: translate(-6%, 4%); }

/* ---------- cards ---------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s, border-color .35s, background .35s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(179,162,250,.4), transparent 40%, transparent 60%, rgba(184,146,255,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.14); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; font-weight: 650; margin-top: 20px; }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.card.wide { grid column: span 3; grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; }
.card.wide h3 { font-size: 30px; margin-top: 0; }
.card.wide p { font-size: 17px; }
.card-img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 30%; width: 100%; }

.soon pre.mac-build {
  display: inline-block; text-align: left; margin: 18px auto 8px; font: 400 15px/1.8 var(--mono); padding: 16px 22px;
  border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--line); color: var(--accent);
  max-width: 100%; overflow-x: auto;
}
.soon .mac-note { font-size: .92em; opacity: .85; }
.soon .mac-note code { font-family: var(--mono); font-size: .92em; }

.xmp pre {
  margin: 0; font: 400 15px/1.8 var(--mono); padding: 26px 28px; border-radius: 14px;
  background: rgba(0,0,0,.45); border: 1px solid var(--line); overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.xmp .c { color: var(--faint); } .xmp .t { color: var(--sky); } .xmp .v { color: var(--accent); }

.diagram { width: 100%; height: auto; aspect-ratio: 16 / 6; }
.diagram .dev { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.diagram .scr { fill: rgba(179,162,250,.15); stroke: rgba(179,162,250,.5); }
.diagram .lens { fill: none; stroke: var(--accent); stroke-width: 2; }
.diagram .wave { fill: none; stroke: url(#g1); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
.diagram .wave.d2 { stroke: var(--violet); }
.diagram .arrow { fill: var(--accent); }
.diagram .lbl { fill: var(--muted); font: 500 12px var(--ui); text-anchor: middle; }
.diagram .lbl.small { font-size: 10.5px; fill: var(--faint); }
@keyframes flow { to { stroke-dashoffset: -28; } }

.search { display: flex; align-items: center; gap: 2px; padding: 16px 18px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line); font: 500 16px var(--ui); aspect-ratio: auto; }
.search::before { content: "⌕"; color: var(--faint); margin-right: 10px; font-size: 18px; }
.search .q { overflow: hidden; white-space: nowrap; border-right: 0; animation: type 3.5s steps(21) infinite alternate; width: 21ch; }
.search .caret { width: 2px; height: 20px; background: var(--accent); animation: blink 1s step-end infinite; }
@keyframes type { 0%, 15% { width: 0; } 85%, 100% { width: 21ch; } }
@keyframes blink { 50% { opacity: 0; } }

.dust { position: relative; aspect-ratio: 16 / 6; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #8fa9ff 0%, #d7c3ff 55%, #ffd9a1 100%); }
.dust i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, rgba(60,40,70,.38), transparent 70%); }
.dust i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--accent); box-shadow: 0 0 10px rgba(179,162,250,.6); animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1.05); opacity: 1; } }

/* ---------- platforms ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plat { padding: 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.plat h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.plat h3 svg { width: 24px; height: 24px; fill: var(--text); }
.plat ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--muted); }
.plat li::before { content: "—"; color: var(--accent); margin-right: 10px; }
.shot.wide { margin-top: 56px; }
.shot.wide img { max-width: 980px; margin: 0 auto; }

/* ---------- coming soon ---------- */
.soon { text-align: center; overflow: hidden; padding-bottom: 160px; }
.aurora.small { inset: 0 -10%; height: 100%; opacity: .55; }
.soon > div { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.soon-icon { margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(179,162,250,.55); }
.soon h2 { font-size: clamp(46px, 7vw, 88px); font-weight: 800; }
.soon p { color: var(--muted); font-size: 19px; margin-top: 22px; }
.checklist { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.checklist li { padding: 9px 16px 9px 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); position: relative; font-size: 14.5px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px dashed var(--faint); }
.checklist li.done { color: var(--text); }
.checklist li.done::before { border: 0; background: var(--accent); box-shadow: 0 0 10px rgba(179,162,250,.6); }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot div { display: flex; align-items: center; gap: 10px; }
.foot img { border-radius: 5px; }
.foot .muted { color: var(--faint); }

/* ---------- command line reference (cli.html, generated) ---------- */
.nav nav a[aria-current] { color: var(--text); }
.cli section { padding-top: 0; padding-bottom: 0; }
.cli .cli-head { padding-top: 140px; padding-bottom: 48px; max-width: 1240px; }
.cli-head h1 { font-size: clamp(40px, 5.6vw, 68px); }
.cli-head .lede { margin: 22px 0 0; max-width: 760px; }
.cli code, .cli pre { font-family: var(--mono); font-size: .9em; }
.cli-head .chips a { text-decoration: none; font-family: var(--mono); font-weight: 500; }
.cli-head .chips a:hover { color: var(--text); border-color: rgba(255,255,255,.18); }
.cli-body { display: grid; gap: 20px; padding-bottom: 120px !important; }
.cli-cmd { padding: 30px 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 90px; }
.cli-cmd h2 { font: 650 24px var(--mono); letter-spacing: -.01em; }
.cli-cmd h2 a { text-decoration: none; }
.cli-cmd h2 a:hover { color: var(--accent); }
.cli-cmd p { margin-top: 12px; color: var(--muted); }
.cli-cmd pre.usage { margin: 18px 0 0; padding: 14px 18px; border-radius: 10px; background: rgba(0,0,0,.45); border: 1px solid var(--line); overflow-x: auto; color: var(--accent); }
.cli-cmd dl { margin: 20px 0 0; display: grid; grid-template-columns: minmax(180px, max-content) 1fr; gap: 10px 24px; }
.cli-cmd dt code { color: var(--sky); white-space: nowrap; }
.cli-cmd dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.cli-cmd .muted { color: var(--faint); }
.cli-subs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--muted); }
.cli-subs a { text-decoration: none; color: var(--sky); margin-right: 8px; }
.foot a { color: inherit; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(3n+2) { transition-delay: .08s; }
.cards .card:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .nav nav { display: none; }
  section { padding: 96px 20px; }
  .hero { padding-top: 120px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .copy { order: 0; }
  .tilt-left img, .tilt-right img { transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-template-columns: 1fr; padding: 28px; }
  .split { grid-template-columns: 1fr; }
  .stack { padding: 0; }
  .stack .back { display: none; }
  .stack .front { transform: none; }
  .cli .cli-head { padding-top: 110px; }
  .cli-cmd { padding: 22px 20px; }
  .cli-cmd dl { grid-template-columns: 1fr; gap: 4px; }
  .cli-cmd dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .status-pill { display: none; }
  .xmp pre { font-size: 12.5px; padding: 18px; }
}

/* SHORTCUTS PAGE (shortcuts.html, generated from the app's key table) */
.keys-page { padding: 120px max(24px, calc((100vw - 1240px) / 2)) 80px; }
.keys-page h1 { font-size: clamp(32px, 4.4vw, 52px); }
.keys-page .section-head { margin-bottom: 24px; }
.keys-page .section-head p:not(.kicker) { color: var(--muted); }
.keys-group { padding: 28px 0 0; }
.keys-group h2 { font-size: 22px; margin-bottom: 8px; }
.keys-group .muted { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.keys-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys-table th { text-align: left; font: 600 12px var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.keys-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys-table td:first-child { color: var(--text); width: 52%; }
kbd { display: inline-block; font: 500 13px var(--mono); padding: 2px 7px; margin: 1px 2px 1px 0; border: 1px solid rgba(255, 255, 255, 0.16); border-bottom-width: 2px; border-radius: 6px; background: var(--panel); color: var(--text); white-space: nowrap; }
@media (max-width: 640px) { .keys-table th:nth-child(3), .keys-table td:nth-child(3) { display: none; } }
