:root {
  color-scheme: dark;
  --ink: #f3f1e8;
  --muted: #989d95;
  --acid: #c7ff32;
  --paper: #080b0a;
  --panel: #101410;
  --line: #2a302a;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 4%, rgba(199, 255, 50, 0.07), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.1em;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
  animation: blink 2s steps(2, jump-none) infinite;
}

main {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 2.2fr);
  grid-template-rows: minmax(120px, 0.65fr) minmax(235px, 1.15fr) minmax(170px, 0.8fr);
  grid-template-areas:
    "hero hero"
    "counter counter"
    "eta explainer";
  gap: 14px;
  min-height: 640px;
  padding-block: 14px;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: var(--acid);
  font: 500 0.64rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(390px, 1.3fr) minmax(260px, 0.9fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(24px, 4vw, 72px);
  padding: 12px clamp(8px, 2vw, 28px);
}

.hero .eyebrow { align-self: end; }

.hero h1 {
  align-self: start;
  margin: 0;
  font-size: clamp(1.35rem, 2.25vw, 2.55rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.punchline {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  margin: 0;
  color: var(--acid);
  font-size: clamp(5.8rem, 10.8vw, 10rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.punchline .outlined {
  color: transparent;
  -webkit-text-stroke: 2px var(--acid);
  text-stroke: 2px var(--acid);
}

.intro {
  grid-column: 3;
  grid-row: 1 / 3;
  max-width: 37ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.55;
}

.counter-panel {
  grid-area: counter;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: clamp(22px, 2.8vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.counter-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  content: "";
  transform: translate(50%, -50%) rotate(45deg);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.rate {
  margin: 0;
  color: var(--muted);
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rate span { color: var(--ink); }

.guid {
  display: flex;
  justify-content: space-between;
  gap: 0.12em;
  width: 100%;
  margin: clamp(18px, 3.5vh, 38px) 0;
  color: var(--acid);
  font: 400 clamp(0.92rem, 3.8vw, 3.55rem)/1 var(--mono);
  letter-spacing: -0.075em;
  white-space: nowrap;
  text-shadow: 0 0 34px rgba(199, 255, 50, 0.12);
}

.guid b {
  color: #4d574c;
  font-weight: 300;
}

.tick-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.tick-pulse {
  position: absolute;
  top: 0;
  left: -18%;
  width: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid));
  animation: scan 2.8s linear infinite;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1.65fr 1fr;
  gap: 30px;
  margin: clamp(18px, 2.8vh, 30px) 0 0;
}

.stats div { min-width: 0; }

.stats dt {
  margin-bottom: 7px;
  color: var(--muted);
  font: 400 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  overflow: hidden;
  font: 400 clamp(0.7rem, 1vw, 0.9rem)/1.4 var(--mono);
  text-overflow: ellipsis;
}

.eta {
  grid-area: eta;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 38px);
  border: 1px solid var(--line);
  text-align: left;
}

.eta h2 {
  margin: 0;
  font: 300 clamp(1.2rem, 1.8vw, 2rem)/1.08 var(--mono);
  letter-spacing: -0.075em;
  overflow-wrap: anywhere;
}

.eta-aside {
  margin: 14px 0 0;
  color: var(--muted);
  font: 300 0.68rem/1 var(--mono);
}

.explainer {
  grid-area: explainer;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
  border: 1px solid var(--line);
}

.explainer article {
  min-width: 0;
  padding: clamp(18px, 2vw, 30px);
  border-right: 1px solid var(--line);
}

.explainer article:last-child { border-right: 0; }

.number {
  color: var(--acid);
  font: 400 0.68rem/1 var(--mono);
}

.explainer h2 {
  margin: clamp(24px, 3vh, 42px) 0 8px;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.explainer p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.68rem, 0.8vw, 0.8rem);
  line-height: 1.48;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  color: var(--muted);
  font: 300 0.64rem/1.4 var(--mono);
}

footer p { margin: 0; }

footer button {
  padding: 0;
  border: 0;
  border-bottom: 1px dotted currentColor;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

footer button:hover { color: var(--acid); }

dialog {
  width: min(90vw, 520px);
  padding: 50px;
  border: 1px solid var(--acid);
  background: #0d110d;
  color: var(--ink);
  text-align: center;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.decoded {
  margin: 0 0 10px;
  color: var(--acid);
  font: 400 clamp(1.2rem, 5vw, 2rem)/1 var(--mono);
}

dialog > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes blink {
  50% { opacity: 0.4; }
}

@keyframes scan {
  to { left: 100%; }
}

@media (min-width: 861px) and (min-height: 720px) {
  body {
    height: 100svh;
    overflow: hidden;
  }

  main {
    height: calc(100svh - 112px);
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1440px);
  }

  .site-header { min-height: 70px; }

  .wordmark > span:last-child,
  .status { font-size: 0.61rem; }

  main {
    display: block;
    min-height: 0;
    padding-block: 0;
  }

  main > section { margin-bottom: 12px; }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 500px;
    padding: 70px 12px;
    text-align: center;
  }

  .hero .eyebrow,
  .hero h1,
  .punchline,
  .intro {
    grid-column: 1;
    grid-row: auto;
  }

  .hero .eyebrow,
  .hero h1 { align-self: auto; }

  .hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }

  .punchline {
    margin: 28px 0 32px;
    font-size: clamp(6.2rem, 31vw, 10rem);
  }

  .intro {
    max-width: 48ch;
    margin-inline: auto;
    font-size: 0.9rem;
  }

  .counter-panel {
    min-height: 370px;
    padding-inline: 20px;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .guid { font-size: 3.6vw; }

  .eta {
    min-height: 230px;
    text-align: center;
  }

  .explainer { grid-template-columns: 1fr; }

  .explainer article {
    padding-block: 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .explainer article:last-child { border-bottom: 0; }
  .explainer h2 { margin-top: 32px; }
  .explainer p { font-size: 0.82rem; }
  footer { min-height: 80px; }
}

@media (max-width: 560px) {
  .status span:last-child { display: none; }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats div {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .counter-panel { min-height: 500px; }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
