@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: block;
}

:root {
  --ground: #0b0b0c;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --line: #2a2a2e;
  --ink: #ece8e1;
  --ink-2: #b7b2a9;
  --ink-3: #8a857d;
  --fire: #ff5a1f;
  --fire-2: #ff8a3d;
  --ok: #7bd88f;
  --head: "Archivo", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--head);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; border-radius: 5px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.sample-flag {
  position: sticky; top: 0; z-index: 10;
  padding: 10px 20px;
  background: repeating-linear-gradient(135deg, #2a1a10 0 10px, #24160e 10px 20px);
  border-bottom: 1px solid #5a3018;
  color: var(--fire-2);
  font: 700 13px/1.4 var(--mono);
  letter-spacing: .05em; text-transform: uppercase; text-align: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--fire);
  font: 700 13px/1.4 var(--mono);
  letter-spacing: .15em; text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 30px 80px;
  background:
    radial-gradient(120% 80% at 50% 115%, rgba(255, 90, 31, .32), rgba(255, 90, 31, 0) 60%),
    radial-gradient(60% 50% at 85% 0%, rgba(255, 138, 61, .08), rgba(0, 0, 0, 0) 70%),
    var(--ground);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, transparent, var(--fire) 30%, var(--fire-2) 70%, transparent);
  opacity: .7;
}
.hero-inner { max-width: 1000px; margin: 0 auto; }
.wordmark { margin: 0; line-height: 0; }
.wordmark .logo { display: block; width: min(640px, 100%); height: auto; }
.hero-sub { max-width: 640px; margin: 25px 0 0; color: var(--ink-2); font-size: 20px; line-height: 1.5; }

.hero-stat {
  max-width: 640px; margin-top: 40px; padding: 25px;
  background: rgba(20, 20, 22, .75);
  border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(10px);
}
.lost { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; }
.lost b { font: 800 60px/1 var(--mono); color: var(--ink); letter-spacing: -.03em; }
.lost > span { color: var(--ink-2); font-size: 17px; }
.bar { position: relative; height: 15px; margin-top: 20px; background: var(--panel-2); border-radius: 10px; overflow: hidden; }
.fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, #c8360a, var(--fire) 60%, var(--fire-2));
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 90, 31, .5);
  transition: width 1s cubic-bezier(.2, .8, .2, 1);
}
.bar-ends { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-3); font: 500 13px/1.4 var(--mono); }
.bar-ends span:nth-child(2) { color: var(--fire-2); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 25px;
  border-radius: var(--r);
  font: 700 16px/1 var(--head); text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-fire { background: var(--fire); color: #140700; }
.btn-fire:hover { background: var(--fire-2); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* Sections */
main { max-width: 1000px; margin: 0 auto; padding: 0 30px; }
.section { padding: 90px 0 0; scroll-margin-top: 40px; }
.section-head { margin-bottom: 30px; }
h2 {
  margin: 0;
  font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(45px, 7vw, 70px); line-height: .95;
}
.lede { max-width: 640px; margin: 15px 0 0; color: var(--ink-2); }
h3 { margin: 0; font-stretch: 75%; font-weight: 800; font-size: 25px; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }

/* Number tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.tile {
  display: flex; flex-direction: column; gap: 5px;
  padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.tile-label { color: var(--ink-3); font: 700 12px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.tile b { font: 800 35px/1.1 var(--mono); letter-spacing: -.02em; }
.tile b small { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-left: 5px; letter-spacing: 0; }
.tile-sub { color: var(--ink-2); font-size: 14px; }
.tile-now { border-color: rgba(255, 90, 31, .55); background: linear-gradient(180deg, rgba(255, 90, 31, .1), var(--panel) 70%); }
.tile-now b { color: var(--fire-2); }

/* Chart */
.chart { margin: 15px 0 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.chart-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.chart-head .icon { color: var(--fire); }
.legend { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font: 500 12px/1 var(--mono); }
.legend i { display: inline-block; width: 20px; height: 0; border-top: 3px solid var(--fire); border-radius: 5px; }
.legend i.lg-goal { border-top: 2px dashed var(--ok); margin-left: 10px; }
.chart-box svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-box text { font: 500 13px var(--mono); fill: var(--ink-3); }
.chart-box .grid { stroke: var(--line); stroke-width: 1; }
.chart-box .goal { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 5 5; }
.chart-box .goal-t { fill: var(--ok); font-weight: 700; }
.chart-box .line { fill: none; stroke: var(--fire); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .dot { fill: var(--ground); stroke: var(--fire); stroke-width: 2; }
.chart-box .dot-last { fill: var(--fire); stroke: var(--ground); stroke-width: 3; }
.chart-box .last-t { fill: var(--ink); font-weight: 800; font-size: 15px; }

/* Standards */
.standards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: stretch; }
.std { display: flex; flex-direction: column; padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
/* cards in a row share one height; the sources sit on the bottom edge so they line up */
.std .std-src { margin-top: auto; padding-top: 15px; }
.std-head { display: flex; gap: 15px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.std-head p { margin: 5px 0 0; color: var(--ink-2); font-size: 15px; }
.std-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: var(--r); background: rgba(255, 90, 31, .12); color: var(--fire); flex: none; }
.std-mark .icon { width: 25px; height: 25px; }
.std-rows { list-style: none; margin: 0; padding: 0; }
.std-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.std-row:last-child { border-bottom: 0; }
.std-wide { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .std-wide .std-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .std-wide .std-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.std-what { font-weight: 700; }
.std-what small { display: block; color: var(--ink-3); font-weight: 400; font-size: 14px; }
.std-need { text-align: right; font: 700 15px/1.4 var(--mono); }
.std-need small { display: block; color: var(--ink-3); font: 500 12px/1.4 var(--mono); }
.std-me { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.std-me .pill { padding: 5px 10px; border-radius: 5px; font-weight: 700; }
.pill-ok { background: rgba(123, 216, 143, .12); color: var(--ok); }
.pill-gap { background: rgba(255, 90, 31, .12); color: var(--fire-2); }
.std-empty { padding: 20px 0 5px; color: var(--ink-3); font-size: 15px; }
.std-next { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 10px 15px; border: 1px solid rgba(255, 90, 31, .35); border-radius: 5px; background: rgba(255, 90, 31, .06); color: var(--ink-2); font-size: 15px; }
.std-next[hidden] { display: none; }
.std-next .icon { flex: none; width: 15px; height: 15px; margin-top: 5px; color: var(--fire); }
.std-next b { color: var(--ink); }
.std-src { margin: 15px 0 0; color: var(--ink-3); font-size: 13px; }
.std-src:empty { display: none; }
.std-src a { color: var(--ink-2); }

/* Log */
.log { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.log li { position: relative; padding: 0 0 25px 20px; }
.log li::before {
  content: ""; position: absolute; left: -21px; top: 5px; transform: translateX(-50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ground); border: 3px solid var(--fire);
}
.log li.latest::before { background: var(--fire); box-shadow: 0 0 15px rgba(255, 90, 31, .6); }
.log li.next::before { border-style: dashed; border-color: var(--ink-3); }
.log li.next time { color: var(--fire); }
.log li.next p { color: var(--ink-2); }
.next-tag { display: inline-block; margin-right: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-3); font: 700 10px/20px var(--mono); letter-spacing: .15em; text-transform: uppercase; vertical-align: 3px; }
.log time { display: block; color: var(--ink-3); font: 600 13px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.log p { margin: 0; font-size: 18px; }

.tests { margin-top: 30px; padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tests h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.tests h3 .icon { color: var(--fire); }
.tests-table { overflow-x: auto; }
.tests-key { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; }
.tests-more { margin: 5px 0 0; color: var(--ink-3); font-size: 13px; }
.tests-more::after { content: " →"; color: var(--fire); }
.tests table { width: 100%; border-collapse: collapse; font: 500 15px/1.4 var(--mono); }
.tests th { text-align: left; color: var(--ink-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 0 15px 10px 0; white-space: nowrap; }
.tests td { padding: 10px 15px 10px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.tests tr:last-child td { color: var(--ink); font-weight: 700; }
.tests td.up, .tests tr:last-child td.up { color: var(--ok); }
.tests td.dnf, .tests tr:last-child td.dnf { color: var(--fire-2); }

.records { margin-top: 15px; }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-list li { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.rec-what { font-weight: 700; }
.rec-what small, .rec-list b small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.rec-list b small { display: inline; margin-left: 5px; }
.rec-list b { font: 800 25px/1 var(--mono); letter-spacing: -.02em; }

/* Footer */
.foot {
  position: relative; max-width: 1000px; margin: 100px auto 0; padding: 45px 30px 50px;
  display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center;
}
.foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--fire), transparent); }
.foot-kicker { font: 700 13px/1 var(--mono, monospace); letter-spacing: .2em; text-transform: uppercase; color: var(--fire); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 15px; }
.social { letter-spacing: .02em; }
.social-ig .icon { color: #d62976; }
.social-dc .icon { color: #5865f2; }
.social-site .icon { color: var(--fire); }
.social-tag { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 5px; }
.foot-logo { display: block; width: 240px; height: auto; opacity: .85; }
.foot-domain { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }

/* Wallets */
.btn-sm { height: 40px; padding: 0 15px; font-size: 14px; gap: 5px; border-radius: 5px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-ink { background: var(--ink); color: var(--ground); border: 0; cursor: pointer; }
.btn-ink:hover { background: #fff; }
button.btn { font-family: var(--head); cursor: pointer; }
.btn-ghost.btn-sm { color: var(--ink); }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.wallet {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.wallet::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; background: var(--accent); border-radius: var(--r) var(--r) 0 0; }
.wallet-cash { --accent: #00d64f; }
.wallet-sol { --accent: linear-gradient(90deg, #9945ff, #14f195); }
.wallet-btc { --accent: #f7931a; }
.wallet-eth { --accent: #627eea; }
.wallet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.wallet-top { display: flex; align-items: center; gap: 15px; }
.wallet-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--accent); color: #fff; flex: none; }
.wallet-mark .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.wallet-hint { max-width: 220px; margin: 15px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.wallet-qr { width: 110px; height: 110px; flex: none; border-radius: 5px; }
.wallet-value { padding: 10px 15px; background: var(--ground); border: 1px solid var(--line); border-radius: 5px; font: 600 14px/1.5 var(--mono); word-break: break-all; }
.wallet-cash .wallet-value { font-size: 20px; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.open-in { position: relative; }
.open-in summary { list-style: none; }
.open-in summary::-webkit-details-marker { display: none; }
.open-in .chev { transition: rotate .15s; }
.open-in[open] .chev { rotate: 180deg; }
.open-menu {
  position: absolute; z-index: 5; top: calc(100% + 5px); left: 0; width: 280px; padding: 5px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.open-item { display: block; padding: 10px 15px; border-radius: 5px; text-decoration: none; }
.open-item:hover, .open-item:focus-visible { background: var(--line); }
.open-item:focus-visible { outline-offset: -2px; }
.open-item b { display: block; font-size: 15px; line-height: 1.4; }
.open-item span { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.refer {
  position: relative; display: flex; align-items: center; gap: 20px; margin-top: 15px;
  padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.refer::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; background: var(--accent); border-radius: var(--r) var(--r) 0 0; }
.refer, .refer-mark { --accent: #1ca9e0; }
.refer-text { flex: 1; }
.refer-top { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.refer-text p { max-width: 640px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.refer .btn { flex: none; }
.fine { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: 30px 0 0; color: var(--ink-3); font-size: 14px; }
.fine-icon { margin-top: 1px; }
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 20; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 10px 20px; background: var(--ink); color: var(--ground); border-radius: var(--r);
  font: 600 14px/1.4 var(--mono); transition: opacity .2s, translate .2s;
}
.toast.on { opacity: 1; translate: -50% 0; }
@media (hover: hover) and (pointer: fine) { .phone-only { display: none; } }
@media (max-width: 800px) { .wallets { grid-template-columns: 1fr; } .refer { flex-direction: column; align-items: flex-start; } }
@media (max-width: 500px) {
  .wallet, .refer { padding: 20px 15px; }
  .wallet-qr, .wallet-hint { display: none; }
  .open-menu { width: calc(100vw - 80px); }
}

@media (max-width: 800px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .standards { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .hero { padding: 70px 20px 60px; }
  main { padding: 0 20px; }
  .foot { padding: 40px 20px 45px; }
  .foot-links { flex-direction: column; align-items: center; width: 100%; }
  .social { width: min(300px, 100%); justify-content: flex-start; }
  .social-tag { margin-left: auto; }
  .section { padding-top: 70px; }
  .hero-sub { font-size: 18px; }
  .hero-stat { padding: 20px; }
  .lost b { font-size: 50px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { justify-content: center; padding: 0 15px; }
  .hero-actions .btn-fire { grid-column: 1 / -1; }
  .tile { padding: 15px; }
  .tile b { font-size: 30px; }
  .chart, .std, .tests { padding: 20px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fill { transition: none; }
}

@media (min-width: 1100px) {
  .hero { padding: 120px 30px 100px; }
  .hero-inner {
    display: grid; grid-template-columns: 1fr 440px; column-gap: 60px;
    grid-template-areas: "kick kick" "word word" "sub stat" "act stat";
    align-items: start;
  }
  .hero .kicker { grid-area: kick; }
  .wordmark { grid-area: word; }
  .hero-sub { grid-area: sub; }
  .hero-stat { grid-area: stat; margin-top: 30px; align-self: end; }
  .hero-actions { grid-area: act; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 0 20px; }
}

/* 404 */
.hero-404 { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.hero-404 .hero-inner { width: 100%; }
