:root {
  --bg: #0a0b10;
  --bg-2: #12131c;
  --ink: #f4efe8;
  --muted: #a8a39b;
  --line: rgba(244, 239, 232, 0.12);
  --accent: #ff4d8d;
  --accent-2: #ff7a45;
  --gold: #f5b301;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 77, 141, 0.18), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(255, 122, 69, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(10, 11, 16, 0.88), rgba(10, 11, 16, 0));
  backdrop-filter: blur(8px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-mark img {
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.nav-cta {
  color: var(--ink) !important;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-cta:hover {
  border-color: rgba(255, 77, 141, 0.55);
  background: rgba(255, 77, 141, 0.12);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transform-origin: center 40%;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 16, 0.92) 0%, rgba(10, 11, 16, 0.55) 42%, rgba(10, 11, 16, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 11, 16, 0.95) 0%, rgba(10, 11, 16, 0.2) 45%, rgba(10, 11, 16, 0.45) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 9rem) 0 clamp(3.5rem, 8vh, 5rem);
  max-width: 38rem;
  justify-self: start;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}

.brand-hero {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  background: linear-gradient(115deg, #fff 10%, #ff4d8d 55%, #ff7a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 900ms var(--ease) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 16ch;
  animation: rise 800ms var(--ease) 120ms both;
}

.lede {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  animation: rise 800ms var(--ease) 220ms both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 800ms var(--ease) 320ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

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

.btn.primary {
  color: #140a10;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 40px rgba(255, 77, 141, 0.28);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn.lg {
  min-height: 3.4rem;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
}

.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-lede {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.how {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 19, 28, 0.65), transparent);
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.steps li {
  display: grid;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.steps li.in {
  opacity: 1;
  transform: none;
}

.steps li:nth-child(2) {
  transition-delay: 80ms;
}
.steps li:nth-child(3) {
  transition-delay: 160ms;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.steps strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.steps span:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}

.games {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(245, 179, 1, 0.08), transparent 55%),
    var(--bg);
}

.game-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.game-feature.in {
  opacity: 1;
  transform: none;
}

.game-feature.flip {
  grid-template-columns: 0.85fr 1.15fr;
}

.game-feature.flip .game-visual {
  order: 2;
}

.game-visual {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #15161f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.game-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.game-feature.in .game-visual img {
  transform: scale(1.01);
}

.game-tag {
  margin: 0 0 0.55rem;
  color: var(--accent, var(--gold));
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
}

.game-copy p:last-child {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 34ch;
}

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

.download-panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  border-radius: 24px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(255, 77, 141, 0.22), transparent 60%),
    linear-gradient(180deg, #161722, #0f1017);
  border: 1px solid var(--line);
}

.download-panel .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.download-panel .btn {
  margin-top: 1.75rem;
}

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

.fineprint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero-copy {
    max-width: none;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
  }

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

  .game-feature,
  .game-feature.flip {
    grid-template-columns: 1fr;
  }

  .game-feature.flip .game-visual {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-hero,
  .hero h1,
  .lede,
  .cta-row,
  .steps li,
  .game-feature {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
