:root {
  --bg: #14121a;
  --panel: #1f1c27;
  --ink: #ece6d6;
  --dim: #8e879c;
  --gold: #f2b134;
  --hot: #ff5d5d;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, #2c2440 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main { width: min(760px, 92vw); padding: 9vh 0 3rem; text-align: center; }
.eyebrow {
  font-family: var(--mono); color: var(--gold); letter-spacing: .25em;
  text-transform: uppercase; font-size: .8rem; margin: 0;
}
h1 {
  font-family: var(--mono); font-size: clamp(2.8rem, 11vw, 5.6rem);
  line-height: 1; margin: .3em 0 .15em; letter-spacing: -.04em;
  text-shadow: 4px 4px 0 #000;
}
h1 span { color: var(--gold); }
.tagline { font-size: 1.25rem; color: var(--dim); margin: 0 0 2.2rem; }

.demo {
  background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px #3a3446;
  padding: 1.4rem 1rem 1rem; image-rendering: pixelated;
}
#bar { width: min(360px, 100%); height: auto; image-rendering: pixelated; }
.readout {
  font-family: var(--mono); font-size: .9rem; color: var(--dim);
  display: flex; gap: 1.2rem; justify-content: center; align-items: center; flex-wrap: wrap;
  margin-top: .6rem;
}
.readout b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.caption { color: var(--dim); font-size: .9rem; margin: .7rem 0 0; min-height: 1.5em; }

button, input {
  font: inherit; font-family: var(--mono); border: 3px solid #000; border-radius: 0;
}
button {
  background: #6b6b6b; color: #fff; padding: .35em .9em; cursor: pointer;
  box-shadow: inset -3px -3px 0 #444, inset 3px 3px 0 #a5a5a5;
  text-shadow: 2px 2px 0 #333;
}
button:hover { background: #7f86c9; box-shadow: inset -3px -3px 0 #4a4f80, inset 3px 3px 0 #b8bdf0; }
button:active { box-shadow: inset 3px 3px 0 #444; }
.readout button { font-size: .8rem; }

.crack { display: flex; margin: 2.4rem auto .5rem; max-width: 560px; }
.crack input {
  flex: 1; min-width: 0; padding: .7em .8em; background: #000; color: var(--ink);
  border-right: 0;
}
.crack input:focus { outline: 2px solid var(--gold); outline-offset: -5px; }
.crack button { font-size: 1.05rem; }
.soon { color: var(--dim); font-size: .95rem; margin: 0; min-height: 3em; }
.soon.hot { color: var(--gold); }
.shake { animation: shake .3s steps(3) 1; }
@keyframes shake { 33% { transform: translateY(-3px); } 66% { transform: translateY(3px); } }

.how {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin: 2.5rem 0; text-align: left;
}
.how div { background: var(--panel); padding: 1rem 1.1rem; border-left: 4px solid var(--gold); }
.how h2 { font-family: var(--mono); font-size: 1rem; margin: 0 0 .3rem; color: var(--gold); }
.how p { margin: 0; font-size: .95rem; color: #cfc8d8; }

.graph { margin: 0; }
.graph svg { width: min(520px, 100%); }
.axis { stroke: var(--dim); stroke-width: 2; }
.trace { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: miter; }
.ring { fill: none; stroke: var(--hot); stroke-width: 3; stroke-dasharray: 5 4; }
.lbl { font: 12px var(--mono); fill: var(--ink); }
.lbl.hot { fill: var(--hot); font-weight: 700; }
.lbl.dim { fill: var(--dim); }
.graph figcaption { color: var(--dim); font-size: .9rem; }

footer { width: min(760px, 92vw); text-align: center; padding: 1rem 0 2.5rem; font-size: .9rem; }
footer p { margin: .3rem 0; }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
