:root {
  --ink: #0a0b0d;
  --panel: #15171b;
  --panel-line: #24272c;
  --fog: #8a8f98;
  --chalk: #f3f1ea;
  --signal: #ffb020;
  --highbeam: #3fd3ff;
  --gradient: linear-gradient(90deg, var(--signal), var(--highbeam));

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--highbeam);
  outline-offset: 3px;
  border-radius: 4px;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.road-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(243, 241, 234, 0.05) 0px,
    rgba(243, 241, 234, 0.05) 1px,
    transparent 1px,
    transparent 96px
  );
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black, transparent 75%);
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--highbeam);
  box-shadow: 0 0 8px rgba(63, 211, 255, 0.7);
  flex-shrink: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--highbeam);
  margin-bottom: 1.1rem;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--chalk);
  max-width: 20ch;
}

.subhead {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fog);
  max-width: 34rem;
}

/* ---------- build-status gauge ---------- */

.gauge {
  margin-top: 3rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 34rem;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 1.6rem;
}

.rail {
  position: relative;
  padding-top: 5px;
}

.rail::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--panel-line);
  border-radius: 2px;
}

.rail-fill {
  position: absolute;
  top: 5px;
  left: 0;
  height: 2px;
  width: 68%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(63, 211, 255, 0.45);
  border-radius: 2px;
}

.ticks {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
}

.tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 4.5rem;
}

.tick-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel-line);
  border: 2px solid var(--panel);
}

.tick.done .tick-dot {
  background: var(--signal);
}

.tick.active .tick-dot {
  background: var(--highbeam);
  box-shadow: 0 0 0 4px rgba(63, 211, 255, 0.2);
}

.tick-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fog);
}

.tick.active .tick-label {
  color: var(--chalk);
}

.gauge-caption {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fog);
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--panel-line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--fog);
}

/* ---------- motion ---------- */

.fade-in {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    animation: fade-up 0.7s ease-out forwards;
    animation-delay: var(--delay, 0s);
  }

  .rail-fill {
    width: 0;
    animation: sweep-fill 1.1s 0.5s ease-out forwards;
  }

  .pill-dot {
    animation: pulse-glow 2.4s ease-in-out infinite;
  }

  .tick.active .tick-dot {
    animation: pulse-dot 2.4s ease-in-out infinite;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep-fill {
  from {
    width: 0;
  }
  to {
    width: 68%;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(63, 211, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(63, 211, 255, 0.05);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .scene {
    padding: 0 1.25rem;
  }

  .topbar {
    padding: 1.5rem 0 0.5rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .gauge {
    padding: 1.4rem 1.1rem 1.25rem;
  }

  .tick {
    width: 3.6rem;
    gap: 0.45rem;
  }

  .tick-label {
    font-size: 0.56rem;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
