:root {
  --bg: #050505;
  --bg-soft: #0d0d0f;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f3f3;
  --muted: #b7b7bc;
  --red: #ff1d25;
  --red-dark: #b10f18;
  --yellow: #ffd400;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 29, 37, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 212, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #050505 0%, #090909 45%, #040404 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  z-index: 9999;
  box-shadow: 0 0 20px rgba(255, 29, 37, 0.6);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: clip;
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

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

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255, 29, 37, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brand-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: 0.25s ease;
}

.section {
  position: relative;
  padding: 120px 0;
  overflow-x: clip;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(255, 255, 255, 0.015);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 29, 37, 0.16), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(255, 212, 0, 0.1), transparent 20%),
    radial-gradient(circle at center bottom, rgba(255, 255, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.checkered {
  position: absolute;
  width: 320px;
  height: 320px;
  opacity: 0.08;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0;
  filter: blur(0.5px);
}

.checkered-left {
  top: 120px;
  left: -80px;
  transform: rotate(-14deg);
}

.checkered-right {
  right: -80px;
  top: 160px;
  transform: rotate(16deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.hero-content,
.hero-visual,
.section-heading,
.content-grid,
.results-grid,
.team-layout,
.partners-grid,
.footer-wrap,
.footer-wrap > *,
.glass-card,
.driver-card,
.partner-card,
.team-panel,
.stat-card,
.logo-frame,
.hero-badge,
.footer-contact-block {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero h1 span {
  display: block;
  color: var(--red);
  text-shadow: 0 0 32px rgba(255, 29, 37, 0.18);
}

.hero-text,
.section-intro,
.glass-card p,
.driver-card li,
.partner-card p,
.highlight-panel p,
.feature-list p,
.footer-copy {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 650px;
  font-size: 1.06rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 0;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff5d00);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(255, 29, 37, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--white);
}

.stats-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.glass-card,
.driver-card,
.partner-card,
.team-panel,
.highlight-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 22px 20px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.9rem;
  color: var(--white);
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.logo-frame {
  position: relative;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 212, 0, 0.1), transparent 36%),
    radial-gradient(circle at bottom, rgba(255, 29, 37, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.logo-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 29, 37, 0.7), rgba(255, 212, 0, 0.5), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.logo-frame img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.45));
}

.hero-badge {
  position: absolute;
  right: -18px;
  bottom: 20px;
  max-width: 240px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 29, 37, 0.95), rgba(140, 0, 8, 0.95));
  box-shadow: 0 20px 40px rgba(255, 29, 37, 0.22);
}

.hero-badge span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.hero-badge strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 34px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.scroll-indicator span {
  width: 6px;
  height: 12px;
  background: linear-gradient(180deg, var(--yellow), var(--red));
  border-radius: 99px;
  animation: moveScroll 1.5s ease-in-out infinite;
}

@keyframes moveScroll {
  0% { transform: translateY(-6px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 0 0 18px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.glass-card {
  padding: 30px;
}

.glass-card h3,
.team-panel h3,
.highlight-panel h3,
.partner-card h3,
.driver-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.wide-card {
  grid-column: 1 / -1;
}

blockquote {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 16px 16px 0;
  color: var(--white);
  font-weight: 600;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.driver-card {
  position: relative;
  padding: 28px 24px;
  overflow: hidden;
}

.driver-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.16), transparent 70%);
}

.position-tag {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 18px;
}

.position-tag.gold {
  background: linear-gradient(135deg, #ffd400, #ff8a00);
  color: #1e1e1e;
}

.position-tag.bronze {
  background: linear-gradient(135deg, #ff5c39, #8a3a22);
  color: var(--white);
}

.driver-subtitle {
  margin: 0 0 16px;
  color: var(--yellow);
  font-weight: 700;
}

.driver-card ul {
  padding-left: 18px;
  margin: 0;
}

.highlight-panel {
  margin-top: 30px;
  padding: 28px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.highlight-line {
  flex: 0 0 6px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--yellow));
}

.highlight-label,
.partner-type {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.team-panel {
  padding: 28px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.team-list span {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
}

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

.feature-list article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1rem;
}

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

.partner-card {
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.partner-card:hover,
.driver-card:hover,
.glass-card:hover,
.team-panel:hover,
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 0, 0.24);
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
}

.footer-contact-block {
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 320px;
  max-width: 100%;
}

.footer-contact-title {
  margin: 0 0 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-contact-group p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-contact-group a,
.footer-social-group a {
  color: var(--white);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-contact-group a:hover,
.footer-social-group a:hover {
  color: var(--yellow);
}

.footer-social-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.footer-social-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ===== section background images ===== */

.has-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.has-bg > .container {
  position: relative;
  z-index: 2;
}

.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--section-bg);
  background-size: cover;
  background-position: var(--section-bg-position, center center);
  background-repeat: no-repeat;
  opacity: 0.14;
  transform: scale(1.08);
  filter: blur(10px) grayscale(20%);
  transition:
    opacity 1s ease,
    transform 1.2s ease,
    filter 1.2s ease;
}

.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.72) 40%,
      rgba(0, 0, 0, 0.84) 100%
    );
}

.has-bg.in-view::before {
  opacity: 0.3;
  transform: scale(1);
  filter: blur(0) grayscale(0);
}

/* ===== responsive ===== */

@media (max-width: 1100px) {
  .hero-grid,
  .team-layout {
    grid-template-columns: 1fr;
  }

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

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

  .hero-visual {
    max-width: 700px;
  }
}

@media (max-width: 860px) {
  .container {
    width: calc(100% - 24px);
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    max-width: calc(100% - 62px);
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .brand-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
  }

  .brand-name {
    font-size: 0.82rem;
    line-height: 1.05;
    white-space: normal;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.5vw, 3.3rem);
    line-height: 0.9;
    letter-spacing: 0;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats-grid,
  .content-grid,
  .feature-list,
  .partners-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 14px;
    margin-top: 28px;
  }

  .stat-card {
    padding: 18px 16px;
  }

  .stat-card strong {
    font-size: 1.7rem;
  }

  .logo-frame {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-badge {
    position: static;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .checkered {
    width: 180px;
    height: 180px;
    opacity: 0.05;
    background-size: 38px 38px;
  }

  .checkered-left {
    left: -42px;
    top: 120px;
  }

  .checkered-right {
    right: -42px;
    top: auto;
    bottom: 46px;
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    line-height: 1.02;
  }

  .glass-card,
  .driver-card,
  .partner-card,
  .team-panel,
  .highlight-panel {
    padding: 22px 18px;
  }

  .highlight-panel {
    flex-direction: column;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .back-top {
    width: 100%;
  }

  .has-bg::before {
    background-image: var(--section-bg-mobile, var(--section-bg));
    background-position: var(--section-bg-position-mobile, center center);
    background-size: cover;
    transform: scale(1.015);
    filter: blur(4px) grayscale(8%);
    opacity: 0.18;
  }

  .has-bg.in-view::before {
    opacity: 0.26;
    transform: scale(1);
    filter: blur(0) grayscale(0);
  }

  .has-bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.78) 42%,
        rgba(0, 0, 0, 0.9) 100%
      );
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand-kicker,
  .section-kicker,
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .brand-name {
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
    line-height: 0.92;
  }

  .hero-text {
    font-size: 0.96rem;
  }

  .btn {
    min-height: 48px;
    font-size: 0.96rem;
  }

  .glass-card,
  .driver-card,
  .partner-card,
  .team-panel,
  .highlight-panel,
  .stat-card {
    border-radius: 18px;
  }

  .has-bg::before {
    background-position: var(--section-bg-position-mobile, center top);
    transform: scale(1.005);
    filter: blur(3px) grayscale(5%);
  }

  .has-bg.in-view::before {
    opacity: 0.24;
  }
}