:root {
  --bg: #f3f1ec;
  --surface: #fbfaf7;
  --surface2: #ece9e2;
  --ink: #141413;
  --ink2: #3d3c39;
  --mute: #7b7972;
  --line: #dcd8cf;
  --line2: #c9c4b9;
  --accent: #d9481f;
  --night: #050505;
  --night2: #171716;
  --night-line: #2a2926;
  --night-ink: #efede8;
  --night-mute: #8e8b84;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #181817;
    --surface2: #1f1f1d;
    --ink: #efede8;
    --ink2: #c9c6bf;
    --mute: #8c8981;
    --line: #2a2926;
    --line2: #3a3934;
    --accent: #f0643a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, textarea, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--mute); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.dn { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s, transform .15s; white-space: nowrap; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ink:hover { opacity: .86; }
.btn.paper { background: var(--night-ink); color: var(--night); }
.btn.paper:hover { opacity: .9; }
.btn.line { border-color: var(--line2); }
.btn.line:hover { border-color: var(--ink); }
.btn.ghost-night { border-color: #3a3934; color: var(--night-ink); }
.btn.ghost-night:hover { border-color: var(--night-mute); }
.btn:disabled { opacity: .45; cursor: wait; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--accent); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: background .25s, border-color .25s, color .25s; }
.top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 22px; font-size: 14px; margin-right: auto; }
.top nav a { color: var(--ink2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top.night { background: color-mix(in srgb, var(--night) 72%, transparent); border-color: transparent; color: var(--night-ink); }
.top.night nav a { color: #b9b6ae; }
.top.night nav a:hover { color: var(--night-ink); }
.top.night .btn.ink { background: var(--night-ink); color: var(--night); }
.has-night .top { position: fixed; left: 0; right: 0; }

/* ---------- home hero ---------- */
.hero { background: var(--night); color: var(--night-ink); padding-top: 60px; position: relative; overflow: hidden; }
.hero-copy { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 7vh, 80px) var(--pad) 0; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 13px var(--mono); color: var(--night-mute); margin-bottom: 26px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); flex: none; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.045em; line-height: .98; max-width: 14ch; }
.hero-row { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 28px; margin-top: 28px; }
.hero .lede { font-size: 18px; color: #b9b6ae; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scene { position: relative; max-width: 1480px; margin: clamp(8px, 3vw, 28px) auto 0; padding: 0 var(--pad); }
.scene-art { position: relative; }
.scene-art img { width: 100%; height: auto; image-rendering: pixelated; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 9%; aspect-ratio: 1; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.spot::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .2s, inset .2s; }
.spot:hover::after, .spot.on::after { border-color: rgba(239, 237, 232, .55); inset: 8%; }
.spot.talk::after { border-color: var(--accent); inset: 4%; animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.spot-card { position: absolute; z-index: 5; width: 260px; background: rgba(23, 23, 22, .94); border: 1px solid #34332f; border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spot-card.show { opacity: 1; transform: none; pointer-events: auto; }
.spot-card img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; object-position: 50% 20%; grid-row: span 3; }
.spot-card b { font-size: 16px; letter-spacing: -0.02em; }
.spot-card span { font: 11px var(--mono); color: var(--night-mute); }
.spot-card p { font-size: 13px; color: #c9c6bf; line-height: 1.4; }
.spot-card a { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: var(--night-ink); border-top: 1px solid #2f2e2a; padding-top: 8px; }
.spot-card a:hover { color: #fff; }
.now { max-width: var(--max); margin: -4% auto 0; padding: 0 var(--pad) 0; position: relative; z-index: 3; }
.now-line { display: flex; align-items: center; gap: 12px; font: 13px var(--mono); color: #c9c6bf; min-height: 22px; }
.now-line b { color: var(--night-ink); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); margin-top: 22px; }
.stats div { padding: 20px 18px 28px 0; display: grid; gap: 4px; }
.stats div + div { padding-left: 18px; border-left: 1px solid var(--night-line); }
.stats b { font: 500 24px var(--mono); letter-spacing: -0.02em; color: var(--night-ink); }
.stats span { font-size: 13px; color: var(--night-mute); }

/* ---------- sections ---------- */
.section { padding-top: clamp(80px, 10vw, 128px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 18ch; }
.section-head p { color: var(--ink2); }
.label { font: 12px var(--mono); color: var(--mute); margin-bottom: 14px; display: block; }

/* live read demo */
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.term { background: var(--night); color: var(--night-ink); font: 13px/1.75 var(--mono); padding: 18px 20px 22px; min-height: 420px; overflow-x: auto; }
.term-bar { display: flex; justify-content: space-between; color: var(--night-mute); font-size: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.term .ln { display: grid; grid-template-columns: 92px 1fr; gap: 14px; white-space: pre-wrap; word-break: break-word; animation: lnin .25s both; }
.term .ln.cmd { display: block; color: var(--night-ink); margin-bottom: 4px; }
.term .ln.cmd::before { content: '$ '; color: var(--night-mute); }
.term .ln.step { grid-template-columns: 1fr auto; color: var(--night-mute); }
.term .k { color: var(--night-mute); }
.term .v { color: var(--night-ink); }
.term .warn { color: var(--accent); }
.term .ok { color: #cfe0b5; }
.term .ln.done { display: block; color: var(--night-mute); margin-top: 8px; }
@keyframes lnin { from { opacity: 0; transform: translateY(3px); } }
.demo-side { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.demo-side h3 { font-size: 24px; }
.demo-side p { color: var(--ink2); font-size: 15px; }
.addr { display: flex; gap: 8px; margin-top: auto; }
.addr input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg); padding: 0 12px; font: 13px var(--mono); }
.addr input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 5px 9px; font: 12px var(--mono); color: var(--ink2); cursor: pointer; }
.presets button:hover { border-color: var(--ink); color: var(--ink); }

/* chat + discussion */
.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; }
.card { border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.card-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 58px; }
.card-bar .title { font-weight: 500; font-size: 14px; }
select { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237b7972' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center; border: 1px solid var(--line2); border-radius: 7px; height: 34px; padding: 0 30px 0 11px; font-size: 14px; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: 0; border-radius: 6px; padding: 5px 11px; font-size: 13px; color: var(--mute); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chat { flex: 1; min-height: 360px; max-height: 560px; overflow-y: auto; padding: 6px 16px; }
.chat-empty { padding: 22px 0; }
.chat-empty p { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.chips { display: grid; gap: 6px; }
.chips button { text-align: left; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--ink2); cursor: pointer; overflow-wrap: anywhere; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.msg-user { margin: 16px 0 4px auto; max-width: 85%; width: fit-content; background: var(--ink); color: var(--bg); padding: 9px 13px; border-radius: 10px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.turn:last-child { border-bottom: 0; }
.turn img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; object-position: 50% 20%; }
.turn header { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin-bottom: 3px; }
.turn header b { font-weight: 600; }
.turn header span { color: var(--mute); font: 11px var(--mono); }
.turn p { font-size: 14px; color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.turn.typing p::after { content: ''; display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; }
textarea { width: 100%; background: none; border: 0; resize: none; font-size: 15px; outline: none; min-height: 48px; }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hint { font-size: 12px; color: var(--mute); }
.err { color: var(--accent); font-size: 14px; padding: 12px 0; }
.talk-q { padding: 14px 16px 0; font-weight: 500; font-size: 15px; }
.talk-feed { flex: 1; padding: 0 16px; max-height: 560px; overflow-y: auto; }
.talk-wait { padding: 30px 0; color: var(--mute); font-size: 14px; }
.card-note { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
select:focus-visible, textarea:focus-visible, .btn:focus-visible, .seg button:focus-visible, .chips button:focus-visible, .spot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* agents grid */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent { border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .2s; }
.agent:hover { border-color: var(--ink); }
.agent-photo { aspect-ratio: 4 / 3; background: #111; overflow: hidden; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.agent:hover .agent-photo img { transform: scale(1.03); }
.agent-body { padding: 16px; display: grid; gap: 6px; flex: 1; }
.agent-top { display: flex; justify-content: space-between; align-items: baseline; }
.agent h3 { font-size: 22px; }
.agent .meta { font: 12px var(--mono); color: var(--mute); }
.agent p { font-size: 14px; color: var(--ink2); }
.agent-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.agent-foot .src { color: var(--mute); }
.agent-foot b { font-weight: 500; }

/* sources table */
.table { border-top: 1px solid var(--ink); }
.tr { display: grid; grid-template-columns: 110px 190px minmax(0, 1fr) 120px; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.tr.th { font-size: 12px; color: var(--mute); padding: 10px 0; }
.tr span:first-child { font-weight: 500; }
.tr.th span:first-child { font-weight: 400; }
.more { margin-top: 22px; font-size: 15px; }

/* ---------- agent page ---------- */
.crumbs { font: 13px var(--mono); color: var(--mute); padding-top: 32px; }
.crumbs a:hover { color: var(--ink); }
.ag-head { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 28px 0 0; align-items: start; }
.ag-photo { border-radius: 14px; overflow: hidden; background: #111; aspect-ratio: 1; }
.ag-photo img { width: 100%; height: 100%; object-fit: cover; }
.ag-info { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.ag-info .meta { font: 13px var(--mono); color: var(--mute); }
.ag-info h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -0.05em; line-height: .9; }
.ag-info .tagline { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; max-width: 26ch; }
.ag-info .does { color: var(--ink2); font-size: 16px; max-width: 54ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 14px 14px 14px 0; display: grid; gap: 2px; font-size: 14px; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font: 12px var(--mono); color: var(--mute); }
.tool { margin-top: clamp(56px, 7vw, 88px); }
.tool-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tool-head h2 { font-size: clamp(26px, 3vw, 36px); }
.tool-head .upd { font: 12px var(--mono); color: var(--mute); }
.grid-table { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.gt-row { display: grid; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.gt-row:last-child { border-bottom: 0; }
.gt-row.h { font: 12px var(--mono); color: var(--mute); background: var(--surface2); }
.gt-row .num { font-family: var(--mono); font-size: 13px; text-align: right; }
.gt-row .sym { font-weight: 600; }
.gt-row .sub { color: var(--mute); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-row a:hover .sym { text-decoration: underline; }
.bar { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.bar.grad i { background: var(--accent); }
.pons .gt-row { grid-template-columns: minmax(0, 2fr) 120px 90px 90px 70px 70px; }
.stocks .gt-row { grid-template-columns: minmax(0, 2fr) 110px 90px 110px 110px; }
.gt-row.h button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: right; }
.gt-row.h button[aria-sort] { color: var(--ink); }
.search { height: 38px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); padding: 0 12px; font-size: 14px; width: 220px; }
.read-card { border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); }
.read-card .addr { padding: 14px; border-bottom: 1px solid var(--line); margin: 0; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; }
.kv dt, .kv dd { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--mute); font: 12px/1.9 var(--mono); }
.kv dd { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.kv dd.flag { color: var(--accent); }
.flow { display: grid; gap: 12px; padding: 16px; }
.flow-row { display: grid; grid-template-columns: 170px 1fr 90px; gap: 14px; align-items: center; font-size: 13px; }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface2); }
.split i { background: var(--ink); }
.split s { background: var(--accent); }
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.examples button { text-align: left; border: 1px solid var(--line2); background: var(--surface); border-radius: 10px; padding: 16px; font-size: 15px; cursor: pointer; line-height: 1.4; }
.examples button:hover { border-color: var(--ink); }
.examples button span { display: block; font: 12px var(--mono); color: var(--mute); margin-bottom: 6px; }
.others { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.others a { display: grid; gap: 6px; font-size: 13px; }
.others img { aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 8px; filter: grayscale(1); opacity: .85; transition: opacity .15s; }
.others a:hover img { opacity: 1; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 40px; }
.toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc p { font: 12px var(--mono); color: var(--mute); margin: 14px 0 6px; }
.toc p:first-child { margin-top: 0; }
.toc a { color: var(--ink2); padding: 4px 0 4px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); }
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.045em; margin-bottom: 18px; }
.doc .intro { font-size: 19px; color: var(--ink2); margin-bottom: 8px; }
.doc h2 { font-size: 28px; margin: 64px 0 14px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 32px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { font-size: 16px; color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.doc code { font: 13.5px var(--mono); background: var(--surface2); padding: 1px 5px; border-radius: 4px; }
.doc pre { background: var(--night); color: var(--night-ink); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 14px 0; font: 13px/1.65 var(--mono); }
.doc pre code { background: none; padding: 0; font: inherit; color: inherit; }
.doc pre .c { color: var(--night-mute); }
.endpoint { display: flex; align-items: center; gap: 10px; margin: 28px 0 8px; font: 14px var(--mono); }
.endpoint b { font-weight: 500; font-size: 11px; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--bg); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th { text-align: left; font: 12px var(--mono); color: var(--mute); font-weight: 400; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); }
.doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink2); vertical-align: top; }
.doc td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.log { border-left: 1px solid var(--line); padding-left: 18px; display: grid; gap: 22px; margin-top: 18px; }
.log div { position: relative; }
.log div::before { content: ''; position: absolute; left: -22.5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.log time { font: 12px var(--mono); color: var(--mute); }
.log p { margin-top: 4px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 56px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand div { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 6px; }
.foot-brand p { font-size: 14px; color: var(--mute); max-width: 30ch; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.foot-col p { font: 12px var(--mono); color: var(--mute); margin-bottom: 4px; }
.foot-col a { color: var(--ink2); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font: 12px var(--mono); color: var(--mute); flex-wrap: wrap; }
.ca { display: flex; align-items: center; gap: 10px; }
.ca code { font: 12px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.ca button { background: none; border: 1px solid var(--line2); border-radius: 5px; padding: 3px 8px; font-size: 12px; cursor: pointer; }
.ca[hidden] { display: none; }

@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; }
  .term { min-height: 0; }
  .duo { grid-template-columns: 1fr; }
  .agents { grid-template-columns: repeat(2, 1fr); }
  .ag-head { grid-template-columns: 1fr; }
  .ag-photo { max-width: 420px; aspect-ratio: 4 / 3; }
  .ag-photo img { object-position: 50% 20%; }
  .others { grid-template-columns: repeat(4, 1fr); }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--night-line); }
}
@media (max-width: 720px) {
  .top nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero-row, .section-head { grid-template-columns: 1fr; }
  .now { margin-top: 0; }
  .spot-card { width: 230px; }
  .tr { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .tr span:nth-child(3) { grid-column: 1 / -1; color: var(--ink2); font-size: 14px; }
  .tr span:nth-child(4) { text-align: right; }
  .tr.th span:nth-child(3) { display: none; }
  .agents { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pons .gt-row { grid-template-columns: minmax(0, 1fr) 90px 80px; }
  .pons .gt-row > :nth-child(n+4) { display: none; }
  .stocks .gt-row { grid-template-columns: minmax(0, 1fr) 90px 80px; }
  .stocks .gt-row > :nth-child(n+4) { display: none; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .flow-row { grid-template-columns: 1fr 70px; }
  .flow-row .split { grid-column: 1 / -1; grid-row: 2; }
  .examples { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
