/* Self-hosted fonts (SIL OFL 1.1, licences in assets/fonts/). The page makes no third-party requests. */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("assets/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("assets/fonts/unbounded-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #120f26;
  --ink-2: #1c1838;
  --ink-3: #272246;
  --text: #f2f0ff;
  --muted: #a29fc2;
  --dim: #6d6992;
  --line: rgba(255, 255, 255, 0.09);
  --g-f: #ff4d6a;
  --g-d: #ff9147;
  --g-c: #ffd23f;
  --g-b: #c6f04a;
  --g-a: #7be86b;
  --g-s: #2ee6a6;
  --display: "Unbounded", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--g-b); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--g-b); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; text-wrap: balance; }
h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.18; }
p { margin: 0; }

section { padding: clamp(56px, 7vw, 96px) var(--gutter); max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; }
section { scroll-margin-top: 64px; }
.section-intro { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-intro p { color: var(--muted); margin-top: 14px; font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 14px;
  background: var(--g-b); color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn-sm { padding: 9px 14px; border-radius: 11px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: rgba(18, 15, 38, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; }
.logo img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 56px);
  align-items: center; padding-top: clamp(48px, 7vw, 96px);
}
.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 20px); margin-top: 22px; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--dim); font-size: 14.5px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-s); }

.demo {
  background: #0b0c16; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.3);
  overflow: hidden; position: relative;
}
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #15162a; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #34355a; }
.demo-url { flex: 1; font-size: 13px; color: #9ea2c0; background: #0e0f1d; border-radius: 8px; padding: 4px 10px; }
.replay { font: 600 12px var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.replay:hover { color: var(--text); }
/* hero scanner: token list + inline breakdown */
.scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 452px; }
.scan-list { border-right: 1px solid rgba(255,255,255,0.05); padding: 6px; outline: none; }
.scan-list:focus-visible { box-shadow: inset 0 0 0 2px var(--g-b); }
.srow {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 11px; align-items: center;
  padding: 10px; border-radius: 12px; cursor: pointer; color: #e3e4ef; font-size: 14px;
  font-variant-numeric: tabular-nums; transition: background 0.15s ease;
}
.srow:hover { background: rgba(255,255,255,0.03); }
.srow[aria-selected="true"] { background: #17182d; }
.srow img { width: 32px; height: 32px; border-radius: 50%; }
.srow .sym { font-weight: 600; display: flex; align-items: center; }
.srow .sub { color: #7c7f9c; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .mc { text-align: right; font-size: 13px; }
.srow .mc small { display: block; font-size: 12px; }
.srow .up { color: var(--g-s); } .srow .down { color: var(--g-f); }
.srow .timer { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; opacity: 0; }
.srow[aria-selected="true"] .timer { opacity: 1; }
.srow .timer i { display: block; height: 100%; width: 0; background: var(--g-b); }
.demo.paused .srow .timer { opacity: 0; }
.pending { display: inline-block; width: 32px; height: 18px; margin-left: 8px; border-radius: 999px; background: linear-gradient(90deg, #1d1f36, #2b2d4c, #1d1f36); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cv-badge.pop { animation: badgeIn 0.45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes badgeIn { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.scan-detail { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg, #101123, #0b0c16); }
.sd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sd-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sd-id img { width: 36px; height: 36px; border-radius: 50%; }
.sd-id b { display: block; font-size: 16px; }
.sd-id small { color: #7c7f9c; font-size: 12.5px; }
.sd-score { text-align: right; line-height: 1; }
.sd-score b { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -0.05em; color: var(--tone); }
.nowrap { white-space: nowrap; }
.sd-score span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--tone); }
.sd-pillars { display: grid; gap: 9px; }
.sd-p { display: grid; grid-template-columns: 92px 1fr 26px; gap: 10px; align-items: center; font-size: 12.5px; color: #a6a8c2; }
.sd-p .tr { height: 6px; border-radius: 6px; background: #1b1d33; overflow: hidden; }
.sd-p .tr i { display: block; height: 100%; border-radius: 6px; transition: width 0.45s cubic-bezier(.2,.8,.2,1); }
.sd-p b { text-align: right; color: #e9eaf3; font-variant-numeric: tabular-nums; font-weight: 600; }
.sd-flags { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,0.06); display: grid; gap: 7px; font-size: 13px; color: #c9cbe0; }
.sd-flags li { display: flex; gap: 9px; align-items: baseline; }
.sd-flags li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sd-conf { margin-top: auto; font-size: 12px; color: var(--dim); }
.scan-detail.swap { animation: swapIn 0.25s ease-out; }
@keyframes swapIn { from { opacity: 0.35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.sd-empty { margin: auto; color: var(--dim); font-size: 14px; text-align: center; }

.demo-cap { padding: 10px 18px 12px; font-size: 12.5px; color: var(--dim); border-top: 1px solid rgba(255,255,255,0.05); }
.spectrum .ex { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.spectrum .ex img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(18,15,38,0.6); margin-right: -8px; background: #222; }
.spectrum .ex em { flex-basis: 100%; font-style: normal; font-size: 12.5px; font-weight: 600; margin-top: 8px; opacity: 0.85; }
.flagcol li small { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 12px; color: var(--dim); font-weight: 600; vertical-align: 1px; }
.flagcol li small img { width: 16px; height: 16px; border-radius: 50%; }

/* ---------- flags ---------- */
.flag-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.flagcol h3 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; padding-top: 14px; border-top: 3px solid var(--c); margin-bottom: 14px; }
.flagcol.bad { --c: var(--g-f); } .flagcol.warn { --c: var(--g-c); } .flagcol.good { --c: var(--g-s); }
.flagcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flagcol li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 15.5px; }
.flagcol li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }

/* ---------- feature tour ---------- */
.tour-grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tour-tabs { display: grid; gap: 4px; }
.tour-tabs button {
  text-align: left; font: inherit; color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 16px 18px 16px 20px; border-radius: 14px; position: relative; display: grid; gap: 4px;
}
.tour-tabs button::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: transparent; }
.tour-tabs button b { color: var(--text); font-family: var(--display); font-weight: 500; font-size: 17px; }
.tour-tabs button span { font-size: 15px; line-height: 1.5; }
.tour-tabs button:hover { background: rgba(255,255,255,0.03); }
.tour-tabs button[aria-selected="true"] { background: var(--ink-2); }
.tour-tabs button[aria-selected="true"]::before { background: var(--g-b); }
.tour-tabs button[aria-selected="false"] span { display: none; }
.tour-panel img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8); transition: opacity 0.2s ease; }
.tour-panel img.fade { opacity: 0.2; }

/* ---------- spectrum ---------- */
.spectrum { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 22px; overflow: hidden; }
.spectrum li { color: #120f26; padding: 26px 20px 28px; min-height: 300px; display: flex; flex-direction: column; }
.spectrum b { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 6.4vw, 92px); line-height: 0.9; letter-spacing: -0.05em; }
.spectrum .range { font-family: var(--display); font-weight: 500; font-size: 15px; margin-top: 14px; }
.spectrum .verdict { font-weight: 700; font-size: 17px; margin-top: auto; padding-top: 24px; }
.spectrum .desc { font-size: 14px; line-height: 1.45; margin-top: 6px; opacity: 0.82; }
.g-f { background: var(--g-f); } .g-d { background: var(--g-d); } .g-c { background: var(--g-c); }
.g-b { background: var(--g-b); } .g-a { background: var(--g-a); } .g-s { background: var(--g-s); }
.caps { color: var(--muted); margin-top: 24px; max-width: 760px; font-size: 16px; }

/* ---------- pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pillar-list { margin: 0; display: grid; gap: 0; }
.pillar-list div { padding: 18px 0; border-top: 1px solid var(--line); }
.pillar-list div:last-child { border-bottom: 1px solid var(--line); }
.pillar-list dt { font-family: var(--display); font-weight: 500; font-size: 19px; }
.pillar-list dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.weights { position: sticky; top: 96px; background: var(--ink-2); border-radius: 22px; padding: 26px; border: 1px solid var(--line); }
.seg { display: flex; background: var(--ink); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.seg button { flex: 1; font: 600 14px var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 10px 8px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(198, 240, 74, 0.35); }
.weight-bars { margin-top: 26px; display: grid; gap: 16px; }
.wb .top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 7px; }
.wb .top b { font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; }
.wb .track { height: 10px; border-radius: 10px; background: var(--ink); overflow: hidden; }
.wb .fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--g-b), var(--g-s)); transition: width 0.5s cubic-bezier(.2, .8, .2, 1); }
.weight-note { color: var(--muted); font-size: 15px; margin-top: 22px; }

.demo-cap { padding: 10px 18px 12px; font-size: 12.5px; color: var(--dim); border-top: 1px solid rgba(255,255,255,0.05); }
.spectrum .ex { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.spectrum .ex img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(18,15,38,0.6); margin-right: -8px; background: #222; }
.spectrum .ex em { flex-basis: 100%; font-style: normal; font-size: 12.5px; font-weight: 600; margin-top: 8px; opacity: 0.85; }
.flagcol li small { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 12px; color: var(--dim); font-weight: 600; vertical-align: 1px; }
.flagcol li small img { width: 16px; height: 16px; border-radius: 50%; }

/* ---------- flags ---------- */
/* ---------- privacy ---------- */
.privacy { border-top: 1px solid var(--line); }
.privacy h2 { max-width: 820px; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 32px; }
.privacy-grid p { color: var(--muted); font-size: 18px; }
.privacy-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.privacy-grid li { color: var(--muted); }
.privacy-grid b { color: var(--text); font-weight: 600; }

/* ---------- faq ---------- */
.faq { max-width: calc(820px + var(--gutter) * 2); }
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--display); color: var(--muted); font-size: 22px; transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding: 0 0 22px; max-width: 680px; }

/* ---------- final ---------- */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final img { border-radius: 18px; }
.final h2 { max-width: 640px; }

.foot { border-top: 1px solid var(--line); padding: 32px var(--gutter) 48px; color: var(--dim); font-size: 14px; display: grid; gap: 8px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .pillar-grid, .privacy-grid, .tour-grid { grid-template-columns: 1fr; }
  .tour-tabs { grid-template-columns: repeat(2, 1fr); }
  .tour-tabs button[aria-selected="false"] span { display: block; }
  .weights { position: static; }
  .spectrum { grid-template-columns: repeat(3, 1fr); }
  .flag-cols { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .spectrum { grid-template-columns: 1fr; }
  .spectrum li { min-height: 0; display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; padding: 18px; }
  .spectrum b { font-size: 48px; grid-row: span 3; }
  .spectrum .range { margin-top: 0; }
  .spectrum .verdict { margin-top: 2px; padding-top: 0; }
  .scan { grid-template-columns: 1fr; }
  .scan-list { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .tour-tabs { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
