:root {
  --bg: #03050a;
  --bg-deep: #071224;
  --panel: rgba(11, 20, 39, 0.78);
  --panel-strong: rgba(10, 17, 33, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f7fb;
  --muted: #b8c0d1;
  --pink: #ff0f88;
  --pink-bright: #ff48ab;
  --blue: #19478c;
  --blue-bright: #2b74d0;
  --silver: #d8d8dc;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 15, 136, 0.24), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(43, 116, 208, 0.2), transparent 30%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-deep) 45%, #04070d 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -12rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  background:
    radial-gradient(circle, rgba(255, 15, 136, 0.3) 0%, rgba(255, 15, 136, 0) 66%),
    radial-gradient(circle at 30% 70%, rgba(43, 116, 208, 0.18), transparent 58%);
  filter: blur(12px);
}

body::after {
  left: -10vw;
  bottom: 8rem;
  width: 48vw;
  height: 18rem;
  background:
    linear-gradient(170deg, transparent 12%, rgba(255, 255, 255, 0.07) 12.5%, transparent 13%),
    linear-gradient(170deg, transparent 27%, rgba(255, 255, 255, 0.06) 27.5%, transparent 28%),
    linear-gradient(170deg, transparent 42%, rgba(255, 255, 255, 0.05) 42.5%, transparent 43%);
  opacity: 0.6;
  transform: rotate(-8deg);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.9), rgba(4, 7, 13, 0.38));
  backdrop-filter: blur(14px);
}

.header-brand,
.site-nav a,
.button,
.social-card {
  text-decoration: none;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  line-height: 0;
  color: var(--text);
}

.header-brand img {
  display: block;
}

.header-wordmark {
  width: clamp(12rem, 20vw, 18rem);
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a {
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

main {
  display: grid;
  gap: 5rem;
}

section {
  scroll-margin-top: 6rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 4rem 0 2rem;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.9rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-bright);
}

.brand-lockup {
  width: min(100%, 42rem);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.38));
}

.brand-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.55rem;
}

.brand-mark span {
  display: block;
  width: clamp(0.85rem, 1vw, 1rem);
  height: clamp(5rem, 10vw, 8rem);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff53b3 0%, var(--pink) 48%, #ff006e 100%);
  box-shadow:
    0 0 26px rgba(255, 15, 136, 0.32),
    inset 0 0 12px rgba(255, 255, 255, 0.16);
  transform: skew(-18deg);
}

.brand-discrete,
.brand-offshore {
  display: block;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Impact", sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-discrete {
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.86;
  color: transparent;
  background:
    linear-gradient(180deg, #fafbfd 0%, #cfd2d8 27%, #6c7077 60%, #fbfbfd 100%),
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.18) 0 10px,
      rgba(0, 0, 0, 0.15) 10px 20px
    );
  background-blend-mode: overlay;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 30px rgba(255, 255, 255, 0.09);
}

.brand-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  margin-left: clamp(5rem, 12vw, 9.25rem);
}

.brand-offshore {
  font-size: clamp(1.8rem, 5.1vw, 4.35rem);
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(180deg, #f3f4f7 0%, #979ca6 60%, #edeef2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-racing {
  position: relative;
  margin-left: -0.65rem;
  font-family: "Brush Script MT", "Snell Roundhand", cursive;
  font-size: clamp(3rem, 7.8vw, 6.8rem);
  line-height: 0.75;
  color: var(--pink);
  text-shadow:
    0 0 24px rgba(255, 15, 136, 0.28),
    0 10px 30px rgba(255, 15, 136, 0.18);
}

.hero-text,
.panel-copy,
.spotlight-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 42rem;
  margin: 1.75rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.95rem 1.25rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-bright), var(--pink));
  box-shadow: 0 16px 30px rgba(255, 15, 136, 0.26);
}

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

.hero-panel,
.spotlight-card,
.race-card,
.social-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.6rem;
}

.hero-panel::before,
.spotlight-card::before,
.race-card::before,
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(160deg, transparent 68%, rgba(255, 15, 136, 0.16) 100%);
  pointer-events: none;
}

.panel-accent {
  width: 5rem;
  height: auto;
  margin-bottom: 0.9rem;
}

.hero-panel h1 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.panel-copy {
  margin: 1rem 0 1.4rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric {
  padding: 1rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.metric span {
  display: block;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.metric small {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spotlight-card {
  padding: 1.4rem;
}

.spotlight-card h3,
.race-card h3,
.social-text strong {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
}

.spotlight-card h3,
.social-text strong {
  font-size: 1.4rem;
}

.spotlight-card p {
  margin: 0.9rem 0 0;
}

.race-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.race-card {
  padding: 1.35rem;
}

.race-card-featured {
  background:
    linear-gradient(180deg, rgba(255, 15, 136, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.race-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.race-number,
.series-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
}

.race-number {
  min-width: 2.6rem;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.series-tag {
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(43, 116, 208, 0.32);
  background: rgba(22, 58, 114, 0.24);
  color: #cfe3ff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.series-tag-featured {
  border-color: rgba(255, 15, 136, 0.35);
  background: rgba(255, 15, 136, 0.18);
  color: #ffd7eb;
}

.race-card h3 {
  font-size: 1.8rem;
}

.race-date {
  margin: 0.7rem 0 0;
  font-size: 1.1rem;
  color: var(--text);
}

.race-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  color: var(--text);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel-strong);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 15, 136, 0.14), rgba(43, 116, 208, 0.12));
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.social-icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  color: var(--text);
}

.social-icon svg polygon,
.social-icon svg path {
  fill: currentColor;
  stroke: none;
}

.social-text {
  display: grid;
  gap: 0.2rem;
}

.social-text small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.hero-copy,
.hero-panel,
.spotlight-card,
.race-card,
.social-card {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 700ms cubic-bezier(0.18, 0.84, 0.34, 1) forwards;
}

.hero-panel {
  animation-delay: 120ms;
}

.spotlight-card:nth-child(2),
.race-card:nth-child(2),
.social-card:nth-child(2) {
  animation-delay: 120ms;
}

.spotlight-card:nth-child(3),
.race-card:nth-child(3),
.social-card:nth-child(3) {
  animation-delay: 200ms;
}

.race-card:nth-child(4) {
  animation-delay: 280ms;
}

.race-card:nth-child(5) {
  animation-delay: 360ms;
}

.race-card:nth-child(6) {
  animation-delay: 440ms;
}

.race-card:nth-child(7) {
  animation-delay: 520ms;
}

.race-card:nth-child(8) {
  animation-delay: 600ms;
}

.race-card:nth-child(9) {
  animation-delay: 680ms;
}

.race-card:nth-child(10) {
  animation-delay: 760ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .spotlight-grid,
  .race-grid,
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }

  .brand-lockup {
    width: min(100%, 46rem);
  }

  .brand-stack {
    margin-left: clamp(4.5rem, 10vw, 7rem);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1.25rem, 42rem);
  }

  .site-header,
  .site-footer,
  .hero,
  .spotlight-grid,
  .race-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .header-wordmark {
    width: min(100%, 16rem);
  }

  .brand-row {
    align-items: center;
  }

  .brand-lockup {
    width: 100%;
  }

  .brand-mark {
    gap: 0.45rem;
    padding-bottom: 0;
  }

  .brand-mark span {
    height: 3.8rem;
  }

  .brand-stack {
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    margin-left: 4.2rem;
  }

  .brand-racing {
    margin-left: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .race-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-card {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-panel,
  .spotlight-card,
  .race-card,
  .social-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button,
  .social-card,
  .site-nav a {
    transition: none;
  }
}
