:root {
  --bg: #0c0e12; --panel: #12151b; --panel-2: #181c24; --line: #232833; --text: #e7e5df; --muted: #9aa0a8;
  --accent: #8ef0c2; --accent-ink: #0b2a20; --bar: #3a4150; --danger: #f28b82;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 1040px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 0; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; left: -9999px; }
code, pre { font-family: var(--mono); font-size: 14px; }
:not(pre) > code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 0.9em; }

/* header / footer */
.top { max-width: var(--w); margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--text); font-weight: 600; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 18px rgba(142, 240, 194, 0.45); }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a[aria-current], .top nav a:hover { color: var(--text); text-decoration: none; }
.foot { max-width: var(--w); margin: 60px auto 0; padding: 28px 16px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--muted); }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 11px 18px; font: 600 15px var(--sans); border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:hover { text-decoration: none; background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: #a3f5cf; }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 22px; font-size: 16px; width: 100%; }
input[type=email], textarea { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; font: 15px var(--sans); }
textarea { font-family: var(--mono); font-size: 14px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.stack { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
form.stack label { font-size: 14px; color: var(--muted); }
.buy-form { margin: 18px 0 8px; }
.buy-form.inline { display: flex; gap: 8px; }
.buy-form.inline input { flex: 1; }

/* landing */
.landing { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.landing section { padding: 56px 0 0; }
.hero { padding-top: 40px !important; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.02em; margin: 0 0 14px; }
.hero h1 { max-width: 800px; }
.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

/* demo */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.demo-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.demo-title { color: var(--text); }
.demo-ms { color: var(--accent); }
.demo-grid { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 250px; }
.demo-pane { padding: 14px 16px; min-width: 0; }
.demo-pane + .demo-pane { border-left: 1px solid var(--line); }
.pane-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.demo-state { margin: 0; white-space: pre-wrap; word-break: break-word; color: #cfd3d8; font-size: 13px; line-height: 1.55; min-height: 180px; }
.demo-state .cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-answers { display: flex; flex-direction: column; gap: 9px; font-family: var(--mono); font-size: 13px; }
.ans { opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.ans.in { opacity: 1; transform: none; }
.ans-row { display: flex; justify-content: space-between; gap: 10px; }
.ans-id { color: var(--muted); }
.ans-val { color: var(--text); }
.ans-val strong { color: var(--accent); font-weight: 500; }
.bar { height: 4px; background: var(--bar); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.ans-row.runners { color: var(--muted); font-size: 11px; }
.ans.route { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--accent); }
.demo-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--bar); }
.demo-dots i.on { background: var(--accent); }

/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cards h3 { margin-bottom: 6px; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; }

/* try */
.try-form { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.try-row { display: flex; align-items: center; gap: 14px; }
.try-out { margin-top: 14px; max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 9px; }
.try-out .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* curriculum */
.modules { list-style: none; padding: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.modules li + li { border-top: 1px solid var(--line); }
.modules a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); }
.modules a:hover { background: var(--panel); text-decoration: none; }
.num { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 26px; flex: none; }
.tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--accent); border: 1px solid rgba(142,240,194,.35); border-radius: 999px; padding: 1px 8px; }
.why p { max-width: 720px; font-size: 18px; }

/* pricing */
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 460px; }
.price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.price .now { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.price .was { color: var(--muted); text-decoration: line-through; }
.price-card ul { padding-left: 18px; margin: 0 0 6px; color: var(--muted); }
.price-card li { margin: 4px 0; }

/* faq */
.faq dl { max-width: 720px; margin: 0; }
.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* course index */
.course-index, .simple { max-width: 760px; margin: 0 auto; padding: 24px 16px 0; }
.index-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.index { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.index li + li { border-top: 1px solid var(--line); }
.index a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); }
.index a:hover { background: var(--panel); text-decoration: none; }
.index .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.index .s { color: var(--muted); font-size: 14px; }
.index .meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; }
.index li.locked a { opacity: .6; }

/* lesson */
.lesson-wrap { max-width: var(--w); margin: 0 auto; padding: 10px 16px 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
.lesson-nav { position: sticky; top: 16px; align-self: start; font-size: 14px; }
.lesson-nav .back { display: block; color: var(--muted); margin-bottom: 12px; }
.lesson-nav ol { list-style: none; padding: 0; margin: 0 0 14px; }
.lesson-nav li a { display: flex; gap: 8px; padding: 5px 0; color: var(--muted); }
.lesson-nav li.current a { color: var(--text); font-weight: 600; }
.lesson-nav li.locked a::after { content: '·'; margin-left: auto; color: var(--bar); }
.lesson { max-width: 720px; }
.lesson h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.lesson h2 { margin-top: 44px; font-size: 24px; }
.lesson h3 { margin-top: 28px; font-size: 18px; }
.lesson p, .lesson li { font-size: 17px; }
.lesson ul, .lesson ol { padding-left: 22px; }
.lesson li { margin: 4px 0; }
.lesson blockquote { margin: 18px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; color: var(--muted); }
.lesson blockquote p { margin: 0; }
.lesson hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.code-block, .prompt-block { margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.code-head, .prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .08em; }
.prompt-block { border-color: rgba(142,240,194,.35); }
.prompt-head { color: var(--accent); }
.code-block pre, .prompt-block pre { margin: 0; padding: 14px; overflow-x: auto; line-height: 1.55; }
.prompt-block pre { white-space: pre-wrap; font-family: var(--sans); font-size: 15px; }
.copy { font: 500 11px var(--mono); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; cursor: pointer; letter-spacing: 0; text-transform: none; }
.copy:hover { color: var(--text); }
.copy.done { color: var(--accent); border-color: var(--accent); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }

/* highlight.js theme, minimal */
.hljs { color: #d6dae0; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-built_in { color: #c7a4ff; }
.hljs-string, .hljs-attr, .hljs-template-variable { color: #8ef0c2; }
.hljs-number { color: #f2c14e; }
.hljs-comment { color: #7a8290; font-style: italic; }
.hljs-title, .hljs-function .hljs-title, .hljs-title.function_ { color: #7cc7ff; }
.hljs-property, .hljs-variable { color: #d6dae0; }
.hljs-punctuation { color: #9aa0a8; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-pane + .demo-pane { border-left: 0; border-top: 1px solid var(--line); }
  .demo-state { min-height: 0; }
  .lesson-wrap { grid-template-columns: 1fr; gap: 20px; }
  .lesson-nav { position: static; }
  .lesson-nav ol { display: none; }
  .top nav { gap: 14px; }
  .buy-form.inline { flex-direction: column; }
  .pager { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .ans, .bar i { transition: none; }
  .demo-state .cursor { animation: none; }
}

/* ---- v3: more visual ---- */
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 360px at 18% 12%, rgba(142,240,194,.16), transparent 70%),
    radial-gradient(520px 320px at 85% 30%, rgba(124,199,255,.10), transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg));
  mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 40% 20%, #000, transparent); }
body.is-landing { position: relative; overflow-x: hidden; }
.stats { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; max-width: 820px; }
.stats li { background: rgba(18,21,27,.7); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(6px); }
.stats b { font-family: var(--mono); font-weight: 500; font-size: 18px; color: var(--accent); }
.stats span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cards li { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; position: relative; overflow: hidden; }
.cards li::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0; transition: opacity .18s ease; }
.cards li:hover { transform: translateY(-3px); border-color: rgba(142,240,194,.4); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.cards li:hover::before { opacity: 1; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* compare */
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.compare-head p { max-width: 640px; margin: 0; }
.tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { font: 500 13px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-ink); }
.arena { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 0; align-items: stretch; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-height: 320px; overflow: hidden; }
.side.gpt { box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.side.jev { border-color: rgba(142,240,194,.35); box-shadow: 0 20px 60px rgba(142,240,194,.06); }
.side-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.side-head em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.side-head img { opacity: .9; }
.timer { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.side.jev .timer.done { color: var(--accent); }
.side.gpt .timer.done { color: var(--text); }
.side-body { padding: 16px; flex: 1; }
.bubble { font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: #cfd3d8; min-height: 120px; }
.dots { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4 } 40% { transform: translateY(-4px); opacity: 1 } }
.side-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 38px; }
.vs { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.scoreboard > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.sc-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scoreboard b { font-weight: 600; font-size: 15px; }
.scoreboard b.win { color: var(--accent); }
.compare-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 800px) {
  .arena { grid-template-columns: 1fr; }
  .vs { padding: 6px 0; }
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .side { min-height: 0; }
  .hero-bg { height: 560px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .cards li { transition: none; } }

/* ---- v4: the hero is the playground ---- */
.hero .sub { margin-bottom: 18px; }
.play { background: rgba(18,21,27,.85); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(142,240,194,.06); backdrop-filter: blur(8px); margin-bottom: 22px; overflow: hidden; }
.play-form { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.play-form textarea { border: 0; background: transparent; padding: 6px 4px; font-size: 16px; font-family: var(--sans); line-height: 1.5; resize: none; min-height: 74px; }
.play-form textarea:focus { outline: none; }
.play-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chips button { font: 500 12.5px var(--sans); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: color .15s, border-color .15s, transform .12s; }
.chips button:hover { color: var(--text); border-color: rgba(142,240,194,.5); transform: translateY(-1px); }
.chips button[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.play-out { padding: 12px 16px 6px; min-height: 250px; }
.play-meter { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.play-ms { margin-left: auto; color: var(--accent); font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--bar); }
.pulse.on { background: var(--accent); box-shadow: 0 0 0 0 rgba(142,240,194,.6); animation: pulse 1s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(142,240,194,0); } }
.rows { display: flex; flex-direction: column; gap: 4px; }
.row { position: relative; padding: 7px 8px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease, background .15s; cursor: default; }
.row.in { opacity: 1; transform: none; }
.row:hover { background: rgba(255,255,255,.03); }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 13px; }
.row-id { color: var(--muted); }
.row-val { color: var(--text); font-variant-numeric: tabular-nums; }
.row-val b { color: var(--accent); font-weight: 500; }
.row-val small { color: var(--muted); margin-left: 8px; }
.row .bar { height: 7px; margin-top: 6px; border-radius: 4px; }
.row .bar i { transition: width .7s cubic-bezier(.2,.8,.2,1); background: linear-gradient(90deg, #5fd9a6, var(--accent)); }
.row.choice { cursor: pointer; }
.row .dist { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 12px; }
.row.open .dist { display: block; }
.dist div { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; padding: 2px 0; color: var(--muted); }
.dist div .bar { margin: 0; height: 4px; }
.dist div.top { color: var(--text); }
.tip { position: absolute; left: 8px; right: 8px; top: calc(100% + 4px); z-index: 5; background: #0e1116; border: 1px solid rgba(142,240,194,.35); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: #cfd3d8; white-space: pre-wrap; box-shadow: 0 12px 30px rgba(0,0,0,.5); display: none; pointer-events: none; }
.row:hover .tip { display: block; }
.play-route { font-family: var(--mono); font-size: 13px; color: var(--accent); padding: 10px 8px 6px; min-height: 30px; }
.play-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.play-foot b { color: var(--text); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.stats { margin-top: 26px; }
.runs h2 { margin-bottom: 14px; }
@media (max-width: 800px) {
  .play-out { min-height: 0; }
  .dist div { grid-template-columns: 100px 1fr 40px; }
  .play-row { align-items: stretch; }
  .play-row .btn { width: 100%; }
}
@media (max-width: 800px) { .play-meter { flex-wrap: wrap; } .play-ms { width: 100%; margin-left: 0; } }

/* ---- v5: aesthetics, hero fits the viewport ---- */
body.is-landing { background: #0a0c10; }
.hero-bg { height: 100vh; min-height: 720px; mask-image: none; opacity: 1;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(142,240,194,.20), transparent 62%),
    radial-gradient(700px 480px at 8% 10%, rgba(88,120,255,.16), transparent 60%),
    radial-gradient(500px 300px at 55% 100%, rgba(242,193,78,.06), transparent 60%),
    linear-gradient(to bottom, #0a0c10, #0a0c10 70%, var(--bg)); }
.hero-bg::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); background-size: 160px 160px; mask-image: none; opacity: .9; }
.landing .hero { padding: 0 !important; min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero-copy { padding: 8px 0; }
.hero .kicker { margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 18px; max-width: none; }
.hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.16em; color: var(--accent); letter-spacing: -0.01em; }
.hero .sub { font-size: 17px; margin-bottom: 22px; max-width: 460px; }
.hero .cta { margin-bottom: 18px; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.micro span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.hero .stats { display: none; }

.play { position: relative; margin: 0; background: rgba(13,16,21,.78); border: 1px solid transparent; border-radius: 18px; box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04); }
.play::before { content: ''; position: absolute; inset: -1px; border-radius: 19px; padding: 1px; background: conic-gradient(from var(--a, 0deg), rgba(142,240,194,.0) 0%, rgba(142,240,194,.9) 12%, rgba(124,199,255,.6) 24%, rgba(142,240,194,0) 40%, rgba(142,240,194,0) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; animation: sweep 9s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --a: 360deg; } }
.play-form { padding: 12px 14px 10px; }
.play-form textarea { min-height: 52px; font-size: 15px; padding: 4px 4px 0; }
.play-row { gap: 10px; flex-wrap: nowrap; }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { white-space: nowrap; padding: 5px 10px; font-size: 12px; }
.play-row .btn { padding: 9px 14px; font-size: 14px; flex: none; }
.play-out { padding: 8px 14px 4px; min-height: 0; }
.play-meter { margin-bottom: 6px; font-size: 11.5px; }
.rows { gap: 1px; }
.row { padding: 5px 6px; border-radius: 7px; }
.row-top { font-size: 12.5px; }
.row-val { font-size: 12.5px; }
.row-val b { font-size: 13px; text-shadow: 0 0 14px rgba(142,240,194,.5); }
.row .bar { height: 5px; margin-top: 4px; background: rgba(255,255,255,.06); }
.row .bar i { box-shadow: 0 0 12px rgba(142,240,194,.45); }
.play-route { padding: 6px 6px 4px; min-height: 24px; font-size: 12.5px; }
.play-foot { padding: 8px 14px; font-size: 11.5px; }
.compare { padding-top: 40px !important; }
@media (max-width: 960px) {
  .landing .hero { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 28px 0 0 !important; align-items: start; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero .sub { font-size: 16px; }
  .hero-bg { height: 560px; min-height: 0; }
  .play-row { flex-wrap: wrap; }
  .play-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .play::before { animation: none; } }
.chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 18px; }

/* ---- v6: the desk. A sheet gets stamped. ---- */
.hero-bg { display: none; }
body.is-landing { background: #14161a; }
.landing .hero.desk { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 48px; align-items: center; min-height: calc(100vh - 68px); padding: 24px 0 0 !important;
  background: radial-gradient(1200px 600px at 50% 40%, rgba(255,255,255,.035), transparent 70%); }
.sheet-wrap { position: relative; padding-top: 26px; }
.tabs-paper { position: absolute; top: 0; left: 18px; right: 18px; display: flex; gap: 4px; z-index: 0; overflow-x: auto; scrollbar-width: none; }
.tabs-paper::-webkit-scrollbar { display: none; }
.tabs-paper button { font: 600 12px/1 'Barlow Condensed', var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #6b6558; background: #e6e1d3; border: 0; border-radius: 6px 6px 0 0; padding: 9px 12px 12px; cursor: pointer; transform: translateY(3px); transition: transform .15s, background .15s; white-space: nowrap; }
.tabs-paper button:hover { transform: translateY(0); background: #ede9dc; }
.tabs-paper button[aria-pressed=true] { background: #f4f0e6; color: #1c1a17; transform: translateY(1px); }
.sheet { position: relative; z-index: 1; background: #f4f0e6; color: #1c1a17; border-radius: 3px; padding: 34px 36px 30px; min-height: 440px; box-shadow: 0 1px 0 #d9d3c4, 0 30px 60px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3); transform: rotate(-0.6deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.sheet-form { display: flex; flex-direction: column; gap: 10px; max-width: 62%; }
.sheet textarea { background: transparent; border: 0; border-radius: 0; padding: 0; color: #1c1a17; font: 400 16.5px/1.6 'Courier Prime', 'Courier New', monospace; resize: none; min-height: 190px; }
.sheet textarea::placeholder { color: #9b9484; }
.sheet textarea:focus { outline: none; box-shadow: none; }
.sheet-actions { display: flex; align-items: center; gap: 14px; }
.stamp-btn { font: 700 14px/1 'Barlow Condensed', var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f4f0e6; background: #1c1a17; border: 0; border-radius: 4px; padding: 10px 16px; cursor: pointer; }
.stamp-btn:hover { background: #33302a; }
.stamp-btn:disabled { opacity: .5; cursor: wait; }
.typed { font: 400 12px/1.5 'Courier Prime', monospace; color: #7a7364; }
.typed.sheet-foot { position: absolute; left: 36px; right: 36px; bottom: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.typed.sheet-foot b { font-weight: 700; color: #1c1a17; }
.typed .pulse { background: #cfc8b6; }
.typed .pulse.on { background: #1c1a17; box-shadow: 0 0 0 0 rgba(28,26,23,.4); }
.stamps { position: absolute; top: 34px; right: 30px; width: 34%; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.stamp { --ink: #1f5f43; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px 7px; border: 3px solid var(--ink); border-radius: 7px; color: var(--ink); font: 700 15px/1 'Barlow Condensed', var(--sans); letter-spacing: .12em; text-transform: uppercase; background: transparent; mix-blend-mode: multiply; transform: rotate(var(--r, -3deg)) scale(1); opacity: var(--o, 1); position: relative;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 -0.55'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 -0.55'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); -webkit-mask-size: 200px 200px; mask-size: 200px 200px; }
.stamp small { font-size: 10px; letter-spacing: .16em; font-weight: 600; opacity: .85; }
.stamp.red { --ink: #9b2b23; }
.stamp.grey { --ink: #4a4740; }
.stamp.land { animation: land .32s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes land { 0% { transform: rotate(var(--r, -3deg)) scale(1.7); opacity: 0; } 55% { opacity: var(--o, 1); } 100% { transform: rotate(var(--r, -3deg)) scale(1); opacity: var(--o, 1); } }
.route-stamp { position: absolute; left: 34px; bottom: 54px; font-size: 22px; padding: 10px 18px 11px; border-width: 4px; border-radius: 9px; --r: -6deg; pointer-events: none; }
.route-stamp[hidden] { display: none; }
.stamp-tip { position: absolute; z-index: 5; background: #1c1a17; color: #f4f0e6; font: 400 11.5px/1.45 'Courier Prime', monospace; padding: 6px 9px; border-radius: 4px; max-width: 260px; display: none; pointer-events: none; text-transform: none; letter-spacing: 0; }
.stamps .stamp { pointer-events: auto; cursor: help; }
.stamp:hover .stamp-tip { display: block; right: 0; top: calc(100% + 6px); }

.card-pin { position: relative; background: #fbf8f1; color: #1c1a17; border-radius: 3px; padding: 34px 26px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 1px 0 #d9d3c4; transform: rotate(1.2deg); background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(28,26,23,.08) 27px 28px); background-position: 0 30px; }
.pin { position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6a5c, #a3271b); box-shadow: 0 3px 6px rgba(0,0,0,.4); transform: translateX(-50%); }
.card-pin h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 12px; }
.card-pin h1 em { font-style: italic; color: #1f5f43; }
.card-pin p { font: 400 14.5px/1.55 'Courier Prime', monospace; color: #3d3a33; margin: 0 0 16px; }
.card-pin .cta { margin: 0; gap: 8px; }
.card-pin .btn.primary { background: #1c1a17; color: #f4f0e6; }
.card-pin .btn.primary:hover { background: #33302a; }
.card-pin .btn.ghost { color: #1c1a17; border-color: #cfc8b6; background: transparent; }
.card-pin .btn.ghost:hover { background: #f0ebdf; }
@media (max-width: 960px) {
  .landing .hero.desk { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding: 22px 0 0 !important; }
  .sheet { transform: none; padding: 26px 20px 60px; min-height: 0; }
  .sheet-form { max-width: none; }
  .sheet textarea { min-height: 150px; font-size: 15px; }
  .stamps { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; gap: 8px; }
  .route-stamp { position: static; display: inline-flex; margin-top: 12px; font-size: 18px; }
  .typed.sheet-foot { position: static; margin-top: 16px; }
  .card-pin { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .stamp.land { animation: none; } }
/* v6.1: foot line in flow, route stamp below the form */
.typed.sheet-foot { position: static; margin-top: 4px; }
.route-stamp { position: static; display: inline-flex; margin: 22px 0 0 2px; }
.sheet { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 26px; }
.tabs-paper button { font-size: 11.5px; padding: 8px 10px 11px; }
@media (max-width: 960px) { .route-stamp { margin-top: 14px; } }
.typed.sheet-foot { display: block; }
.typed.sheet-foot .pulse { display: inline-block; vertical-align: middle; margin-right: 8px; }
.typed.sheet-foot #play-count { display: block; margin-top: 4px; }

/* ---- why now: a memo ---- */
.whynow { padding-top: 48px !important; }
.memo { background: #f4f0e6; color: #1c1a17; border-radius: 3px; padding: 28px 32px 26px; max-width: 860px; box-shadow: 0 1px 0 #d9d3c4, 0 24px 50px rgba(0,0,0,.45); transform: rotate(0.4deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.memo-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.memo-stamp { font-size: 20px; padding: 8px 16px 9px; border-width: 4px; --r: -4deg; --o: .95; }
.log { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid #cfc8b6; }
.log li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid #e3ddcf; font: 400 14px/1.55 'Courier Prime', monospace; color: #2b2925; }
.log .d { font-weight: 700; color: #1c1a17; }
.reasons { padding-left: 22px; margin: 0; }
.reasons li { font: 400 15px/1.55 'Courier Prime', monospace; color: #2b2925; margin: 0 0 10px; }
.reasons b { font-weight: 700; color: #1c1a17; }
@media (max-width: 800px) { .memo { padding: 20px 18px; transform: none; } .log li { grid-template-columns: 58px 1fr; gap: 10px; font-size: 13px; } .reasons li { font-size: 14px; } }

/* ---- proof wall ---- */
.proof { padding-top: 56px !important; }
.proof-head { margin-bottom: 18px; }
.proof-head p { max-width: 640px; margin: 0; }
.tiles { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tiles li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.tiles img { grid-row: 1 / span 2; filter: invert(1) brightness(.85); opacity: .9; }
.tiles .star { grid-row: 1 / span 2; color: #f2c14e; font-size: 18px; text-align: center; }
.tiles b { font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.tiles span:not(.star) { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.posts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.post a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); transition: transform .18s, border-color .18s; }
.post a:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.post.x a:hover { border-color: rgba(255,255,255,.35); }
.post-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.post-head img { filter: invert(1) brightness(.85); }
.post-head b { font-weight: 600; }
.post-head span { color: var(--muted); }
.check { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #1d9bf0; vertical-align: -1px; margin-left: 2px; position: relative; }
.check::after { content: ''; position: absolute; left: 3.5px; top: 2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.post p { margin: 0; font-size: 14px; line-height: 1.5; color: #d6dae0; white-space: pre-line; flex: 1; }
.post-foot { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.repos { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.repos a { display: grid; grid-template-columns: 14px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; color: var(--text); font-size: 13px; }
.repos a:hover { text-decoration: none; border-color: rgba(255,255,255,.2); }
.repos img { grid-row: 1 / span 2; filter: invert(1) brightness(.85); }
.repos .rn { font-family: var(--mono); font-size: 12.5px; }
.repos .rw { grid-column: 2; color: var(--muted); font-size: 12px; }
.repos .rs { grid-row: 1 / span 2; font-family: var(--mono); font-size: 12.5px; color: #f2c14e; white-space: nowrap; }
.press { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.press a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.press a:hover { color: var(--text); text-decoration: none; }
.press img { filter: invert(1) brightness(.75); opacity: .85; }
.halo { margin: 8px 0 0; max-width: 820px; }
@media (max-width: 960px) { .tiles, .posts, .repos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles, .posts, .repos { grid-template-columns: 1fr; } .tiles li { padding: 12px 14px; } }
.repos .rn { grid-column: 2; grid-row: 1; }
.repos .rs { grid-column: 3; }
.post-head { flex-wrap: wrap; row-gap: 2px; }
.post-head b { white-space: nowrap; }

/* ---- agents + layers ---- */
.agents { padding-top: 56px !important; }
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.agents-copy h2 { font-size: clamp(26px, 3.2vw, 36px); }
.agents-copy p { color: var(--muted); max-width: 520px; }
.agents-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px; }
.agents-facts b { display: block; font-family: var(--mono); font-weight: 500; font-size: 22px; color: var(--text); }
.agents-facts span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; max-width: 150px; }
.term { background: #0b0d11; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.term-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.term-head span { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; }
.term-head em { margin-left: auto; font: 400 11px var(--mono); color: var(--muted); }
.term pre { margin: 0; padding: 16px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; color: #d6dae0; }
.term .c { color: var(--muted); }
.term .p { color: var(--accent); }
.term .u { color: #f2c14e; }
.layers { padding-top: 56px !important; }
.layers > p { max-width: 600px; }
.layer-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.layer-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.layer-list li.big { grid-column: span 1; background: var(--panel); border-color: rgba(142,240,194,.3); padding: 20px 18px; }
.layer-list .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.layer-list li.big .n { color: var(--accent); font-size: 14px; }
.layer-list h3 { margin: 0 0 4px; font-size: 15px; }
.layer-list li.big h3 { font-size: 19px; }
.layer-list p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.layer-list li.big p { font-size: 14.5px; color: #c9cdd3; }
.layer-list .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.layer-list li:not(.big) { grid-template-columns: auto 1fr; }
.layer-list li:not(.big) .cat { display: none; }
.pack-link { display: block; margin: 6px 0 14px; font-size: 14px; color: var(--accent); }
.pack-link[aria-current] { font-weight: 600; }
@media (max-width: 960px) { .agents-grid { grid-template-columns: 1fr; } .layer-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .layer-list { grid-template-columns: 1fr; } .agents-facts { grid-template-columns: 1fr 1fr; } }
