:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --card: #111113;
  --line: #1f1f23;
  --line-2: #2a2a2f;
  --text: #ededef;
  --muted: #8b8b92;
  --faint: #5c5c63;
  --accent: #f5a524;
  --accent-ink: #1a1203;
  --allow: #45c97f;
  --deny: #f26d6d;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; max-width: 22em; }
.eyebrow { margin: 0 0 14px; font: 500 13px/1 var(--mono); color: var(--accent); }
.sub { margin: 16px 0 0; color: var(--muted); font-size: 17px; max-width: 38em; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--text); color: var(--bg); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: opacity 0.15s; }
.btn:hover { opacity: 0.88; }
.btn:focus-visible, .tabs button:focus-visible, input:focus-visible, .link-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.link-arrow { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.link-arrow:hover { color: var(--text); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; }
.logo svg { width: 18px; height: 18px; fill: var(--faint); }
.logo .lit { fill: var(--accent); }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.links a:hover { color: var(--text); }
@media (max-width: 760px) { .links { display: none; } .nav-in .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 96px 0 104px; }
@media (max-width: 600px) { .hero { padding: 56px 0 72px; } }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; max-width: 17em; }
h1 span { color: var(--muted); }
.lede { margin: 22px 0 0; font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); max-width: 36em; }
.ctas { display: flex; align-items: center; gap: 22px; margin-top: 30px; }

/* Demo card */
.demo { margin-top: 64px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { background: none; border: 1px solid transparent; color: var(--muted); font: 500 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--card); border-color: var(--line-2); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px -40px rgba(0,0,0,0.9); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.call { font: 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.dim { color: var(--faint); }
.act { color: var(--text); }
.verdict { flex: none; font: 500 13px/1 var(--mono); padding: 7px 10px; border-radius: 6px; border: 1px solid; }
.verdict.ask { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.verdict.allow { color: var(--allow); border-color: color-mix(in srgb, var(--allow) 40%, transparent); background: color-mix(in srgb, var(--allow) 8%, transparent); }
.verdict.deny { color: var(--deny); border-color: color-mix(in srgb, var(--deny) 40%, transparent); background: color-mix(in srgb, var(--deny) 8%, transparent); }

.rows { list-style: none; margin: 0; padding: 8px 0; }
.rows li { display: grid; grid-template-columns: 22px 92px 1fr auto; gap: 12px; align-items: center; padding: 11px 22px; font-size: 15px; border-left: 2px solid transparent; transition: background 0.25s; }
@media (max-width: 600px) { .rows li { grid-template-columns: 18px 70px 1fr; padding: 10px 16px; } .rows .tag { grid-column: 3; } }
.rows .ico { color: var(--faint); font: 13px/1 var(--mono); }
.rows .gate { color: var(--muted); font: 13px/1 var(--mono); }
.rows .val { color: var(--text); }
.rows .tag { font: 12px/1 var(--mono); color: var(--faint); }
.rows li.decided { background: color-mix(in srgb, var(--accent) 6%, transparent); border-left-color: var(--accent); }
.rows li.decided .ico, .rows li.decided .tag { color: var(--accent); }
.say { margin: 0; padding: 16px 22px 20px; border-top: 1px solid var(--line); font-size: 17px; color: var(--text); }
.say::before { content: "Agent  "; font: 12px/1 var(--mono); color: var(--faint); margin-right: 8px; }
.note { margin: 14px 2px 0; color: var(--muted); font-size: 14.5px; min-height: 3em; max-width: 46em; }

/* Sections */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 72px 0; } }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; gap: 28px; } }
.item h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; }
.item p { margin: 0; color: var(--muted); font-size: 15px; }

.stats-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .stats-in { grid-template-columns: 1fr; } }
.stats b { display: block; font-size: clamp(56px, 8vw, 88px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stats-in > div:nth-child(2) b { color: var(--accent); }
.stats p { margin: 14px 0 8px; color: var(--muted); font-size: 17px; max-width: 24em; }
.stats a { font: 12px/1 var(--mono); color: var(--faint); }
.stats-line { grid-column: 1 / -1; margin: 16px 0 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; letter-spacing: -0.01em; max-width: 32em; }

.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }
.steps { margin: 32px 0 0; padding-left: 20px; display: grid; gap: 14px; color: var(--muted); }
.steps b { color: var(--text); font-weight: 500; }
.code { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.code-bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--muted); }
.code pre { margin: 0; padding: 20px; font: 13.5px/1.75 var(--mono); overflow-x: auto; }
.code code { color: var(--text); }
.code .k { color: #c4a7f0; }
.code .f { color: #8fb8ff; }
.code .s { color: #a6d99a; }
.code .c { color: var(--faint); }

.levels { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 760px) { .levels { grid-template-columns: repeat(2, 1fr); } }
.levels li { padding: 20px 18px; font-weight: 500; font-size: 15px; border-right: 1px solid var(--line); }
.levels li:last-child { border-right: 0; }
@media (max-width: 760px) { .levels li { border-bottom: 1px solid var(--line); } }
.levels li span { display: block; font: 12px/1 var(--mono); color: var(--faint); margin-bottom: 10px; }

.access-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.access .sub { margin-left: auto; margin-right: auto; }
.form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; width: 100%; max-width: 720px; margin-top: 36px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.form input { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 15px var(--sans); min-width: 0; }
.form input::placeholder { color: var(--faint); }
.form .btn { height: 40px; }
.form-msg { grid-column: 1 / -1; margin: 6px 0 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-msg.ok { color: var(--allow); }
.form-msg.err { color: var(--deny); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--faint); font-size: 13px; }
.foot-in { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-in span:first-child { color: var(--muted); font-weight: 500; }
.foot-in span:nth-child(2) { flex: 1; }

/* Throttle bot illustration */
.botfig { margin: 48px 0 0; padding: 28px 24px 18px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(600px 240px at 70% 100%, color-mix(in srgb, var(--accent) calc(var(--heat, 0) * 14%), transparent), transparent 70%), var(--card); }
.botfig svg { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; overflow: visible; }
.botfig figcaption { text-align: center; margin-top: 10px; font: 500 14px/1 var(--mono); color: var(--muted); }
.botfig figcaption span { color: var(--accent); margin-right: 6px; }
.ground { stroke: var(--line-2); stroke-width: 2; }
.body { fill: #e9e9ec; }
.visor { fill: #17171a; }
.eye { fill: var(--text); }
.mouth { fill: #3a3a40; }
.leg { fill: #c9c9ce; }
.antenna-stick { fill: #c9c9ce; }
.antenna { fill: var(--allow); transition: fill 0.4s; }
.arm { stroke: #c9c9ce; stroke-width: 12; stroke-linecap: round; }
.base { fill: #1c1c20; stroke: var(--line-2); stroke-width: 2; }
.ticks text { font: 500 10px var(--mono); fill: var(--faint); }
.stick { fill: #8b8b92; }
.knob { fill: var(--accent); }
.pivot { fill: #2a2a2f; stroke: #8b8b92; stroke-width: 2; }
.speed rect { fill: var(--muted); opacity: 0; transition: opacity 0.4s; }
.sweat { fill: #8fb8ff; opacity: 0; transition: opacity 0.3s; }
.sparks path { fill: var(--accent); opacity: 0; }
.bot.shake #bot-inner { animation: shake 0.12s infinite; }
.bot.shake-hard #bot-inner { animation: shake-hard 0.08s infinite; }
.sparks.on path { animation: spark 0.35s infinite alternate; }
.sparks.on path:nth-child(2) { animation-delay: 0.12s; }
.sparks.on path:nth-child(3) { animation-delay: 0.22s; }
.speed.go rect { animation: dash 0.5s linear infinite; }
@keyframes shake { 0%,100% { transform: translate(0,0); } 50% { transform: translate(1.5px,-1px); } }
@keyframes shake-hard { 0% { transform: translate(0,0) rotate(0); } 25% { transform: translate(3px,-2px) rotate(1deg); } 75% { transform: translate(-3px,1px) rotate(-1deg); } }
@keyframes spark { from { opacity: 0.2; transform: scale(0.8); } to { opacity: 1; transform: scale(1.1); } }
@keyframes dash { from { transform: translateX(20px); } to { transform: translateX(-20px); } }
.sparks path { transform-box: fill-box; transform-origin: center; }
.levels li { transition: background 0.3s, color 0.3s; }
.levels li.on { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.levels li.on span { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .bot.shake #bot-inner, .bot.shake-hard #bot-inner, .sparks.on path, .speed.go rect { animation: none; } }

/* Conversation example */
.convo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .convo { grid-template-columns: 1fr; } }
.convo-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.facts { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 6px 0; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 10px 16px; }
@media (max-width: 600px) { .fact { grid-template-columns: 1fr; gap: 6px; } }
.fact > span { font: 13px/1.2 var(--mono); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pills button { background: none; border: 1px solid var(--line-2); color: var(--muted); font: 500 13px/1 var(--sans); padding: 7px 10px; border-radius: 999px; cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.pills button:hover { color: var(--text); }
.pills button[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.pills button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.5; }
.msg b { display: block; font: 500 11.5px/1 var(--mono); color: var(--faint); margin-bottom: 6px; }
.msg-user { align-self: flex-end; background: #1d1d21; border: 1px solid var(--line-2); border-bottom-right-radius: 4px; }
.msg-agent { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; transition: border-color 0.3s; }
.msg-agent.flash { border-color: var(--accent); }
.convo-code pre { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.convo-code .hl { color: var(--accent); }

/* Run it, don't redeploy it */
.ops { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .ops { grid-template-columns: 1fr; gap: 32px; } }
.ops-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 0; min-width: 0; }
.ops-row { display: grid; grid-template-columns: 150px 1fr 120px; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .ops-row { grid-template-columns: 1fr; gap: 8px; } }
.ops-label b { display: block; font: 500 13px/1.3 var(--mono); color: var(--text); }
.ops-label span { font-size: 13px; color: var(--faint); }
.bar { position: relative; height: 8px; border-radius: 4px; background: #1a1a1e; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--text); opacity: 0.85; }
.bar em { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--faint); }
.ops-num { font: 500 15px/1.2 var(--mono); text-align: right; }
@media (max-width: 600px) { .ops-num { text-align: left; } }
.ops-num span { display: block; font: 12px/1.4 var(--sans); color: var(--faint); }
.audit { list-style: none; margin: 0; padding: 10px 20px 8px; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.audit span { display: inline-block; width: 74px; font: 12px var(--mono); color: var(--faint); }
.audit b { color: var(--text); font-weight: 500; }
.ops-points { display: grid; gap: 28px; }
