/* ---- fonts (vendored, offline-safe) ---- */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url("vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url("vendor/fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JBMono"; font-weight: 400; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JBMono"; font-weight: 500; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JBMono"; font-weight: 700; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --base: #0a0c10;
  --s1: #0f131a;
  --s2: #141a23;
  --s3: #1b222d;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #eef1f6;
  --muted: #98a2b0;
  --faint: #5f6877;
  --mint: #5ef0c6;     /* brand accent — rationed like punctuation */
  --red: #f0676b;
  --amber: #e8b341;
  --green: #57c694;    /* scarce — pass only */
  --ink: #061712;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
a { color: var(--mint); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* living background — one confined glow, faint grid, off-black */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 38% at 78% 6%, rgba(94, 240, 198, 0.10), transparent 72%),
    linear-gradient(transparent 0 96%, rgba(255,255,255,0.022) 96%) 0 0 / 100% 30px,
    linear-gradient(90deg, transparent 0 96%, rgba(255,255,255,0.022) 96%) 0 0 / 30px 100%; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.mark { width: 18px; height: 18px; background: var(--mint); box-shadow: 0 0 16px rgba(94, 240, 198, 0.45);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2l11 4v8c0 7-4.7 12.5-11 16C9.7 26.5 5 21 5 14V6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 2l11 4v8c0 7-4.7 12.5-11 16C9.7 26.5 5 21 5 14V6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav-right { display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.nav-right a { color: var(--muted); }
.nav-right a:hover { color: var(--text); }
.live { display: flex; align-items: center; gap: 7px; }
.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94,240,198,.6); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,240,198,.5); } 70% { box-shadow: 0 0 0 6px rgba(94,240,198,0); } 100% { box-shadow: 0 0 0 0 rgba(94,240,198,0); } }

/* hero — asymmetric editorial split */
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: start; padding: 48px 0 96px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); margin: 0 0 20px; }
h1 { font-size: clamp(38px, 4.7vw, 54px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 22px; }
h1 .nb { white-space: nowrap; }
.lede { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0 0 32px; }

.scan { display: flex; align-items: center; gap: 0; background: var(--s1); border: 1px solid var(--line2); border-radius: 12px; padding: 5px 5px 5px 16px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.scan:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(94,240,198,0.16); }
.prompt { font-family: var(--mono); font-size: 13px; color: var(--mint); white-space: nowrap; opacity: 0.85; }
.scan input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font-family: var(--mono); font-size: 14px; padding: 12px 12px; font-variant-numeric: tabular-nums; }
.scan input::placeholder { color: var(--faint); }
.scan input:focus { outline: none; }
.scan button { background: var(--mint); color: var(--ink); border: 0; border-radius: 8px; width: 42px; height: 42px; font-size: 18px; font-weight: 700; cursor: pointer; flex: none; transition: transform 80ms var(--ease), filter 150ms var(--ease); }
@media (hover: hover) { .scan button:hover { filter: brightness(1.08); } }
.scan button:active { transform: scale(0.94); }
.scan button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(94,240,198,0.4); }
.scan-meta { display: flex; align-items: center; gap: 16px; margin: 14px 2px 0; min-height: 20px; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; font-family: var(--mono); padding: 0; }
.link:hover { color: var(--mint); }
.status { font-size: 13px; color: var(--muted); }
.status.err { color: var(--red); }
.status.warn { color: var(--amber); }
.status.loading::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 7px; vertical-align: -1px; border: 2px solid var(--line2); border-top-color: var(--mint); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 40px 0 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.trust a { color: var(--muted); }

/* ---- the verdict credential (signature element) ---- */
.credential { position: relative; background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line2);
  border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7); }
.credential::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(94,240,198,0.25), transparent 38%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.credential.enter { animation: rise 300ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }

.cred-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.grade-wrap { display: flex; align-items: center; gap: 14px; }
.grade { font-size: 58px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.grade-meta { display: flex; flex-direction: column; gap: 7px; }
.pill { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 6px; width: fit-content; }
.pill.ok { background: rgba(87,198,148,0.12); color: var(--green); box-shadow: inset 0 0 0 1px rgba(87,198,148,0.35); }
.pill.bad { background: rgba(240,103,107,0.12); color: var(--red); box-shadow: inset 0 0 0 1px rgba(240,103,107,0.35); }
.score-line { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.score-max { color: var(--faint); font-size: 13px; }
.cred-target { text-align: right; max-width: 46%; }
.cred-target .k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.cred-target code { font-size: 11px; color: var(--muted); word-break: break-all; }

.sevstrip { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0; }
.sev { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 5px; border: 1px solid var(--line2); color: var(--muted); }
.sev b { font-weight: 700; }
.sev.high { color: var(--red); border-color: rgba(240,103,107,0.4); }
.sev.med { color: var(--amber); border-color: rgba(232,179,65,0.4); }
.sev.info { color: var(--muted); }

/* code excerpt — real evidence at the flagged line */
.excerpt { background: var(--base); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.excerpt-head { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,0.015); }
.code { margin: 0; padding: 12px 0; font-family: var(--mono); font-size: 12px; line-height: 1.65; overflow-x: auto; }
.code .ln { display: block; padding: 0 14px; white-space: pre; color: var(--text); }
.code .ln .num { display: inline-block; width: 26px; color: var(--faint); user-select: none; }
.code .ln.flag { background: rgba(240,103,107,0.10); box-shadow: inset 2px 0 0 var(--red); }
.code .kw { color: #c4a2ff; } .code .cm { color: var(--faint); font-style: italic; } .code .fn { color: var(--mint); } .code .st { color: #e8b341; }

.receipt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line2); }
.receipt-row { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; font-size: 11.5px; }
.receipt-row .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); min-width: 84px; }
.receipt-row code { color: var(--muted); word-break: break-all; }
.receipt-links { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }

/* checks / ledger section */
.checks { padding: 40px 0 64px; max-width: 760px; }
.checks h2 { font-size: 30px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 16px; max-width: 56ch; margin: 0 0 32px; }
.ledger { display: grid; gap: 0; border-top: 1px solid var(--line); }
.led { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.led-k { color: var(--mint); font-size: 12px; letter-spacing: 0.04em; }
.led-v { color: var(--muted); font-size: 15px; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding: 26px 0 56px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
footer a { color: var(--muted); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  h1 { font-size: clamp(36px, 9vw, 52px); }
  .credential { order: 2; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .cred-top { flex-direction: column; }
  .cred-target { text-align: left; max-width: 100%; }
  .led { grid-template-columns: 1fr; gap: 4px; }
}
/* ---- nav links + registry page ---- */
a.brand { color: var(--text); text-decoration: none; }
.nav-right a.active { color: var(--text); }

.reg-head { padding: 28px 0 24px; max-width: 680px; }
.reg-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 14px 0 16px; }
.reg-head .lede { margin-bottom: 28px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 4px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .sv { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.stat .sl { font-size: 12px; color: var(--muted); }

.reg-table-wrap { margin: 16px 0 56px; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg-table thead th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 0 14px 12px; border-bottom: 1px solid var(--line2); }
.reg-table tbody td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.reg-table tbody tr { transition: background 120ms var(--ease); }
@media (hover: hover) { .reg-table tbody tr:hover { background: rgba(255,255,255,0.022); } }
.reg-table .dim { color: var(--faint); }
.rg { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; font-weight: 800; font-size: 15px; }
.rg-ok { color: var(--green); background: rgba(87,198,148,0.10); box-shadow: inset 0 0 0 1px rgba(87,198,148,0.28); }
.rg-med { color: var(--amber); background: rgba(232,179,65,0.10); box-shadow: inset 0 0 0 1px rgba(232,179,65,0.28); }
.rg-bad { color: var(--red); background: rgba(240,103,107,0.10); box-shadow: inset 0 0 0 1px rgba(240,103,107,0.28); }
.tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 5px; }
.tag.ok { color: var(--green); box-shadow: inset 0 0 0 1px rgba(87,198,148,0.32); }
.tag.bad { color: var(--red); box-shadow: inset 0 0 0 1px rgba(240,103,107,0.32); }
.rowlink { color: var(--muted); font-size: 15px; }
.rowlink:hover { color: var(--mint); }

.dev { padding: 8px 0 72px; max-width: 760px; }
.dev h2 { font-size: 26px; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
.snippet { background: var(--base); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 24px 0 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; color: var(--text); }
.snippet .kw { color: #c4a2ff; } .snippet .cm { color: var(--faint); font-style: italic; } .snippet .fn { color: var(--mint); } .snippet .st { color: var(--amber); }

@media (max-width: 640px) {
  .reg-table thead { display: none; }
  .reg-table tbody td { display: inline-block; border: 0; padding: 4px 10px 4px 0; }
  .reg-table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stats { gap: 24px; }
}

/* ---- live audit: paste-source box, findings list, off-chain note ---- */
.source-box { width: 100%; margin-top: 12px; background: var(--base); border: 1px solid var(--line2); color: var(--text);
  border-radius: 11px; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; min-height: 120px; resize: vertical; }
.source-box:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(94,240,198,0.16); }
.findings { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.findings li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.findings li:last-child { border-bottom: 0; }
.fsev { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; flex: none; min-width: 58px; text-align: center; }
.fsev.high { color: var(--red); box-shadow: inset 0 0 0 1px rgba(240,103,107,0.4); }
.fsev.med { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(232,179,65,0.4); }
.fsev.low { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line2); }
.ftxt { color: var(--text); }
.cred-note { font-size: 11.5px; color: var(--amber); margin-bottom: 12px; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
