/* ═══════════════════════════════════════════════
   AZTeamPlay — Landing
   Mundo visual: "cancha de noche"
   Base navy profunda, azul AZ como acento
   dominante, violeta reservado para la IA.
   Tipografía atlética: Archivo (ancho variable).
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep: #020617;
  --bg-navy: #0f172b;
  --bg-card: rgba(15, 23, 43, 0.55);
  --line: rgba(255, 255, 255, 0.09);
  --brand: #4b8fff;            /* acento principal de AZTeamPlay Coach */
  --brand-bright: #51a2ff;     /* acento azul de AZTeamPlay */
  --brand-ink: #020617;        /* texto sobre azul */
  --ia: #c27aff;               /* violeta: solo IA */
  --blue: #51a2ff;
  --danger: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #b6c2d6;
  --text-muted: #8b99b3;
  --radius: 14px;
  --font: "Archivo", system-ui, sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─────────── Superficies del navegador ─────────── */

::selection {
  background: var(--brand-bright);
  color: var(--brand-ink);
}

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  scrollbar-width: thin;
  scrollbar-color: #1e2a44 var(--bg-deep);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1e2a44; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  margin-bottom: 0.75rem;
}

p {
  max-width: 68ch;
}

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

.footer__links a,
.cta__fallback a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.footer__links a:hover,
.cta__fallback a:hover {
  text-decoration-color: currentColor;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.accent {
  color: var(--brand-bright);
}

/* ─────────── Botones ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn--primary:hover {
  background: var(--brand-bright);
  transform: translateY(-2px);
}

.btn--invert {
  background: var(--brand-ink);
  color: var(--brand-bright);
}

.btn--invert:hover {
  background: #0b1d3a;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--lg { padding: 1.05rem 2.3rem; font-size: 1.05rem; }

/* ─────────── Nav ─────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 1.05rem;
}

.nav__logo-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.nav__links a {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__links a.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--brand-bright);
}

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

.nav__actions .btn {
  display: none;
}

.nav__burger {
  display: grid;
  place-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__links--open {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.25rem;
}

.nav__links--open a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.nav__links--open a:last-child { border-bottom: none; }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

/* Líneas de cancha: el motivo central del mundo visual */
.hero__pitch {
  position: absolute;
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  width: min(680px, 90vw);
  height: auto;
  pointer-events: none;
}

.hero__pitch-lines > * {
  fill: none;
  stroke: rgba(81, 162, 255, 0.16);
  stroke-width: 2;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: pitchDraw 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero__pitch-lines > *:nth-child(2) { animation-delay: 0.15s; }
.hero__pitch-lines > *:nth-child(3) { animation-delay: 0.3s; }
.hero__pitch-lines > *:nth-child(4) { animation-delay: 0.45s; }
.hero__pitch-lines > *:nth-child(5) { animation-delay: 0.6s; }
.hero__pitch-lines > *:nth-child(6) { animation-delay: 0.75s; }
.hero__pitch-lines > *:nth-child(7) { animation-delay: 0.9s; }

.hero__pitch-lines .fill {
  fill: rgba(81, 162, 255, 0.35);
  stroke: none;
}

@keyframes pitchDraw {
  to { stroke-dashoffset: 0; }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero__proof-note {
  color: #9cc4ff;
  font-size: 0.8rem;
  font-weight: 650;
}

/* ─────────── Pantallas reales del hero ─────────── */

.hero__visual {
  position: relative;
  width: min(100%, 520px);
  height: 580px;
  margin-inline: auto;
}

.hero-screen {
  position: absolute;
  display: grid;
  gap: 0.65rem;
  width: min(58%, 270px);
  margin: 0;
}

.hero-screen--player {
  top: 4.5rem;
  left: 0;
  z-index: 1;
}

.hero-screen--manager {
  top: 0;
  right: 0;
  z-index: 2;
}

.hero-screen__device {
  aspect-ratio: 0.46;
  padding: 8px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(160deg, #1e293b, #080d18);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.48);
}

.hero-screen__device--player {
  background: linear-gradient(160deg, #183a66, #0b1824);
}

.hero-screen__device img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  object-fit: cover;
  object-position: top center;
}

.hero-screen figcaption {
  color: #9cc4ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* ─────────── Marcador (scoreboard) ─────────── */

.scoreboard {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 43, 0.35);
}

.scoreboard__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.scoreboard__num {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--brand-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.scoreboard__num small {
  font-size: 0.45em;
  font-weight: 700;
  margin-left: 0.1em;
}

.scoreboard__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 22ch;
}

/* ─────────── Secciones ─────────── */

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section[id],
.cta[id] {
  scroll-margin-top: 68px;
}

.section--ia {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 43, 0.35);
}

.section--steps {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 3.25rem;
}

.section__head p {
  color: var(--text-secondary);
}

/* ─────────── Pantallas reales ─────────── */

.screens {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 43, 0.42), transparent 82%);
}

.screens .section__head {
  max-width: 47rem;
}

.screens__note {
  margin-top: 0.9rem;
  color: #9cc4ff !important;
  font-size: 0.78rem;
  font-weight: 650;
}

.product-flow {
  display: flex;
  gap: 1rem;
  margin: 0 -1.25rem;
  padding: 0 1.25rem 1.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 1.25rem;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(81, 162, 255, 0.55) rgba(255, 255, 255, 0.05);
}

.flow-step {
  position: relative;
  display: flex;
  flex: 0 0 min(84vw, 330px);
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  padding: 1.25rem 1.25rem 0;
  border-radius: 16px;
  background: rgba(15, 23, 43, 0.72);
  scroll-snap-align: start;
}

.flow-step__copy {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-height: 11.5rem;
}

.flow-step__number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.flow-step h3 {
  max-width: 14ch;
  font-size: 1.35rem;
}

.flow-step p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.flow-step__device {
  width: min(100%, 262px);
  height: 478px;
  margin: auto auto 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(155deg, #1e293b, #070b15);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
}

.flow-step__device--player {
  background: linear-gradient(155deg, #1b4350, #0b1824);
}

.flow-step__device img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px 25px 0 0;
  object-fit: cover;
  object-position: top center;
}

.screen-strip {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.screen-strip__head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.screen-strip__head h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.screen-strip__head p {
  color: var(--text-secondary);
}

.screen-strip__rail {
  display: flex;
  gap: 1rem;
  margin: 0 -1.25rem;
  padding: 0 1.25rem 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 1.25rem;
  scroll-snap-type: inline mandatory;
}

.screen-strip__rail > li {
  flex: 0 0 min(70vw, 270px);
  min-width: 0;
  scroll-snap-align: start;
}

.screen-peek__image {
  height: 340px;
  overflow: hidden;
  border-radius: 14px;
  background: #081126;
}

.screen-peek__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen-peek figcaption {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.9rem;
}

.screen-peek figcaption strong {
  font-size: 0.95rem;
}

.screen-peek figcaption span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (min-width: 960px) {
  .product-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .flow-step {
    padding: 1.5rem 1.5rem 0;
  }

  .flow-step__copy {
    min-height: 12rem;
  }

  .flow-step__device {
    height: 480px;
  }

  .screen-strip__head {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: end;
  }

  .screen-strip__rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .screen-strip__rail > li {
    min-width: 0;
  }

  .screen-peek__image {
    height: 380px;
  }
}

/* ─────────── Funciones: filas editoriales ─────────── */

.features {
  display: grid;
  gap: 0;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--brand-bright);
  border: 1px solid rgba(81, 162, 255, 0.35);
  border-radius: 12px;
}

.feature__icon--ia {
  color: var(--ia);
  border-color: rgba(194, 122, 255, 0.4);
}

.feature__icon i {
  font-size: 22px;
  line-height: 1;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ─────────── Split (IA Coach) ─────────── */

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split__copy > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.section--ia h2 {
  color: var(--text-primary);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(81, 162, 255, 0.5);
  background-color: rgba(75, 143, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351a2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─────────── Chat demo ─────────── */

.chat-demo__window {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-demo__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-demo__spark {
  font-size: 18px;
  line-height: 1;
  color: var(--ia);
}

.chat-demo__body {
  padding: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bubble--user {
  justify-self: end;
  background: rgba(194, 122, 255, 0.14);
  border: 1px solid rgba(194, 122, 255, 0.35);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.bubble--ai {
  justify-self: start;
  background: rgba(15, 23, 43, 0.8);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.bubble--ai strong {
  color: var(--text-primary);
}

/* ─────────── Apps ─────────── */

.apps {
  display: grid;
  gap: 1.25rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.app-card--player:hover { border-color: rgba(81, 162, 255, 0.45); }
.app-card--manager:hover { border-color: rgba(81, 162, 255, 0.45); }

.app-card h3 {
  font-size: 1.5rem;
  margin: 0.9rem 0 0.35rem;
}

.app-card__desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.app-card__tag {
  display: inline-block;
  margin: 0;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-card--player .app-card__tag {
  background: rgba(75, 143, 255, 0.14);
  color: var(--brand-bright);
}

.app-card--manager .app-card__tag {
  background: rgba(81, 162, 255, 0.14);
  color: var(--blue);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
  border-color: rgba(81, 162, 255, 0.45);
  background: rgba(75, 143, 255, 0.08);
  transform: translateY(-1px);
}

.store-badge i {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.store-badge small {
  font-family: inherit;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

/* ─────────── Pasos ─────────── */

.steps {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  counter-reset: paso;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-bright);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ─────────── Privacidad ─────────── */

.privacy {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(81, 162, 255, 0.3);
  border-radius: var(--radius);
  padding: 2.25rem;
  background: rgba(75, 143, 255, 0.05);
}

.privacy p {
  color: var(--text-secondary);
  max-width: 68ch;
}

.privacy__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(81, 162, 255, 0.4);
  color: var(--brand-bright);
}

.privacy__icon i {
  font-size: 24px;
  line-height: 1;
}

/* ─────────── CTA final: video de equipo ─────────── */

.cta {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 40rem;
  padding: 8rem 0 3.75rem;
  place-items: end stretch;
  overflow: hidden;
  text-align: left;
  background: var(--bg-deep);
  color: var(--text-primary);
}

.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.16) 46%, rgba(2, 6, 23, 0.9) 100%);
  pointer-events: none;
}

.cta__video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.025);
}

.cta__inner {
  position: relative;
  display: grid;
  justify-items: start;
  text-shadow: 0 2px 28px rgba(2, 6, 23, 0.78);
}

.cta__inner h2 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.35rem, 8vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.cta__inner > p {
  max-width: 38ch;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.cta .btn--invert {
  background: var(--brand);
  color: var(--brand-ink);
  text-shadow: none;
}

.cta .btn--invert:hover {
  background: var(--brand-bright);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta__fallback {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: #bfdbfe;
}

.cta__fallback a {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration-color: rgba(219, 234, 254, 0.5);
}

/* ─────────── Footer ─────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer__name {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
}

.footer__tag {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer__legal-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer__legal-links a:hover {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

/* ─────────── Reveal ─────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__pitch-lines > * {
    animation: none;
    stroke-dashoffset: 0;
  }
  .cta__video { filter: saturate(0.72) contrast(1.08); }
}

/* ═══════════ Responsive ═══════════ */

@media (min-width: 640px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .scoreboard__inner { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .privacy { grid-template-columns: auto 1fr; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions .btn { display: inline-flex; }
  .nav__burger { display: none; }

  .hero { padding: 6rem 0 6rem; }

  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .features {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .feature:nth-child(2) { border-top: 1px solid var(--line); }
  .feature:nth-child(3) { border-bottom: 1px solid var(--line); }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section { padding: 6.5rem 0; }

  .cta {
    min-height: min(46rem, 78vh);
    padding-bottom: 5rem;
  }

  .cta__video { object-position: center 40%; }
}
