/* Landing page — hero, pillars, classified, CTA. Tokens live in site.css. */

.grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Entrance: runs on load with no JS dependency. */
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.45em) rotate(3deg); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: fade-up 0.9s var(--ease-out) both; animation-delay: var(--d, 0ms); }

/* Scroll reveal — only hides content when JS is running to reveal it again. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ======================= HERO ======================= */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
  padding-top: clamp(28px, 6vh, 64px);
  padding-bottom: clamp(56px, 9vh, 96px);
  text-align: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 28px;
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(43, 192, 160, 0.6);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(43, 192, 160, 0.55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(43, 192, 160, 0); }
}

.hero__title {
  font-size: clamp(46px, 11vw, 96px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.hero__title .line { display: block; }
.hero__title .w {
  display: inline-block;
  animation: word-in 1s var(--ease-out) both;
  animation-delay: calc(180ms + var(--i) * 95ms);
  padding-bottom: 0.06em; /* keeps descenders inside the gradient clip */
}

.hero__sub {
  max-width: 520px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---------- Waitlist form ---------- */
.waitlist-form { width: 100%; max-width: 480px; }
.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus-within { border-color: rgba(43, 192, 160, 0.65); box-shadow: 0 0 0 4px rgba(43, 192, 160, 0.14); }
.field input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-size: 16px; /* ≥16px stops iOS zoom-on-focus */
  outline: none;
}
.field input::placeholder { color: var(--faint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.form-note { margin-top: 12px; font-size: 13px; color: var(--faint); }
.form-note a { color: var(--muted); }
.form-status { min-height: 20px; margin-top: 8px; font-size: 14px; font-weight: 600; color: #FF8A8A; }

.form-done {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(43, 192, 160, 0.12);
  border: 1px solid rgba(43, 192, 160, 0.4);
  text-align: left;
  animation: fade-up 0.6s var(--ease-out) both;
}
.form-done strong { display: block; font-size: 16px; }
.form-done span { font-size: 14px; color: var(--muted); }
.form-done .check {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #061015;
}
.form-done .check svg { width: 20px; height: 20px; }
.waitlist-form.is-done .field,
.waitlist-form.is-done .form-note,
.waitlist-form.is-done .form-status { display: none; }
.waitlist-form.is-done .form-done { display: flex; }

/* ---------- XP core (hero visual) ---------- */
.hero__visual { display: flex; justify-content: center; animation: fade-up 1.2s var(--ease-out) both; animation-delay: 500ms; }
.xp-core {
  position: relative;
  width: min(400px, 74vw);
  aspect-ratio: 1;
}
.xp-core::before { /* soft glow behind the ring */
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 168, 216, 0.28), transparent 70%);
  filter: blur(8px);
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease;
}
.xp-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xp-ring .track { stroke: rgba(255, 255, 255, 0.07); }
.xp-ring .progress {
  stroke-dasharray: 628.32;
  stroke-dashoffset: 628.32;
  transform: rotate(-90deg);
  transform-origin: 120px 120px;
  transition: stroke-dashoffset 0.7s var(--ease-out);
}
.xp-ring .orbit {
  transform-origin: 120px 120px;
  animation: spin 40s linear infinite;
}
.xp-ring .orbit--rev { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.xp-core__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.xp-core__label { font-size: 12px; font-weight: 800; letter-spacing: 0.22em; color: var(--muted); }
.xp-core__level {
  font-size: clamp(64px, 18vw, 112px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.xp-core__xp { font-size: 13px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; margin-top: 4px; }

.xp-core.is-levelup::before { transform: scale(1.25); opacity: 1; }
.xp-core.is-levelup .xp-ring .progress { filter: drop-shadow(0 0 10px rgba(123, 140, 255, 0.9)); }
.xp-core.is-levelup .xp-core__level { animation: level-pop 0.7s var(--ease-spring); }
.xp-core.is-levelup .xp-core__label { color: var(--teal); }
@keyframes level-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.xp-pop {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.85);
  border: 1px solid rgba(43, 192, 160, 0.55);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  animation: xp-pop 1.4s var(--ease-out) forwards;
}
@keyframes xp-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  30%  { transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 56px)) scale(0.95); }
}

/* Floating chips around the ring: outer div bobs, inner chip springs in. */
.chip-float {
  position: absolute;
  animation: bob var(--bob, 6s) ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  background: rgba(16, 20, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  animation: chip-in 0.8s var(--ease-spring) both;
  animation-delay: var(--d, 900ms);
}
.chip .ico {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
}
.chip .ico svg { width: 15px; height: 15px; }
@keyframes chip-in {
  from { opacity: 0; transform: scale(0.6) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.chip-float--1 { top: 4%;  left: -8%;   --bob: 6s; }
.chip-float--2 { top: 20%; right: -12%; --bob: 7s;  --bob-delay: -2s; }
.chip-float--3 { bottom: 14%; left: -14%; --bob: 6.5s; --bob-delay: -4s; }
.chip-float--4 { bottom: 2%; right: -4%;  --bob: 7.5s; --bob-delay: -1s; }

/* ======================= MARQUEE ======================= */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__item svg { width: 18px; height: 18px; color: var(--c, var(--teal)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ======================= SECTIONS ======================= */
.section { padding: clamp(72px, 12vh, 128px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vh, 56px); }
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(34px, 6.4vw, 60px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.section-head p { font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card { padding: 14px 14px 26px; overflow: hidden; }
.card::after { /* accent glow in the corner */
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  top: -130px; left: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.card h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin: 22px 12px 8px; display: flex; align-items: center; gap: 10px; }
.card h3 .num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0 12px; }

.stage {
  position: relative;
  height: 236px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.stage__tag {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.stage__tag svg { width: 14px; height: 14px; color: var(--c, var(--accent)); }

/* Train: rep counter + set bars + PR stamp */
.rep { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 28px; }
.rep__num {
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 70%, #fff));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rep__num.tick { animation: tick 0.18s var(--ease-out); }
@keyframes tick { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.rep__label { font-size: 12px; font-weight: 800; letter-spacing: 0.22em; color: var(--faint); text-transform: uppercase; }
.sets { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.set { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.set i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.12s linear; }
.stamp {
  position: absolute;
  top: 16px; right: 14px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-8deg) scale(0);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.2s ease;
}
.stamp.is-on { transform: rotate(-8deg) scale(1); opacity: 1; }

/* Compete: leaderboard where "You" climbs */
.board { position: absolute; left: 14px; right: 14px; top: 14px; height: 208px; }
.board__row {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 46px;
  display: grid;
  grid-template-columns: 22px 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(calc(var(--rank) * 54px));
  transition: transform 0.6s var(--ease-spring), background 0.3s ease;
}
.board__rank { color: var(--faint); font-variant-numeric: tabular-nums; }
.board__avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0b0d12; background: var(--c); }
.board__pts { font-variant-numeric: tabular-nums; color: var(--muted); }
.board__row.is-you { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent); z-index: 1; }
.board__row.is-you .board__pts { color: var(--text); }
.board__row.is-top .board__rank { color: var(--gold); }
.board.is-resetting { opacity: 0; transition: opacity 0.35s ease; }
.board { transition: opacity 0.35s ease; }

/* Level up: ranked tier badge + XP bar + confetti */
.tier { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-top: 18px; }
.tier__badge { width: 86px; height: 86px; color: var(--tier, #C98B5A); filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--tier, #C98B5A) 50%, transparent)); transition: color 0.4s ease, filter 0.4s ease; }
.tier__badge.pop { animation: level-pop 0.6s var(--ease-spring); }
.tier__name { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; color: var(--tier, #C98B5A); transition: color 0.4s ease; }
.xpbar { width: 64%; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--tier, #C98B5A), #fff); transition: width 1s var(--ease-out); }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Classified ---------- */
.vault { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tile__ghost { /* the blurred "UI" you can't quite read */
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  filter: blur(7px);
  opacity: 0.7;
}
.tile__ghost .g-ring { width: 64px; height: 64px; border-radius: 50%; border: 9px solid var(--c); border-right-color: rgba(255, 255, 255, 0.1); }
.tile__ghost .g-line { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.25); }
.tile__ghost .g-line--c { background: var(--c); }
.tile__ghost .g-dots { display: flex; gap: 6px; }
.tile__ghost .g-dots b { width: 30px; height: 30px; border-radius: 50%; background: var(--c); opacity: 0.8; }
.tile__ghost .g-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.tile__ghost .g-bars b { flex: 1; border-radius: 4px; background: var(--c); }
.tile__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 45%, rgba(7, 9, 13, 0.25), rgba(7, 9, 13, 0.7));
}
.tile__lock .lock {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.tile__lock .lock svg { width: 20px; height: 20px; }
.tile__lock span { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.tile__lock span.q { font-size: 20px; letter-spacing: 0.2em; color: var(--muted); }
.tile::after { /* shimmer sweep */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shimmer 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.45s);
}
@keyframes shimmer { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.tile__stamp {
  position: absolute;
  top: 16px; right: -30px;
  padding: 4px 36px;
  transform: rotate(35deg);
  background: var(--flame);
  color: #140800;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.vault-caption { text-align: center; color: var(--faint); margin-top: 22px; font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(36px, 7vw, 72px) clamp(20px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.cta::after { /* gradient hairline border */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(43, 192, 160, 0.8), rgba(255, 255, 255, 0.06) 40%, rgba(123, 140, 255, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cta h2 { font-size: clamp(36px, 7vw, 64px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; margin-bottom: 16px; }
.cta > p { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); max-width: 520px; margin: 0 auto 30px; }
.cta .waitlist-form { margin: 0 auto; }
.perk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: rgba(242, 201, 76, 0.08);
  border: 1px solid rgba(242, 201, 76, 0.3);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}
.perk .ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(242, 201, 76, 0.18); color: var(--gold); }
.perk .ico svg { width: 17px; height: 17px; }
.perk strong { color: var(--text); }

/* ---------- Toast (?waitlist=confirmed|unsubscribed|invalid) ---------- */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(460px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: rgba(16, 20, 28, 0.94);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  animation: toast-in 0.6s var(--ease-spring) both;
}
.toast[hidden] { display: none; }
.toast .ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--teal)); color: #061015; }
.toast .ico svg { width: 18px; height: 18px; }
.toast p { flex: 1; font-size: 14px; color: var(--muted); }
.toast p strong { display: block; color: var(--text); font-size: 15px; }
.toast button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--faint); cursor: pointer; font-size: 20px; line-height: 1; }
.toast button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -16px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 479px) {
  .field { flex-direction: column; padding: 6px; }
  .field input[type="email"] { height: 50px; text-align: center; }
  .field .btn { width: 100%; min-height: 50px; }
  .chip { font-size: 12px; padding: 7px 11px 7px 8px; }
  .chip .ico { width: 22px; height: 22px; }
  .chip-float--1 { left: -4%; }
  .chip-float--2 { right: -6%; }
  .chip-float--3 { left: -6%; }
  .chip-float--4 { display: none; }
}

@media (min-width: 720px) {
  .vault { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tile { aspect-ratio: 4 / 3; }
}

@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    min-height: min(calc(100svh - 72px), 960px);
    text-align: left;
    gap: 32px;
  }
  .hero__copy { align-items: flex-start; }
  .hero__sub { max-width: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .w, .reveal, .hero__visual, .chip { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track, .tile::after, .chip-float, .xp-ring .orbit { animation: none !important; }
}
