:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #101214;
  --panel-2: #171a1d;
  --text: #f5f7fa;
  --muted: #9ba3ad;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff1f2d;
  --red-dark: #9d0d18;
  --steel: #c7ced7;
  --lime: #d7ff32;
  --amber: #ffb84d;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 31, 45, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 22%, rgba(215, 255, 50, 0.08), transparent 20rem),
    linear-gradient(180deg, #050607 0%, #0a0c0e 46%, #050607 100%);
  color: var(--text);
  font-family: Inter, Roboto, Arial, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 7, 0.76);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  box-shadow: 0 16px 36px rgba(255, 31, 45, 0.24);
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 128px 0 56px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.82) 42%, rgba(5, 6, 7, 0.32) 72%, rgba(5, 6, 7, 0.82) 100%),
    linear-gradient(0deg, #050607 0%, rgba(5, 6, 7, 0.14) 34%, rgba(5, 6, 7, 0.24) 100%),
    url("assets/visuals/apex_login_athlete.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content,
.section-inner,
.legal-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(4.6rem, 14vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  color: #d8dde3;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 830px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.72);
}

.stat strong {
  display: block;
  font-size: 1.38rem;
  color: var(--text);
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

section {
  padding: 78px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading p,
.feature p,
.plan-copy,
.legal-lede {
  color: var(--muted);
  line-height: 1.65;
}

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

.feature {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.feature img {
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.feature-body {
  padding: 20px;
}

.feature-kicker {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature h3 {
  margin-bottom: 9px;
  font-size: 1.25rem;
}

.training-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 31, 45, 0.12), rgba(255, 255, 255, 0.02)),
    #0b0d0f;
}

.app-preview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.preview-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1114;
}

.preview-panel img {
  width: 100%;
  height: 510px;
  object-fit: cover;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: #dce2e8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.plan-step {
  border-top: 2px solid var(--red);
  padding: 18px 0 0;
}

.plan-step span {
  color: var(--amber);
  font-weight: 900;
}

.plan-step h3 {
  margin: 10px 0 8px;
}

.signal-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 31, 45, 0.12), rgba(255, 255, 255, 0.02)),
    #080a0c;
}

.signal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.signal-stack {
  display: grid;
  gap: 12px;
}

.signal-card {
  display: grid;
  grid-template-columns: 52px 150px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.signal-card span {
  color: var(--amber);
  font-weight: 900;
}

.signal-card strong {
  color: var(--text);
  font-size: 1.04rem;
  text-transform: uppercase;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  padding: 70px 0;
  background:
    linear-gradient(135deg, rgba(255, 31, 45, 0.18), rgba(215, 255, 50, 0.07)),
    #0b0c0e;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.045);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--steel);
  font-weight: 800;
}

.legal-actions a {
  border-bottom: 1px solid rgba(199, 206, 215, 0.45);
}

.legal-page {
  padding-top: 110px;
}

.legal-wrap {
  max-width: 880px;
  padding-bottom: 70px;
}

.legal-wrap h1 {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  line-height: 0.9;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(16, 18, 20, 0.78);
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #c2c9d1;
  line-height: 1.65;
}

.legal-card ul {
  padding-left: 22px;
}

.notice {
  border-left: 3px solid var(--lime);
  padding: 14px 16px;
  background: rgba(215, 255, 50, 0.07);
  color: #edf5ca;
}

@media (max-width: 880px) {
  .nav-inner {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 104px;
  }

  .hero-stats,
  .feature-grid,
  .plan-grid,
  .signal-grid,
  .app-preview,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .signal-card {
    grid-template-columns: 42px 1fr;
  }

  .signal-card p {
    grid-column: 2;
  }

  .preview-panel img {
    height: 330px;
  }

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

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

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

  section {
    padding: 58px 0;
  }

  .legal-card,
  .cta-box {
    padding: 22px;
  }
}
