:root {
  color-scheme: dark;
  --ink: #f6f4ed;
  --muted: #9ca39d;
  --line: #303832;
  --acid: #c9ff53;
  --surface: #171b18;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 15%, #304426 0, transparent 28rem),
    linear-gradient(135deg, #0c0f0d, #141915);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 12vh 0 60px; }
.site-nav { display: flex; gap: 8px; margin-bottom: 58px; }
.site-nav a { padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 750; }
.site-nav a:hover, .site-nav a.active { border-color: var(--acid); color: #11150e; background: var(--acid); }
.intro { max-width: 680px; margin-bottom: 48px; }
.eyebrow { color: var(--acid); font: 700 12px/1 monospace; letter-spacing: .22em; }
h1 { margin: 18px 0 16px; max-width: 650px; font-size: clamp(42px, 8vw, 78px); line-height: .94; letter-spacing: -.055em; }
.intro p { color: var(--muted); max-width: 580px; font-size: 17px; line-height: 1.6; }
.card { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 30px 80px #0006; }
label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.field { display: flex; gap: 10px; }
input, button { min-height: 52px; border: 1px solid var(--line); font: inherit; }
input { flex: 1; min-width: 0; padding: 0 16px; color: var(--ink); background: #0d100e; outline: none; font-family: ui-monospace, monospace; }
input:focus { border-color: var(--acid); box-shadow: 0 0 0 3px #c9ff5318; }
button { padding: 0 24px; border-color: var(--acid); color: #10140d; background: var(--acid); font-weight: 800; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.error { margin: 18px 0 0; color: #ff8e82; }
.result { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.meter-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.meter-heading span { color: var(--muted); }
.meter-heading strong { font-size: clamp(21px, 4vw, 30px); }
.meter-heading strong span { color: var(--ink); }
.meter { height: 10px; overflow: hidden; background: #080a09; }
.meter div { height: 100%; width: 0; background: var(--acid); transition: width .5s ease; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; background: var(--line); }
.stats div { padding: 18px; background: var(--surface); }
.stats span, .stats strong { display: block; }
.stats span { min-height: 32px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.stats strong { margin-top: 8px; font-size: 16px; }
.models { margin-top: 28px; }
.models h2 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.models div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.models span { color: var(--muted); text-align: right; }

@media (max-width: 650px) {
  main { width: min(100% - 24px, 920px); padding-top: 8vh; }
  .intro { margin-bottom: 30px; }
  .site-nav { margin-bottom: 38px; }
  .field { flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
  .meter-heading { align-items: start; flex-direction: column; }
}
