@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #0d111b;
  --line: #202735;
  --text: #f2f4f8;
  --muted: #7d8799;
  --acid: #c9ff46;
  --acid-dark: #95c518;
  font-family: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(111, 143, 36, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; }
header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 13px/1 "DM Mono", monospace; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); font-size: 20px; }
.brand .muted { color: var(--muted); }
.badge { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .14em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(125,135,153,.1); }
.badge.running .status-dot { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.badge.offline .status-dot { background: #ff8d61; box-shadow: 0 0 10px #ff8d61; }

.hero { padding: 78px 0 48px; }
.eyebrow, .label { margin: 0 0 14px; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(46px, 7vw, 88px); line-height: .96; letter-spacing: -.065em; font-weight: 500; }
h1 em { color: var(--acid); font-style: normal; }
.intro { max-width: 570px; margin: 26px 0 0; color: #929bac; line-height: 1.7; font-size: 15px; }

.meter-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19,24,36,.92), rgba(11,15,24,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.meter-top { display: flex; align-items: center; justify-content: space-between; padding: 34px 38px 28px; }
.speed-row { display: flex; align-items: baseline; gap: 13px; }
.speed { font: 500 clamp(58px, 9vw, 110px)/.85 "DM Mono", monospace; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.unit { color: var(--acid); font: 500 15px/1 "DM Mono", monospace; }
.start-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 175px; height: 52px; border: 0; border-radius: 2px; background: var(--acid); color: #11150a; font: 600 12px/1 "DM Mono", monospace; letter-spacing: .08em; cursor: pointer; transition: transform .15s, background .15s; }
.start-button:hover { background: #dbff81; transform: translateY(-2px); }
.start-button:active { transform: translateY(0); }
.start-button.running { background: transparent; color: var(--text); border: 1px solid #3a4353; }

.graph-wrap { position: relative; height: 170px; margin: 0 38px; overflow: hidden; }
#speedGraph { width: 100%; height: 100%; display: block; }
.graph-baseline { position: absolute; inset: auto 0 0; border-bottom: 1px solid #293140; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 23px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat p:last-child { margin: 0; font: 500 22px/1.1 "DM Mono", monospace; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 10px; }
.footnote { margin: 24px 0 0; text-align: center; color: #697385; font: 400 10px/1.5 "DM Mono", monospace; letter-spacing: .05em; }
.footnote span { color: var(--acid); margin-right: 5px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 18px; }
  .hero { padding: 60px 6px 38px; }
  .intro { font-size: 14px; }
  .meter-top { align-items: flex-end; padding: 28px 20px 24px; }
  .start-button { min-width: 54px; width: 54px; padding: 0; }
  #buttonText { display: none; }
  .graph-wrap { margin: 0 20px; height: 130px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .speed { font-size: clamp(49px, 17vw, 78px); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
