:root {
  --bg: #08090b;
  --bg-2: #0e1013;
  --panel: #121418;
  --panel-2: #181b20;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f1f2f4;
  --muted: #9a9ea8;
  --faint: #636771;
  --lime: #c8f542;
  --lime-ink: #10130a;
  --blue: #2563eb;
  --display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --body: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 520px at 72% -8%, rgba(200,245,66,.10), transparent 60%), radial-gradient(800px 600px at -10% 10%, rgba(37,99,235,.10), transparent 60%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 45%, transparent 85%); }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px); background: rgba(8,9,11,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.logo svg { width: 24px; height: 24px; color: var(--lime); }
.logo.small { font-size: 15px; } .logo.small svg { width: 18px; height: 18px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: var(--lime-ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--lime-ink); font: 600 15px/1 var(--body); text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; box-shadow: 0 0 0 0 rgba(200,245,66,.0); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(200,245,66,.45); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.04); box-shadow: none; }
.btn.small { padding: 9px 16px; font-size: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--lime); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: .98; font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; font-weight: 700; max-width: 16ch; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
.lime { color: var(--lime); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: #c4c7ce; max-width: 54ch; margin: 26px 0 32px; }
.fine { color: var(--faint); font-size: 13.5px; margin-top: 20px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

main > section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.section-head { margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 60ch; font-size: 17.5px; margin: 18px 0 0; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px) !important; }
.stage { position: relative; border-radius: 20px; background: linear-gradient(180deg, #15181d, #0d0f12); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 120px -40px rgba(200,245,66,.25); overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.lights { display: inline-flex; gap: 6px; } .lights i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d33; }
.stage-title { font-weight: 600; color: var(--text); }
.stage-shot { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.stage-view { position: relative; aspect-ratio: 16 / 9; background: #0b0c0e; }
.stage-view canvas { position: absolute; display: block; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 14px; }
.stage-hud { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 10px; font: 500 11.5px var(--mono); color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; z-index: 2; }
.stage-prompt { display: flex; gap: 12px; align-items: flex-start; margin: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); min-height: 70px; }
.stage-prompt p { margin: 0; font-size: 14px; color: #d8dae0; line-height: 1.5; }
.stage-prompt p::after { content: "▍"; color: var(--lime); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.spark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--lime-ink); }
.spark svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stage-tabs { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.stage-tabs button { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 500 12.5px var(--body); cursor: pointer; }
.stage-tabs button.on { background: var(--text); color: #0b0c0e; border-color: var(--text); }
.stage-tabs button.free { margin-left: auto; }

.logos { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; padding-top: 8px !important; padding-bottom: 8px !important; color: var(--faint); font-size: 14px; }
.logos b { font: 700 19px var(--display); letter-spacing: -0.02em; color: #7c808a; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article, .feat, .code-card, .video-card, .board-grid figure { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.steps article { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.num { font: 500 13px var(--mono); color: var(--lime); }
.steps p { color: var(--muted); margin: 0; font-size: 15.5px; }
.chat { margin: auto 0 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font: 12.5px/1.6 var(--mono); color: #b9bcc4; white-space: pre-wrap; }
.chat b { color: var(--lime); font-weight: 500; }

/* showcase */
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board-grid figure { margin: 0; overflow: hidden; }
.board-grid figure.wide { grid-column: 1 / -1; }
.board-grid img { width: 100%; display: block; }
figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.video-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 18px; margin-top: 18px; }
.video-card video { width: 100%; border-radius: 12px; display: block; background: #000; }
.video-card p { color: var(--muted); }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 26px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: rgba(200,245,66,.35); transform: translateY(-2px); }
.feat p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.feat code { display: inline-block; font: 12px var(--mono); color: var(--lime); background: rgba(200,245,66,.08); border: 1px solid rgba(200,245,66,.2); padding: 4px 8px; border-radius: 6px; margin-bottom: 16px; }
.swatches { display: flex; gap: 5px; margin-bottom: 16px; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--c) 0 6px, #111 6px 9px); }

/* code */
.code-card { position: relative; padding: 20px; overflow: hidden; }
.code-card pre { margin: 0; font: 13px/1.65 var(--mono); color: #cfd2d8; white-space: pre-wrap; word-break: break-word; }
.code-card .label { display: block; font: 500 12px var(--mono); color: var(--faint); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.copy { position: absolute; top: 14px; right: 14px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: 500 12px var(--body); cursor: pointer; }
.copy:hover { color: var(--text); }
.prompt-pack .code-card pre { max-height: 460px; overflow: auto; }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.center { text-align: center; margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .video-card, .connect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .steps, .grid, .board-grid { grid-template-columns: 1fr; }
  .stage-shot { display: none; }
}

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 120px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--lime); }
.toc .grp { font: 500 11.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 4px; }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px; }
.doc h2 { font-size: 30px; max-width: none; margin: 64px 0 14px; padding-top: 12px; scroll-margin-top: 90px; }
.doc h3 { font-size: 19px; margin: 32px 0 10px; scroll-margin-top: 90px; }
.doc p, .doc li { color: #c4c7ce; font-size: 16px; }
.doc code { font: 13.5px var(--mono); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: #e6e8ec; }
.doc pre { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow: auto; font: 13px/1.65 var(--mono); color: #d3d6dc; }
.doc pre code { background: none; border: 0; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--faint); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.doc td:first-child { white-space: nowrap; }
.doc td code { white-space: nowrap; }
.doc .note { border: 1px solid rgba(200,245,66,.25); background: rgba(200,245,66,.05); border-radius: 12px; padding: 14px 16px; color: #d7dbc9; }
.doc .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } }
