/* RIVAL — playrival.app */
:root {
  --bg: #0a0b0f;
  --surface: #141820;
  --border: #1e2530;
  --text: #ffffff;
  --muted: #a7b0be;
  --primary: #ea148b;
  --neon: #00ff88;
  --danger: #ff4d4f;
  --orange: #ff5a1f;
  --gold: #ffd700;
  --font-display: "Bebas Neue", "Impact", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --glow-pink: 0 0 40px rgba(234, 20, 139, 0.35);
  --glow-green: 0 0 32px rgba(0, 255, 136, 0.25);
}

/* Subtle global motion (honours reduced-motion below) */
@keyframes bg-grid-drift {
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@keyframes hero-aurora-drift {
  0% {
    transform: translate(0%, 0%) scale(1);
    opacity: 0.78;
  }
  33% {
    transform: translate(3.5%, -2.5%) scale(1.04);
    opacity: 0.92;
  }
  66% {
    transform: translate(-2%, 2.5%) scale(1.02);
    opacity: 0.85;
  }
  100% {
    transform: translate(1.5%, 0.5%) scale(1.03);
    opacity: 0.88;
  }
}

@keyframes hero-pattern-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 28px 28px;
  }
}

@keyframes mockup-drift-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid::after,
  .hero__backdrop::before,
  .hero__backdrop::after,
  .hero__mockup img {
    animation: none !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Background atmosphere */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(234, 20, 139, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 255, 136, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 90, 31, 0.08), transparent),
    linear-gradient(180deg, var(--bg) 0%, #0d0e14 100%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0, 0 0;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: bg-grid-drift 36s linear infinite;
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__logo img {
  height: clamp(30px, 4.5vw, 40px);
  width: auto;
}

.site-nav__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav__links a {
  color: var(--muted);
}

.site-nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Hero-only: soft futuristic mesh + pattern (no logo — avoids clashing with mark) */
.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: conic-gradient(
    from 210deg at 50% 85%,
    rgba(234, 20, 139, 0.04) 0deg,
    transparent 55deg,
    rgba(0, 255, 136, 0.03) 120deg,
    transparent 200deg,
    rgba(255, 90, 31, 0.025) 280deg,
    transparent 360deg
  );
}

.hero__backdrop::before {
  content: "";
  position: absolute;
  inset: -25% -20%;
  background:
    radial-gradient(ellipse 50% 42% at 22% 28%, rgba(234, 20, 139, 0.11), transparent 58%),
    radial-gradient(ellipse 48% 38% at 78% 52%, rgba(0, 255, 136, 0.06), transparent 55%),
    radial-gradient(ellipse 32% 36% at 88% 12%, rgba(255, 90, 31, 0.045), transparent 50%),
    radial-gradient(ellipse 42% 36% at 12% 82%, rgba(234, 20, 139, 0.05), transparent 52%);
  filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
  animation: hero-aurora-drift 22s ease-in-out infinite alternate;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Diagonal data lines + faint dot field — avoids duplicating the global square grid */
  background-image:
    repeating-linear-gradient(
      127deg,
      transparent 0,
      transparent 13px,
      rgba(167, 176, 190, 0.045) 13px,
      rgba(167, 176, 190, 0.045) 14px
    ),
    radial-gradient(rgba(255, 255, 255, 0.055) 0.6px, transparent 0.6px);
  background-size: 100% 100%, 20px 20px;
  background-position: 0 0, 0 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, black 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, black 18%, transparent 72%);
  opacity: 0.5;
  animation: hero-pattern-drift 48s linear infinite alternate;
}

/* Device mockup — portrait phone, right-anchored */
.hero__mockup {
  --hero-mockup-opacity: 0.55;
  position: absolute;
  z-index: 1;
  left: auto;
  right: max(-8vw, -2rem);
  bottom: max(-6vh, -1.5rem);
  width: min(46vw, 500px);
  max-width: none;
  pointer-events: none;
  opacity: var(--hero-mockup-opacity);
  transform: translateX(2vw);
  transform-origin: 85% 88%;
  filter: blur(0.4px)
    drop-shadow(0 0 48px rgba(234, 20, 139, 0.18))
    drop-shadow(0 24px 56px rgba(0, 0, 0, 0.55));
  mask-image: radial-gradient(ellipse 85% 92% at 72% 55%, black 12%, rgba(0, 0, 0, 0.45) 48%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 92% at 72% 55%, black 12%, rgba(0, 0, 0, 0.45) 48%, transparent 80%);
}

.hero__mockup img {
  display: block;
  width: 100%;
  height: auto;
  animation: mockup-drift-y 22s ease-in-out infinite;
}

@media (max-width: 900px) {
  .hero__mockup {
    --hero-mockup-opacity: 0.45;
    right: max(-10vw, -2rem);
    bottom: max(-4vh, -1rem);
    width: min(54vw, 380px);
    transform: translateX(3vw);
    transform-origin: 88% 88%;
    filter: blur(0.5px)
      drop-shadow(0 0 36px rgba(234, 20, 139, 0.12))
      drop-shadow(0 18px 40px rgba(0, 0, 0, 0.48));
    mask-image: radial-gradient(ellipse 88% 95% at 74% 52%, black 8%, rgba(0, 0, 0, 0.38) 46%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 88% 95% at 74% 52%, black 8%, rgba(0, 0, 0, 0.38) 46%, transparent 78%);
  }

  .hero__inner {
    order: 1;
  }
}

@media (max-width: 540px) {
  .hero__mockup {
    --hero-mockup-opacity: 0.38;
    right: max(-14vw, -1.5rem);
    bottom: max(-3vh, -0.5rem);
    width: min(64vw, 280px);
    transform: translateX(4vw);
    transform-origin: 90% 88%;
    filter: blur(0.6px)
      drop-shadow(0 0 28px rgba(234, 20, 139, 0.1))
      drop-shadow(0 14px 30px rgba(0, 0, 0, 0.44));
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 920px;
}

/* Readability: light veil behind logo + headline */
.hero__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -50%);
  width: min(110%, 34rem);
  height: min(68vh, 26rem);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 65% at 50% 50%,
    rgba(10, 11, 15, 0.62) 0%,
    rgba(10, 11, 15, 0.28) 50%,
    transparent 78%
  );
}

.hero__glow {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 20, 139, 0.25) 0%, transparent 65%);
  filter: blur(40px);
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__glow--green {
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.12) 0%, transparent 65%);
  top: 48%;
  left: 62%;
}

.hero__logo-stack {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.hero__logo-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(98vw, 720px);
  aspect-ratio: 16 / 5;
  max-height: 240px;
  background: radial-gradient(
    ellipse 55% 65% at 50% 50%,
    rgba(234, 20, 139, 0.35) 0%,
    rgba(234, 20, 139, 0.08) 45%,
    transparent 70%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: hero-halo 6s ease-in-out infinite;
}

@keyframes hero-halo {
  0%,
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(94vw, 640px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(234, 20, 139, 0.45)) drop-shadow(0 0 56px rgba(234, 20, 139, 0.22))
    drop-shadow(0 0 36px rgba(0, 255, 136, 0.14));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
  box-shadow: var(--glow-green);
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  }
  50% {
    border-color: rgba(0, 255, 136, 0.55);
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.28);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(234, 20, 139, 0.4);
}

.hero h1 span {
  color: var(--primary);
  text-shadow: var(--glow-pink);
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* App Store — not live yet */
.app-store-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: min(100%, 260px);
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 2px solid rgba(234, 20, 139, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--glow-pink);
}

.app-store-soon__label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.app-store-soon__detail {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1;
}

.app-store-soon--lg {
  min-width: min(100%, 280px);
  padding: 0.85rem 1.75rem;
}

.app-store-soon--lg .app-store-soon__label {
  font-size: 1.55rem;
}

.app-store-soon--lg .app-store-soon__detail {
  font-size: 0.85rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-pink);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section__lead {
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* How it works — layout with mockup */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .steps-layout {
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
  }
}

.steps-mockup {
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .steps-mockup {
    max-width: none;
  }
}

.steps-mockup img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 32px rgba(0, 255, 136, 0.1));
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--neon));
  opacity: 0.9;
}

.step__icon-wrap {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--step-accent-border, rgba(234, 20, 139, 0.4));
  background: var(--step-accent-bg, rgba(234, 20, 139, 0.1));
  color: var(--step-accent, var(--primary));
  box-shadow: 0 0 24px var(--step-accent-glow, rgba(234, 20, 139, 0.15));
}

.step__icon {
  width: 1.85rem;
  height: 1.85rem;
}

.step__icon-image {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.step--pick {
  --step-accent: var(--primary);
  --step-accent-border: rgba(234, 20, 139, 0.45);
  --step-accent-bg: rgba(234, 20, 139, 0.1);
  --step-accent-glow: rgba(234, 20, 139, 0.2);
}

.step--predict {
  --step-accent: var(--neon);
  --step-accent-border: rgba(0, 255, 136, 0.4);
  --step-accent-bg: rgba(0, 255, 136, 0.08);
  --step-accent-glow: rgba(0, 255, 136, 0.18);
}

.step--rank {
  --step-accent: var(--gold);
  --step-accent-border: rgba(255, 215, 0, 0.45);
  --step-accent-bg: rgba(255, 215, 0, 0.08);
  --step-accent-glow: rgba(255, 215, 0, 0.15);
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.card--pink {
  border-color: rgba(234, 20, 139, 0.35);
  box-shadow: inset 0 0 0 1px rgba(234, 20, 139, 0.08);
}

.card--pink::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
  box-shadow: var(--glow-pink);
}

.card--green {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.06);
}

.card--green::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 48px;
  height: 3px;
  background: var(--neon);
  box-shadow: var(--glow-green);
}

.card--orange {
  border-color: rgba(255, 90, 31, 0.35);
}

.card--orange::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 48px;
  height: 3px;
  background: var(--orange);
}

.card--gold {
  border-color: rgba(255, 215, 0, 0.35);
}

.card--gold::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  margin: 0.75rem 0 0.75rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 0 0.9rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.24));
}

.card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
}

/* In-game showcase — star shot */
.showcase {
  padding: 3rem 1.5rem 4.5rem;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.showcase__copy {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.showcase__kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 0.85rem;
}

.showcase__lead {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.showcase__frame {
  position: relative;
  width: min(88vw, 400px);
}

.showcase__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.showcase__glow--pink {
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(234, 20, 139, 0.45) 0%, transparent 70%);
  top: 30%;
  left: -10%;
}

.showcase__glow--orange {
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.35) 0%, transparent 70%);
  bottom: 10%;
  right: -8%;
}

.showcase__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 40px rgba(234, 20, 139, 0.2));
}

/* Playable characters */
.squad__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .squad__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .squad__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.squad-card {
  position: relative;
  min-height: 10.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(20, 24, 32, 0.96), rgba(10, 11, 15, 0.94));
  overflow: hidden;
}

.squad-card--featured {
  border-color: rgba(0, 255, 136, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 136, 0.06),
    0 0 42px rgba(0, 255, 136, 0.08);
}

.squad-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(234, 20, 139, 0), rgba(234, 20, 139, 0.12));
}

.squad-card img {
  position: relative;
  z-index: 1;
  width: clamp(4.75rem, 10vw, 6rem);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.24));
}

/* Hype / leaderboard */
.hype {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(20, 24, 32, 0.5) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 0 1.5rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .hype {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 2rem;
  }
}

.hype__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hype__copy p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.leaderboard-mock {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(234, 20, 139, 0.16), transparent 42%),
    radial-gradient(circle at bottom left, rgba(0, 255, 136, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.98), rgba(14, 17, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 42px rgba(234, 20, 139, 0.14);
}

@media (min-width: 900px) {
  .leaderboard-mock {
    margin-top: 0;
  }
}

.leaderboard-mock::before,
.leaderboard-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.leaderboard-mock::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 48%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%);
  transform: translateX(-100%);
  opacity: 0;
}

.leaderboard-mock::after {
  background:
    linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent),
    linear-gradient(90deg, transparent, rgba(234, 20, 139, 0.22), transparent);
  background-size: 100% 2px, 100% 2px;
  background-position: 0 34%, 0 68%;
  background-repeat: no-repeat;
  opacity: 0.18;
}

.leaderboard-mock--flash::before {
  animation: lb-sweep 720ms ease-out;
}

.lb-ambient {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 13rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 20, 139, 0.28) 0%, transparent 68%);
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
  animation: lb-float 5.5s ease-in-out infinite;
}

.lb-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.75rem;
  background: rgba(234, 20, 139, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.lb-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(0, 255, 136, 0.26);
  border-radius: 999px;
  color: var(--neon);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.08);
}

.lb-event {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.lb-event__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
}

.lb-event__message {
  font-size: 0.95rem;
  line-height: 1.35;
}

.lb-rows {
  position: relative;
  z-index: 1;
  padding: 0.45rem;
}

.lb-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  transition:
    transform 0.72s cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.lb-row:last-child {
  margin-bottom: 0;
}

.lb-rank {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--muted);
  line-height: 1;
}

.lb-row--you {
  border-color: rgba(0, 255, 136, 0.28);
  background:
    linear-gradient(90deg, rgba(0, 255, 136, 0.12), rgba(0, 255, 136, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 136, 0.08),
    0 0 36px rgba(0, 255, 136, 0.08);
}

.lb-row--you .lb-rank {
  color: var(--neon);
}

.lb-row--up {
  border-color: rgba(0, 255, 136, 0.26);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.08);
}

.lb-row--down {
  border-color: rgba(255, 77, 79, 0.22);
}

.lb-row--surged {
  animation: lb-pop 0.7s ease;
}

.lb-row--hit {
  animation: lb-hit 0.7s ease;
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.lb-player-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.lb-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.lb-avatar--pink {
  background: linear-gradient(135deg, rgba(255, 92, 195, 0.9), rgba(234, 20, 139, 0.7));
}

.lb-avatar--green {
  background: linear-gradient(135deg, rgba(97, 255, 187, 0.92), rgba(0, 255, 136, 0.72));
}

.lb-avatar--gold {
  background: linear-gradient(135deg, rgba(255, 233, 140, 0.92), rgba(255, 215, 0, 0.72));
}

.lb-avatar--orange {
  background: linear-gradient(135deg, rgba(255, 179, 106, 0.92), rgba(255, 90, 31, 0.72));
}

.lb-avatar--ice {
  background: linear-gradient(135deg, rgba(141, 216, 255, 0.92), rgba(63, 169, 255, 0.72));
}

.lb-avatar__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  transform: scale(2.1) translateY(-2%);
  transform-origin: center 8%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.lb-avatar__image--nico {
  transform: scale(2.05) translateY(-2%);
}

.lb-avatar__image--you {
  transform: scale(2.15) translateY(-2%);
}

.lb-avatar__image--alex {
  transform: scale(2.08) translateY(-3%);
}

.lb-avatar__image--mara {
  transform: scale(2.12) translateY(-3%);
}

.lb-avatar__image--zane {
  transform: scale(2.1) translateY(-3%);
}

.lb-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-form {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb-form--up {
  color: var(--neon);
  background: rgba(0, 255, 136, 0.1);
}

.lb-form--down {
  color: var(--danger);
  background: rgba(255, 77, 79, 0.1);
}

.lb-form--even {
  color: var(--muted);
  background: rgba(167, 176, 190, 0.12);
}

.lb-form__arrow {
  display: inline-block;
  min-width: 1.2rem;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.lb-score-wrap {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}

.lb-score {
  font-weight: 700;
  color: var(--gold);
}

.lb-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lb-delta--up {
  color: var(--neon);
  background: rgba(0, 255, 136, 0.1);
}

.lb-delta--down {
  color: var(--danger);
  background: rgba(255, 77, 79, 0.12);
}

.lb-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.lb-footer span:last-child {
  color: var(--text);
}

.lb-live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  margin-right: 0.35rem;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes lb-sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes lb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, 8px, 0) scale(1.06);
  }
}

@keyframes lb-pop {
  0% {
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
  }
  45% {
    background: rgba(0, 255, 136, 0.08);
    box-shadow: 0 0 26px rgba(0, 255, 136, 0.12);
  }
  100% {
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
  }
}

@keyframes lb-hit {
  0% {
    box-shadow: 0 0 0 rgba(255, 77, 79, 0);
  }
  45% {
    box-shadow: 0 0 24px rgba(255, 77, 79, 0.16);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 77, 79, 0);
  }
}

@media (max-width: 640px) {
  .lb-header,
  .lb-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .lb-row {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .lb-score-wrap {
    grid-column: 2;
    justify-items: start;
    padding-left: 2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-mock::before,
  .lb-ambient,
  .lb-live,
  .lb-row {
    animation: none !important;
    transition: none !important;
  }
}

/* Progression — profile showcase */
.progression {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .progression {
    grid-template-columns: 1fr 380px;
    gap: 3.5rem;
  }
}

.progression__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.progression__kicker .lb-live {
  background: var(--gold);
  margin-right: 0;
}

.progression__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.progression__lead {
  color: var(--muted);
  font-size: 1rem;
  max-width: 34rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.progression__sub {
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
  max-width: 34rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.progression__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.progression__list li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}

.progression__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

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

.progression__mockup {
  max-width: 340px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .progression__mockup {
    max-width: none;
  }
}

.progression__mockup img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 36px rgba(255, 215, 0, 0.1));
}

/* Bottom CTA */
.cta-bottom {
  text-align: center;
  padding: 4rem 1.5rem;
}

.waitlist-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .waitlist-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 540px);
    gap: 2rem;
    text-align: left;
  }
}

.waitlist-copy {
  max-width: 34rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .waitlist-copy {
    margin: 0;
    padding-top: 1.25rem;
  }
}

.waitlist-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
}

.waitlist-kicker .lb-live {
  margin-right: 0;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 0.85rem;
}

.waitlist-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

#waitlist .sib-form-container {
  width: 100%;
}

#waitlist #sib-container {
  max-width: none !important;
  width: 100%;
  background: rgba(20, 24, 32, 0.9) !important;
  border: 1px solid rgba(234, 20, 139, 0.28) !important;
  border-radius: 20px !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 40px rgba(234, 20, 139, 0.12);
  backdrop-filter: blur(14px);
}

#waitlist #sib-form {
  padding: 0 1.25rem 1.25rem;
}

#waitlist .sib-form-block,
#waitlist .sib-input {
  padding: 0 !important;
}

#waitlist .form__entry {
  margin-bottom: 0 !important;
}

#waitlist .entry__label {
  display: block;
  margin-bottom: 0.75rem !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.4;
}

#waitlist .entry__field {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  background: rgba(10, 11, 15, 0.88) !important;
  border: 1px solid rgba(167, 176, 190, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
  overflow: hidden !important;
}

#waitlist .sib-form-block__button,
#waitlist .input {
  font-family: var(--font-body) !important;
}

#waitlist .input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  height: auto !important;
  padding: 0.9rem 1rem !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  outline: none !important;
  box-shadow: none !important;
}

#waitlist .input::placeholder {
  color: rgba(167, 176, 190, 0.75) !important;
  font-family: var(--font-body) !important;
}

#waitlist .entry__field:focus-within {
  border-color: rgba(234, 20, 139, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(234, 20, 139, 0.18) !important;
}

#waitlist .input:focus {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#waitlist .entry__specification {
  display: block;
  margin-top: 0.65rem !important;
  color: var(--muted) !important;
  font-family: var(--font-body) !important;
  text-align: left !important;
}

#waitlist .entry__error {
  margin-top: 0.65rem !important;
  font-family: var(--font-body) !important;
}

#waitlist .sib-form-block__button {
  width: 100% !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0.8rem 1.1rem !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ff33c7 0%, var(--primary) 100%) !important;
  color: #07080c !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 32px rgba(234, 20, 139, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

#waitlist .sib-form-block__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(234, 20, 139, 0.32);
  filter: saturate(1.04);
}

#waitlist .sib-form-message-panel {
  max-width: none !important;
  width: 100%;
  margin-bottom: 1rem !important;
  border-radius: 14px !important;
  font-family: var(--font-body) !important;
}

.cta-bottom__logo {
  width: min(78vw, 380px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 24px rgba(234, 20, 139, 0.35)) drop-shadow(0 0 48px rgba(0, 255, 136, 0.1));
}

.cta-bottom__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.cta-bottom__sub {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(10, 11, 15, 0.95);
}

.site-footer__logo {
  height: clamp(40px, 8vw, 52px);
  width: auto;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 18px rgba(234, 20, 139, 0.25));
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.site-footer__links a {
  color: var(--muted);
}

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

.site-footer__legal {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Scroll-state nav */
.site-nav {
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.site-nav--scrolled {
  background: rgba(10, 11, 15, 0.94);
  border-bottom-color: rgba(234, 20, 139, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Hero entrance */
@keyframes hero-enter-up {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-enter-scale {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hero-mockup-enter {
  from {
    opacity: 0;
    transform: translateX(calc(var(--hero-mockup-rest-x) + 4vw)) scale(0.98);
  }

  to {
    opacity: var(--hero-mockup-opacity);
    transform: translateX(var(--hero-mockup-rest-x)) scale(1);
  }
}

.hero__logo-stack,
.hero h1,
.hero__sub,
.hero__ctas,
.hero__mockup {
  opacity: 0;
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

/* Entrance once, then resume the live pulse on border/shadow only */
.hero__badge {
  opacity: 0;
  animation-name: hero-enter-up, pulse-border;
  animation-duration: 700ms, 3s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease-in-out;
  animation-delay: 0ms, 750ms;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

.hero__logo-stack {
  animation-name: hero-enter-scale;
  animation-delay: 100ms;
}

.hero h1 {
  animation-name: hero-enter-up;
  animation-delay: 220ms;
}

.hero__sub {
  animation-name: hero-enter-up;
  animation-delay: 340ms;
}

.hero__ctas {
  animation-name: hero-enter-up;
  animation-delay: 450ms;
}

.hero__mockup {
  --hero-mockup-rest-x: 2vw;
  animation-name: hero-mockup-enter;
  animation-delay: 200ms;
}

@media (max-width: 900px) {
  .hero__mockup {
    --hero-mockup-rest-x: 3vw;
  }
}

@media (max-width: 540px) {
  .hero__mockup {
    --hero-mockup-rest-x: 4vw;
  }
}

/* Scroll reveals */
[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 28px;
  --reveal-scale: 1;
  --hover-x: 0px;
  --hover-y: 0px;
  --hover-scale: 1;
  opacity: 0;
  transform:
    translate3d(var(--reveal-x), var(--reveal-y), 0)
    translate3d(var(--hover-x), var(--hover-y), 0)
    scale(var(--reveal-scale))
    scale(var(--hover-scale));
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    box-shadow 240ms ease,
    background-color 240ms ease,
    filter 240ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

[data-reveal="left"] {
  --reveal-x: 32px;
  --reveal-y: 0px;
}

[data-reveal="right"] {
  --reveal-x: -32px;
  --reveal-y: 0px;
}

[data-reveal="scale"] {
  --reveal-y: 0px;
  --reveal-scale: 0.94;
}

[data-reveal].is-visible {
  --reveal-x: 0px;
  --reveal-y: 0px;
  --reveal-scale: 1;
  opacity: 1;
}

/* Hover lifts */
.showcase__frame img {
  transition:
    transform 400ms ease,
    filter 400ms ease;
}

.step:hover {
  --hover-y: -3px;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 0 28px rgba(234, 20, 139, 0.08);
}

.card:hover {
  --hover-y: -4px;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    0 0 36px rgba(234, 20, 139, 0.1);
}

.squad-card:hover {
  --hover-y: -3px;
  --hover-scale: 1.04;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.2),
    0 0 34px rgba(234, 20, 139, 0.1);
}

.showcase__frame img:hover {
  transform: scale(1.02);
  filter:
    drop-shadow(0 36px 72px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 48px rgba(234, 20, 139, 0.24));
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__logo-stack,
  .hero h1,
  .hero__sub,
  .hero__ctas,
  .hero__mockup {
    opacity: 1;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .site-nav,
  .step,
  .card,
  .squad-card,
  .showcase__frame img {
    transition: none !important;
  }
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.legal__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal a {
  word-break: break-word;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--primary);
}

/* ── Story strip (homepage teaser) ─────────────────────── */
.story-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 1.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.story-strip:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-pink);
  text-decoration: none;
}

.story-strip__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--border);
}

.story-strip__quote {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.story-strip__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .story-strip {
    flex-wrap: wrap;
    padding: 1.25rem 1.25rem;
  }
  .story-strip__cta {
    width: 100%;
    text-align: right;
  }
}

/* ── Manifesto page ─────────────────────────────────────── */
.manifesto {
  max-width: 680px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 5rem;
}

.manifesto__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

.manifesto h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 2rem;
}

.manifesto h1 em {
  font-style: normal;
  color: var(--primary);
}

.manifesto p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.manifesto p strong {
  color: var(--text);
  font-weight: 700;
}

.manifesto__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
  position: relative;
}

.manifesto__divider::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.manifesto__section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  margin: 0 0 1.25rem;
}

.manifesto__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.manifesto__stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manifesto__stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.manifesto__stat:nth-child(2) { border-top-color: var(--neon); }
.manifesto__stat:nth-child(3) { border-top-color: var(--orange); }
.manifesto__stat:nth-child(4) { border-top-color: var(--gold); }

.manifesto__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
}

.manifesto__stat:nth-child(2) .manifesto__stat-num { color: var(--neon); }
.manifesto__stat:nth-child(3) .manifesto__stat-num { color: var(--orange); }
.manifesto__stat:nth-child(4) .manifesto__stat-num { color: var(--gold); }

.manifesto__stat-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 480px) {
  .manifesto__stats {
    grid-template-columns: 1fr;
  }
}

.manifesto__callout {
  border-left: 3px solid var(--neon);
  padding: 0.1rem 0 0.1rem 1.5rem;
  margin: 2rem 0;
}

.manifesto__callout p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin: 0;
}

.manifesto__mission {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 2.5rem 0;
}

.manifesto__mission h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neon);
  margin: 0;
  line-height: 1.05;
  flex: 1 1 14rem;
  min-width: min(100%, 12rem);
}

.manifesto__mission-pixel {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: clamp(3.2rem, 8vw, 4.5rem);
}

.manifesto__mission-pixel-img {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: m-sprite-float 3.8s ease-in-out infinite;
}

@media (max-width: 520px) {
  .manifesto__mission {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* Row layout uses flex-basis 14rem for width; in column the main axis is
     vertical, so the same rule wrongly forces a 14rem-tall heading box. */
  .manifesto__mission h2 {
    flex: 0 1 auto;
    min-width: 0;
  }

  .manifesto__mission-pixel {
    align-self: center;
    min-height: 0;
  }
}

.manifesto__sig {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.manifesto__sig-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.manifesto__sig-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(234, 20, 139, 0.2));
}

.manifesto__sig-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.manifesto__sig-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.manifesto__sig-title {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.manifesto__sig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.manifesto__sig-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.manifesto__sig-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Manifesto — animations ─────────────────────────────── */

@keyframes m-line-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes m-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes m-slam {
  0%  { opacity: 0; transform: scale(1.08) translateY(-10px); letter-spacing: 0.12em; }
  65% { transform: scale(0.98) translateY(0); letter-spacing: 0.04em; }
  100%{ opacity: 1; transform: scale(1); letter-spacing: 0.05em; }
}

@keyframes m-divider-grow {
  to { width: 48px; }
}

@keyframes m-callout-glow {
  0%, 100% { box-shadow: -3px 0 8px rgba(0, 255, 136, 0.1); }
  50%       { box-shadow: -3px 0 28px rgba(0, 255, 136, 0.5); }
}

@keyframes m-orb-drift {
  from { transform: translate(30%, -30%) scale(1); }
  to   { transform: translate(18%, -18%) scale(1.15); }
}

@keyframes m-orb-drift-green {
  from { transform: translate(-35%, 35%) scale(1); }
  to   { transform: translate(-22%, 22%) scale(1.12); }
}

@keyframes m-sprite-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes m-count-flash {
  0%   { filter: brightness(1.8); text-shadow: 0 0 32px currentColor; }
  100% { filter: brightness(1);   text-shadow: none; }
}

/* Ambient orbs */
.manifesto__orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.manifesto__orb:not(.manifesto__orb--green) {
  top: 0;
  right: 0;
  width: min(72vw, 720px);
  height: min(72vw, 720px);
  background: radial-gradient(circle, rgba(234, 20, 139, 0.09) 0%, transparent 68%);
  transform: translate(30%, -30%);
  animation: m-orb-drift 11s ease-in-out infinite alternate;
}

.manifesto__orb--green {
  bottom: 0;
  left: 0;
  width: min(60vw, 620px);
  height: min(60vw, 620px);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  transform: translate(-35%, 35%);
  animation: m-orb-drift-green 13s ease-in-out infinite alternate;
}

/* Ensure content sits above orbs */
.manifesto > *:not(.manifesto__orb) {
  position: relative;
  z-index: 1;
}

/* Headline — line-by-line on page load */
.manifesto__hl-line {
  display: block;
  animation: m-line-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.manifesto__hl-line:nth-child(1) { animation-delay: 0.05s; }
.manifesto__hl-line:nth-child(2) { animation-delay: 0.25s; }
.manifesto__hl-line:nth-child(3) { animation-delay: 0.46s; }
.manifesto__hl-line:nth-child(4) { animation-delay: 0.64s; }

/* Callout — perpetual left-border glow */
.manifesto__callout {
  animation: m-callout-glow 3.5s ease-in-out infinite;
}

/* Generic fade-ups (JS-gated) */
.manifesto--animated [data-m-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.manifesto--animated [data-m-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Divider line grow (JS-gated) */
.manifesto--animated .manifesto__divider::before {
  width: 0;
}

.manifesto--animated .manifesto__divider.is-visible::before {
  animation: m-divider-grow 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mission slam (JS-gated) */
.manifesto--animated .manifesto__mission h2 {
  opacity: 0;
}

.manifesto--animated .manifesto__mission.is-visible h2 {
  animation: m-slam 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.manifesto--animated .manifesto__mission .manifesto__mission-pixel {
  opacity: 0;
  transform: translateY(10px);
}

.manifesto--animated .manifesto__mission.is-visible .manifesto__mission-pixel {
  animation: m-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Stats stagger (JS-gated) */
.manifesto--animated .manifesto__stats .manifesto__stat {
  opacity: 0;
  transform: translateY(12px);
}

.manifesto__stats--visible .manifesto__stat {
  animation: m-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.manifesto__stats--visible .manifesto__stat:nth-child(1) { animation-delay: 0.00s; }
.manifesto__stats--visible .manifesto__stat:nth-child(2) { animation-delay: 0.10s; }
.manifesto__stats--visible .manifesto__stat:nth-child(3) { animation-delay: 0.10s; }
.manifesto__stats--visible .manifesto__stat:nth-child(4) { animation-delay: 0.20s; }

/* Counter flash on completion */
.manifesto__stat-num.count-done {
  animation: m-count-flash 1s ease-out forwards;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .manifesto__hl-line,
  .manifesto__orb,
  .manifesto__mission-pixel-img,
  .manifesto__callout,
  .manifesto__stat-num.count-done {
    animation: none !important;
  }

  .manifesto--animated [data-m-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .manifesto--animated .manifesto__divider::before {
    width: 48px !important;
    animation: none !important;
  }

  .manifesto--animated .manifesto__mission h2 {
    opacity: 1 !important;
    animation: none !important;
  }

  .manifesto--animated .manifesto__mission .manifesto__mission-pixel {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .manifesto--animated .manifesto__stats .manifesto__stat {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
