/* Radartrade. Brand colours live in :root; verdict colours are --clear, --watch, --hostile. */
:root {
  --bg: #050c10;
  --bg-raise: #071218;
  --panel: #0a181f;
  --panel-2: #0e2029;
  --line: #163039;
  --line-2: #22444f;
  --ink: #e1f1ed;
  --ink-2: #9db7b2;
  --ink-3: #66867f;
  --sig: #3cf5a5;
  --sig-2: #1fcf88;
  --sig-dim: rgba(60, 245, 165, .1);
  --sig-glow: rgba(60, 245, 165, .28);
  --clear: #3cf5a5;
  --watch: #ffc24a;
  --hostile: #ff5a6a;
  --display: 'Chakra Petch', system-ui, sans-serif;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 14px;
  --r-sm: 9px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid, rgba(60, 245, 165, .035)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid, rgba(60, 245, 165, .035)) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sig); color: var(--bg); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 12, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: .01em; }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.logo-word b { color: var(--sig); font-weight: 700; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.links a:hover, .links a[aria-current='page'] { color: var(--ink); background: var(--panel); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn[aria-disabled='true'], .pill-link[aria-disabled='true'] { opacity: .35; pointer-events: none; }
.menu { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.menu span, .menu span::before, .menu span::after {
  position: absolute; left: 11px; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; content: '';
  transition: transform .25s;
}
.menu span { top: 18px; }
.menu span::before { left: 0; top: -5px; }
.menu span::after { left: 0; top: 5px; }
.menu[aria-expanded='true'] span { background: transparent; }
.menu[aria-expanded='true'] span::before { transform: translateY(5px) rotate(45deg); }
.menu[aria-expanded='true'] span::after { transform: translateY(-5px) rotate(-45deg); }

.ca-bar {
  display: flex; align-items: center; gap: 12px; height: 38px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3);
}
.ca-bar .label { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sig); }
.ca-bar code { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-bar button { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; }
.ca-bar button:disabled { opacity: .35; cursor: default; }
.ca-bar button:not(:disabled):hover { color: var(--sig); border-color: var(--sig); }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 11px;
  font: 600 15px/1 var(--display); letter-spacing: .02em;
  transition: transform .15s, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sig { background: var(--sig); color: #03140c; box-shadow: 0 0 0 0 var(--sig-glow); }
.btn-sig:hover { box-shadow: 0 0 28px 0 var(--sig-glow); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--sig); color: var(--sig); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raise);
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 10px var(--sig); }
.chip[data-state='error'] .dot { background: var(--hostile); box-shadow: 0 0 10px var(--hostile); }
.chip[data-state='loading'] .dot { background: var(--watch); box-shadow: 0 0 10px var(--watch); }

.eyebrow { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sig); margin-bottom: 14px; }
.eyebrow::before { content: '// '; color: var(--ink-3); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 19px; line-height: 1.25; }
.head { max-width: 680px; margin-bottom: 44px; }
.head p { color: var(--ink-2); margin: 16px 0 0; font-size: 17px; }
.head.center { margin-inline: auto; text-align: center; }

.section { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-raise)); border: 1px solid var(--line); border-radius: var(--r); }

/* Verdict tags, used everywhere a call is shown. */
.v { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px; font: 600 12px/1 var(--mono); letter-spacing: .12em; }
.v::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.v-CLEAR { color: var(--clear); background: rgba(60, 245, 165, .1); }
.v-WATCH { color: var(--watch); background: rgba(255, 194, 74, .1); }
.v-HOSTILE { color: var(--hostile); background: rgba(255, 90, 106, .1); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--sig); text-shadow: 0 0 34px var(--sig-glow); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 560px; margin: 0; }
.lede b { color: var(--ink); font-weight: 500; }

.sweep-form {
  display: flex; gap: 8px; margin-top: 32px; padding: 7px;
  background: var(--bg-raise); border: 1px solid var(--line-2); border-radius: 14px; max-width: 560px;
  transition: border-color .2s, box-shadow .2s;
}
.sweep-form:focus-within { border-color: var(--sig); box-shadow: 0 0 0 4px var(--sig-dim); }
.sweep-form input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 12px;
  font: 400 14.5px var(--mono); color: var(--ink);
}
.sweep-form input::placeholder { color: var(--ink-3); }
.sweep-form .btn { height: 44px; }
.form-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.form-note a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.form-note a:hover { color: var(--sig); border-color: var(--sig); }
.form-error { color: var(--hostile); }

/* The scope: rings and crosshair are gradients, the sweep is one rotating layer, blips are links. */
.scope-wrap { position: relative; justify-self: center; width: min(100%, 480px); }
.scope {
  --sweep: 6s;
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24.6%, rgba(60, 245, 165, .16) 24.8% 25.2%, transparent 25.4% 49.6%, rgba(60, 245, 165, .16) 49.8% 50.2%, transparent 50.4% 74.6%, rgba(60, 245, 165, .16) 74.8% 75.2%, transparent 75.4%),
    radial-gradient(circle, rgba(60, 245, 165, .07), rgba(5, 12, 16, .2) 70%);
  border: 1px solid rgba(60, 245, 165, .28);
  box-shadow: 0 0 80px rgba(60, 245, 165, .08), inset 0 0 60px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.scope::before, .scope::after {
  content: ''; position: absolute; background: rgba(60, 245, 165, .14);
}
.scope::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scope::after { top: 50%; left: 0; right: 0; height: 1px; }
.scope-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 290deg, rgba(60, 245, 165, .05) 310deg, rgba(60, 245, 165, .32) 359deg, rgba(60, 245, 165, .7) 360deg);
  animation: spin var(--sweep) linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scope-ticks { position: absolute; inset: 0; color: rgba(60, 245, 165, .4); }
.blip {
  position: absolute; width: 0; height: 0; z-index: 2;
}
.blip i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c, var(--sig)); box-shadow: 0 0 12px var(--c, var(--sig));
  animation: ping var(--sweep) linear infinite; animation-delay: var(--delay, 0s);
  opacity: .25;
}
@keyframes ping {
  0% { opacity: 1; transform: scale(1.5); }
  12% { opacity: .9; transform: scale(1); }
  100% { opacity: .2; transform: scale(1); }
}
.blip span {
  position: absolute; left: 10px; top: -9px; white-space: nowrap;
  font: 500 11px/1 var(--mono); color: var(--ink-2); padding: 4px 6px; border-radius: 5px;
  background: rgba(5, 12, 16, .8); border: 1px solid var(--line);
  opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.blip:hover span, .blip:focus-visible span { opacity: 1; transform: none; }
.blip:hover i { animation-play-state: paused; opacity: 1; }
.scope-center { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 14px var(--sig); }
.scope-legend { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.scope-legend b { color: var(--sig); font-weight: 500; }

.contact {
  position: absolute; right: -8px; bottom: -28px; width: min(310px, 78%);
  padding: 16px 18px; border-radius: 14px; z-index: 3;
  background: rgba(8, 19, 25, .94); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  font-family: var(--mono); font-size: 12.5px;
}
.contact-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.contact-top small { color: var(--ink-3); letter-spacing: .12em; font-size: 10.5px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; }
.contact dt { color: var(--ink-3); }
.contact dd { margin: 0; text-align: right; color: var(--ink); }
.contact dd.bad { color: var(--hostile); }
.contact p { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 11.5px; }

/* ---------- Spec strip ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.specs div { padding: 26px 24px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs b { display: block; font: 700 clamp(24px, 3vw, 32px)/1 var(--display); color: var(--ink); }
.specs small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; }

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; }
.how li { list-style: none; padding: 26px; position: relative; }
.how > *, .hero-grid > *, .connect > *, .report-grid > *, .signals > *, .calls > *, .stack > * { min-width: 0; }
.step-n { font: 600 13px/1 var(--mono); color: var(--sig); letter-spacing: .1em; }
.how h3 { margin: 14px 0 10px; font-size: 22px; }
.how p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.term {
  margin: 0; padding: 14px 16px; border-radius: 10px; background: #030a0d; border: 1px solid var(--line);
  font: 400 12.5px/1.65 var(--mono); color: var(--ink-2); overflow-x: auto; white-space: pre;
}
.term .k { color: var(--sig); }
.term .s { color: #9fd8ff; }
.term .r { color: var(--hostile); }
.term .y { color: var(--watch); }
.term .c { color: var(--ink-3); }

/* ---------- Signals ---------- */
.signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.signal { padding: 24px 22px; transition: border-color .25s, transform .25s; }
.signal:hover { border-color: var(--line-2); transform: translateY(-2px); }
.signal-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sig-dim); color: var(--sig); margin-bottom: 18px; }
.signal-ico svg { width: 20px; height: 20px; }
.signal h3 { font-size: 18px; margin-bottom: 8px; }
.signal p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.signal .ids { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.signal .ids code { font-size: 11px; color: var(--ink-3); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- Calls ---------- */
.gauge { position: relative; height: 12px; border-radius: 999px; overflow: hidden; display: grid; grid-template-columns: 45fr 30fr 25fr; margin: 0 0 14px; }
.gauge span:nth-child(1) { background: linear-gradient(90deg, #a3273a, var(--hostile)); }
.gauge span:nth-child(2) { background: linear-gradient(90deg, #d0912a, var(--watch)); }
.gauge span:nth-child(3) { background: linear-gradient(90deg, var(--sig-2), var(--clear)); }
.gauge-scale { display: grid; grid-template-columns: 45fr 30fr 25fr; font: 500 12px/1 var(--mono); color: var(--ink-3); margin-bottom: 26px; }
.gauge-scale span:last-child { display: flex; justify-content: space-between; }
.calls { display: grid; grid-template-columns: 45fr 30fr 25fr; gap: 16px; }
.call { padding: 24px; border-top: 3px solid var(--c); }
.call h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 24px; color: var(--c); }
.call h3 small { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.call p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.call p b { color: var(--ink); font-weight: 600; }
.calls-note { margin: 22px 0 0; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Tables (live list, holders) ---------- */
.table-card { overflow: hidden; }
.table-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-bar small { color: var(--ink-3); font-size: 13px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: rgba(60, 245, 165, .03); }
.num { text-align: right; font-family: var(--mono); font-size: 13.5px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.tok-img { width: 32px; height: 32px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); flex: none; object-fit: cover; display: grid; place-items: center; font: 600 12px var(--display); color: var(--ink-3); overflow: hidden; }
.tok b { display: block; font-weight: 600; font-size: 15px; }
.tok small { display: block; font: 400 12px var(--mono); color: var(--ink-3); }
.up { color: var(--clear); }
.down { color: var(--hostile); }
.pad { font: 500 12px var(--mono); color: var(--ink-2); }
.skeleton td { color: transparent; }
.skeleton td::after { content: ''; display: block; height: 12px; border-radius: 4px; background: var(--panel-2); }
.table-empty { padding: 36px 18px; text-align: center; color: var(--ink-3); }

/* ---------- Connect ---------- */
.connect { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.connect-copy p { color: var(--ink-2); }
.connect-copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.connect-copy li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.connect-copy li::before { content: '→'; color: var(--sig); font-family: var(--mono); }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 9px 14px; border-radius: 8px; font: 500 13.5px/1 var(--display); color: var(--ink-2); white-space: nowrap; }
.tabs button[aria-selected='true'] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--sig); }
.tab-panel { padding: 20px; }
.tab-panel[hidden] { display: none; }
.tab-panel p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.code { position: relative; }
.code pre { margin: 0; padding: 16px 64px 16px 16px; border-radius: 10px; background: #030a0d; border: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.code .copy { position: absolute; top: 9px; right: 9px; font: 500 11.5px/1 var(--mono); padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--panel); }
.code .copy:hover { color: var(--sig); border-color: var(--sig); }

/* ---------- CTA band + footer ---------- */
.band { padding: clamp(72px, 10vw, 110px) 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; border: 1px solid rgba(60, 245, 165, .12); box-shadow: 0 0 0 90px rgba(60, 245, 165, .02), 0 0 0 180px rgba(60, 245, 165, .015); pointer-events: none; }
.band h2 { font-size: clamp(32px, 5vw, 56px); }
.band p { color: var(--ink-2); font-size: 18px; margin: 16px auto 30px; max-width: 520px; }
.band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--ink-3); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-tag { margin: 12px 0 0; max-width: 320px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { margin: 0 0 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.foot-cols a { display: block; padding: 4px 0; color: var(--ink-3); }
.foot-cols a:hover { color: var(--sig); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  padding: 11px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2);
  font: 500 13.5px/1 var(--mono); color: var(--ink); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scan report ---------- */
.scan-page { padding: 40px 0 96px; }
.scan-page .sweep-form { max-width: none; margin: 0 0 36px; }
.report-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px; }
.dial { position: relative; width: 168px; height: 168px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { stroke: var(--line); }
.dial .arc { stroke: var(--c); transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 8px var(--c)); }
.dial-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-num b { font: 700 52px/1 var(--display); color: var(--c); }
.dial-num small { font: 500 12px/1 var(--mono); color: var(--ink-3); margin-top: 6px; }
.report-id { min-width: 0; }
.report-id .tok-img { width: 52px; height: 52px; border-radius: 13px; font-size: 16px; }
.report-id .tok b { font: 700 28px/1.1 var(--display); }
.report-id .tok small { font-size: 13px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.report-meta .chip { text-transform: none; letter-spacing: 0; font-size: 12px; }
.report-summary { font: 500 19px/1.4 var(--display); margin: 0; }
.mint-line { display: flex; align-items: center; gap: 8px; min-width: 0; font: 400 13px var(--mono); color: var(--ink-3); margin-top: 4px; }
.mint-line code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mint-line button { color: var(--ink-2); padding: 4px; border-radius: 6px; flex: none; }
.mint-line button:hover { color: var(--sig); }
.mint-line svg { width: 15px; height: 15px; }

.report-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.panel { padding: 22px; }
.panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; letter-spacing: .02em; margin-bottom: 16px; }
.panel h3 small { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flag { display: grid; grid-template-columns: 4px 1fr auto; gap: 14px; padding: 14px 16px 14px 0; border-radius: 10px; background: var(--bg-raise); border: 1px solid var(--line); overflow: hidden; }
.flag::before { content: ''; background: var(--c); }
.flag b { display: block; font-weight: 600; font-size: 15px; }
.flag p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; word-break: break-word; }
.flag .pen { font: 600 14px/1 var(--mono); color: var(--c); align-self: center; }
.sev-high { --c: var(--hostile); }
.sev-medium { --c: var(--watch); }
.sev-low { --c: #7fb3a8; }
.sev-info { --c: var(--line-2); }
.flags-empty { padding: 18px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-2); text-align: center; }

.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd a { border-bottom: 1px dotted var(--line-2); }
.facts dd a:hover { color: var(--sig); }
.facts .good { color: var(--clear); }
.facts .bad { color: var(--hostile); }
.facts .meh { color: var(--watch); }
.panel-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.stack { display: grid; gap: 18px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 92px 1fr 56px; gap: 10px; align-items: center; font: 400 12.5px var(--mono); color: var(--ink-2); }
.bar a:hover { color: var(--sig); }
.bar-track { height: 8px; border-radius: 4px; background: var(--bg-raise); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); background: linear-gradient(90deg, var(--sig-2), var(--sig)); border-radius: 4px; transform-origin: left; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar span:last-child { text-align: right; }
.raw summary { cursor: pointer; font: 600 14px var(--display); color: var(--ink-2); padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; }
.raw summary::-webkit-details-marker { display: none; }
.raw summary::after { content: '+'; font-family: var(--mono); color: var(--sig); }
.raw[open] summary::after { content: '−'; }
.raw .code { padding: 0 22px 22px; }
.raw pre { max-height: 460px; overflow: auto; font-size: 12px; }

.scan-state { padding: 64px 24px; text-align: center; }
.scan-state .scope { width: 180px; margin: 0 auto 28px; --sweep: 2.4s; }
.scan-state h2 { font-size: 28px; }
.scan-state p { color: var(--ink-2); margin: 12px auto 0; max-width: 460px; }
.scan-log { list-style: none; margin: 22px auto 0; padding: 0; max-width: 380px; text-align: left; font: 400 13px/1.9 var(--mono); color: var(--ink-3); }
.scan-log li::before { content: '› '; color: var(--sig); }
.scan-state.error h2 { color: var(--hostile); }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 7px 12px; border-radius: 8px; color: var(--ink-3); border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--panel); }
.toc b { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 18px 12px 8px; }
.toc b:first-child { padding-top: 0; }
.doc { min-width: 0; max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .lede { margin: 16px 0 0; }
.doc section { padding-top: 48px; }
.doc h2 { font-size: 28px; margin-bottom: 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p code, .doc li code, .doc td code { font-size: .88em; padding: 2px 6px; border-radius: 5px; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.doc .code { margin: 14px 0; }
.doc table { font-size: 14px; }
.doc td { white-space: normal; vertical-align: top; color: var(--ink-2); }
.doc td:first-child, .doc td.num { white-space: nowrap; color: var(--ink); }
.doc .table-card { margin: 14px 0; }
.callout { padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--sig-dim); color: var(--ink); font-size: 15px; margin: 18px 0; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .signals { grid-template-columns: repeat(2, 1fr); }
  .connect { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .links {
    position: absolute; left: 0; right: 0; top: 64px; margin: 0; padding: 10px var(--gutter) 16px;
    flex-direction: column; background: rgba(5, 12, 16, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .links.open { display: flex; }
  .links a { padding: 12px; font-size: 16px; }
  .menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .scope-wrap { width: min(100%, 420px); margin-bottom: 30px; }
  .how { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(2) { border-right: 0; }
  .specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calls { grid-template-columns: 1fr; }
  .gauge-scale { font-size: 11px; }
  .report-head { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; }
  .report-id .tok { justify-content: center; text-align: left; }
  .report-meta { justify-content: center; }
  .mint-line { justify-content: center; }
  .hide-sm { display: none; }
  .contact { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
  th, td { padding: 12px 10px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .tok { min-width: 0; }
}
@media (max-width: 560px) {
  .hide-xs { display: none; }
  #live td:first-child { white-space: normal; }
  #live th, #live td { padding-left: 6px; padding-right: 6px; letter-spacing: 0; }
  #live th:first-child, #live td:first-child { padding-left: 12px; }
  #live th:last-child, #live td:last-child { padding-right: 12px; }
  #live .tok-img { width: 28px; height: 28px; }
  #live .btn-sm { padding: 0 11px; }
  .signals { grid-template-columns: 1fr; }
  .nav-end .icon-btn { display: none; }
  .sweep-form { flex-direction: column; }
  .sweep-form input { height: 44px; }
  .ca-bar .label .long { display: none; }
  .bar { grid-template-columns: 80px 1fr 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope-sweep, .blip i, .bar-fill { animation: none; }
  .blip i { opacity: .9; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
