:root {
  --bg: #0b0c0e;
  --bg-2: #111317;
  --panel: #15181d;
  --line: #262a31;
  --line-2: #343a43;
  --ink: #ece8e1;
  --ink-2: #a9a59d;
  --ink-3: #6f6c66;
  --rust: #ff6a1a;
  --rust-2: #ffb547;
  --phos: #47e6c8;
  --phos-dim: #1f6f62;
  --display: "Bricolage Grotesque", ui-serif, Georgia, serif;
  --body: "Instrument Sans", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  --max: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 106, 26, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(71, 230, 200, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--rust-2); }
em { font-style: normal; color: var(--rust); }
::selection { background: var(--rust); color: #000; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 12, 14, 0.72);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rust);
  font: 600 22px/1 var(--display); letter-spacing: -0.02em; }
.brand span { color: var(--ink); }
.brand b, .foot b { color: var(--rust); font-weight: 800; }
.nav nav { display: flex; gap: 28px; align-items: center; font: 500 14px var(--mono); }
.nav nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.nav-gh { border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px; color: var(--ink) !important; }
.nav-gh:hover { border-color: var(--rust); }

main > section { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── hero ── */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  min-height: min(calc(100vh - 70px), 860px); padding-top: 40px !important; padding-bottom: 60px !important;
}
.eyebrow { font: 500 13px var(--mono); color: var(--ink-2); letter-spacing: .02em; display: flex; align-items: center; gap: 10px; margin: 0 0 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 12px var(--phos); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 {
  font: 800 clamp(44px, 5.4vw, 84px)/0.94 var(--display);
  letter-spacing: -0.045em; margin: 0 0 28px;
}
h1 em {
  background: linear-gradient(100deg, var(--rust) 10%, var(--rust-2) 60%, var(--rust) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.lede { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 36px; }
.lede strong { color: var(--ink); font-weight: 600; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.install {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 12px 12px 16px; font: 14px var(--mono); max-width: 100%;
}
.install code { color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt { color: var(--phos); }
.copy {
  font: 500 12px var(--mono); background: var(--line); color: var(--ink-2); border: 0;
  border-radius: 6px; padding: 6px 10px; cursor: pointer; transition: all .2s;
}
.copy:hover { background: var(--rust); color: #000; }
.copy.done { background: var(--phos); color: #000; }
.btn {
  display: inline-block; text-decoration: none; font: 600 15px var(--body);
  background: var(--rust); color: #120800; padding: 14px 22px; border-radius: 10px;
  box-shadow: 0 0 0 0 rgba(255, 106, 26, .5); transition: transform .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(255, 106, 26, .6); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-2); box-shadow: none; }

/* ── scope ── */
.scope {
  position: relative; margin: 0; padding: 22px 22px 18px;
  background: linear-gradient(180deg, #101317, #0c0e11);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 40px 120px -40px rgba(255, 106, 26, .35), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.scope-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 40px, 10% 100%;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  z-index: 0;
}
.scope > *:not(.scope-grid) { position: relative; z-index: 1; }
.scope-head { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; }
.scope-regime { color: var(--phos); }
.lane { display: grid; grid-template-columns: 70px 1fr 56px; gap: 14px; align-items: center; margin-bottom: 18px; }
.lane-label, .lane-time { font: 500 13px var(--mono); color: var(--ink-2); }
.lane-time { text-align: right; }
.hot { color: var(--rust) !important; }
.lane-track { height: 46px; border-radius: 6px; background: rgba(255,255,255,.02); border: 1px dashed var(--line-2); position: relative; overflow: hidden; }
.kernels { position: absolute; inset: 6px auto 6px 6px; display: flex; gap: 3px; width: calc(100% - 12px); }
.kernels i { display: block; height: 100%; border-radius: 2px; flex: none; transform-origin: left; transform: scaleX(0); }
/* a vLLM token is many small launches with gaps: stripes */
.kernels-vllm i { background: repeating-linear-gradient(90deg, #4a86a3 0 3px, #2b546b 3px 5px, transparent 5px 6px); }
.kernels-fast i { background: linear-gradient(90deg, var(--rust), var(--rust-2)); box-shadow: 0 0 14px rgba(255,106,26,.45); }
.scope.run .kernels i { animation: grow var(--t, .3s) linear forwards; animation-delay: var(--d, 0s); }
.lane-time { transition: color .3s, transform .3s; }
.scope.done .lane-time.hot { transform: scale(1.18); text-shadow: 0 0 16px rgba(255,106,26,.6); }
.scope-legend { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: -4px 0 14px 84px; }
@keyframes grow { to { transform: scaleX(1); } }
.scope figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* ── stats ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-top: 0 !important; padding-bottom: 0 !important;
}
.stat { padding: 36px 28px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.num { font: 800 64px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.stat:nth-child(odd) .num { color: var(--rust); }
.what { font: 600 16px var(--body); margin: 10px 0 12px; }
.regime { font: 12px/1.55 var(--mono); color: var(--ink-3); }

/* ── sections ── */
.section-title {
  font: 800 clamp(34px, 4.4vw, 58px)/1 var(--display); letter-spacing: -0.035em;
  margin: 0 0 48px; display: flex; align-items: baseline; gap: 18px;
}
.idx { font: 500 14px var(--mono); color: var(--rust); letter-spacing: .1em; border: 1px solid var(--rust); border-radius: 999px; padding: 4px 10px; transform: translateY(-10px); }
.why, .kernels-sec, .workloads, .numbers { padding-top: 140px !important; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px;
  transition: transform .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--rust); }
.pillar:nth-child(2) { transform: translateY(28px); }
.pillar:nth-child(2):hover { transform: translateY(24px); }
.pillar:nth-child(4) { transform: translateY(28px); }
.pillar:nth-child(4):hover { transform: translateY(24px); }
.glyph { width: 48px; height: 48px; color: var(--rust); margin-bottom: 22px; }
.glyph svg { width: 100%; height: 100%; }
.pillar h3, .wl h3 { font: 600 22px/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 12px; }
.pillar p, .wl p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ── kernel generation ── */
.kernels-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.big { font: 600 30px/1.2 var(--display); letter-spacing: -0.02em; margin: -20px 0 22px; }
.k-copy > p { color: var(--ink-2); }
.pipeline { list-style: none; padding: 0; margin: 32px 0; counter-reset: s; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--rust), var(--phos)); }
.pipeline li { counter-increment: s; display: grid; grid-template-columns: 32px 110px 1fr; gap: 14px; align-items: center; padding: 9px 0; }
.pipeline li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--rust); font: 600 13px var(--mono); color: var(--rust); position: relative;
}
.pipeline b { font: 600 15px var(--mono); }
.pipeline span { color: var(--ink-3); font-size: 14.5px; }
.note { border-left: 2px solid var(--phos); padding: 4px 0 4px 16px; color: var(--ink-2) !important; font-size: 15px; }

.term {
  background: #07080a; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(71, 230, 200, .25);
  position: sticky; top: 100px;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #0e1013; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--ink-3); }
.term pre { margin: 0; padding: 20px 22px; min-height: 470px; font: 13px/1.7 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.term .c-p { color: var(--phos); } .term .c-r { color: var(--rust); } .term .c-y { color: var(--rust-2); }
.term .c-d { color: var(--ink-3); } .term .c-w { color: var(--ink); } .term .c-x { color: #ff5f57; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--phos); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── workloads ── */
.wl-grid { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 16px; }
.wl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.wl header { display: flex; flex-direction: column; gap: 10px; }
.wl h3 { margin: 0; font-size: 28px; }
.tag { align-self: flex-start; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--phos); border: 1px solid var(--phos-dim); padding: 3px 9px; border-radius: 999px; }
.chat { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bubble { padding: 10px 14px; border-radius: 12px; max-width: 88%; }
.bubble.u { align-self: flex-end; background: var(--line); color: var(--ink); }
.bubble.a { background: rgba(255,106,26,.1); border: 1px solid rgba(255,106,26,.35); color: var(--ink); min-height: 66px; }
.typing::after { content: "▍"; color: var(--rust); animation: blink 1s steps(1) infinite; }
.agent { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font: 12px var(--mono); color: var(--ink-3); }
.ag-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.ag-row i { display: block; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--phos), var(--phos-dim)); width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.ag-row:nth-child(odd) i { background: linear-gradient(90deg, var(--rust), #8a3a10); }
.wl.in .ag-row i { width: var(--w); }
.wl.in .ag-row:nth-child(2) i { transition-delay: .15s; margin-left: 28%; }
.wl.in .ag-row:nth-child(3) i { transition-delay: .3s; margin-left: 40%; }
.wl.in .ag-row:nth-child(4) i { transition-delay: .45s; margin-left: 58%; }
.wl.in .ag-row:nth-child(5) i { transition-delay: .6s; margin-left: 78%; }
.meter { margin-top: auto; display: flex; gap: 4px; align-items: flex-end; height: 70px; }
.meter i { flex: 1; background: var(--line-2); border-radius: 2px; height: 20%; animation: eq 1.4s ease-in-out infinite alternate; }
.meter i:nth-child(3n) { background: var(--rust); } .meter i:nth-child(3n+1) { background: var(--phos-dim); }
.meter i:nth-child(1) { animation-delay: -.2s } .meter i:nth-child(2) { animation-delay: -.9s } .meter i:nth-child(3) { animation-delay: -.4s }
.meter i:nth-child(4) { animation-delay: -1.1s } .meter i:nth-child(5) { animation-delay: -.6s } .meter i:nth-child(6) { animation-delay: -1.3s }
.meter i:nth-child(7) { animation-delay: -.1s } .meter i:nth-child(8) { animation-delay: -.7s } .meter i:nth-child(9) { animation-delay: -1s }
.meter i:nth-child(10) { animation-delay: -.3s } .meter i:nth-child(11) { animation-delay: -.8s } .meter i:nth-child(12) { animation-delay: -.5s }
@keyframes eq { to { height: 100%; } }

/* ── numbers ── */
.sub { color: var(--ink-2); max-width: 720px; margin: -24px 0 40px; }
.bars { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.bar-row { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr 72px; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bar-row span { font: 13.5px var(--mono); color: var(--ink-2); }
.bar-row b { font: 700 22px var(--display); text-align: right; color: var(--rust); }
.bar { height: 14px; background: rgba(255,255,255,.03); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #8a3a10, var(--rust) 70%, var(--rust-2)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bars.in .bar i { width: calc(var(--v) / 1.6 * 100%); }
.bar-row.base b { color: var(--ink-3); }
.bar-row.base .bar i { background: var(--line-2); }
.fine { font-size: 13.5px; color: var(--ink-3); max-width: 860px; margin-top: 28px; }

/* ── final ── */
.final { text-align: center; padding: 160px 24px 120px !important; }
.final h2 { font: 800 clamp(44px, 6.5vw, 92px)/0.95 var(--display); letter-spacing: -0.045em; margin: 0 0 22px; }
.final p { color: var(--ink-2); font-size: 18px; margin: 0 0 34px; }
.final .cta { justify-content: center; }

.foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px;
}
.mono { font-family: var(--mono); font-size: 12px; }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.pillar.reveal.in:nth-child(2), .pillar.reveal.in:nth-child(4) { transform: translateY(28px); }
.hero .reveal:nth-child(2) { transition-delay: .08s; } .hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; } .hero .scope.reveal { transition-delay: .3s; }
.stats .stat:nth-child(2) { transition-delay: .08s; } .stats .stat:nth-child(3) { transition-delay: .16s; } .stats .stat:nth-child(4) { transition-delay: .24s; }

/* ── responsive ── */
@media (max-width: 1020px) {
  .hero, .kernels-sec { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 60px !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .wl-grid { grid-template-columns: 1fr; }
  .term { position: relative; top: 0; }
  .nav nav a:not(.nav-gh) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats, .pillars { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .pillar:nth-child(n), .pillar.reveal.in:nth-child(n) { transform: none; }
  .bar-row { grid-template-columns: 1fr 60px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .install code { font-size: 12px; }
  .why, .kernels-sec, .workloads, .numbers { padding-top: 90px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .kernels i { transform: none; }
  .bars .bar i { width: calc(var(--v) / 1.6 * 100%); }
  .ag-row i { width: var(--w); }
}

/* grid children may shrink below their content (long install command) */
.hero > *, .kernels-sec > *, .install { min-width: 0; }
@media (max-width: 1020px) { .hero, .kernels-sec { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .install { width: 100%; } .scope-head { flex-direction: column; gap: 6px; } }
