:root {
  --bg: #0d0d0d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #f7f7f7;
  --muted: #c7c7c7;
  --accent: #d70b14;
  --accent-soft: #ff5b62;
  --metal: #cfd2d8;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 11, 20, 0.35), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #141414 0%, #050505 100%);
  color: var(--text);
}

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

.site-shell {
  min-height: 100vh;
}

.hero,
.section {
  padding: 32px 6vw;
}

.hero {
  position: relative;
  padding-top: 6px;
  padding-bottom: 10px;
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.55), rgba(6, 6, 10, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.2)),
    url("assets/prestige-driven-header.jpeg") center/cover no-repeat;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

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

.eyebrow,
.event-date,
.garage-panel span {
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(215, 11, 20, 0.18));
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 14px;
  align-items: end;
}

.hero-logo-wrap {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  justify-content: flex-end;
  width: min(36vw, 320px);
  z-index: 0;
  pointer-events: none;
}

.hero-logo {
  width: 100%;
  opacity: 0.18;
  filter: saturate(0.9) blur(0.2px);
}

.eyebrow {
  color: var(--accent-soft);
  font-size: 0.78rem;
}

h1,
h2,
h3,
.card-label {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Antonio", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 11vw, 7.2rem);
  margin: 14px 0 20px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.6rem;
}

.lede,
.section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-copy {
  padding-bottom: 4px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

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

.hero-card,
.feature-card,
.event-card,
.garage-panel,
.join-form {
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.card-label {
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.hero-card p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stats strong {
  display: block;
  font-family: "Antonio", sans-serif;
  font-size: 2rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
}

.section-accent {
  background:
    linear-gradient(135deg, rgba(215, 11, 20, 0.16), transparent 50%),
    rgba(255, 255, 255, 0.02);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.feature-grid,
.garage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.garage-panel {
  border-radius: 24px;
  padding: 24px;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 22px;
}

.event-date {
  color: var(--accent-soft);
  font-size: 1.4rem;
}

.garage-panel {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.garage-link {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.garage-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 91, 98, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 91, 98, 0.08), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.garage-link p {
  margin: 14px 0 0;
}

.join-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.join-form {
  border-radius: 28px;
  padding: 24px;
}

.join-embed {
  min-height: 720px;
}

.form-frame {
  width: 100%;
  min-height: 640px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 20px;
  align-items: end;
  padding: 28px 6vw 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.footer-copy strong,
.footer-links {
  font-family: "Antonio", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-copy p,
.footer-rights {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-rights {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-transition {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(215, 11, 20, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.98));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 9999;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.page-transition__inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.page-transition__logo {
  width: min(48vw, 260px);
  filter: drop-shadow(0 16px 40px rgba(215, 11, 20, 0.26));
  animation: transitionPulse 1.2s ease-in-out infinite;
}

.page-transition__text {
  margin: 0;
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes transitionPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .garage-grid,
  .join-section {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    padding-bottom: 10px;
  }

  .hero-logo-wrap {
    top: 54px;
    right: 18px;
    width: min(42vw, 240px);
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .hero-logo-wrap {
    top: 70px;
    right: 12px;
    width: min(44vw, 160px);
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  h2 {
    font-size: 2.4rem;
  }

  .page-transition__logo {
    width: min(62vw, 220px);
  }

}
