/* TvWiz landing page. Dark, sparse, one number and one button. */
:root {
  --bg: #07080f;
  --text: #eceef6;
  --muted: #8b8fa3;
  --dim: #5a5f75;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --ind: #4f5fff;
  --ind2: #8a93ff;
  --green: #22c55e;
  --amber: #f59e0b;
  --max: 1040px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ind2); }
b { font-weight: 500; color: var(--text); }

/* top bar */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ind);
  color: #fff;
  display: grid;
  place-items: center;
}
.mark svg { width: 17px; height: 17px; }
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .02em;
  color: var(--muted);
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.8s ease-out infinite;
}
.live.stale .dot { background: var(--amber); animation: none; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 40px; }

/* hero: the number and the button */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0 40px;
}
.kicker {
  margin: 0 0 18px;
  font: 500 13px/1 var(--mono);
  letter-spacing: .16em;
  color: var(--muted);
}
.odometer {
  position: relative;
  display: flex;
  justify-content: center;
  font: 500 clamp(60px, 15vw, 172px)/1 var(--mono);
  letter-spacing: -.05em;
  height: 1em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.odometer::before {
  content: "";
  position: absolute;
  inset: -50% -12%;
  background: radial-gradient(ellipse at 50% 55%, rgba(79, 95, 255, .22), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.od-d, .od-s { display: inline-block; height: 1em; line-height: 1; }
.od-d { overflow: hidden; }
.od-s { margin: 0 -.06em; }
.od-col { display: block; transition: transform .7s var(--ease); will-change: transform; }
.od-col i { display: block; height: 1em; line-height: 1; font-style: normal; }
.sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.sep { width: 1px; height: 14px; background: var(--line2); }
.nw { white-space: nowrap; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 10px;
  background: #fff;
  color: #07080f;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 40px rgba(79, 95, 255, .2);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: #dfe2ff; box-shadow: 0 12px 44px rgba(79, 95, 255, .32); }
.btn:active { transform: translateY(1px); }
.code { margin: 0; color: var(--muted); font-size: 14px; }
code {
  font: 500 .92em/1 var(--mono);
  color: var(--text);
  border: 1px solid var(--line2);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* the field of lights */
.field { position: relative; width: 100%; max-width: 1000px; margin-top: 56px; }
.field::before {
  content: "";
  position: absolute;
  inset: -40% 8% -50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(79, 95, 255, .2), transparent 65%);
  pointer-events: none;
}
.field canvas {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 50 / 20;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Wide screens get a thin strip of the same 1,000 lights; app.js picks the matching grid. */
@media (min-width: 700px) { .field canvas { aspect-ratio: 100 / 10; } }
.field-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 4px 0;
  font: 400 12px/1.4 var(--mono);
  color: var(--dim);
}
.latest {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--muted);
  min-height: 22px;
}
.latest .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
#latestText { transition: opacity .35s ease; }
#latestText.swap { opacity: 0; }

/* what it does, how to get it */
.info {
  display: grid;
  gap: 40px;
  padding: 56px 0 8px;
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) { .info { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 64px; } }
.info h2 {
  margin: 0 0 6px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.list li:last-child { border-bottom: 0; }
.steps { counter-reset: step; }
.steps li { position: relative; padding-left: 40px; }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  font: 500 12px/1.9 var(--mono);
  color: var(--ind2);
}

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 72px 0 40px;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.6;
}
footer p { margin: 0; }
.fine { max-width: 720px; }
.noscript { text-align: center; color: var(--muted); }

/* motion */
.js .rise { opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .live .dot { animation: none; }
  .od-col, #latestText { transition: none; }
}
