/* TDB Mempool Data — deeptech style: navy black, cool white, one blue (logo). Fonts self-hosted (SIL OFL). */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/static/fonts/archivo-latin-wdth-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #05070E;
  --bg-2: #0B0F18;
  --panel: rgba(11,15,24,.78);
  --fg: #EEF2F7;
  --fg-2: #C2CAD6;
  --muted: #8A94A3;
  --rule: rgba(238,242,247,.12);
  --rule-2: rgba(238,242,247,.24);
  --y: #0C95F5;
  --y-2: #3DAEFF;
  --green: #6FD39A;
  --red: #FF8A7A;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  /* names used by console/admin templates */
  --gold: var(--y); --blue: #3FD2F5; --line: var(--rule); --line-2: var(--rule-2);
  --text: var(--fg); --text-2: var(--fg-2); --soft: var(--fg-2); --surface: var(--bg-2); --surface-2: #121723;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); }
a:hover { color: var(--y); }
:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
img, svg { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; color: var(--fg); }
h1, h2, .display { font-family: var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 6rem); line-height: .95; }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: .98; }
h3 { font: 600 1.15rem/1.3 var(--sans); }
summary { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.section { border-top: 1px solid var(--rule); }
.section > .wrap, .section > .narrow { padding-top: 104px; padding-bottom: 104px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-0 { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { min-width: 0; }
.center { text-align: center; align-items: center; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.grow { flex: 1 1 200px; }

/* Type helpers */
.mono { font-family: var(--mono); }
.label, .eyebrow, .label-up { font: 500 12.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label.y, .eyebrow { color: var(--y); }
.muted { color: var(--muted); }
.soft { color: var(--fg-2); }
.small { font-size: 13.5px; }
.small-14 { font-size: 14px; }
.strong { font-weight: 600; }
.r { text-align: right; }
.lead { font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 34em; }
.gold, .y { color: var(--y); }
.green { color: var(--green); }
.arrow { color: var(--y); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 20px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 0; }
.btn-primary { background: var(--y); color: #111; }
.btn-primary:hover { background: var(--y-2); color: #111; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--y); color: var(--fg); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255,138,122,.5); }
.btn-block { width: 100%; }
button.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* Header */
.skip { position: absolute; left: -10000px; top: 8px; background: var(--y); color: #111; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .2s; }
.nav.solid, body:not(.home) .nav { background: rgba(5,7,14,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
body:not(.home) main { padding-top: 76px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand b { font: 800 22px var(--display); font-stretch: 118%; letter-spacing: .04em; }
.brand span { font: 400 11.5px var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.brand img { display: block; height: 30px; width: auto; }
.footer-logo { display: block; width: 140px; height: auto; margin-bottom: 6px; }
.pill { display: flex; gap: 2px; background: rgba(238,242,247,.07); border: 1px solid rgba(238,242,247,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 4px; border-radius: 999px; }
.pill a { color: var(--fg); text-decoration: none; font-size: 14px; padding: 7px 16px; border-radius: 999px; }
.pill a:hover { background: rgba(238,242,247,.1); color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-right a, .nav-right .linklike { color: var(--fg-2); text-decoration: none; }
.nav-right .lang { font: 12.5px var(--mono); letter-spacing: .1em; }
.nav-right .btn { color: #111; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-2); background: rgba(5,7,14,.6); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--fg); }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 40% at 50% 50%, rgba(5,7,14,.55), rgba(5,7,14,0) 75%), linear-gradient(180deg, rgba(5,7,14,.6), rgba(5,7,14,0) 18%, rgba(5,7,14,0) 68%, rgba(5,7,14,.9)); }
.hero .blocks { position: absolute; left: 83.5%; top: 31%; width: 13%; height: 38%; z-index: 1; }
.hero-center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.hero h1 .arrow { font-stretch: 100%; margin-right: .12em; }
.hero .sub { margin-top: 30px; font: 500 15px/1.65 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #E6E2D8; }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stat { position: absolute; left: 32px; bottom: 34px; z-index: 2; }
.hero-stat b { display: block; font: 800 64px/1 var(--display); font-stretch: 110%; color: var(--y); margin-top: 8px; }
.hero-stat b small { font: 500 18px var(--sans); color: var(--fg); margin-left: 6px; }
.hero-card { position: absolute; right: 32px; bottom: 34px; z-index: 2; width: 370px; background: var(--panel); border: 1px solid var(--rule-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px 20px; }
.hero-card .label { color: var(--y); }
.hero-card .label::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--y); margin-right: 10px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.kv-row span:last-child { font-family: var(--mono); }
.hero-card .btn { margin-top: 14px; width: 100%; }

/* Home sections */
.split-text { display: flex; flex-direction: column; gap: 24px; }
.tags { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); max-width: 30em; }
.tags span { font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; color: var(--fg-2); }
.tags span b { font-weight: 500; color: var(--fg); }
.schema { border: 1px solid var(--rule); background: var(--bg-2); padding: 28px; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.numbers > div { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.numbers b { font: 800 clamp(2.2rem, 3.4vw, 3.4rem)/1 var(--display); font-stretch: 104%; white-space: nowrap; }
.numbers > div:first-child b { color: var(--y); }
.numbers span { color: var(--fg-2); font-size: 15px; max-width: 16em; }
.foot-note { margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
.plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan .per { font-size: 13px; color: var(--muted); }
.plan { padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--rule); }
.plan:last-child { border-right: 0; }
.plan.main { background: rgba(12,149,245,.05); box-shadow: inset 0 3px 0 var(--y); }
.plan .price { font: 800 3rem/1 var(--display); font-stretch: 108%; margin-top: 8px; }
.plan .price small { font: 400 14px var(--sans); color: var(--muted); margin-left: 6px; letter-spacing: 0; display: inline-block; white-space: nowrap; }
.plan p { color: var(--fg-2); font-size: 15px; }
.plan .btn { margin-top: auto; }
.links-list { border-top: 1px solid var(--rule-2); }
.links-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--fg); }
.links-list a b { font: 800 clamp(1.4rem, 2.6vw, 2.2rem)/1.05 var(--display); font-stretch: 110%; text-transform: uppercase; }
.links-list a span { color: var(--fg-2); font-size: 15px; text-align: right; max-width: 26em; }
.links-list a:hover b { color: var(--y); }
.links-list a b::before { content: "↘ "; color: var(--y); }
.credits { display: flex; flex-wrap: wrap; gap: 10px 32px; font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credits b { color: var(--fg); font-weight: 500; }

/* Generic components (console, admin, auth, docs) */
.card { background: var(--bg-2); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card-gold { border-color: var(--y); }
.tiles { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule-2); }
.tiles > div { flex: 1 1 200px; padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.tiles .big { font: 800 30px var(--display); font-stretch: 108%; }
.badge { font: 11.5px var(--mono); border: 1px solid var(--rule-2); padding: 1px 8px; color: var(--fg-2); white-space: nowrap; letter-spacing: .06em; }
.badge-gold { border-color: var(--y); color: var(--y); }
.badge-green { color: var(--green); border-color: rgba(111,211,154,.5); }
.chip { border: 1px solid var(--rule-2); padding: 2px 8px; font: 12.5px var(--mono); color: var(--fg-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot.off { background: var(--muted); }
.keybox { font: 14px var(--mono); background: #000; border: 1px solid var(--y); padding: 12px 14px; overflow-wrap: anywhere; color: var(--y); }
.codes { font: 14px var(--mono); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 20px; }
pre.code { margin: 0; background: #000; border: 1px solid var(--rule); color: #E6E2D8; padding: 18px 20px; font: 13.5px/1.75 var(--mono); overflow-x: auto; }
pre.code .c { color: var(--muted); }
table.data, table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.tbl th { text-align: left; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule-2); }
table.data td, table.tbl td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data td.mono { font-size: 13.5px; }
.table-box { background: var(--bg-2); border: 1px solid var(--rule); }
.table-box .head { padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); }
.table-box table.data th, .table-box table.data td { padding-left: 18px; }
.scroll-x { overflow-x: auto; }

/* Flash & forms */
.flashes { max-width: 1280px; margin: 16px auto 0; padding: 0 32px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 3; }
body.home .flashes { position: fixed; top: 84px; left: 0; right: 0; z-index: 60; }
.flash { border: 1px solid var(--rule-2); border-left: 3px solid var(--y); background: var(--bg-2); padding: 10px 14px; font-size: 15px; }
.flash.success { border-left-color: var(--green); }
.flash.error { border-left-color: var(--red); color: #FFD1CA; }
.form-error { border: 1px solid rgba(255,138,122,.5); color: #FFD1CA; background: #1A0E0E; padding: 10px 14px; font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form .inline { flex-direction: row; align-items: flex-start; gap: 10px; font: 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg-2); }
input[type=text], input[type=email], input[type=password], select, textarea {
  font: 15px var(--sans); letter-spacing: 0; text-transform: none; padding: 11px 13px; min-height: 46px; border: 1px solid var(--rule-2); border-radius: 0; background: #000; color: var(--fg); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--y); outline: none; }
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--y); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-box { max-width: 440px; margin: 64px auto; padding: 0 24px; }
.form-foot { justify-content: space-between; align-items: center; gap: 12px; }

/* Console */
.console { display: flex; flex-wrap: wrap; align-items: flex-start; min-height: calc(100vh - 160px); }
.sidebar { flex: 1 1 220px; max-width: 100%; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--rule); }
.sidebar a { text-decoration: none; padding: 9px 12px; color: var(--fg-2); min-height: 42px; display: flex; align-items: center; }
.sidebar a.on { color: var(--fg); box-shadow: inset 2px 0 0 var(--y); background: rgba(238,242,247,.05); }
.console-main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details.faq summary { font: 500 17px var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 18px var(--mono); color: var(--y); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 10px; color: var(--fg-2); max-width: 44em; }

/* Footer */
.footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.footer .wrap { padding-top: 40px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--fg-2); text-decoration: none; }
.footer a:hover { color: var(--y); }
.footer-brand { font: 800 20px var(--display); font-stretch: 118%; letter-spacing: .04em; color: var(--fg); }
.footer-brand .mono { font: 400 11.5px var(--mono); letter-spacing: .12em; color: var(--muted); margin-left: 8px; }

/* Content pages (docs, methodology, legal) */
.page-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.doc { display: flex; flex-direction: column; gap: 16px; color: var(--fg-2); line-height: 1.75; }
.doc h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.doc h3 { margin-top: 8px; }
.doc b { color: var(--fg); }
.doc a { color: var(--y); }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc code { font: .88em var(--mono); background: rgba(238,242,247,.08); padding: 1px 6px; color: var(--fg); }
.doc pre.code code { background: none; padding: 0; color: inherit; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 500 12.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 14px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.doc .toc a { color: var(--fg-2); text-decoration: none; }
.doc .callout { border-left: 3px solid var(--y); background: var(--bg-2); padding: 14px 18px; }
.doc .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--rule-2); }
.doc .figs > div { padding: 16px 16px 16px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.doc .figs b { font: 800 28px var(--display); font-stretch: 108%; color: var(--fg); }
.doc .figs span { font-size: 14px; color: var(--muted); }

@media (max-width: 1280px) {
  .plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans.four .plan:nth-child(2) { border-right: 0; }
  .plans.four .plan:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 1000px) {
  .pill { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-right .hide-sm { display: none; }
  .mobile-menu.open { display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--rule-2); padding: 8px 24px 20px; z-index: 49; }
  .mobile-menu a, .mobile-menu form { padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--fg); font-size: 17px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .plans, .plans.four { grid-template-columns: minmax(0, 1fr); }
  .plan { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero .blocks { display: none; }
  .hero-card { display: none; }
}
@media (max-width: 640px) {
  .wrap, .narrow { padding-left: 20px; padding-right: 20px; }
  .nav-inner { height: 64px; }
  .mobile-menu.open { top: 64px; }
  body:not(.home) main { padding-top: 64px; }
  .section > .wrap, .section > .narrow { padding-top: 64px; padding-bottom: 64px; }
  .hero { min-height: 600px; height: 92vh; }
  .hero .sub { font-size: 12.5px; letter-spacing: .1em; }
  .hero-stat { left: 20px; bottom: 24px; }
  .hero-stat b { font-size: 48px; }
  .links-list a { flex-direction: column; gap: 6px; }
  .links-list a span { text-align: left; }
  .console-main { padding: 20px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--rule); flex-direction: row; flex-wrap: wrap; }
}

.nav-right a, .nav-right .linklike { white-space: nowrap; }
