:root {
  --ink: #201539;
  --muted: #6e6580;
  --violet: #6d42d8;
  --violet-dark: #3c236e;
  --pink: #d768bc;
  --gold: #ffd66b;
  --paper: #fffaf4;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(31, 18, 63, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
  background: #16112c;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -3;
  object-fit: cover;
  object-position: 52% center;
  animation: hero-in 1.4s ease-out both;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 17, 44, .92) 0%, rgba(22, 17, 44, .63) 43%, rgba(22, 17, 44, .08) 74%),
    linear-gradient(0deg, rgba(22, 17, 44, .92) 0%, transparent 50%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10vw -38vw auto;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  background: rgba(181, 109, 240, .18);
  filter: blur(50px);
}

.hero-content {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  padding: clamp(36px, 6vw, 72px) 0 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--white);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.game-logo {
  width: clamp(220px, 30vw, 390px);
  height: auto;
  margin-left: -18px;
  filter: drop-shadow(0 14px 22px rgba(15, 8, 28, .5));
}

.eyebrow,
.section-kicker {
  margin: 8px 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 570px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.download-card {
  display: grid;
  grid-template-columns: 68px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(790px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(28, 18, 55, .68);
  box-shadow: 0 20px 64px rgba(6, 4, 17, .35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(10, 5, 28, .42);
}

.download-copy { display: grid; gap: 3px; }
.download-copy span { color: rgba(255, 255, 255, .62); font-size: .82rem; }
.download-copy strong { font-size: 1.08rem; }

.store-buttons { display: flex; gap: 10px; }

.store-button {
  min-width: 160px;
  height: 56px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  color: #fff;
  background: #080808;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  background: #181818;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
}

.store-button svg { flex: 0 0 auto; width: 26px; height: 31px; }
.store-button .google-play-icon { width: 25px; }
.store-button span { display: grid; line-height: 1; }
.store-button small { margin-bottom: 4px; font-size: .57rem; letter-spacing: .055em; }
.store-button strong { font-size: 1.03rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }

.scroll-cue {
  margin-top: clamp(24px, 5vh, 48px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  font-style: normal;
}

.discover {
  position: relative;
  padding: clamp(72px, 10vw, 132px) max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(229, 174, 255, .25), transparent 34%),
    radial-gradient(circle at 92% 80%, rgba(255, 213, 107, .25), transparent 30%),
    var(--paper);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-kicker { color: var(--violet); }

.section-heading h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.section-heading p {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.feature-card {
  margin: 0;
  padding: 10px 10px 26px;
  border: 1px solid rgba(70, 48, 102, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 55px rgba(49, 30, 78, .11);
}

.feature-card-raised { margin-top: -24px; }

.feature-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
}

.feature-card figcaption {
  padding: 22px 12px 0;
  display: grid;
  gap: 7px;
}

.feature-card figcaption strong { font-size: 1.24rem; }
.feature-card figcaption span { color: var(--muted); font-size: .94rem; line-height: 1.55; }

.final-cta {
  margin-top: clamp(64px, 9vw, 110px);
  padding: clamp(24px, 5vw, 52px);
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 28px;
  align-items: center;
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(135deg, #30205b, #6a3ab4 65%, #b4519f);
  box-shadow: var(--shadow);
}

.final-cta > img { width: 112px; height: 112px; border-radius: 26px; }
.final-cta span { color: #f1d9ff; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.final-cta h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3.5vw, 3.4rem); }

.final-buttons { display: grid; gap: 10px; min-width: 170px; }
.final-buttons a {
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.final-buttons a:hover,
.final-buttons a:focus-visible { background: #fff; color: var(--violet-dark); transform: translateY(-1px); }

footer {
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8b8495;
  background: #171225;
  font-size: .78rem;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

footer p { margin: 0; }
footer nav { display: flex; gap: 18px; }
footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(22, 17, 44, .82) 0%, rgba(22, 17, 44, .36) 72%, rgba(22, 17, 44, .18)),
      linear-gradient(0deg, rgba(22, 17, 44, .95) 0%, transparent 68%);
  }

  .download-card { grid-template-columns: 62px 1fr; }
  .app-icon { width: 62px; height: 62px; }
  .store-buttons { grid-column: 1 / -1; width: 100%; }
  .store-button { flex: 1; }

  .final-cta { grid-template-columns: 96px 1fr; }
  .final-cta > img { width: 96px; height: 96px; }
  .final-buttons { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { min-height: 100svh; place-items: end center; }
  .hero-art { height: 52%; inset: 0 0 auto; object-position: 51% center; }
  .hero-shade {
    background:
      linear-gradient(0deg, #17112f 42%, rgba(23, 17, 47, .25) 74%, rgba(23, 17, 47, .04)),
      linear-gradient(90deg, rgba(23, 17, 47, .2), transparent);
  }
  .hero-content {
    width: min(calc(100% - 28px), 540px);
    min-height: 100svh;
    padding-top: 32vh;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    justify-content: flex-end;
  }
  .game-logo { width: min(230px, 64vw); margin-left: -10px; }
  h1 { margin-bottom: 10px; font-size: clamp(2.45rem, 11.2vw, 3.7rem); }
  .eyebrow { margin: 3px 0 9px; }
  .hero-copy { margin-bottom: 15px; font-size: .94rem; line-height: 1.5; }
  .download-card { padding: 13px; border-radius: 22px; }
  .store-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .store-button { min-width: 0; padding: 7px 9px; gap: 8px; }
  .store-button svg { width: 23px; height: 28px; }
  .store-button small { font-size: .5rem; }
  .store-button strong { font-size: .9rem; }
  .scroll-cue { display: none; }

  .discover { padding-left: 18px; padding-right: 18px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading p { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .feature-card { display: grid; grid-template-columns: 42% 1fr; padding: 8px; align-items: center; border-radius: 22px; }
  .feature-card-raised { margin-top: 0; }
  .feature-card img { border-radius: 16px; }
  .feature-card figcaption { padding: 8px 14px; }
  .feature-card figcaption strong { font-size: 1.06rem; }
  .feature-card figcaption span { font-size: .82rem; }

  .final-cta { padding: 24px; grid-template-columns: 74px 1fr; gap: 18px; border-radius: 27px; }
  .final-cta > img { width: 74px; height: 74px; border-radius: 19px; }
  .final-cta h2 { font-size: 1.8rem; }
  .final-buttons { gap: 8px; }
  .final-buttons a { padding: 12px 10px; font-size: .88rem; }

  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) and (max-height: 740px) {
  .hero-art { height: 47%; }
  .hero-content { padding-top: 23vh; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .game-logo { width: min(190px, 54vw); }
  .eyebrow { margin-bottom: 6px; font-size: .69rem; }
  h1 { margin-bottom: 7px; font-size: 2.25rem; line-height: .98; }
  .hero-copy { margin-bottom: 10px; font-size: .86rem; line-height: 1.4; }
  .download-card { padding: 10px 12px; gap: 11px; }
  .app-icon { width: 54px; height: 54px; border-radius: 14px; }
  .download-copy span { font-size: .72rem; }
  .download-copy strong { font-size: .9rem; }
  .store-button { height: 50px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100svh; }
  .hero-content {
    width: min(calc(100% - 40px), 900px);
    min-height: 100svh;
    padding-top: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    justify-content: center;
  }
  .game-logo { width: 158px; margin-left: -7px; }
  .eyebrow { margin: -2px 0 4px; font-size: .64rem; }
  h1 { max-width: 440px; margin-bottom: 4px; font-size: 2.15rem; line-height: .98; }
  .hero-copy { max-width: 520px; margin-bottom: 8px; font-size: .8rem; line-height: 1.35; }
  .download-card {
    width: min(760px, 100%);
    grid-template-columns: 52px minmax(165px, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 17px;
  }
  .app-icon { width: 52px; height: 52px; border-radius: 13px; }
  .download-copy span { font-size: .7rem; }
  .download-copy strong { font-size: .9rem; }
  .store-buttons { grid-column: auto; width: auto; }
  .store-button { min-width: 140px; height: 48px; padding: 6px 10px; }
  .scroll-cue { display: none; }
}

@media (max-width: 390px) {
  .download-copy strong { font-size: .95rem; }
  .store-button svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
