/* ============================================================ fonts (self-hosted) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/geist-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jbmono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jbmono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jbmono-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/jbmono-400i.woff2") format("woff2"); }

:root {
  --bg: #08070d;
  --bg-2: #0c0a13;
  --panel: #100e18;
  --panel-2: #16131f;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --border: var(--line); --border-2: var(--line-2);
  --text: #f5f2f9;
  --muted: #a49bb3;
  --faint: #6b6479;
  --accent: #ff1e78;        /* brand fuchsia — also the WORLD/action grade */
  --accent-2: #ff77ab;
  --accent-soft: rgba(255,30,120,.13);
  --world: #ff3d8a;
  --model: #b98cff;         /* AI / model grade */
  --green: #57d49a;         /* predictable / pure grade */
  --blue: #88abff;
  --red: #ff7a93;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --pad: clamp(18px,5vw,56px);
  --shadow: 0 28px 70px -36px rgba(0,0,0,.85);
  --shadow-sm: 0 10px 30px -18px rgba(0,0,0,.7);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  letter-spacing: -.006em;
  position: relative;
  overflow-x: hidden;
}
/* atmosphere: a soft fuchsia aurora up top + a fine grain, both fixed and inert */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(255,30,120,.16), transparent 60%),
    radial-gradient(760px 520px at 8% -8%, rgba(120,60,255,.10), transparent 62%),
    linear-gradient(180deg, #0b0912 0%, var(--bg) 38%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; 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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
i { color: var(--accent-2); font-style: normal; }
b { color: var(--text); font-weight: 600; }
h1, h2, h3 { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--accent-2); }
::selection { background: rgba(255,30,120,.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* the engineered touch: eyebrows / kickers in mono */
.eyebrow, .moat-tag, .sc-h, .blabel { font-family: var(--mono); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 13px var(--pad); background: rgba(8,7,13,.66); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.brand { font-size: 17px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 7px; }
.brand b { font-weight: 600; }
.cup { filter: saturate(1.2); }
.nav-links { margin-left: auto; display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--accent); transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; padding: 10px 17px; border-radius: 10px; border: 1px solid transparent; transition: transform .12s cubic-bezier(.2,.7,.2,1), filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease; font-family: inherit; letter-spacing: -.01em; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #2a0312; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(255,30,120,.65), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 16px 38px -14px rgba(255,30,120,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.015); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--accent); transform: translateY(-1px); }
.btn.pulse { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,30,120,0); } 50% { box-shadow: 0 0 0 4px rgba(255,30,120,.2); } }

/* ============================================================ hero */
.hero { display: grid; grid-template-columns: 1.04fr minmax(0, 1fr); gap: 56px; align-items: center; padding: clamp(56px,9vw,118px) var(--pad) 72px; max-width: var(--maxw); margin: 0 auto; }
.hero-copy > * { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .03s; } .hero-copy > *:nth-child(2) { animation-delay: .09s; }
.hero-copy > *:nth-child(3) { animation-delay: .15s; } .hero-copy > *:nth-child(4) { animation-delay: .21s; }
.hero-copy > *:nth-child(5) { animation-delay: .27s; } .hero-copy > *:nth-child(6) { animation-delay: .33s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-2); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; padding: 5px 11px 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--accent-soft); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 1px var(--accent); }
.hero h1 { font-size: clamp(38px,6vw,66px); line-height: 1.0; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 600; }
.subhead { font-size: clamp(16px,1.55vw,19px); margin: 0 0 14px; max-width: 27em; color: var(--text); }
.lede { font-size: clamp(14.5px,1.35vw,16.5px); color: var(--muted); max-width: 31em; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-foot { margin-top: 26px; color: var(--faint); font-size: 13px; max-width: 30em; }

.code-card { min-width: 0; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.code-head { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: .9; } .dot.r { background: #ff5f7a; } .dot.y { background: #ffd166; } .dot.g { background: #7be0a4; }
.fname { color: var(--faint); font-size: 12px; font-family: var(--mono); margin-left: 9px; letter-spacing: -.02em; }
.hl { margin: 0; padding: 20px 22px; overflow: auto; font-family: var(--mono); font-size: 12.7px; line-height: 1.7; tab-size: 2; }
.code-card .hl { min-height: 372px; max-height: 470px; }
.t-kw { color: var(--accent-2); } .t-str { color: var(--green); } .t-rgx { color: var(--blue); } .t-fuz { color: var(--model); font-style: italic; }
.t-com { color: var(--faint); font-style: italic; } .t-tag { color: var(--accent); } .t-num { color: #ff9ec4; } .t-name { color: var(--text); } .t-punc { color: var(--muted); }

/* ============================================================ section scaffolding */
section { scroll-margin-top: 72px; }
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section-head h2 { font-size: clamp(25px,3vw,34px); letter-spacing: -.035em; margin: 0 0 12px; }
.section-head > p { color: var(--muted); max-width: 48em; margin: 0; font-size: 15.5px; }

/* ============================================================ problem band */
.band { padding: clamp(64px,9vw,96px) 0; border-top: 1px solid var(--line); }
.band-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.band h2 { font-size: clamp(27px,3.6vw,42px); letter-spacing: -.04em; margin: 0 0 16px; line-height: 1.05; }
.band-lede { color: var(--muted); font-size: clamp(16px,1.6vw,19px); max-width: 40em; margin: 0 0 40px; }
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-bottom: 34px; border-top: 1px solid var(--line); }
.pcard { padding: 26px 26px 26px 0; border-right: 1px solid var(--line); }
.pcard:last-child { border-right: 0; }
.problem-grid .pcard:not(:first-child) { padding-left: 26px; }
.picon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255,30,120,.3); color: var(--accent-2); font-size: 17px; margin-bottom: 16px; }
.pcard h3 { margin: 0 0 7px; font-size: 16px; letter-spacing: -.02em; } .pcard p { margin: 0; color: var(--muted); font-size: 13.5px; }
.whynow { color: var(--text); font-size: clamp(15px,1.5vw,17.5px); max-width: 44em; border-left: 2px solid var(--accent); padding-left: 20px; }

/* ============================================================ playground */
.play { padding: clamp(60px,8vw,80px) 0 40px; border-top: 1px solid var(--line); }
.disclosure { margin-top: 14px; background: none; border: 0; color: var(--accent-2); font-size: 13px; font-family: var(--mono); cursor: pointer; padding: 0; }
.tech-note { margin-top: 12px; padding: 15px 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13.5px; max-width: 52em; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; max-width: var(--maxw); margin: 26px auto 18px; padding: 0 var(--pad); }
.tab { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; cursor: pointer; background: rgba(255,255,255,.02); transition: color .15s, border-color .15s, background .15s, transform .1s; font-family: inherit; }
.tab:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.05); }
.tab.active { background: linear-gradient(180deg,var(--accent-2),var(--accent)); color: #2a0312; border-color: transparent; font-weight: 600; box-shadow: 0 8px 22px -12px rgba(255,30,120,.7); }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); align-items: start; }

.panel, .editor-card, .room-card, .ws-panel, .replay-card { background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0)), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.editor-head { display: flex; align-items: center; padding: 11px 12px 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.run-row { margin-left: auto; display: flex; gap: 8px; }
.editor { position: relative; height: 432px; display: flex; }
.gutter { flex: 0 0 6px; padding-top: 17px; overflow: hidden; background: rgba(0,0,0,.18); border-right: 1px solid var(--line); font-size: 12.7px; line-height: 1.7; }
.gl { width: 6px; height: 1.7em; transition: opacity .2s; }
.gl.grade-pure { background: var(--green); opacity: .45; }
.gl.grade-model { background: var(--model); box-shadow: 0 0 8px -1px var(--model); }
.gl.grade-world { background: var(--world); box-shadow: 0 0 8px -1px var(--world); }
.edit-area { position: relative; flex: 1; min-width: 0; }
.edit-area .hl, .edit-area textarea { position: absolute; inset: 0; margin: 0; padding: 17px 18px; font-family: var(--mono); font-size: 12.7px; line-height: 1.7; tab-size: 2; white-space: pre; overflow: auto; border: 0; }
.edit-area .hl { pointer-events: none; }
.edit-area textarea { background: transparent; color: transparent; caret-color: var(--accent-2); resize: none; outline: none; }
.edit-area textarea::selection { background: rgba(255,30,120,.28); }
.status { padding: 10px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); min-height: 36px; display: flex; align-items: center; gap: 7px; font-family: var(--mono); letter-spacing: -.02em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.status.err { color: var(--red); } .status.err::before { background: var(--red); }
.status.ok { color: var(--green); } .status.ok::before { background: var(--green); box-shadow: 0 0 8px var(--green); }

.sig { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.agent-sig { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.grade-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }
.grade-badge.g-pure { background: rgba(87,212,154,.16); color: var(--green); border: 1px solid rgba(87,212,154,.34); }
.grade-badge.g-model { background: rgba(185,140,255,.16); color: var(--model); border: 1px solid rgba(185,140,255,.34); }
.grade-badge.g-world { background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(255,30,120,.42); }
.ok-badge { color: var(--green); font-size: 11.5px; } .jr-badge { color: var(--faint); font-size: 11.5px; }
.caps { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.diag { color: var(--red); font-family: var(--mono); font-size: 12px; background: rgba(255,122,147,.08); border: 1px solid rgba(255,122,147,.3); border-radius: 8px; padding: 6px 10px; }
.legend-wrap { margin-top: 12px; font-size: 12.5px; }
.legend-wrap summary { cursor: pointer; color: var(--muted); list-style: none; }
.legend-wrap summary::-webkit-details-marker { display: none; }
.legend-hint { color: var(--faint); }
.legend { margin-top: 9px; color: var(--muted); }
.fchip { display: inline-block; margin: 3px 4px 0 0; padding: 2px 8px; border-radius: 7px; background: rgba(185,140,255,.12); border: 1px solid rgba(185,140,255,.32); color: var(--model); font-family: var(--mono); font-size: 11.5px; }
.none { color: var(--green); }

/* room */
.room-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: -.02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,30,120,.6); animation: pulse 1.9s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,30,120,.55); } 70% { box-shadow: 0 0 0 7px rgba(255,30,120,0); } 100% { box-shadow: 0 0 0 0 rgba(255,30,120,0); } }
.stage { height: 286px; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.stage:empty { display: grid; place-items: center; }
.stage:empty::after { content: "▶  press Run, or scroll — the demo plays itself"; color: var(--faint); font-size: 12.5px; font-family: var(--mono); letter-spacing: -.02em; text-align: center; max-width: 22em; line-height: 1.6; }
.utt { display: flex; gap: 11px; align-items: flex-start; animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.av { width: 27px; height: 27px; border-radius: 50%; flex: 0 0 27px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #16121d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.utt .who { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; font-family: var(--mono); }
.utt .txt { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.utt .react { margin-left: 6px; font-size: 13px; animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
.chip { align-self: center; font-size: 11px; color: var(--faint); font-family: var(--mono); background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 3px 11px; border-radius: 999px; }
.divider { text-align: center; font-size: 10.5px; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); margin: 4px 0; }
.agentbubble { align-self: flex-start; max-width: 87%; background: linear-gradient(180deg, rgba(255,119,171,.14), rgba(255,30,120,.07)); border: 1px solid rgba(255,30,120,.32); color: var(--accent-2); padding: 9px 13px; border-radius: 13px; font-size: 13px; line-height: 1.45; animation: rise .28s ease; }
.agentbubble b { color: var(--accent-2); } .agentbubble .vtag { font-size: 10.5px; color: var(--faint); margin-left: 6px; }
.caption { min-height: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 16px; background: var(--accent-soft); border-top: 1px solid transparent; color: var(--accent-2); font-size: 12.5px; display: flex; align-items: center; font-family: var(--mono); letter-spacing: -.02em; }
.caption.show { max-height: 60px; padding: 10px 16px; border-top: 1px solid var(--line); }

/* result card — must stay hidden until populated (the [hidden] attr was being overridden) */
.result-card[hidden] { display: none; }
.result-card { display: flex; gap: 13px; align-items: flex-start; margin-top: 14px; padding: 17px 19px; background: linear-gradient(180deg, var(--accent-soft), var(--panel)); border: 1px solid rgba(255,30,120,.3); border-radius: 13px; font-size: 14.5px; line-height: 1.5; box-shadow: var(--shadow-sm); animation: rise .3s ease; }
.result-card.reject { background: linear-gradient(180deg, rgba(87,212,154,.09), var(--panel)); border-color: rgba(87,212,154,.34); }
.rc-icon { font-size: 17px; line-height: 1.5; color: var(--accent-2); }
.result-card.reject .rc-icon { color: var(--green); }

/* workspace */
.workspace { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.ws-panel { min-height: 116px; }
.ws-head { padding: 10px 13px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.018); font-family: var(--mono); letter-spacing: -.02em; }
.count { margin-left: auto; background: var(--accent-soft); border: 1px solid rgba(255,30,120,.3); color: var(--accent-2); border-radius: 999px; min-width: 20px; text-align: center; font-size: 10.5px; padding: 1px 6px; font-weight: 600; }
.ws-body { padding: 11px; display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; }
.ws-body:empty { min-height: 64px; display: grid; place-items: center; }
.ws-body:empty::after { content: "—"; color: var(--faint); }
.card { background: rgba(255,255,255,.025); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 11px; font-size: 12.5px; animation: rise .28s ease; }
.card .ct { color: var(--text); line-height: 1.4; }
.card .cm { margin-top: 6px; color: var(--muted); font-size: 11px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { padding: 1px 8px; border-radius: 999px; font-size: 10.5px; border: 1px solid var(--line-2); font-family: var(--mono); }
.pill.who2 { background: rgba(87,212,154,.12); border-color: rgba(87,212,154,.3); color: var(--green); }
.pill.due { background: rgba(136,171,255,.12); border-color: rgba(136,171,255,.3); color: var(--blue); }
.card .nb { white-space: pre-wrap; color: var(--muted); font-size: 11.5px; margin-top: 6px; line-height: 1.5; }

/* replay */
.replay-card { margin-top: 14px; }
.replay-head { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); font-size: 13.5px; }
.replay-head .rhint { color: var(--faint); font-size: 12px; }
.replay-head .btn { margin-left: auto; }
.replay-result { padding: 13px 15px; font-size: 13px; }
.ledger { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.led { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 7px; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--muted); }
.led.ok { background: rgba(87,212,154,.14); border-color: rgba(87,212,154,.35); color: var(--green); font-weight: 700; }
.replay-plain { color: var(--text); font-size: 13.5px; line-height: 1.5; } .rtech { color: var(--faint); font-size: 12px; }
.rbad { color: var(--red); }
.trace-wrap { border-top: 1px solid var(--line); }
.trace-wrap summary { cursor: pointer; padding: 11px 15px; font-size: 12.5px; color: var(--muted); list-style: none; font-family: var(--mono); }
.trace-wrap summary::-webkit-details-marker { display: none; }
.trace-wrap summary:hover { color: var(--text); }
.trace-body { padding: 4px 15px 13px; max-height: 220px; overflow: auto; font-family: var(--mono); font-size: 11.5px; }
.muted-note { color: var(--faint); }
.tr-firing { padding: 8px 0; border-bottom: 1px solid var(--line); } .tr-firing:last-child { border-bottom: 0; }
.tr-h { color: var(--muted); margin-bottom: 4px; } .tr-h b { color: var(--text); }
.tr-ev { color: var(--blue); } .tr-fid { color: var(--faint); }
.tr-leaf { padding: 2px 0 2px 12px; color: var(--muted); }
.g-pill { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-right: 6px; }
.g-pill.g-model { background: rgba(185,140,255,.18); color: var(--model); } .g-pill.g-world { background: var(--accent-soft); color: var(--accent-2); }
.prov { font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.prov.fresh, .prov.applied { background: var(--accent-soft); color: var(--accent-2); }
.prov.journal, .prov.dedup { background: rgba(87,212,154,.16); color: var(--green); }
.tr-out, .tr-key { color: var(--faint); }
.mocktag { font-size: 9px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }

/* ============================================================ benefits (frameless) */
.benefits { padding: clamp(60px,8vw,84px) 0; border-top: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.bcard2 { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.bcard2:hover { border-color: var(--line-2); transform: translateY(-3px); background: linear-gradient(180deg, rgba(255,30,120,.05), rgba(255,255,255,0)); }
.bemoji { font-size: 22px; margin-bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); border: 1px solid rgba(255,30,120,.26); }
.bcard2 h3 { margin: 0 0 9px; font-size: 17px; letter-spacing: -.025em; } .bcard2 p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============================================================ moat */
.moat { padding: clamp(70px,9vw,96px) 0; border-top: 1px solid var(--line); position: relative; }
.moat::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 300px at 50% 0%, rgba(255,30,120,.08), transparent 70%); }
.moat-inner { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); position: relative; }
.moat-tag { color: var(--accent-2); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.moat h2 { font-size: clamp(25px,3.4vw,38px); letter-spacing: -.04em; margin: 0 0 18px; line-height: 1.08; }
.moat p { color: var(--muted); font-size: clamp(15px,1.5vw,18px); margin: 0; line-height: 1.6; }

/* ============================================================ why (developers) */
.why { padding: clamp(70px,9vw,96px) 0; border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: var(--maxw); margin: 30px auto 0; padding: 0 var(--pad); }
.why-card { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.why-card h3 { margin: 0 0 13px; font-size: 17px; letter-spacing: -.02em; }
.why-card > p { color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.55; }
.bound { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcol { border-radius: 11px; padding: 13px 15px; border: 1px solid var(--line-2); }
.bcol.det { background: rgba(87,212,154,.06); } .bcol.fuz { background: rgba(185,140,255,.07); }
.blabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
.bcol.det .blabel { color: var(--green); } .bcol.fuz .blabel { color: var(--model); }
.bcol ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12.5px; } .bcol li { margin: 5px 0; } .bcol code { color: var(--text); }
.proof-list { margin: 0 0 16px; padding-left: 0; list-style: none; }
.proof-list li { color: var(--muted); font-size: 13.5px; margin: 9px 0; padding-left: 18px; position: relative; line-height: 1.5; }
.proof-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.proof-list b { color: var(--accent-2); font-family: var(--mono); }
.why-foot { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ============================================================ get started */
.start { padding: clamp(70px,9vw,96px) 0; border-top: 1px solid var(--line); }
.start-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.start h2 { font-size: clamp(25px,3.2vw,34px); letter-spacing: -.035em; margin: 0 0 13px; }
.start-inner > p { color: var(--muted); max-width: 48em; margin: 0 0 28px; font-size: 15.5px; line-height: 1.55; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.start-card { background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0)), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.sc-h { padding: 11px 17px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); letter-spacing: .02em; }
.codeblock { margin: 0; padding: 17px 19px; font-family: var(--mono); font-size: 12.3px; line-height: 1.8; color: var(--text); overflow: auto; white-space: pre; }
.codeblock .c-dim { color: var(--faint); }
.start-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================ cta */
.cta-band { text-align: center; padding: clamp(80px,10vw,108px) 24px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 280px at 50% 0%, rgba(255,30,120,.16), transparent 70%); }
.vision { color: var(--muted); max-width: 44em; margin: 0 auto 20px; font-size: 15px; position: relative; line-height: 1.6; }
.cta-band h2 { font-size: clamp(28px,3.8vw,44px); letter-spacing: -.04em; margin: 0 0 26px; position: relative; line-height: 1.05; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.access { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.access input { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 14px; min-width: 260px; font-family: inherit; }
.access input::placeholder { color: var(--faint); }
.access-note { margin-top: 16px; color: var(--faint); font-size: 12.5px; font-family: var(--mono); letter-spacing: -.02em; position: relative; }

/* ============================================================ footer */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-muted { color: var(--faint); max-width: 46em; line-height: 1.55; }

/* ============================================================ responsive */
@media (max-width: 1024px) {
  .play-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero, .why-grid, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 30px; padding-top: clamp(40px,8vw,60px); }
  .nav-links { display: none; }
  .problem-grid, .benefits-grid { grid-template-columns: 1fr; border-top: 0; }
  .pcard { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .problem-grid .pcard:not(:first-child) { padding-left: 0; }
  .pcard:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .editor { height: 52vh; }
  .edit-area .hl, .edit-area textarea { font-size: 12px; padding: 14px; }
  .workspace { grid-template-columns: 1fr; }
  .access input { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-copy > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
