/* SEEK landing page · palette lifted from crates/seek-tui/src/theme.rs (tokyonight storm).
   The logo bitmap, shimmer wave and glyphs mirror the real ratatui interface. */
:root {
  --bg: #100e15;
  --surface: #1a1722;
  --surface-2: #221f2c;
  --cube-dark: #2f2b3c;
  --cube-light: #cbc6dd;
  --text: #d2cde1;
  --text-dim: #a09ab0;
  --dim: #6b647b;
  --accent: #9a8fc7;
  --accent-2: #c1a4e8;
  --border: #292534;
  --border-active: #423a55;
  --warn: #d3a45d;
  --error: #df7189;
  --radius: 8px;
  --mono: "JetBrains Mono", "Source Code Pro", monospace;
  --display: "JetBrains Mono", "Source Code Pro", monospace;
  --sans: "JetBrains Mono", "Source Code Pro", monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cube-light); }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
section[id] { scroll-margin-top: 82px; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 16px; color: var(--bg); }
.build-strip { display: flex; justify-content: space-between; gap: 16px; padding: 6px 20px; background: #0b0910; border-bottom: 1px solid var(--border); color: var(--dim); font-family: var(--mono); font-size: .62rem; letter-spacing: .13em; text-transform: lowercase; white-space: nowrap; overflow: hidden; }
.build-strip .bs-mid { color: var(--accent-2); }

/* ---------- Topic browser (replaces the header) ---------- */
.topic-browser { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 196px; display: flex; flex-direction: column; background: #0c0a11; border-right: 1px solid var(--border); padding: 18px 12px; }
.tb-list { display: flex; flex-direction: column; gap: 2px; flex: 1; padding-top: 14px; }
.tb-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-left: 2px solid transparent; color: var(--text-dim); font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.tb-item:hover { background: var(--surface); color: var(--cube-light); }
.tb-item.active { border-left-color: var(--accent-2); background: var(--surface); color: var(--cube-light); }
.tb-num { color: var(--dim); font-size: .66rem; }
.tb-item.active .tb-num { color: var(--accent-2); }
.tb-gh { display: block; text-align: center; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--text-dim); }
.tb-gh:hover { border-color: var(--accent-2); color: var(--cube-light); }
@media (min-width: 1024px) { body { padding-left: 196px; } }
@media (max-width: 1023px) {
  .topic-browser { position: sticky; top: 0; width: 100%; flex-direction: row; align-items: center; gap: 12px; padding: 9px 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .tb-list { flex-direction: row; gap: 4px; flex: none; padding-top: 0; }
  .tb-item { padding: 6px 9px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .tb-item.active { border-left-color: transparent; border-bottom-color: var(--accent-2); }
  .tb-num { display: none; }
  .tb-gh { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 650; font-size: .95rem; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-2); color: #120e18; }
.btn-primary:hover { background: #d8bcf7; color: #120e18; box-shadow: 0 8px 24px rgba(193,164,232,.22); }
.btn-outline { border-color: var(--border-active); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { border-color: var(--border); color: var(--text-dim); padding: 9px 16px; font-size: .88rem; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn { background: var(--cube-dark); color: var(--text-dim); border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; font-size: .76rem; font-family: var(--mono); margin-top: 10px; }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pixel logo: the real 25x9 bitmap ---------- */
.pixel-logo { font-family: var(--mono); font-size: clamp(7px, 1.45vw, 13px); line-height: 1.03; letter-spacing: 0; user-select: none; }
.pixel-row { white-space: pre; }
.px.dark { color: transparent; }
.px.lit { color: #787485; animation: px-shine 4s linear infinite; animation-delay: calc(var(--d) * -4s); }
.px.dim { color: #2f2b3c; animation: px-dim-shine 4s linear infinite; animation-delay: calc(var(--d) * -4s); }
@keyframes px-shine { 0% { color: #787485; } 8% { color: var(--cube-light); } 26%, 100% { color: #787485; } }
@keyframes px-dim-shine { 0% { color: #2f2b3c; } 8% { color: #a09ab0; } 26%, 100% { color: #2f2b3c; } }
.pixel-logo-half { font-size: clamp(9px, 1.9vw, 18px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 76px; border-bottom: 1px solid var(--border); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(203,198,221,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(203,198,221,.045) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 100%); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .pixel-logo { margin-bottom: 30px; filter: drop-shadow(0 6px 26px rgba(192,202,245,.12)); transition: filter .3s ease, transform .3s ease; cursor: crosshair; }
.hero .pixel-logo:hover { filter: drop-shadow(0 0 22px rgba(187,154,247,.45)); transform: translateY(-2px); }
.hero .pixel-logo:hover .px.lit { animation: px-shine 1.1s linear infinite, px-twinkle .75s ease-in-out infinite; animation-delay: calc(var(--d) * -4s), calc(var(--i) * 14ms); }
.hero .pixel-logo:hover .px.dim { animation-duration: 1.1s; }
@keyframes px-twinkle { 0%, 100% { opacity: .72; } 50% { opacity: 1; text-shadow: 0 0 9px rgba(187,154,247,.85); } }
.pixel-mark { display: inline-block; font-family: var(--mono); font-size: 3px; line-height: 1; letter-spacing: 0; white-space: pre; user-select: none; vertical-align: middle; cursor: crosshair; }
.pixel-mark:hover .px.lit { animation: px-shine 1.1s linear infinite, px-twinkle .8s ease-in-out infinite; animation-delay: calc(var(--d) * -4s), calc(var(--i) * 18ms); }
.hero h1 { font-family: var(--mono); font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.18; letter-spacing: -.055em; margin: 0 0 18px; font-weight: 700; text-transform: lowercase; }
.gradient-text { color: #d6c1f0; }
.impact { color: #8f899f; white-space: nowrap; }
.impact span { display: inline-block; animation: impact-sheen 3.2s linear infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes impact-sheen { 0%, 100% { color: #8f899f; text-shadow: none; } 9% { color: #fff3ff; text-shadow: 0 0 16px rgba(226,205,255,.75); } 30% { color: #8f899f; text-shadow: none; } }
.impact:hover span { animation: none; }
.lede { max-width: 660px; color: var(--text-dim); font-size: 1.08rem; margin: 0 0 30px; }
.install-box { display: flex; align-items: center; gap: 12px; width: min(760px, 100%); background: var(--surface); border: 1px solid var(--border-active); border-radius: 10px; padding: 8px 8px 8px 16px; font-family: var(--mono); box-shadow: var(--shadow); }
.prompt-sign { color: var(--accent); font-weight: 700; }
.install-box code { flex: 1; min-width: 0; text-align: left; color: var(--cube-light); overflow-wrap: anywhere; line-height: 1.4; font-size: .74rem; }
.os-tag { flex: none; color: var(--accent-2); border: 1px solid var(--border-active); border-radius: 4px; padding: 2px 7px; font-size: .62rem; letter-spacing: .1em; }
.install-note { margin: 10px 0 0; color: var(--dim); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; }
.copy-btn { background: var(--cube-dark); color: var(--text); border: 0; border-radius: 7px; padding: 8px 14px; font-size: .82rem; font-weight: 600; }
.copy-btn:hover { background: var(--border-active); }
.copy-btn.copied { background: var(--accent); color: var(--bg); }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-facts { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin: 46px 0 0; padding: 0; color: var(--dim); font-size: .84rem; font-family: var(--mono); }
.hero-facts strong { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #14121b; border-block: 1px solid var(--border); }
.section-pieces { position: relative; overflow: hidden; background: #12101a; border-top: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head h2, .extend-grid h2, .cta h2 { font-family: var(--mono); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 500; text-transform: lowercase; }
.section-sub { color: var(--text-dim); margin: 0; }
.section-sub.left { text-align: left; }
code { color: var(--accent); }

/* ---------- Repo pulse ---------- */
.pulse-panel { background: var(--surface); border: 1px solid var(--border-active); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pulse-cell { background: var(--bg); padding: 20px; }
.pulse-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; color: var(--dim); margin-bottom: 12px; }
.pulse-bar { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .12em; color: var(--accent-2); white-space: nowrap; overflow: hidden; margin-bottom: 8px; }
.pulse-value { font-family: var(--mono); font-size: 1.4rem; color: var(--cube-light); }
.pulse-detail { font-family: var(--mono); font-size: .76rem; color: var(--text-dim); margin-top: 6px; word-break: break-word; }
.pulse-detail.dim { color: var(--dim); }
.pulse-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-family: var(--mono); font-size: .68rem; color: var(--dim); }
.pulse-foot .mini-btn { margin-top: 0; }

/* ---------- Interface specimens ---------- */
.specimen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.specimen { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; min-height: 280px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.specimen:hover { border-color: rgba(187,154,247,.55); box-shadow: 0 0 0 1px rgba(187,154,247,.12), 0 18px 45px rgba(80,45,140,.28); transform: translateY(-2px); }
.specimen-label { font-family: var(--mono); font-size: .67rem; letter-spacing: .16em; color: var(--accent); margin-bottom: 22px; }
.specimen p { color: var(--text-dim); font-size: .88rem; margin: 18px 0 0; }
.specimen-logo { display: flex; flex-direction: column; align-items: flex-start; }
.specimen-logo .pixel-logo { margin: 12px 0 4px; }
.specimen-shimmer .shimmer-line { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .12em; white-space: pre; padding: 26px 0; }
.shimmer-line span { color: var(--bg); }
.shimmer-static { font-family: var(--mono); color: var(--text-dim); padding: 26px 0; font-size: 1rem; }

/* Prompt made of the real box-drawing glyphs */
.prompt-frame { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: .8rem; color: var(--border-active); overflow: visible; }
.pf-top, .pf-mid, .pf-bot { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pf-rule { flex: 1; border-top: 1px solid var(--border); min-width: 10px; }
.pf-rule-short { flex: 0 0 8px; }
.pf-model { color: var(--dim); }
.pf-arrow { color: var(--accent); }
#specInput { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-family: var(--mono); font-size: .8rem; padding: 0; }
#specInput::placeholder { color: var(--dim); }
.pf-hint { color: var(--dim); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; }
.completions { position: static; margin-top: 8px; background: var(--surface-2); border: 1px solid var(--border-active); border-radius: 8px; padding: 5px; }
.completion-item { display: flex; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text-dim); padding: 7px 10px; border-radius: 5px; font-family: var(--mono); font-size: .78rem; }
.completion-item:hover, .completion-item.active { background: var(--cube-dark); color: var(--cube-light); }
.completion-item .c-marker { color: var(--accent); }
.completion-item .c-detail { margin-left: auto; color: var(--dim); }

/* Transcript rails */
.rail-stack { display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: .8rem; }
.rail-block { display: flex; gap: 10px; align-items: flex-start; }
.rail-block .rail { font-weight: 700; }
.rail-user .rail { color: var(--accent); }
.rail-assistant .rail { color: var(--accent-2); }
.rail-tool .rail { color: var(--dim); }
.rail-user .rail-text { background: var(--surface-2); padding: 6px 10px; border-radius: 5px; width: 100%; color: var(--cube-light); }
.rail-assistant .rail-text { color: var(--text); }
.rail-tool .rail-text { color: var(--text-dim); }
.arrow { color: var(--accent); margin-right: 4px; }
.tool-ico { color: var(--accent); }
.tool-path { color: var(--text); }

/* Footer specimen */
.footer-specimen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: .74rem; }
.mode-chip { background: var(--warn); color: var(--bg); border: 0; border-radius: 4px; padding: 3px 9px; font-family: var(--mono); font-size: .72rem; font-weight: 800; }
.fs-model { color: var(--text); }
.fs-place, .fs-metrics { color: var(--dim); }
.fs-metrics { margin-left: auto; }

/* Pixel rule */
.pixel-rule { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .14em; white-space: nowrap; color: var(--cube-light); padding: 30px 0; overflow: hidden; }
.pixel-rule span:nth-child(4), .pixel-rule span:nth-child(9) { color: var(--accent); }
.pixel-rule span:nth-child(5), .pixel-rule span:nth-child(8) { color: var(--accent-2); }

/* ---------- More pieces: widgets, permissions, context, processes, toggles, wordmark ---------- */
.pieces-grid .piece { min-height: 270px; }
.glyph-panel { font-family: var(--mono); font-size: .72rem; line-height: 1.45; white-space: pre; color: var(--text-dim); overflow-x: auto; transition: color .25s ease, text-shadow .25s ease; }
.glyph-panel:hover, .glyph-panel:focus-visible { color: var(--cube-light); text-shadow: 0 0 12px rgba(187,154,247,.55); }
.widget-row { display: flex; gap: 18px; flex-wrap: wrap; }
.widget-row .glyph-panel { flex: 1; min-width: 210px; }

.permission-panel { font-family: var(--mono); font-size: .8rem; }
.perm-q { color: var(--warn); font-weight: 700; }
.perm-mark { color: var(--warn); }
.perm-summary { color: var(--dim); margin: 2px 0 12px; }
.perm-choices { display: flex; flex-direction: column; gap: 2px; }
.perm-choice { display: block; text-align: left; background: none; border: 0; color: var(--text); font-family: var(--mono); font-size: .8rem; padding: 5px 9px; border-radius: 4px; }
.perm-choice .pm { color: var(--warn); }
.perm-choice.selected { background: var(--warn); color: #2a2313; font-weight: 700; }
.perm-choice.selected .pm { color: #2a2313; }
.perm-choice:not(.selected) .pm { color: transparent; }
.perm-choice:hover:not(.selected) { background: var(--cube-dark); }
.perm-hint { color: var(--dim); font-size: .68rem; margin-top: 12px; font-style: italic; }

.context-panel { font-family: var(--mono); }
.ctx-line { font-size: 1.2rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.ctx-bar span { color: var(--cube-dark); transition: color .2s ease, text-shadow .2s ease; }
.ctx-bar span.filled { color: var(--accent); }
.ctx-bar:hover span.filled { color: var(--accent-2); text-shadow: 0 0 10px rgba(187,154,247,.7); animation: ctx-wave .6s ease-in-out infinite; animation-delay: calc(var(--i) * 28ms); }
@keyframes ctx-wave { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.ctx-nums { color: var(--text-dim); font-size: .82rem; margin-top: 10px; }

.process-list { font-family: var(--mono); font-size: .76rem; }
.process-row { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-bottom: 1px solid var(--border); transition: background .2s ease, padding-left .2s ease; }
.process-row:hover { background: rgba(187,154,247,.08); padding-left: 12px; }
.pmark { color: var(--accent-2); }
.pname { color: var(--text); width: 36px; }
.pcmd { color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstatus { color: var(--warn); }
.pstatus.done { color: var(--dim); }

.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); font-family: var(--mono); font-size: .76rem; padding: 8px 10px; text-align: left; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.toggle:hover { border-color: var(--accent-2); color: var(--cube-light); transform: translateX(3px); }
.toggle .tbox { color: var(--dim); margin-right: 4px; }
.toggle.on .tbox { color: var(--accent-2); }

.pixel-word { font-family: var(--mono); line-height: 1; font-size: clamp(10px, 2vw, 16px); white-space: pre; margin: 8px 0 18px; }
.pixel-word span { color: var(--cube-dark); }
.pixel-word span.on { color: #8f7fc4; transition: color .2s ease, text-shadow .2s ease; }
.pixel-word:hover span.on { animation: word-wave .7s ease-in-out infinite; animation-delay: calc(var(--i) * 22ms); color: var(--accent-2); text-shadow: 0 0 10px rgba(187,154,247,.65); }
@keyframes word-wave { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.pixel-ticker { font-family: var(--mono); color: var(--dim); letter-spacing: .1em; font-size: .95rem; overflow: hidden; white-space: nowrap; }
.pixel-ticker span { display: inline-block; transition: color .2s ease, transform .2s ease; }
.pixel-ticker:hover span { animation: ticker-wave .8s ease-in-out infinite; animation-delay: calc(var(--i) * 45ms); color: var(--accent-2); }
@keyframes ticker-wave { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Feature / model cards ---------- */
.feature-grid, .model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .model-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px 26px; transition: border-color .2s ease, transform .2s ease; }
.feature-card:hover, .model-card:hover { border-color: var(--accent-2); box-shadow: 0 0 0 1px rgba(187,154,247,.14), 0 18px 42px rgba(80,45,140,.3); transform: translateY(-3px); }
.feature-num { font-family: var(--mono); color: var(--accent); font-size: .78rem; margin-bottom: 14px; }
.feature-card h3, .model-card h3 { font-family: var(--mono); margin: 0 0 8px; font-size: 1rem; font-weight: 500; letter-spacing: .01em; text-transform: lowercase; }
.feature-card p, .model-card p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.model-card.local { border-color: rgba(122,162,247,.45); }
.model-badge { position: absolute; bottom: 18px; right: 20px; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--accent); border: 1px solid var(--border-active); border-radius: 4px; padding: 2px 7px; }
.badge-alt { color: var(--accent-2); }
.fine-print { text-align: center; color: var(--dim); font-size: .8rem; margin: 28px auto 0; max-width: 700px; }

/* ---------- Extend ---------- */
.extend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-dim); font-size: .92rem; }
.check-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.fs-tree { background: var(--bg); border: 1px solid var(--border-active); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tree-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; color: var(--text); margin-bottom: 12px; }
.fs-tree pre { margin: 0; color: var(--text); font-size: .82rem; line-height: 1.8; overflow-x: auto; }
.t-dim { color: var(--dim); }
.t-dir { color: var(--accent); }

/* ---------- Roadmap ---------- */
.roadmap-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rt-row { display: grid; grid-template-columns: 150px 1fr 130px; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--border); font-size: .9rem; align-items: center; }
.rt-row:last-child { border-bottom: 0; }
.rt-row:nth-child(even):not(.rt-head) { background: rgba(41,46,66,.4); }
.rt-head { background: var(--surface); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--dim); }
.rt-row span:first-child { font-family: var(--mono); color: var(--text); }
.rt-row span:nth-child(2) { color: var(--text-dim); }
.done { color: var(--accent); font-family: var(--mono); font-size: .8rem; }
.wip { color: var(--warn); font-family: var(--mono); font-size: .8rem; }

/* ---------- CTA + Footer ---------- */
.cta { border-top: 1px solid var(--border); background: #16131f; }
.cta-inner { display: flex; align-items: center; gap: 24px; padding-block: 64px; }
.cta-mark { font-size: 9px; }
.cta-inner > div { flex: 1; }
.cta p { color: var(--text-dim); margin: 0; }
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 800; letter-spacing: .14em; }
.footer-inner > p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.site-footer nav a { color: var(--text-dim); font-size: .86rem; }
.site-footer .fine-print { color: var(--dim); font-size: .76rem; max-width: 620px; margin-top: 8px; }

/* ---------- Modal + toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10,12,20,.72); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--border-active); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-head h3 { margin: 6px 0 0; font-size: 1.35rem; }
.modal-close { background: none; border: 0; color: var(--dim); font-size: 1.6rem; line-height: 1; padding: 0 4px; }
.modal-close:hover { color: var(--text); }
.modal-group { margin-bottom: 18px; }
.modal-group-title { font-family: var(--mono); font-size: .72rem; color: var(--text); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.modal-group-title span { color: var(--dim); font-size: .66rem; }
.model-option { display: grid; grid-template-columns: 62px 1fr; grid-template-rows: auto auto; column-gap: 10px; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; margin-bottom: 8px; }
.model-option:hover, .model-option.selected { border-color: var(--accent); }
.local-tag, .cloud-tag { grid-row: 1 / 3; align-self: center; width: max-content; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; padding: 3px 6px; border-radius: 4px; }
.local-tag { color: var(--accent); border: 1px solid var(--border-active); }
.cloud-tag { color: var(--accent-2); border: 1px solid rgba(187,154,247,.4); }
.model-name { color: var(--text); font-family: var(--mono); font-size: .84rem; }
.model-desc { color: var(--dim); font-size: .74rem; }
.modal-note { margin: 6px 0 0; color: var(--dim); font-size: .76rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--accent); color: var(--bg); padding: 11px 20px; border-radius: 9px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .feature-grid, .model-grid { grid-template-columns: repeat(2, 1fr); }
  .extend-grid { gap: 36px; }
  .specimen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 56px; }
  .feature-grid, .model-grid { grid-template-columns: 1fr; }
  .extend-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .specimen { min-height: 0; padding: 22px; }
  .pulse-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-wrap: wrap; padding-block: 48px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .hero-facts { gap: 16px 22px; }
  .pf-hint { font-size: .6rem; }
  .prompt-frame { font-size: .72rem; }
  .footer-specimen { font-size: .68rem; }
  .fs-place { display: none; }
  .rt-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .rt-row span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .rt-row span:nth-child(3) { grid-column: 2; grid-row: 1; }
  .cta-mark { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .px.lit { animation: none; color: var(--cube-light); }
  .px.dim { animation: none; color: var(--dim); }
  .impact span { animation: none; color: var(--cube-light); }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
