/* =========================================================
   ATEVA · Landing
   ========================================================= */
:root {
  --navy-950: #070c16;
  --navy-900: #0b1220;
  --navy-800: #111a2c;
  --navy-700: #1a2438;
  --line: rgba(148, 170, 210, 0.16);
  --blue: #2563eb;
  --blue-400: #60a5fa;
  --ink: #0f172a;
  --ink-soft: #475569;
  --light: #f3f5fa;
  --mist: #e6ecf5;
  --white: #ffffff;
  --text-dim: #aab6cc;
  --radius: 18px;
  --container: 1160px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  background: var(--navy-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Wordmark: la "A" de ATEVA es un Λ sin travesaño ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
}
.wordmark--dark { color: var(--ink); }
.lambda {
  display: inline-block;
  width: 0.92em;
  height: 0.72em;
  margin-right: 0.22em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Cpath d='M50 0 L100 80 H86 L50 22 L14 80 H0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Cpath d='M50 0 L100 80 H86 L50 22 L14 80 H0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.wordmark .lambda:last-child { margin-right: 0; margin-left: 0; }
.wordmark--xs { font-size: 0.95rem; }
.wordmark--sm { font-size: 1.35rem; }
.wordmark--lg { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.wordmark--xl { font-size: clamp(3.2rem, 10vw, 6.5rem); font-weight: 400; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--ink); }
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__title--dark { color: var(--ink); }
.muted { color: var(--ink-soft); margin-top: 16px; max-width: 42ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 500 0.98rem/1 var(--font);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #1d4ed8; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 12, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; }
.nav__links a:not(.btn) { color: var(--text-dim); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 960px);
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding: 120px 0 160px;
}
.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 78%, rgba(255, 190, 140, 0.45), transparent 70%),
    linear-gradient(180deg, #1c2d4d 0%, #3b5277 38%, #8a8fa6 62%, #d6a07b 76%, #1b2436 100%);
}
.hero__mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(160px, 30vh, 320px); }
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--navy-900));
}
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__mark { width: clamp(90px, 12vw, 150px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.hero__tagline {
  margin-top: 26px;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  padding-left: 0.55em;
}
.hero__lead {
  margin-top: 34px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  color: rgba(255,255,255,.92);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--dark { background: var(--navy-900); }
.section--navy { background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); }
.section--light { background: var(--light); color: var(--ink); }
.section--mist { background: linear-gradient(180deg, #eef2f8, var(--mist)); color: var(--ink); }

/* ---------- Ecosistema ---------- */
.eco__head { text-align: center; margin-bottom: 64px; }
.eco {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  grid-template-areas:
    "coach hub athlete"
    ".     club .";
  gap: 28px 36px;
  align-items: center;
}
.eco > :nth-child(1) { grid-area: coach; }
.eco > :nth-child(2) { grid-area: hub; }
.eco > :nth-child(3) { grid-area: athlete; }
.eco > :nth-child(4) { grid-area: club; }
.eco__card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.eco__card:hover { transform: translateY(-4px); border-color: rgba(96,165,250,.4); }
.eco__card h3 {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eco__card p { color: var(--text-dim); font-size: 0.98rem; }
.eco__avatar {
  width: 112px; height: 112px;
  margin: 0 auto;
  border-radius: 50%;
  background-size: 280%;
  background-color: var(--navy-700);
  border: 3px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 6px rgba(37,99,235,.08);
}
.eco__icon {
  width: 72px; height: 72px; margin: 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(37,99,235,.12);
}
.eco__icon svg, .feature__icon svg, .pillar svg, .watch__screen svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.eco__icon svg { width: 38px; color: var(--blue-400); }

.eco__hub { position: relative; display: grid; place-items: center; min-height: 200px; }
.eco__cloud {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 240px; height: 170px;
  border-radius: 50%;
  border: 2px solid rgba(96,165,250,.45);
  background: radial-gradient(circle at 50% 30%, #1d2b48, var(--navy-800));
  box-shadow: 0 0 60px rgba(37,99,235,.22), inset 0 0 30px rgba(37,99,235,.12);
}
.eco__cloud img { width: 54px; }
.eco__arrow { position: absolute; color: var(--blue-400); font-size: 1.8rem; line-height: 1; }
.eco__arrow--left { left: -8px; top: 50%; transform: translateY(-50%); }
.eco__arrow--right { right: -8px; top: 50%; transform: translateY(-50%); }
.eco__arrow--down { bottom: -24px; left: 50%; transform: translateX(-50%); }

/* ---------- Plataforma / Features ---------- */
.features { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.features__intro { position: sticky; top: 110px; }
.features__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature {
  display: flex; gap: 20px; align-items: center;
  padding: 20px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
}
.feature h3 { font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.feature__icon {
  flex: none;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.feature__icon svg { width: 28px; stroke-width: 1.9; }
.feature__icon--blue   { background: #dbe6ff; color: #2563eb; }
.feature__icon--teal   { background: #d5f3ef; color: #0d9488; }
.feature__icon--indigo { background: #e0e4ff; color: #4f46e5; }
.feature__icon--sky    { background: #dbeefe; color: #0284c7; }
.feature__icon--green  { background: #d9f5e3; color: #16a34a; }

/* ---------- Split sections ---------- */
.split__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.split--reverse .split__inner { grid-template-columns: 1.15fr 0.85fr; }
.split--reverse .split__text { order: 2; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; color: var(--text-dim); }
.checks--dark { color: var(--ink-soft); }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Laptop mockup ---------- */
.laptop { perspective: 1400px; }
.laptop__screen {
  display: grid;
  grid-template-columns: 150px 1fr;
  aspect-ratio: 16 / 10;
  border: 12px solid #1b1f27;
  border-bottom-width: 16px;
  border-radius: 16px 16px 4px 4px;
  overflow: hidden;
  background: #f5f7fb;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transform: rotateY(-8deg) rotateX(4deg);
  font-size: 11px;
  color: var(--ink);
}
.laptop__base {
  height: 16px; margin: 0 -6%;
  background: linear-gradient(180deg, #3a3f4a, #1b1f27);
  border-radius: 0 0 20px 20px;
  transform: rotateY(-8deg);
}
.dash__side { background: var(--navy-900); color: var(--white); padding: 18px 14px; }
.dash__side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 4px; color: var(--text-dim); }
.dash__side li { padding: 6px 8px; border-radius: 6px; }
.dash__side li.is-active { background: rgba(37,99,235,.25); color: var(--white); }
.dash__main { padding: 18px 20px; overflow: hidden; }
.dash__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.dash__btn { background: var(--blue); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 10px; }
.dash__week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin: 14px 0 18px; text-align: center; color: var(--ink-soft);
}
.dash__week i { height: 22px; border-radius: 5px; background: #e8ecf3; }
.dash__week i.y { background: #fde68a; }
.dash__week i.g { background: #86efac; }
.dash__week i.b { background: #93c5fd; }
.dash__week i.t { background: #a5f3fc; }
.dash__label { font-weight: 600; margin-bottom: 8px; }
.dash__row {
  display: grid; grid-template-columns: 20px 90px 1fr; align-items: center; gap: 8px;
  padding: 7px 0; border-top: 1px solid #e3e8f0;
}
.dash__row .dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #c7a38a, #8b5e44); }
.dash__row em { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) var(--w), #e3e8f0 var(--w)); }

/* ---------- Phone + watch mockups ---------- */
.devices { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-bottom: 10px; }
.phone {
  position: relative;
  width: 270px;
  padding: 12px;
  background: #1c1f26;
  border-radius: 44px;
  box-shadow: 0 40px 80px rgba(15,23,42,.35);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 12px; background: #000; z-index: 1; }
.phone__screen {
  background: var(--white); color: var(--ink);
  border-radius: 34px; padding: 54px 18px 22px;
  font-size: 12px;
  display: flex; flex-direction: column;
}
.phone__screen > .wordmark { align-self: center; margin-bottom: 14px; }
.phone__h { font-weight: 600; font-size: 13px; }
.phone__days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin: 8px 0 14px; color: var(--ink-soft); }
.phone__days .on { background: var(--blue); color: #fff; border-radius: 50%; width: 22px; height: 22px; line-height: 22px; margin: 0 auto; }
.phone__label { font-weight: 600; margin: 6px 0 8px; }
.phone__card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: #f1f5fb; }
.phone__card small, .phone__activity small { display: block; color: var(--ink-soft); }
.phone__ico { width: 34px; height: 34px; border-radius: 9px; background: #dbe6ff; }
.phone__btn { margin: 12px 0 10px; text-align: center; background: var(--blue); color: #fff; border-radius: 10px; padding: 9px; font-weight: 500; }
.phone__activity { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; }
.watch {
  width: 150px; margin-left: -40px; margin-bottom: 30px;
  padding: 10px;
  background: #22262e;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(15,23,42,.35);
  position: relative;
}
.watch::before, .watch::after {
  content: ""; position: absolute; left: 22%; right: 22%; height: 60px; background: #2b2f38; z-index: -1;
}
.watch::before { top: -50px; border-radius: 14px 14px 0 0; }
.watch::after { bottom: -50px; border-radius: 0 0 14px 14px; }
.watch__screen {
  aspect-ratio: 1 / 1.15;
  background: #000; border-radius: 30px;
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px;
  color: #fff;
}
.watch__screen svg { width: 26px; color: #22c55e; stroke-width: 2; margin-bottom: 6px; }
.watch__screen strong { font-size: 22px; font-weight: 500; line-height: 1.1; }
.watch__screen span { font-size: 22px; line-height: 1.1; }
.watch__screen small { color: #94a3b8; }

/* ---------- Closing ---------- */
.closing { position: relative; padding: 130px 0 110px; overflow: hidden; text-align: center; }
.closing__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.72), rgba(7,12,22,.95)),
    url("../assets/img/athlete.png") center 40% / cover no-repeat;
}
.closing__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing__claim {
  margin-top: 26px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
}
.pillars { display: flex; justify-content: center; gap: clamp(28px, 7vw, 90px); margin: 64px 0 56px; }
.pillar { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 130px; }
.pillar svg { width: 40px; color: var(--white); }
.pillar span { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.85); }

.signup { display: flex; gap: 10px; width: 100%; max-width: 520px; }
.signup input {
  flex: 1; min-width: 0;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font: 400 1rem var(--font);
}
.signup input::placeholder { color: rgba(255,255,255,.55); }
.signup__msg { min-height: 1.5em; margin-top: 14px; color: var(--blue-400); }
.signup__msg.is-error { color: #fca5a5; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features, .split__inner, .split--reverse .split__inner { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__text { order: 0; }
  .features__intro { position: static; }
  .eco {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "hub hub" "coach athlete" "club club";
  }
  .eco__card--club { max-width: 420px; margin: 0 auto; }
  .eco__arrow { display: none; }
  .laptop__screen { transform: none; }
  .laptop__base { transform: none; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px;
    background: rgba(7,12,22,.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open { background: rgba(7,12,22,.96); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .eco { grid-template-columns: 1fr; grid-template-areas: "hub" "coach" "athlete" "club"; }
  .laptop__screen { grid-template-columns: 1fr; font-size: 10px; aspect-ratio: auto; }
  .watch__screen { padding: 0 12px; }
  .watch__screen strong, .watch__screen span { font-size: 17px; white-space: nowrap; }
  .dash__side { display: none; }
  .phone { width: 240px; }
  .watch { width: 120px; margin-left: -50px; }
  .pillars { gap: 18px; }
  .signup { flex-direction: column; }
}
