:root {
  color-scheme: dark;
  --bg: #0a0e17;
  --surface: #111827;
  --surface-soft: #172033;
  --text: #f6f7fb;
  --muted: #a8b0c0;
  --line: rgba(255, 255, 255, 0.11);
  --orange: #ff9f43;
  --pink: #ff4d6d;
  --mint: #7cf5d2;
  --yellow: #ffcf56;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 77, 109, 0.13), transparent 32rem),
    radial-gradient(circle at 90% 15%, rgba(124, 245, 210, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.hero,
.facts,
.privacy-callout,
.policy-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 36px rgba(255, 77, 109, 0.22);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover {
  color: var(--text);
}

.site-nav .nav-contact {
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: 690px;
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(124, 245, 210, 0.1);
}

.hero h1,
.policy-hero h1,
.error-card h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--pink), var(--orange) 68%, var(--yellow));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--text);
  color: var(--bg);
}

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

.runner-scene {
  position: relative;
  min-height: 475px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2.2rem;
  background:
    linear-gradient(180deg, rgba(255, 77, 109, 0.13), transparent 50%),
    #0d1423;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.runner-scene::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.38);
  content: "";
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--yellow), var(--pink));
  box-shadow: 0 0 70px rgba(255, 111, 97, 0.4);
  transform: translateX(-50%);
}

.track {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 50%;
  width: 102%;
  height: 75%;
  background:
    repeating-linear-gradient(90deg, transparent 0 32.8%, rgba(124, 245, 210, 0.7) 33% 33.3%),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255, 255, 255, 0.12) 59px 61px),
    linear-gradient(90deg, rgba(255, 77, 109, 0.12), rgba(124, 245, 210, 0.08));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.runner-badge {
  position: absolute;
  z-index: 3;
  right: 16%;
  bottom: 14%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--pink), var(--orange));
  box-shadow: 0 22px 50px rgba(255, 77, 109, 0.25);
  color: #111827;
  font-size: 1.45rem;
  font-weight: 950;
  transform: rotate(-7deg);
}

.speed-line {
  position: absolute;
  z-index: 2;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--mint));
  opacity: 0.8;
  transform: rotate(-9deg);
}

.speed-line-one { top: 28%; right: 5%; width: 29%; }
.speed-line-two { top: 38%; left: 5%; width: 22%; }
.speed-line-three { top: 66%; left: 9%; width: 30%; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-block: 1rem 6rem;
}

.fact-card {
  min-height: 270px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.028);
}

.fact-label {
  margin: 0 0 3.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact-card h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.fact-card > p:not(.fact-label) {
  color: var(--muted);
}

.accent-card {
  background: var(--mint);
  color: #0c1720;
}

.accent-card .fact-label,
.accent-card > p:not(.fact-label) {
  color: #34515a;
}

.accent-card a {
  display: inline-flex;
  gap: 0.5rem;
  color: #0c1720;
  font-weight: 850;
  text-decoration: none;
}

.privacy-callout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 8vw, 8rem);
  margin-bottom: 6rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(130deg, rgba(255, 77, 109, 0.1), rgba(255, 159, 67, 0.04));
}

.privacy-callout h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.privacy-callout > div:last-child p {
  max-width: 38rem;
  margin-top: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.site-footer p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.policy-shell {
  padding-block: 5rem 7rem;
}

.policy-hero {
  max-width: 880px;
  margin-bottom: 5rem;
}

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

.policy-intro {
  max-width: 700px;
  margin: 2rem 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.draft-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 760px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 207, 86, 0.34);
  border-radius: 1rem;
  background: rgba(255, 207, 86, 0.08);
  color: #f8e4aa;
}

.draft-notice strong {
  white-space: nowrap;
}

.updated {
  color: var(--muted);
  font-size: 0.88rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 0.42rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
}

.policy-toc p {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.policy-toc a {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.policy-toc a:hover {
  color: var(--mint);
}

.policy-content section {
  scroll-margin-top: 2rem;
  padding-bottom: 2.6rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
  border-bottom: 0;
}

.policy-content h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.policy-content p,
.policy-content li {
  color: #c1c7d3;
}

.policy-content ul {
  padding-left: 1.25rem;
}

.policy-content li + li {
  margin-top: 0.55rem;
}

.policy-content a {
  color: var(--mint);
  text-underline-offset: 0.18em;
}

.policy-note {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--orange);
  background: rgba(255, 159, 67, 0.06);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.error-card {
  width: min(100%, 560px);
  padding: clamp(2rem, 7vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  text-align: center;
}

.error-card .brand-mark {
  margin-bottom: 2rem;
}

.error-card h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
}

.error-card > p:not(.eyebrow) {
  margin: 1.4rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
  }

  .runner-scene {
    min-height: 410px;
  }

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

  .fact-card {
    min-height: auto;
  }

  .fact-label {
    margin-bottom: 2rem;
  }

  .privacy-callout {
    grid-template-columns: 1fr;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-toc p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .hero,
  .facts,
  .privacy-callout,
  .policy-shell {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .site-header {
    min-height: 76px;
  }

  .brand > span:last-child,
  .site-nav .nav-contact {
    display: none;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero {
    gap: 3rem;
    padding-block: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .runner-scene {
    min-height: 345px;
    border-radius: 1.5rem;
  }

  .runner-badge {
    width: 78px;
    height: 78px;
    border-radius: 22px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .facts {
    padding-bottom: 4rem;
  }

  .privacy-callout {
    margin-bottom: 4rem;
    border-radius: 1.5rem;
  }

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

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .policy-shell {
    padding-block: 3.5rem 5rem;
  }

  .policy-hero {
    margin-bottom: 3.5rem;
  }

  .draft-notice {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
