:root {
  --bg: #0c0c0d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f4ede2;
  --muted: #d3c6b5;
  --red: #d20a11;
  --red-bright: #ff3b30;
  --gold: #d8b36b;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(210, 10, 17, 0.35), transparent 24%),
    radial-gradient(circle at left center, rgba(216, 179, 107, 0.16), transparent 20%),
    linear-gradient(135deg, #120607 0%, #20090a 36%, #090909 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  padding: 18px 0 40px;
}

.topbar,
.hero-grid,
.driver-grid,
.pulse-grid,
.timeline,
.fan-wall {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand p,
.brand span,
.panel-label,
.eyebrow,
.pulse-card span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand p,
.panel-label,
.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.75rem;
}

.brand span {
  font-size: 0.7rem;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--red), #771316);
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: white;
}

.hero-grid {
  grid-template-columns: 1.4fr 0.8fr;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.driver-card,
.spotlight,
.pulse-card,
.timeline article,
.fan-wall {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 32px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.32), transparent 60%);
}

h1,
h2,
h3,
.driver-number,
.panel-stat span {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

h3 {
  font-size: 2rem;
  line-height: 0.95;
}

.intro,
.panel-copy,
.driver-card p,
.spotlight p,
.timeline p,
#quote-text {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.button-primary {
  background: linear-gradient(120deg, var(--red), var(--red-bright));
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  border-radius: 32px;
  padding: 28px;
}

.panel-stat {
  margin-top: 18px;
}

.panel-stat span {
  display: block;
  font-size: 4rem;
  color: white;
}

.panel-line {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section {
  margin-top: 28px;
  padding: 18px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.driver-grid,
.pulse-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.driver-card,
.spotlight,
.pulse-card,
.timeline article {
  border-radius: 28px;
  padding: 26px;
}

.driver-card {
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.driver-card.active {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--panel-strong);
}

.driver-number {
  font-size: 4rem;
  color: var(--red-bright);
}

.driver-toggle,
.quote-button {
  margin-top: 16px;
  border: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.spotlight {
  margin-top: 20px;
  min-height: 200px;
}

.spotlight-copy {
  display: none;
}

.spotlight-copy.active {
  display: block;
}

.pulse-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.2rem;
  line-height: 1.5;
}

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

.timeline span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--red-bright);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.fan-wall {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  padding: 30px;
  border-radius: 32px;
}

.fan-wall-copy h2 {
  max-width: 12ch;
}

.quote-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.quote-button.active,
.driver-toggle:hover,
.driver-toggle:focus-visible,
.quote-button:hover,
.quote-button:focus-visible,
.button:hover,
.button:focus-visible {
  background: linear-gradient(120deg, var(--red), var(--red-bright));
  color: white;
}

@media (max-width: 900px) {
  .topbar,
  .hero-grid,
  .driver-grid,
  .pulse-grid,
  .timeline,
  .fan-wall {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .quote-controls {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .fan-wall {
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-copy,
  .hero-panel,
  .driver-card,
  .spotlight,
  .pulse-card,
  .timeline article,
  .fan-wall {
    padding: 20px;
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }
}
