/* Design language: black, white, one sans and one mono. Straight to the point.
   Colour is reserved for the verdict. No shadows, no gradients, no decoration. */
:root {
  --paper: #000000;
  --card: #0b0b0b;
  --ink: #ffffff;
  --ink-2: #b4b4b4;
  --muted: #777777;
  --rule: #262626;
  --rule-2: #171717;
  --safe: #3ecf8e;      --safe-bg: #0c2217;
  --caution: #e6b53f;   --caution-bg: #272008;
  --high: #ff8a4c;      --high-bg: #2a1608;
  --danger: #ff5a50;    --danger-bg: #2b0e0c;
  --unknown: #9a9a9a;   --unknown-bg: #1a1a1a;
  --serif: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --w: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.875em; }
[hidden] { display: none !important; }

/* --- frame --------------------------------------------------------------- */
.top { width: 100%; max-width: var(--w); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 26px; height: 26px; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.top-nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
main { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px 80px; flex: 1; }
.foot { border-top: 1px solid var(--rule); max-width: var(--w); width: 100%; margin: 0 auto; padding: 22px 24px 40px; font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; }

/* --- hero ---------------------------------------------------------------- */
.hero { padding: 9vh 0 56px; max-width: 820px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font: 400 clamp(44px, 7.4vw, 84px)/0.98 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: italic; }
.lede { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 600px; text-wrap: pretty; }

.scanbar { margin-top: 34px; display: flex; background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px; gap: 6px; max-width: 720px; }
.scanbar:focus-within { outline: 2px solid rgba(255, 255, 255, 0.28); outline-offset: 2px; }
.scanbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px var(--mono); padding: 13px 14px; color: var(--ink); outline: none; }
.scanbar input::placeholder { color: #5c5c5c; }
.btn { border: 0; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 0 24px; font-weight: 500; font-size: 15px; min-height: 46px; white-space: nowrap; }
.btn:hover { background: #dcdcdc; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-ghost:hover { background: var(--rule-2); }
.form-error { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 22px; }
.try { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.try button { background: none; border: 0; padding: 0; font: 13px var(--mono); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }

/* --- how it works ---------------------------------------------------------- */
.section { border-top: 1px solid var(--rule); padding: 44px 0; }
.section-title { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step-n { font: 400 13px var(--mono); color: var(--muted); }
.step h3 { font: 400 27px/1.12 var(--serif); margin: 10px 0 10px; letter-spacing: -0.01em; }
.step p { color: var(--ink-2); font-size: 15px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 48px; color: var(--ink-2); font-size: 15px; max-width: 900px; }
.limits p::before { content: '— '; color: var(--muted); }

.recent { display: grid; }
.recent-row { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule-2); text-decoration: none; font-size: 14.5px; }
.recent-row:hover .recent-host { text-decoration: underline; text-underline-offset: 3px; }
.recent-score { font: 400 24px/1 var(--serif); }
.recent-host { font-family: var(--mono); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-time { color: var(--muted); font-size: 13px; }
.stats { color: var(--muted); font-size: 13.5px; margin-top: 16px; }

/* --- verdict colours --------------------------------------------------------- */
[data-level='safe'] { --v: var(--safe); --v-bg: var(--safe-bg); }
[data-level='caution'] { --v: var(--caution); --v-bg: var(--caution-bg); }
[data-level='high'] { --v: var(--high); --v-bg: var(--high-bg); }
[data-level='danger'] { --v: var(--danger); --v-bg: var(--danger-bg); }
[data-level='unknown'] { --v: var(--unknown); --v-bg: var(--unknown-bg); }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--v); background: var(--v-bg); padding: 6px 9px; border-radius: 4px; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--v); }

/* --- scanning ---------------------------------------------------------------- */
.scanning { padding: 8vh 0 40px; max-width: 720px; }
.scanning h1 { font: 400 clamp(34px, 5vw, 52px)/1.04 var(--serif); letter-spacing: -0.015em; }
.target { margin-top: 18px; font: 400 15px var(--mono); color: var(--ink-2); word-break: break-all; }
.progress { height: 2px; background: var(--rule); margin: 30px 0 6px; overflow: hidden; position: relative; }
.progress::after { content: ''; position: absolute; inset: 0; width: 34%; background: var(--ink); animation: sweep 1.5s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule-2); font-size: 15.5px; color: var(--muted); }
.log li.done { color: var(--ink); }
.log li.active { color: var(--ink); }
.log .tick { font-family: var(--mono); font-size: 13px; }
.log li.active .tick { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.log time { font: 12.5px var(--mono); color: var(--muted); }
.hint { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* --- report ------------------------------------------------------------------ */
.report { padding-top: 26px; }
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs .target { margin: 0; font-size: 13.5px; }
.actions { display: flex; gap: 8px; }

.verdict { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--v-bg); border: 1px solid color-mix(in srgb, var(--v) 28%, transparent); border-radius: 12px; overflow: hidden; }
.verdict-main { padding: 34px 36px 32px; display: flex; flex-direction: column; }
.verdict-label { font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--v); }
.verdict-score { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; color: var(--v); }
.verdict-score b { font: 400 clamp(92px, 13vw, 148px)/0.82 var(--serif); letter-spacing: -0.04em; }
.verdict-score span { font: 400 16px var(--mono); opacity: 0.75; }
.verdict-host { margin-top: 26px; font: 500 17px var(--mono); word-break: break-all; }
.verdict-sum { margin-top: 8px; font: 400 25px/1.18 var(--serif); letter-spacing: -0.005em; text-wrap: pretty; max-width: 30ch; }
.scale { margin-top: auto; padding-top: 28px; }
.scale-bar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--danger) 0 25%, var(--high) 25% 50%, var(--caution) 50% 70%, var(--safe) 70% 100%); opacity: 0.9; }
.scale-pin { position: absolute; top: -5px; width: 3px; height: 16px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.scale-legend { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--ink-2); margin-top: 8px; opacity: 0.8; }

.shot { border-left: 1px solid color-mix(in srgb, var(--v) 28%, transparent); background: var(--card); display: flex; flex-direction: column; min-height: 260px; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.shot-bar span { margin-left: 8px; font: 12px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; flex: 1; min-height: 0; }
.shot-empty { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 14px; padding: 30px; text-align: center; }

.coverage { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--rule); border-radius: 10px; margin-top: 14px; background: var(--card); overflow: hidden; }
.cov { padding: 13px 14px; border-right: 1px solid var(--rule-2); min-width: 0; }
.cov:last-child { border-right: 0; }
.cov-top { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; }
.cov-top i { font: 12px var(--mono); font-style: normal; width: 14px; }
.cov.ok i { color: var(--safe); }
.cov.no { color: var(--muted); }
.cov-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

.block { margin-top: 44px; }
.block > h2 { font: 400 34px/1.1 var(--serif); letter-spacing: -0.015em; margin-bottom: 6px; }
.block > .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; max-width: 70ch; }

/* wallet timeline */
.timeline { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.ev { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--rule-2); }
.ev:last-child { border-bottom: 0; }
.ev-t { font: 12.5px var(--mono); color: var(--muted); padding-top: 3px; }
.ev-title { font-weight: 500; }
.ev-note { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.ev-msg { font: 13px/1.5 var(--mono); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 6px; padding: 10px 12px; margin-top: 10px; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; }
.tx { margin-top: 12px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.tx[data-level] { border-color: color-mix(in srgb, var(--v) 40%, transparent); }
.tx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--v-bg, var(--paper)); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.tx-head small { font: 12px var(--mono); color: var(--ink-2); font-weight: 400; }
.chg { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule-2); font-family: var(--mono); font-size: 14px; align-items: baseline; }
.chg .out { color: var(--danger); font-weight: 500; }
.chg .in { color: var(--safe); font-weight: 500; }
.chg small { color: var(--muted); font-size: 12.5px; }
.flag { padding: 10px 14px; border-top: 1px solid var(--rule-2); font-size: 14.5px; color: var(--danger); }
details.ix { border-top: 1px solid var(--rule-2); }
details.ix summary { padding: 9px 14px; font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; }
details.ix summary::before { content: '+ '; font-family: var(--mono); }
details.ix[open] summary::before { content: '– '; }
details.ix ol { margin: 0; padding: 2px 14px 12px 38px; font: 12.5px/1.7 var(--mono); color: var(--ink-2); word-break: break-all; }
.empty { padding: 20px 18px; color: var(--ink-2); font-size: 15px; }

/* findings */
.findings { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.finding { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--rule-2); }
.finding:last-child { border-bottom: 0; }
.sev { font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 5px; display: flex; gap: 7px; align-items: baseline; }
.sev::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex: none; transform: translateY(1px); }
.sev-critical { color: var(--danger); } .sev-high { color: var(--high); } .sev-medium { color: var(--caution); }
.sev-low { color: var(--ink-2); } .sev-info { color: var(--muted); } .sev-good { color: var(--safe); }
.finding h3 { font: 600 15.5px/1.35 var(--sans); }
.finding p { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; }
.finding .why { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* fact sheets */
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sheet { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); padding: 6px 18px 10px; }
.sheet h3 { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 10px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule-2); font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
dl { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 12px var(--mono); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 4px; padding: 2px 6px; color: var(--ink-2); }
.note { margin-top: 28px; font-size: 13.5px; color: var(--muted); max-width: 80ch; }

.center { padding: 14vh 0; text-align: center; }
.center h1 { font: 400 44px/1.05 var(--serif); margin-bottom: 12px; }
.center p { color: var(--ink-2); margin-bottom: 24px; }
.center .btn { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 860px) {
  .steps, .limits, .sheets { grid-template-columns: 1fr; gap: 26px; }
  .sheets { gap: 14px; }
  .verdict { grid-template-columns: 1fr; }
  .shot { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--v) 28%, transparent); max-height: 300px; }
  .coverage { grid-template-columns: repeat(2, 1fr); }
  .cov { border-bottom: 1px solid var(--rule-2); }
  .finding, .ev { grid-template-columns: 1fr; gap: 6px; }
  .verdict-main { padding: 26px 22px; }
  .top-nav { gap: 16px; }
  .recent-row { grid-template-columns: 44px 1fr auto; }
  .recent-time { display: none; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 520px) {
  .scanbar { flex-direction: column; }
  .btn { width: 100%; }
  .actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .progress::after, .log li.active .tick { animation: none; } }

.ev-rep { font: 400 12px var(--mono); color: var(--muted); margin-left: 10px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

/* --- full-bleed layout: the page uses the whole window, with only a gutter ---------------- */
:root { --gutter: clamp(18px, 3.2vw, 56px); }
.top, main, .foot { max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.hero { max-width: none; padding-top: 7vh; }
.hero h1 { font-size: clamp(44px, 8.6vw, 168px); max-width: 16ch; }
.lede { font-size: clamp(17px, 1.35vw, 23px); max-width: 62ch; }
.scanbar { max-width: min(100%, 1100px); }
.limits, .note { max-width: none; }
.scanning { max-width: none; }
.scanning .log, .scanning .progress { max-width: none; }
.block > .sub { max-width: none; }
.verdict-sum { max-width: 44ch; }
@media (min-width: 1500px) {
  .steps { gap: 64px; }
  .step h3 { font-size: 34px; }
  .step p, .limits { font-size: 17px; }
  .sheets { grid-template-columns: repeat(3, 1fr); }
}
.verdict-score b { font-size: clamp(92px, 12vw, 230px); }
.verdict-sum { font-size: clamp(25px, 2.1vw, 42px); }
.verdict-host { font-size: clamp(17px, 1.2vw, 22px); }
.verdict-main { padding: clamp(26px, 2.6vw, 52px); }
.block > h2 { font-size: clamp(34px, 2.6vw, 48px); }

/* --- minimal: black and white, headings in the same sans, home reduced to the one action --- */
html { color-scheme: dark; }
.hero h1, .scanning h1, .center h1, .block > h2, .verdict-sum, .step h3 { font-weight: 500; letter-spacing: -0.035em; }
.verdict-score b, .recent-score { font-weight: 500; letter-spacing: -0.05em; }
.recent-score { font-size: 19px; }
.block > h2 { font-size: clamp(24px, 1.9vw, 34px); }
.verdict-sum { font-size: clamp(21px, 1.7vw, 32px); line-height: 1.25; }
.scanbar { border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.scanbar:focus-within { border-color: #5a5a5a; }
.btn { border-radius: 8px; }
.top-nav a { color: var(--muted); }
.foot { border-top: 0; text-align: center; }

.home { min-height: calc(100vh - 190px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0 40px; }
.home h1 { font: 500 clamp(30px, 4.4vw, 68px)/1.04 var(--sans); letter-spacing: -0.04em; text-wrap: balance; max-width: 18ch; }
.home .scanbar { width: min(100%, 720px); margin-top: clamp(26px, 4vh, 44px); text-align: left; }
.home .form-error { min-height: 22px; }
.chains { margin-top: 6px; font: 400 12.5px/1.6 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.home-recent { width: min(100%, 720px); margin-top: clamp(30px, 6vh, 64px); text-align: left; }
.home-recent .recent-row { grid-template-columns: 40px 1fr auto auto; padding: 9px 0; }
.home-recent .stats { text-align: center; }
@media (max-width: 560px) {
  .home .scanbar { flex-direction: column; }
  .home-recent .recent-time { display: none; }
}

/* --- docs ---------------------------------------------------------------------- */
.top-nav a:hover { color: var(--ink); }
.docs { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(28px, 5vw, 88px); padding: 4vh 0 40px; justify-content: center; }
.docs-toc { position: sticky; top: 28px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.docs-toc a { color: var(--muted); text-decoration: none; padding: 5px 0; }
.docs-toc a:hover { color: var(--ink); }
.docs-body h1 { font: 500 clamp(34px, 4vw, 56px)/1.05 var(--sans); letter-spacing: -0.04em; }
.docs-lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.docs-body section { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 34px; scroll-margin-top: 20px; }
.docs-body h2 { font: 500 24px/1.2 var(--sans); letter-spacing: -0.025em; margin-bottom: 14px; }
.docs-body h3 { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.docs-body section p, .docs-body li, .docs-body dd { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.docs-body section p { margin-top: 12px; text-wrap: pretty; }
.docs-body ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.docs-body li { padding-left: 18px; position: relative; }
.docs-body li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 5px; height: 1px; background: var(--muted); }
.doc-rows { margin: 14px 0 0; display: grid; }
.doc-rows > div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 11px 0; border-top: 1px solid var(--rule-2); }
.doc-rows > div:first-child { border-top: 0; }
.doc-rows dt { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.doc-rows dd { margin: 0; }
.docs-cta { display: inline-flex; align-items: center; margin-top: 48px; text-decoration: none; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .docs-toc { position: static; grid-template-columns: 1fr 1fr; gap: 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
  .doc-rows > div { grid-template-columns: 1fr; gap: 3px; }
}
