:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #15191f;
  --panel-2: #1d242d;
  --text: #f5f1e8;
  --muted: #b8c0c7;
  --line: #333b45;
  --accent: #f6c85f;
  --fast: #ef5b45;
  --cool: #5cc8ff;
  --ok: #8bd17c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(239, 91, 69, 0.14), transparent 32%),
    linear-gradient(205deg, rgba(92, 200, 255, 0.12), transparent 38%),
    var(--bg);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(16px);
}

a {
  color: inherit;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.telemetry {
  display: grid;
  gap: 12px;
}

.telemetry div,
.scoreboard div,
article,
pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 25, 31, 0.84);
}

.telemetry div,
.scoreboard div {
  padding: 20px;
}

.telemetry span,
.scoreboard span,
.lap {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.telemetry strong,
.scoreboard strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
}

.band {
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.62;
}

.grid {
  display: grid;
  gap: 16px;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

article {
  padding: 22px;
}

.lap {
  color: var(--cool);
  font-weight: 800;
}

pre {
  overflow-x: auto;
  margin: 22px 0 0;
  padding: 18px;
  color: #e8f7ff;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 44px;
  align-items: start;
}

.checks,
.steps {
  margin: 0;
  padding: 22px 22px 22px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 36, 45, 0.72);
}

.checks li::marker {
  color: var(--ok);
}

.steps li::marker {
  color: var(--accent);
  font-weight: 800;
}

.pit-wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
}

.scoreboard {
  display: grid;
  gap: 12px;
}

.scoreboard strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.queue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.queue-head h3 {
  margin: 0;
  font-size: 1.6rem;
}

.queue-head > span {
  color: var(--muted);
  font-size: 0.92rem;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.queue-card {
  min-height: 260px;
}

.queue-card-top,
.chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.queue-id {
  color: var(--cool);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.grade {
  color: var(--accent);
}

.chips {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 18px;
}

.chips span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(92, 200, 255, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  color: #d8f2ff;
  background: rgba(92, 200, 255, 0.08);
  font-size: 0.78rem;
}

.next-step {
  color: var(--text);
}

.brief {
  margin: 18px 0;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 14px;
}

.brief span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brief p {
  margin: 8px 0 4px;
  color: var(--text);
}

.brief small {
  display: block;
}

.queue-card small {
  color: var(--muted);
  line-height: 1.45;
}

.empty {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .three,
  .pit-wall-layout,
  .queue-grid {
    grid-template-columns: 1fr;
  }

  .queue-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }
}
