:root {
  color-scheme: dark;
  --bg: #071013;
  --panel: #10191d;
  --panel-strong: #152226;
  --text: #f5f1e8;
  --muted: #b4c1c0;
  --cyan: #5bd7ff;
  --orange: #ff7b35;
  --green: #9ee37d;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(3, 8, 10, 0.82), rgba(3, 8, 10, 0));
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan);
  border-right-color: var(--orange);
  transform: rotate(45deg);
}

nav {
  gap: clamp(14px, 2.4vw, 34px);
  color: rgba(245, 241, 232, 0.82);
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 116px clamp(20px, 5vw, 82px) 96px;
}

.hero-image,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.94) 0%, rgba(4, 9, 12, 0.72) 34%, rgba(4, 9, 12, 0.18) 74%),
    linear-gradient(180deg, rgba(4, 9, 12, 0.44) 0%, rgba(4, 9, 12, 0.08) 52%, var(--bg) 100%);
}

.hero-content {
  width: min(680px, 100%);
  padding-top: 4vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(245, 241, 232, 0.88);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #160c06;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 82px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.5fr);
  gap: 30px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-grid article {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--panel);
  box-shadow: 0 22px 60px var(--shadow);
}

.metric {
  display: block;
  color: var(--cyan);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

h3 {
  margin: 42px 0 12px;
  font-size: 1.24rem;
}

.feature-grid p,
.training p,
.loop span {
  color: var(--muted);
  line-height: 1.65;
}

.race-loop {
  background: linear-gradient(180deg, #0b1518, #121d1d);
}

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.loop div {
  min-height: 210px;
  padding: 26px;
  background: var(--panel-strong);
}

.loop strong {
  display: block;
  margin-bottom: 42px;
  color: var(--orange);
  font-size: 0.9rem;
}

.training {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.training p:last-child {
  margin: 0;
  font-size: clamp(1.08rem, 1.9vw, 1.45rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 82px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.policy-header {
  position: sticky;
  background: rgba(3, 8, 10, 0.92);
  backdrop-filter: blur(16px);
}

.policy-page {
  padding: 112px clamp(20px, 5vw, 82px) 72px;
}

.policy-hero,
.policy-content {
  width: min(880px, 100%);
  margin: 0 auto;
}

.policy-hero {
  padding: 44px 0 36px;
}

.policy-hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.policy-content {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.policy-content h2 {
  margin: 42px 0 12px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.policy-content h2:first-of-type {
  margin-top: 24px;
}

.policy-content p {
  margin: 0 0 16px;
}

.policy-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 88vh;
    padding-top: 132px;
  }

  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(4, 9, 12, 0.92) 0%, rgba(4, 9, 12, 0.72) 58%, rgba(4, 9, 12, 0.34) 100%),
      linear-gradient(180deg, rgba(4, 9, 12, 0.22) 0%, var(--bg) 100%);
  }

  .section-heading,
  .training {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .loop {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .loop div {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: absolute;
    gap: 16px;
    padding-inline: 18px;
  }

  nav {
    gap: 10px;
  }

  .hero {
    min-height: 90vh;
    padding-inline: 18px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(4rem, 28vw, 7rem);
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-page {
    padding-top: 96px;
  }
}
