:root {
  --bg: #050506; --panel: #0a0b0e; --line: #1b1d22; --line2: #2b2e36;
  --text: #f3f5f8; --muted: #8f95a1; --dim: #737986;
  --glow: #4cc2ff; --showing: #ff7a59; --hidden: #5fe3a1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Geist, Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.mono { font-family: "Geist Mono", ui-monospace, Consolas, monospace; }
a { color: inherit; text-decoration: none; }
p a, .sub a { border-bottom: 1px solid var(--line2); }
p a:hover { border-color: var(--glow); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.w { max-width: 1200px; margin: auto; padding: 0 32px; }

/* Token strip */
.strip { background: var(--panel); border-bottom: 1px solid var(--line); font: 12px "Geist Mono", monospace; color: var(--muted); }
.strip .w { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 8px; flex-wrap: wrap; }
.strip b { color: var(--glow); font-weight: 500; }
.strip code { color: var(--text); word-break: break-all; }
.strip button, .strip a { height: 26px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 6px; background: none; color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; }

/* Top bar */
header { position: sticky; top: 0; z-index: 10; background: #050506cc; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header .w { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -.01em; }
nav.links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
nav.links a:hover { color: var(--text); }
.pillbtn { font-size: 14px; border: 1px solid var(--line2); padding: 7px 14px; border-radius: 8px; white-space: nowrap; }
.pillbtn:hover { border-color: var(--glow); }

/* Buttons and labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 8px; font: 500 15px Geist, sans-serif; background: var(--text); color: #000; border: 0; cursor: pointer; transition: opacity .15s, border-color .15s; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.o { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.o:hover { border-color: var(--muted); opacity: 1; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { display: inline-block; width: 6px; height: 6px; background: var(--glow); margin-right: 10px; vertical-align: 1px; }

/* Hero */
.hero { padding: 120px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(76, 194, 255, .24) 1.1px, transparent 1.3px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 82% 38%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 60% 80% at 82% 38%, #000 0%, transparent 72%); }
.hero > .w { position: relative; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 28px 0; max-width: 800px; text-wrap: balance; }
.lead { font-size: 20px; color: #a6acb8; max-width: 580px; margin: 0 0 40px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dialw { position: absolute; right: max(-140px, calc((100vw - 1200px) / 2 - 140px)); top: 10px; width: 620px; height: 620px; pointer-events: none; }
.dialw svg, .dialw canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.clockline { margin-top: 84px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: linear-gradient(#05050600, #050506 30%); }
.clockline > div { padding: 22px 20px 0; border-right: 1px solid var(--line); min-width: 0; }
.clockline > div:first-child { padding-left: 0; }
.clockline > div:last-child { border-right: 0; }
.clockline b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clockline span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.bar { height: 2px; background: var(--line); margin-top: 12px; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--glow); width: 0; transition: width .6s; }
.fine { font-size: 13px; color: var(--dim); margin: 34px 0 0; }

/* Sections */
section { padding: 104px 0; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; font-weight: 500; line-height: 1.05; margin: 18px 0; max-width: 760px; text-wrap: balance; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 52px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 28px; background: #08090b; }
.steps b { display: block; font-size: 13px; letter-spacing: .12em; color: var(--glow); font-weight: 500; margin-bottom: 14px; }
.steps h3, .spec h3 { font-size: 24px; letter-spacing: -.03em; font-weight: 500; margin: 0 0 10px; line-height: 1.25; }
.steps p, .spec p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec > div { padding: 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.spec > div:last-child { border-right: 0; }
.spec .k { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.spec h3 { margin-top: 40px; }
.spec p { margin-bottom: 28px; }
.spec dl { margin: auto 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; }

/* Checker */
.panel, .code { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.live { color: var(--text); white-space: nowrap; }
.live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); margin-right: 8px; vertical-align: 1px; }
.live.on i { background: var(--hidden); animation: pulse 2s infinite; }
.live.off i { background: var(--showing); }
@keyframes pulse { 50% { opacity: .25; } }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stats div:last-child { border-right: 0; }
.stats span { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stats b { display: block; font-weight: 400; font-size: 20px; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg { display: grid; grid-template-columns: 1fr 360px; }
.tbl { grid-column: 1; grid-row: 1; border-right: 1px solid var(--line); font-size: 13px; min-height: 480px; min-width: 0; }
.sd { grid-column: 2; grid-row: 1; padding: 22px 20px; }
.sd label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.sd input { width: 100%; height: 48px; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 0 14px; font-size: 16px; }
.sd input:focus { border-color: var(--glow); outline: 0; box-shadow: 0 0 0 3px #4cc2ff26; }
.sd .btn { width: 100%; margin-top: 12px; }
.msg { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--showing); }
.msg:empty { display: none; }
.privacy { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.cap { padding: 14px 20px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.capx { display: flex; justify-content: space-between; align-items: center; }
#back { background: none; border: 0; color: var(--glow); cursor: pointer; font: inherit; padding: 4px 0; }
.th, .row { display: grid; grid-template-columns: .9fr .8fr 1.5fr .8fr .8fr; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.th { color: var(--dim); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.row { color: #c6cad2; font-variant-numeric: tabular-nums; transition: background .15s; }
.row:hover { background: #4cc2ff0f; }
.row .hx { color: var(--muted); }
.row .acc { color: var(--text); }
.row.empty { display: block; color: var(--muted); }
.row.empty:hover { background: none; }
.verdict { margin: 20px; padding: 22px 24px; border-radius: 10px; border: 1px solid var(--line2); font-family: Geist, sans-serif; }
.verdict b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 10px; }
.verdict p { margin: 0; font-size: 16px; line-height: 1.55; color: #c6cad2; }
.verdict p + p { margin-top: 10px; color: var(--text); }
.verdict.showing { border-color: #ff7a5980; background: #ff7a590f; }
.verdict.showing b { color: var(--showing); }
.verdict.hidden-key { border-color: #5fe3a180; background: #5fe3a10f; }
.verdict.hidden-key b { color: var(--hidden); }
.kvs { margin: 0; padding: 0 20px 18px; }
.kvs div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.kvs dt { color: var(--muted); flex: none; }
.kvs dd { margin: 0; text-align: right; word-break: break-all; }

/* Do it yourself */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two > * { min-width: 0; }
.two .sub { margin-bottom: 32px; }
.code pre { margin: 0; padding: 26px 24px; font-size: 14px; line-height: 1.9; overflow: auto; color: #d4d7de; }
.code .c { color: var(--dim); }
.code .p { color: var(--glow); }

/* Timeline */
.rm { border-top: 1px solid var(--line); }
.rm > div { display: grid; grid-template-columns: 120px 1fr 110px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rm .ph2 { color: var(--dim); font-size: 13px; }
.rm b { font-weight: 500; }
.rm p { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 680px; }
.rm .st { font-size: 12px; text-align: right; color: var(--muted); }
.rm .st.on { color: var(--glow); }
.note { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; color: var(--muted); font-size: 15px; margin-top: 48px; }
.note b { color: var(--text); font-weight: 500; }
footer { padding: 44px 0 56px; color: var(--dim); font-size: 13px; }
footer .w { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .pg { grid-template-columns: 1fr; }
  .sd { grid-column: 1; border-bottom: 1px solid var(--line); }
  .tbl { grid-row: 2; border-right: 0; min-height: 0; }
}
@media (max-width: 900px) {
  .w { padding: 0 20px; }
  nav.links { display: none; }
  .hero { padding: 72px 0 40px; }
  .dialw { width: 420px; height: 420px; right: -190px; opacity: .55; }
  .clockline { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .clockline > div { padding: 16px 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .clockline > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .clockline b { font-size: 19px; }
  .clockline span { font-size: 11px; letter-spacing: .02em; }
  section { padding: 76px 0; }
  .steps, .spec, .two { grid-template-columns: 1fr; }
  .two { gap: 36px; }
  .spec > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec > div:last-child { border-bottom: 0; }
  .spec h3 { margin-top: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .stats div:nth-child(even) { border-right: 0; }
  .stats div:nth-child(5) { display: none; }
  .th, .row { grid-template-columns: .9fr .8fr 1.5fr .8fr; gap: 8px; }
  .hide-s { display: none; }
  .rm > div { grid-template-columns: 1fr; gap: 4px; }
  .rm .st { text-align: left; }
  .kvs div { flex-direction: column; gap: 2px; }
  .kvs dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
}
