/* ─── Variables ─── */
:root {
  --bg: #08080c;
  --surface: #111118;
  --border: #1e1e28;
  --fg: #f0ede8;
  --fg-muted: #7a7570;
  --gold: #c9a84c;
  --gold-dim: rgba(201,168,76,0.12);
  --red: #c0392b;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Grid Lines (decorative) ─── */
.grid-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.h-line { height: 1px; background: var(--border); width: 100%; }
.v-line { width: 1px; background: var(--border); height: 100%; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(8,8,12,0.95) 0%, transparent 100%);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--fg);
}
.nav-mark {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.hero-grid-bg .grid-line { bottom: 0; left: 0; }
.hero-grid-bg .h-line:nth-child(1) { top: 33%; }
.hero-grid-bg .h-line:nth-child(2) { top: 66%; }
.hero-grid-bg .v-line:nth-child(3) { left: 20%; }
.hero-grid-bg .v-line:nth-child(4) { left: 40%; }
.hero-grid-bg .v-line:nth-child(5) { left: 60%; }
.hero-grid-bg .v-line:nth-child(6) { left: 80%; }
.hero-grid-bg .v-line:nth-child(7) { left: 100%; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-bottom: 32px;
}
.hero-title .gold { color: var(--gold); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 48px;
}
.hero-tag-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  background: var(--gold-dim);
}

/* ─── Sections (shared) ─── */
section { position: relative; }
.section-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}
.section-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 480px;
}

/* ─── Mission ─── */
.mission {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 48px;
}
.mission-inner {
  max-width: 860px;
}
.mission-text {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  color: var(--fg);
}
.mission-text .gold { color: var(--gold); }

/* ─── Drivers ─── */
.drivers {
  padding: 120px 48px;
}
.drivers-header {
  margin-bottom: 80px;
}
.driver-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}
.driver-feat {
  background: var(--bg);
  padding: 40px 32px;
}
.feat-icon { margin-bottom: 20px; }
.driver-feat h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 10px;
}
.driver-feat p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── Teams ─── */
.teams {
  padding: 120px 48px;
  background: var(--surface);
}
.teams-header {
  margin-bottom: 64px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}
.team-card {
  background: var(--bg);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.t-redline::before { background: #c0392b; }
.t-apex::before { background: #2980b9; }
.t-night::before { background: #8e44ad; }
.t-volt::before { background: #27ae60; }
.t-chrome::before { background: #7f8c8d; }
.t-phantom::before { background: #e67e22; }
.team-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 24px;
  line-height: 1;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 12px;
}
.team-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── Access ─── */
.access {
  padding: 120px 48px;
}
.access-header { margin-bottom: 72px; }
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}
.access-block {
  background: var(--surface);
  padding: 40px 32px;
}
.access-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  opacity: 0.8;
}
.access-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 10px;
}
.access-block p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── Manifesto ─── */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 48px;
}
.manifesto-inner { max-width: 720px; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
  font-style: normal;
}
.manifesto-quote .gold { color: var(--gold); }
.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 580px;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.footer-grid-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.footer-grid-bg .h-line:nth-child(1) { top: 50%; }
.footer-grid-bg .v-line:nth-child(2) { left: 33%; }
.footer-grid-bg .v-line:nth-child(3) { left: 66%; }
.footer-content {
  position: relative;
  z-index: 2;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links .sep { color: var(--gold); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: 64px; }
  .mission, .drivers, .teams, .access, .manifesto, .footer { padding: 80px 24px; }
  .team-grid, .access-grid { grid-template-columns: 1fr; }
  .drivers-header { margin-bottom: 40px; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links .sep { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 52px; }
  .team-card { padding: 32px 24px; }
  .access-block { padding: 32px 24px; }
}