@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Geist:wght@400;500;600&family=Martian+Mono:wght@400;500;600&family=Doto:wght@900&display=swap');

/* Q-DAY — quantum control room */
:root {
  --bg: #020405; --bg2: #050a0b; --panel: rgba(6,14,15,.82); --panel2: #071213;
  --line: rgba(125,255,207,.14); --line2: rgba(125,255,207,.28); --grid: rgba(125,255,207,.05);
  --text: #ecfff8; --muted: #8fb3a7; --dim: #4c6d63;
  --ph: #7dffcf; --cyan: #4fe3ff; --violet: #a78bff; --green: #7dffcf; --amber: #ffb000; --pink: #ff5fd2; --red: #ff3b5c;
  --mono: 'Martian Mono', ui-monospace, monospace; --dot: 'Doto', 'Martian Mono', monospace;
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --sans: 'Geist', system-ui, sans-serif; --serif: var(--display);
  --glow: 0 0 12px rgba(125,255,207,.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
body { font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; letter-spacing: -.01em; }
body::before { /* blueprint grid */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 90%);
}
body::after { /* CRT scanlines + vignette */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.45) 100%);
}
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .92; } 48% { opacity: 1; } 83% { opacity: .96; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: var(--text); }
.wrap { position: relative; z-index: 1; width: min(1480px, calc(100% - 28px)); margin: 0 auto; }
.mono { font-family: var(--mono); }
.grad { color: var(--ph); text-shadow: var(--glow); }
.muted { color: var(--muted); }
::selection { background: var(--ph); color: #000; }

/* top bar — no divider line by design */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(2,4,5,.86); backdrop-filter: blur(8px); }
header.top .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.logo { font-family: var(--mono); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .14em; }
.logo .glyph { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--ph); color: var(--ph); box-shadow: var(--glow), inset 0 0 10px rgba(125,255,207,.3); font-family: var(--dot); font-size: 18px; font-weight: 900; }
.logo .dash { color: var(--ph); } .logo small { color: var(--muted); font-weight: 400; letter-spacing: .08em; margin-left: 6px; }
nav.links { display: flex; gap: 2px; }
nav.links a { font-family: var(--mono); padding: 7px 11px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: .15s; }
nav.links a:hover { color: var(--text); }
nav.links a.on { color: #000; background: var(--ph); box-shadow: var(--glow); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.utc { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.threat-chip { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(255,59,92,.5); color: #ffb3c0; font-size: 11px; letter-spacing: .1em; }
.threat-chip i { width: 7px; height: 7px; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.btn { font-family: var(--mono); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: .15s; white-space: nowrap; border: 1px solid var(--line2); }
.btn.primary { background: var(--ph); color: #021; border-color: var(--ph); box-shadow: 0 0 24px rgba(125,255,207,.35); }
.btn.primary:hover { box-shadow: 0 0 40px rgba(125,255,207,.6); filter: brightness(1.08); }
.btn.ghost { background: rgba(125,255,207,.03); }
.btn.ghost:hover { border-color: var(--ph); color: var(--ph); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 10.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.burger { display: none; }

/* panels */
.card, .panel { position: relative; background: var(--panel); border: 1px solid var(--line); }
.term::before, .coin::before { /* corner brackets */
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--ph), var(--ph)) top left / 10px 1px no-repeat, linear-gradient(var(--ph), var(--ph)) top left / 1px 10px no-repeat,
    linear-gradient(var(--ph), var(--ph)) top right / 10px 1px no-repeat, linear-gradient(var(--ph), var(--ph)) top right / 1px 10px no-repeat,
    linear-gradient(var(--ph), var(--ph)) bottom left / 10px 1px no-repeat, linear-gradient(var(--ph), var(--ph)) bottom left / 1px 10px no-repeat,
    linear-gradient(var(--ph), var(--ph)) bottom right / 10px 1px no-repeat, linear-gradient(var(--ph), var(--ph)) bottom right / 1px 10px no-repeat;
  opacity: .8;
}
.ph-h { font-family: var(--mono); display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ph-h b { color: var(--ph); font-weight: 600; } .ph-h .r { margin-left: auto; color: var(--dim); }
.ph-h .led { width: 6px; height: 6px; background: var(--ph); box-shadow: var(--glow); animation: pulse 1.6s infinite; }
.ph-b { padding: 0 12px 12px; }

/* control room grid */
.room { display: grid; grid-template-columns: 340px 1fr 360px; gap: 10px; padding: 10px 0 12px; height: calc(100vh - 58px); min-height: 720px; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.center { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-height: 0; }
.hero-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 14px 16px; }
.hero-strip h1 { white-space: nowrap; font-family: var(--dot); font-weight: 900; font-size: clamp(18px, 1.55vw, 28px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.hero-strip h1 em { font-style: normal; color: var(--ph); text-shadow: var(--glow); }
.hero-strip p { flex: 1 1 300px; min-width: 260px; color: var(--muted); font-size: 11px; line-height: 1.6; max-width: 560px; }
.hero-strip .cta { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* chip map */
.chip { display: block; width: 100%; }
.chip .cp { stroke: rgba(125,255,207,.16); stroke-width: 1.4; }
.chip .q { fill: #08201b; stroke: rgba(125,255,207,.35); stroke-width: 1; transition: fill .25s; }
.chip .q.one { fill: var(--ph); filter: drop-shadow(0 0 6px rgba(125,255,207,.9)); }
.chip .q.zero { fill: #2a1f5c; stroke: rgba(167,139,255,.6); }
.chip .ring { fill: none; stroke: var(--ph); stroke-width: 1; opacity: 0; }
.chip .ring.go { animation: ring .7s ease-out; }
@keyframes ring { 0% { opacity: .9; r: 6; } 100% { opacity: 0; r: 18; } }
.chip text { fill: var(--dim); font-family: var(--mono); font-size: 7px; }
.kv-mini { font-family: var(--mono); display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 10.5px; }
.kv-mini dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; } .kv-mini dd { color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; background: rgba(125,255,207,.08); position: relative; overflow: hidden; margin-top: 8px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--ph) 0 4px, transparent 4px 6px); box-shadow: var(--glow); transition: width .8s; }
canvas.scope { width: 100%; height: 110px; display: block; }
.bigstat { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.bigstat div { background: var(--panel2); padding: 10px 12px; }
.bigstat span { font-family: var(--mono); display: block; font-size: 9.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.bigstat b { display: block; font-family: var(--dot); font-weight: 900; font-size: 30px; color: var(--ph); text-shadow: var(--glow); margin-top: 4px; line-height: 1; }

/* threat */
.threat-num { display: flex; align-items: flex-end; gap: 10px; padding: 4px 12px 6px; }
.threat-num b { font-family: var(--dot); font-weight: 900; font-size: 96px; line-height: .8; color: var(--amber); text-shadow: 0 0 20px rgba(255,176,0,.55); }
.threat-num span { font-family: var(--mono); color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; line-height: 1.6; }
.tbar { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; padding: 0 12px 10px; }
.tbar i { height: 14px; background: rgba(255,255,255,.05); }
.tbar i.on { background: var(--c); box-shadow: 0 0 8px var(--c); }
.q-take { font-size: 14px; line-height: 1.6; color: #d6f7ec; padding: 0 12px 10px; }
.q-take::before { content: 'Q> '; color: var(--pink); font-weight: 700; }
.news { display: flex; flex-direction: column; padding: 0 6px 8px; overflow-y: auto; min-height: 0; }
.news a, .news div.it { display: grid; grid-template-columns: 14px 1fr; gap: 8px; padding: 8px 6px; border-top: 1px dashed var(--line); }
.news a:hover { background: rgba(125,255,207,.04); }
.news .imp { font-size: 10px; padding-top: 1px; } .news .imp.up { color: var(--red); } .news .imp.down { color: var(--ph); } .news .imp.flat { color: var(--muted); }
.news .t { font-size: 13.5px; line-height: 1.45; } .news .m { font-family: var(--mono); font-size: 9.5px; color: var(--dim); margin-top: 3px; text-transform: uppercase; letter-spacing: .08em; }
.gauge { display: none; }

/* ticker */
.ticker { font-family: var(--mono); overflow: hidden; white-space: nowrap; border: 1px solid var(--line); background: var(--panel); height: 38px; display: flex; align-items: center; }
.ticker .lab { position: relative; z-index: 2; flex: none; padding: 0 12px; height: 100%; display: flex; align-items: center; background: var(--ph); color: #021; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.ticker .track { display: inline-flex; gap: 34px; padding-left: 20px; animation: marquee 40s linear infinite; }
.ticker .track a { font-size: 11px; color: var(--muted); } .ticker .track a b { color: var(--text); } .ticker .track a em { font-style: normal; color: var(--ph); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* terminal */
.term { position: relative; display: flex; flex-direction: column; background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px), rgba(1,6,6,.94); border: 1px solid var(--line2); min-height: 0; box-shadow: inset 0 0 60px rgba(125,255,207,.04); }
.term-bar { font-family: var(--mono); display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.term-bar .dots { display: flex; gap: 5px; } .term-bar .dots i { width: 7px; height: 7px; background: var(--dim); }
.term-bar .dots i:first-child { background: var(--ph); box-shadow: var(--glow); animation: pulse 1.4s infinite; }
.term-bar .title { color: var(--ph); }
.term-tabs { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.term-tabs button { font-size: 9.5px; padding: 4px 7px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; border: 1px solid transparent; }
.term-tabs button.on { color: var(--ph); border-color: var(--line2); }
.term-body { flex: 1; overflow-y: auto; padding: 8px 14px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.8; scrollbar-width: thin; scrollbar-color: var(--dim) transparent; text-shadow: 0 0 6px rgba(125,255,207,.18); }
.term-body .ln { display: grid; grid-template-columns: 80px 96px 1fr; gap: 10px; animation: lnin .3s steps(4); word-break: break-word; }
@keyframes lnin { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.term-body .ts { color: var(--dim); } .term-body .txt { color: #b9f3df; }
.term-body .tag { font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; padding-top: 1px; }
.tag.qpu { color: var(--violet); } .tag.entropy { color: var(--cyan); } .tag.pq { color: var(--ph); } .tag.launch { color: var(--amber); }
.tag.agent { color: var(--pink); } .tag.vault { color: #b6ff5c; } .tag.scan { color: #ff8a5c; } .tag.sys, .tag.you { color: var(--muted); } .tag.err { color: var(--red); }
.ln.you .txt { color: #fff; } .ln.err .txt { color: #ffb3c0; } .ln.ok .txt { color: var(--ph); }
.term-body a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(79,227,255,.35); }
.prompt { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-top: 4px; }
.prompt b { color: var(--ph); font-weight: 600; }
.prompt input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 12px; caret-color: var(--ph); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--ph); box-shadow: var(--glow); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sections used by inner pages */
.section { padding: 26px 0 8px; }
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-h h2 { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.section-h h2 em { font-style: normal; color: var(--ph); text-shadow: var(--glow); }
.section-h p { color: var(--muted); font-size: 11.5px; max-width: 460px; line-height: 1.6; }
.grid-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.coin { padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: .15s; }
.coin:hover { border-color: var(--ph); box-shadow: 0 0 24px rgba(125,255,207,.15); }
.coin .row { display: flex; gap: 10px; align-items: center; }
.coin img { width: 44px; height: 44px; object-fit: cover; background: #0a1a17; border: 1px solid var(--line); }
.coin .nm { font-weight: 600; font-size: 15px; } .coin .tk { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.coin .mc { margin-left: auto; text-align: right; } .coin .mc b { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--ph); } .coin .mc span { display: block; font-size: 9px; color: var(--muted); letter-spacing: .12em; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-t { font-family: var(--mono); font-size: 9.5px; padding: 3px 6px; color: var(--muted); border: 1px solid var(--line); letter-spacing: .04em; white-space: nowrap; }
.chip-t.q { color: #cdbdff; border-color: rgba(167,139,255,.4); } .chip-t.pq { color: var(--ph); border-color: var(--line2); }
.empty { padding: 34px; text-align: center; color: var(--muted); font-size: 12px; }
footer { font-family: var(--mono); padding: 24px 0 26px; color: var(--dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }


/* forms / launch */
.page-h { padding: 26px 0 16px; } .page-h h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; }
.page-h h1 em { font-style: normal; } .page-h p { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 640px; line-height: 1.65; }
.launch-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; align-items: start; }
.form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.field label { font-family: var(--mono); display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 6px; }
.field label::before { content: '> '; color: var(--ph); }
.field input, .field textarea { width: 100%; background: rgba(0,0,0,.5); border: 1px solid var(--line2); outline: 0; padding: 12px 13px; font-size: 15px; transition: .15s; }
.field input:focus, .field textarea:focus { border-color: var(--ph); box-shadow: 0 0 0 3px rgba(125,255,207,.08), var(--glow); }
.field textarea { min-height: 76px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line2); background: rgba(0,0,0,.4); cursor: pointer; transition: .15s; }
.drop:hover { border-color: var(--ph); }
.drop .pv { width: 58px; height: 58px; background: repeating-linear-gradient(45deg, #071a16 0 6px, #04100d 6px 12px); display: grid; place-items: center; overflow: hidden; color: var(--ph); font-size: 20px; flex: none; border: 1px solid var(--line); }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.drop .tx b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; } .drop .tx span { font-size: 10.5px; color: var(--muted); }
.seq { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 10px; }
.seq .term { height: 470px; }
.bits { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.bitgrid { display: grid; grid-template-columns: repeat(16, 9px); gap: 3px; }
.bitgrid i { width: 9px; height: 9px; background: #0b1a17; transition: background .2s, box-shadow .2s; }
.bitgrid i.on { background: var(--ph); box-shadow: 0 0 7px rgba(125,255,207,.8); }
.bitgrid i.off { background: #2a1f5c; }
.bits .meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.bits .meta b { color: var(--text); font-weight: 500; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* coin page */
.coin-head { display: flex; align-items: center; gap: 16px; padding: 26px 0 16px; flex-wrap: wrap; }
.coin-head img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--ph); box-shadow: var(--glow); }
.coin-head h1 { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.coin-head .ca { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 11px; color: var(--muted); cursor: pointer; }
.coin-head .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.coin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.cert { padding: 16px; } .cert h3 { font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 12px; letter-spacing: -.02em; }
.cert h3 em { font-style: normal; color: var(--ph); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 7px 12px; }
.kv dt { font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; padding-top: 2px; }
.kv dd { font-size: 11px; word-break: break-all; color: #cfeee3; }
.schemes { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.scheme { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); }
.scheme .st { width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line2); color: var(--dim); flex: none; }
.scheme .st.ok { background: var(--ph); color: #021; box-shadow: var(--glow); } .scheme .st.bad { background: var(--red); color: #fff; }
.scheme .st.run { border-color: var(--ph); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scheme b { font-weight: 600; font-size: 12px; } .scheme span { font-size: 10px; color: var(--muted); }
.scheme .fam { font-family: var(--mono); margin-left: auto; font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.chart { height: 420px; overflow: hidden; } .chart iframe { width: 100%; height: 100%; border: 0; }

/* scanner */
.scan-box { padding: 16px; display: flex; gap: 10px; }
.scan-box input { flex: 1; background: rgba(0,0,0,.5); border: 1px solid var(--line2); outline: 0; padding: 0 14px; height: 46px; font-size: 12.5px; }
.scan-box input:focus { border-color: var(--ph); box-shadow: var(--glow); }
.scan-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.exposed { padding: 18px; }
.exposed .big { font-family: var(--dot); font-weight: 900; font-size: 54px; color: var(--red); text-shadow: 0 0 18px rgba(255,59,92,.5); line-height: 1; margin-top: 8px; }
.exposed .lab { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.exposed .q-take { padding: 0; margin-top: 10px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .2s; z-index: 300; background: #021; border: 1px solid var(--ph); color: var(--ph); padding: 10px 14px; font-size: 11.5px; box-shadow: var(--glow); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.term-full { height: calc(100vh - 190px); min-height: 520px; }
.side-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.side-list .it { font-size: 11px; padding: 9px 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); line-height: 1.6; }
.side-list .it b { color: var(--ph); font-weight: 500; }
.side-list .k { color: var(--muted); }

@media (max-width: 1320px) { .logo small { display: none; } }
@media (max-width: 1180px) {
  .room { grid-template-columns: 1fr 1fr; height: auto; }
  .center { grid-column: 1 / -1; order: -1; } .center .term { height: 520px; }
}
@media (max-width: 860px) {
  .room { grid-template-columns: 1fr; }
  .grid-main, .launch-grid, .coin-grid, .scan-res { grid-template-columns: 1fr; }
  nav.links { display: none; } nav.links.open { display: flex; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; background: #020405; padding: 10px 14px 14px; border-bottom: 1px solid var(--line); }
  .burger { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line2); color: var(--ph); }
  .threat-chip, .utc { display: none; } .seq { position: static; }
  .hero-strip { flex-direction: column; align-items: flex-start; } .hero-strip .cta { margin-left: 0; justify-content: flex-start; }
  .term-body .ln { grid-template-columns: auto 1fr; gap: 8px; } .term-body .ln .ts { display: none; }
  .section-h { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .two, .three { grid-template-columns: 1fr; } .scan-box { flex-direction: column; } .threat-num b { font-size: 76px; } }

/* ---------- clear landing (hero + live terminal + panels + coins) ---------- */
.land-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line2); background: rgba(125,255,207,.03); }
.pill i { width: 7px; height: 7px; background: var(--ph); box-shadow: var(--glow); animation: pulse 1.4s infinite; }
.land-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6.2vw, 92px); line-height: .95; letter-spacing: -.045em; margin: 26px 0 22px; }
.land-hero h1 em { font-style: normal; color: var(--ph); text-shadow: 0 0 30px rgba(125,255,207,.35); }
.land-hero .lede { font-size: 19px; line-height: 1.6; color: #b8d6cc; max-width: 560px; }
.land-hero .cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.land-hero .cta .btn { height: 52px; padding: 0 24px; font-size: 12.5px; }
.mini-stats { display: flex; gap: 38px; margin-top: 40px; flex-wrap: wrap; }
.mini-stats div span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.mini-stats div b { display: block; font-family: var(--mono); font-weight: 500; font-size: 17px; margin-top: 8px; }
.land-term { height: 520px; }
.panels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.panel { background: rgba(6,16,16,.75); }
.coins-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line2); background: rgba(0,0,0,.4); }
.search input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 15px; }
.seg { display: flex; border: 1px solid var(--line2); }
.seg button { height: 44px; padding: 0 16px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--ph); color: #021; font-weight: 600; }
.tabs { display: flex; gap: 30px; margin-bottom: 18px; }
.tabs button { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--dim); padding-bottom: 8px; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--ph); }
@media (max-width: 1000px) { .land-hero, .panels { grid-template-columns: 1fr; } .land-term { height: 440px; } .tabs button { font-size: 28px; } }

/* ================= PAPER THEME (Mitten style): paper-grey page, near-black ink ================= */
:root {
  --page: #f0f1ee; --ink: #0b0b0b;
  --bg: var(--page); --bg2: #e7e8e4; --panel: #f6f7f4; --panel2: #e9eae6;
  --line: rgba(11,11,11,.12); --line2: rgba(11,11,11,.22); --grid: transparent;
  --text: var(--ink); --muted: #5d605a; --dim: #8b8e87;
  --ph: var(--ink); --cyan: #1d5fd1; --violet: #6b4fd8; --amber: #b86a00; --pink: #c2187a; --red: #d0213b; --green: #1f8a4c;
  --pixel: 'Silkscreen', ui-monospace, monospace;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: var(--mono); --display: var(--pixel); --dot: var(--pixel);
  --glow: none;
}
html { background: var(--page); color-scheme: light; }
body { background: var(--page); color: var(--ink); font-family: var(--mono); font-size: 14.5px; letter-spacing: -.01em; }
body::before, body::after { display: none; }
::selection { background: var(--ink); color: var(--page); }
.grad { color: var(--ink); text-shadow: none; } .muted { color: var(--muted); }

/* the headline's pixel font must never be smoothed */
.pixel { font-family: var(--pixel); font-weight: 700; -webkit-font-smoothing: none; font-smooth: never; text-transform: uppercase; }
.rise { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* header: no divider, sits on the page */
header.top { background: var(--page); backdrop-filter: none; }
header.top .wrap { height: 72px; gap: 30px; width: auto; padding: 0 clamp(20px, 2.6vw, 40px); }
.logo { font-family: var(--pixel); font-weight: 700; font-size: 18px; letter-spacing: 0; gap: 10px; -webkit-font-smoothing: none; }
.logo .glyph { width: auto; height: auto; border: 0; box-shadow: none; background: none; display: block; }
.logo .glyph svg { display: block; height: 22px; width: auto; fill: var(--ink); }
.logo .dash { color: inherit; } .logo small { display: none; }
nav.links { gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
nav.links a { font-family: var(--mono); font-size: 14px; letter-spacing: -.01em; text-transform: none; padding: 0; color: var(--ink); background: none; }
nav.links a:hover, nav.links a.on { color: var(--ink); background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.top .right { margin-left: 0; gap: 16px; }
.utc { display: none; }
.threat-chip { font-family: var(--mono); font-size: 13px; letter-spacing: 0; text-transform: none; border: 1px solid var(--line2); color: var(--ink); padding: 7px 10px; }
.threat-chip i { background: var(--red); box-shadow: none; }
.burger { border-color: var(--ink) !important; color: var(--ink) !important; }

/* buttons */
.btn { font-family: var(--mono); text-transform: none; letter-spacing: -.01em; font-size: 14px; font-weight: 500; border-radius: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--page); border-color: var(--ink); box-shadow: none; }
.btn.primary:hover { box-shadow: none; filter: none; opacity: .85; }
.btn.ghost { background: transparent; } .btn.ghost:hover { color: var(--page); background: var(--ink); border-color: var(--ink); }
.btn.sm { height: 36px; font-size: 13.5px; padding: 0 14px; }

/* ---------- hero (Mitten layout) ---------- */
.hero { position: relative; min-height: calc(100svh - 72px); display: flex; overflow: hidden; }
.scan-cat { position: absolute; top: 4vh; right: 0; bottom: 0; width: 60%; overflow: hidden; }
.scan-fade { mask-image: linear-gradient(to right, transparent 0, #000 9%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%); }
.hero-l { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: 10vh clamp(20px, 2.6vw, 40px) 10vh; }
.hero-t { width: 38%; }
.hero-t h1 { display: inline-block; white-space: nowrap; font-size: clamp(44px, 7.6vw, 128px); line-height: .92; letter-spacing: -.02em; }
.hero-b { margin-top: auto; padding-top: 40px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.status i { width: 7px; height: 7px; background: var(--green); animation: pulse 1.4s infinite; }
.lede { max-width: 38ch; font-size: clamp(14px, 1.22vw, 18px); line-height: 1.42; }
.cta { margin-top: clamp(28px, 5vh, 52px); display: flex; align-items: center; gap: clamp(18px, 1.6vw, 26px); }
.cta .btn { height: clamp(40px, 4.4vh, 46px); padding: 0 clamp(18px, 1.6vw, 24px); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.textlink svg { height: .8em; width: auto; transition: transform .15s; } .textlink:hover svg { transform: translateX(2px); }

/* ---------- sections ---------- */
.wrap { width: auto; padding: 0 clamp(20px, 2.6vw, 40px); }
.section { padding: 72px 0 8px; }
.section-h { align-items: end; margin-bottom: 22px; flex-wrap: wrap; }
.section-h h2 { font-family: var(--pixel); font-weight: 700; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.02em; line-height: .95; }
.section-h h2 em { color: inherit; text-shadow: none; }
.section-h p { font-size: 14px; max-width: 46ch; color: var(--muted); }
.stats { display: flex; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; }
.stats dt { font-size: 12px; color: var(--muted); } .stats dd { font-size: 18px; margin-top: 4px; }

/* the terminal stays dark: an ink block on paper */
.term { --text: #ecede9; --muted: #9a9d96; --dim: #62655f; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.16); --ph: #9dffa8;
  background: var(--ink); border: 0; border-radius: 0; box-shadow: none; color: var(--text); }
.term::before { display: none; }
.land-term { height: 460px; }
.term-bar { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; text-transform: none; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar .dots i { width: 8px; height: 8px; background: #3a3c38; box-shadow: none; animation: none; }
.term-bar .dots i:first-child { background: var(--ph); animation: pulse 1.4s infinite; }
.term-bar .title { color: var(--text); }
.term-tabs button { font-size: 12px; text-transform: none; letter-spacing: 0; padding: 3px 8px; color: var(--dim); }
.term-tabs button.on { color: var(--ink); background: var(--text); border-color: transparent; }
.term-body { font-size: 12.5px; text-shadow: none; padding: 12px 16px 16px; }
.term-body .ln { grid-template-columns: 70px 80px 1fr; animation: none; }
.term-body .txt { color: #d6d8d2; } .term-body .tag { font-weight: 500; font-size: 11.5px; letter-spacing: 0; text-transform: lowercase; }
.term .tag.qpu { color: #b9a6ff; } .term .tag.entropy { color: #7fd8ff; } .term .tag.pq { color: #9dffa8; } .term .tag.launch { color: #ffc65c; } .term .tag.agent { color: #ff8fd6; } .term .tag.scan { color: #ffa07a; } .term .tag.err { color: #ff6b7f; }
.term .ln.you .txt { color: #fff; } .term .ln.ok .txt { color: var(--ph); }
.term-body a { color: #7fd8ff; }
.prompt input { color: #fff; }
.cursor { background: var(--ph); box-shadow: none; }

/* panels & cards: flat paper with hairlines */
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0; }
.coin::before { display: none; }
.panels { gap: 12px; }
.ph-h { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 14px 16px 10px; }
.ph-h b { color: var(--ink); font-weight: 500; } .ph-h .r { color: var(--muted); }
.ph-h .led { width: 7px; height: 7px; background: var(--green); box-shadow: none; } .ph-h .led.red { background: var(--red); }
.ph-b { padding: 0 16px 16px; }
.chip .cp { stroke: rgba(11,11,11,.18); }
.chip .q { fill: var(--page); stroke: rgba(11,11,11,.45); }
.chip .q.one { fill: var(--ink); filter: none; stroke: var(--ink); }
.chip .q.zero { fill: #c9cbc5; stroke: rgba(11,11,11,.35); }
.chip .ring { stroke: var(--ink); }
.kv-mini { font-family: var(--mono); font-size: 12.5px; } .kv-mini dt { text-transform: none; letter-spacing: 0; color: var(--muted); }
.bar { background: rgba(11,11,11,.08); } .bar i { background: var(--ink); box-shadow: none; }
.threat-num b { font-family: var(--pixel); font-size: 84px; color: var(--ink); text-shadow: none; line-height: .85; }
.threat-num span { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--muted); }
.threat-num span span { color: var(--ink); }
.tbar i { background: rgba(11,11,11,.08); height: 12px; } .tbar i.on { background: var(--ink); box-shadow: none; }
.q-take { color: var(--ink); font-size: 13.5px; } .q-take::before { color: var(--red); }
.news a, .news div.it { border-top: 1px solid var(--line); }
.news a:hover { background: rgba(11,11,11,.04); }
.news .imp.down { color: var(--green); }
.news .m { font-family: var(--mono); color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 11.5px; }

/* coins list */
.tabs { gap: 26px; }
.tabs button { font-family: var(--pixel); font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); color: var(--dim); text-transform: uppercase; letter-spacing: -.02em; border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.search { border: 1px solid var(--ink); background: transparent; border-radius: 0; }
.search input { color: var(--ink); font-size: 14px; } .search input::placeholder { color: var(--dim); }
.seg { border: 1px solid var(--ink); border-radius: 0; }
.seg button { font-size: 13.5px; color: var(--ink); } .seg button.on { background: var(--ink); color: var(--page); font-weight: 500; }
.coin:hover { border-color: var(--ink); box-shadow: none; }
.coin img { border-color: var(--line); background: var(--panel2); }
.coin .tk, .coin .mc b { font-family: var(--mono); } .coin .mc b { color: var(--ink); }
.chip-t { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border-color: var(--line2); }
.chip-t.q { color: var(--violet); border-color: rgba(107,79,216,.35); } .chip-t.pq { color: var(--ink); border-color: var(--ink); }
.empty { font-size: 14px; }
footer { font-family: var(--mono); font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); padding: 56px 0 32px; }
footer .wrap { padding: 0 clamp(20px, 2.6vw, 40px); }

/* inner pages */
.page-h { padding: 48px 0 22px; }
.page-h h1 { font-family: var(--pixel); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5vw, 72px); line-height: .95; letter-spacing: -.02em; }
.page-h h1 em, .cert h3 em { color: inherit; }
.page-h p { font-size: 15px; color: var(--muted); }
.coin-head h1, .cert h3 { font-family: var(--pixel); text-transform: uppercase; }
.coin-head img { border-color: var(--ink); box-shadow: none; }
.field label { font-family: var(--mono); font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--muted); } .field label::before { content: none; }
.field input, .field textarea, .scan-box input { background: transparent; border: 1px solid var(--ink); color: var(--ink); border-radius: 0; }
.field input:focus, .field textarea:focus, .scan-box input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,11,.08); }
.drop { border-color: var(--ink); background: transparent; } .drop .pv { background: var(--panel2); color: var(--ink); border-color: var(--line); }
.drop .tx b { text-transform: none; letter-spacing: 0; }
.bitgrid i { background: #dcded8; } .bitgrid i.on { background: var(--ink); box-shadow: none; } .bitgrid i.off { background: #b9bbb4; }
.bits .meta b { color: var(--ink); }
.kv dt { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-size: 12px; } .kv dd { color: var(--ink); }
.scheme { background: transparent; border-color: var(--line); }
.scheme .st { border-color: var(--line2); } .scheme .st.ok { background: var(--ink); color: var(--page); box-shadow: none; } .scheme .st.run { border-color: var(--ink); border-top-color: transparent; }
.scheme .fam { font-family: var(--mono); text-transform: none; letter-spacing: 0; color: var(--muted); }
.exposed .big { font-family: var(--pixel); text-shadow: none; } .exposed .lab { font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.side-list .it { background: transparent; border-color: var(--line); } .side-list .it b { color: var(--ink); }
.toast { background: var(--ink); color: var(--page); border: 0; box-shadow: none; font-family: var(--mono); }
.bigstat { background: var(--line); } .bigstat div { background: var(--panel); } .bigstat b { color: var(--ink); text-shadow: none; }

@media (max-width: 860px) {
  nav.links.open { background: var(--ink); border: 0; top: 72px; left: 20px; right: 20px; padding: 20px; gap: 16px; }
  nav.links.open a { color: var(--page); }
  .threat-chip { display: none; }
  .top .right { margin-left: auto; }
}
@media (max-width: 767px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero-l { display: contents; }
  .hero-t { order: 1; width: 100%; padding: 7vh 20px 24px; }
  .scan-cat { order: 2; position: relative; top: auto; width: 100%; aspect-ratio: 1; }
  .scan-fade { mask-image: linear-gradient(to bottom, transparent 0, #000 8%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%); }
  .hero-b { order: 3; padding: 24px 20px 8vh; }
  .land-term { height: 400px; }
  .term-body .ln { grid-template-columns: auto 1fr; }
}
/* header: keep the wordmark on one line on phones */
.logo { white-space: nowrap; flex: none; }
/* rotating pun line under the hero headline */
.pun { margin-top: 22px; font-size: clamp(14px, 1.15vw, 17px); color: var(--muted); min-height: 3em; line-height: 1.5; max-width: 34ch; }
.pun .caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .pun .caret { animation: none; } }
/* docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.docs-toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.docs-toc a { padding: 6px 10px; color: var(--muted); border-left: 2px solid transparent; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.on { color: var(--ink); border-left-color: var(--ink); }
.docs-body { max-width: 760px; }
.docs-body section { padding: 6px 0 34px; scroll-margin-top: 90px; }
.docs-body h2 { font-family: var(--pixel); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.01em; margin-bottom: 14px; -webkit-font-smoothing: none; }
.docs-body p, .docs-body li, .docs-body dd { font-size: 15px; line-height: 1.7; }
.docs-body p + p { margin-top: 12px; }
.docs-body a { text-decoration: underline; text-underline-offset: 3px; }
.docs-body ol, .docs-body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.docs-body code { font-family: var(--mono); font-size: 13px; background: rgba(11,11,11,.06); padding: 1px 5px; }
.docs-body pre { margin: 14px 0; padding: 16px 18px; background: var(--ink); color: #e9ebe6; overflow-x: auto; }
.docs-body pre code { background: none; color: inherit; padding: 0; line-height: 1.7; }
.docs-kv { display: grid; grid-template-columns: 170px 1fr; gap: 12px 20px; margin: 14px 0; }
.docs-kv dt { font-weight: 500; font-size: 14px; padding-top: 2px; }
.docs-kv dd { color: #34372f; }
.aside { margin-top: 16px !important; padding-left: 14px; border-left: 3px solid var(--ink); color: var(--muted); font-style: italic; }
.docs-body details { border-top: 1px solid var(--line); padding: 14px 0; }
.docs-body details:last-child { border-bottom: 1px solid var(--line); }
.docs-body summary { cursor: pointer; font-weight: 500; font-size: 15px; }
.docs-body details p { margin-top: 10px; color: #34372f; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 20px; } .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; } .docs-toc a { border-left: 0; padding: 4px 8px; border: 1px solid var(--line); } .docs-kv { grid-template-columns: 1fr; gap: 4px; } .docs-kv dd { margin-bottom: 10px; } }
