:root {
  color-scheme: dark;
  --ink: #fbf4df;
  --ink-muted: #cbbfa4;
  --ink-soft: #8fa39d;
  --night: #061615;
  --deep: #0b2421;
  --teal: #37d2bd;
  --coral: #ff765c;
  --lime: #bfdc42;
  --gold: #ffd166;
  --cream: #fff2c4;
  --line: rgba(255, 242, 196, 0.18);
  --panel: rgba(6, 22, 21, 0.58);
  --shadow: 0 32px 110px rgba(0, 0, 0, 0.54);
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", "Avenir Next", sans-serif;
  --camera-x: 0px;
  --camera-y: 0px;
  --camera-scale: 1;
  --phone-x: 0px;
  --phone-y: 0px;
  --phone-rotate: -3deg;
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, #061615 0%, #0b201d 46%, #120f12 100%);
  font-family: var(--body);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
}

.brand-link,
.desktop-nav,
.header-cta {
  backdrop-filter: blur(18px);
  background: rgba(5, 18, 17, 0.58);
  border: 1px solid rgba(255, 242, 196, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.brand-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  color: var(--cream);
  font-weight: 850;
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 242, 196, 0.24);
  border-radius: 12px;
  background: #10151f;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 5px;
  border-radius: 999px;
}

.desktop-nav button {
  min-width: 84px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-muted);
  background: transparent;
  font: 750 0.86rem/1 var(--body);
  cursor: pointer;
}

.desktop-nav button.is-active {
  color: #061615;
  background: var(--cream);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255, 242, 196, 0.1), rgba(255, 242, 196, 0.02)),
    rgba(5, 18, 17, 0.66);
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(255, 242, 196, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 242, 196, 0.18), rgba(255, 242, 196, 0.04)),
    rgba(5, 18, 17, 0.78);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(55, 210, 189, 0.14);
  transform: translateY(-2px);
}

.header-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

main {
  position: relative;
  z-index: 1;
}

.scroll-world {
  position: relative;
  height: 720vh;
  background: var(--night);
}

.world-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 210, 189, 0.16), transparent 32%),
    linear-gradient(135deg, #041110 0%, #0a2422 52%, #18110f 100%);
}

.world-art {
  position: absolute;
  inset: -6vh -7vw;
  z-index: -3;
  width: calc(100% + 14vw);
  height: calc(100% + 12vh);
  max-width: none;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(1.06) contrast(1.03);
  transform:
    translate3d(var(--camera-x), var(--camera-y), 0)
    scale(var(--camera-scale));
  transition: transform 120ms linear;
}

.texture-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 22, 21, 0.84) 0%, rgba(6, 22, 21, 0.42) 42%, rgba(6, 22, 21, 0.2) 72%),
    linear-gradient(180deg, rgba(6, 22, 21, 0.36) 0%, rgba(6, 22, 21, 0.02) 40%, rgba(6, 22, 21, 0.74) 100%);
}

.texture-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.17;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 242, 196, 0.14) 0,
    rgba(255, 242, 196, 0.14) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

.phone-stage {
  position: absolute;
  right: clamp(34px, 9vw, 132px);
  top: 50%;
  z-index: 2;
  width: min(31vw, 370px);
  min-width: 266px;
  transform:
    translate3d(var(--phone-x), calc(-50% + var(--phone-y)), 0)
    rotate(var(--phone-rotate));
  transition: transform 160ms linear;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border: 10px solid #111717;
  border-radius: 42px;
  background: #111717;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 242, 196, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-shell::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  pointer-events: none;
  border-radius: 32px;
  box-shadow: inset 0 0 55px rgba(255, 255, 255, 0.08);
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  width: 34%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}

.phone-top span {
  position: absolute;
  right: 14px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
}

.phone-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 360ms ease, transform 700ms ease;
}

.phone-screen.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-stack {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  top: 52%;
  z-index: 4;
  width: min(560px, 48vw);
  min-height: 420px;
  transform: translateY(-50%);
}

.story-panel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 420ms ease;
}

.story-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 850;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
.story-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.96;
}

h1 {
  max-width: 12ch;
  font-size: clamp(4.2rem, 4.8rem, 4.8rem);
}

.story-panel h2 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 3.5rem, 3.5rem);
}

.story-panel p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.lede {
  max-width: 40rem;
  margin: 22px 0 0;
  color: var(--cream);
  font-size: 1.16rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  width: 180px;
  height: 62px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  color: #fff;
  background: rgba(8, 12, 16, 0.58);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  transform: translateY(0) scale(1);
  transition:
    transform 210ms ease,
    border-color 210ms ease,
    box-shadow 210ms ease,
    background 210ms ease;
  will-change: transform;
}

.store-badge::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 30%, rgba(55, 210, 189, 0.3), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255, 209, 102, 0.22), transparent 45%);
  transition: opacity 210ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  border-color: rgba(255, 242, 196, 0.34);
  background: rgba(10, 14, 18, 0.76);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 242, 196, 0.08),
    0 0 34px rgba(55, 210, 189, 0.16);
  transform: translateY(-4px) scale(1.035);
}

.store-badge:hover::before,
.store-badge:focus-visible::before {
  opacity: 1;
}

.store-badge:active {
  transform: translateY(-1px) scale(0.99);
}

.store-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.store-badge__inner {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.76);
  border-radius: 10px;
  background: #020304;
}

.store-badge__icon {
  width: 30px;
  height: 30px;
  color: #fff;
  fill: currentColor;
  flex: 0 0 auto;
}

.store-badge--play .store-badge__icon {
  fill: none;
}

.store-badge__kicker,
.store-badge__name {
  display: block;
  color: #fff;
  letter-spacing: 0;
  white-space: nowrap;
}

.store-badge__kicker {
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.16;
}

.store-badge__name {
  margin-top: 2px;
  font-size: 1.1rem;
  font-weight: 850;
  line-height: 1.08;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.pill-list li {
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 242, 196, 0.22);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(6, 22, 21, 0.44);
  font-size: 0.86rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.scroll-steps {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scroll-step {
  height: 120vh;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .scroll-world {
    height: 750vh;
  }

  .world-sticky {
    min-height: 680px;
  }

  .texture-layer {
    background:
      linear-gradient(180deg, rgba(6, 22, 21, 0.88) 0%, rgba(6, 22, 21, 0.3) 50%, rgba(6, 22, 21, 0.9) 100%);
  }

  .story-stack {
    left: 22px;
    top: 25%;
    width: min(520px, calc(100% - 44px));
    min-height: 290px;
  }

  h1 {
    font-size: clamp(3.15rem, 3.15rem, 3.15rem);
  }

  .story-panel h2 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 2.25rem, 2.25rem);
  }

  .story-panel p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .phone-stage {
    right: 50%;
    top: auto;
    bottom: 78px;
    width: min(52vw, 286px);
    min-width: 218px;
    transform:
      translate3d(calc(50% + var(--phone-x)), var(--phone-y), 0)
      rotate(var(--phone-rotate));
  }

}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 24px);
    gap: 10px;
    min-height: 64px;
  }

  .brand-link {
    min-height: 42px;
    padding: 5px 12px 5px 5px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .world-sticky {
    min-height: 640px;
  }

  .story-stack {
    top: 26%;
  }

  h1 {
    font-size: clamp(2.68rem, 2.68rem, 2.68rem);
  }

  .story-panel h2 {
    font-size: clamp(2rem, 2rem, 2rem);
  }

  .lede {
    font-size: 0.98rem;
  }

  .store-badges {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: 346px;
    margin-top: 20px;
  }

  .store-badge {
    width: calc((100% - 8px) / 2);
    min-width: 0;
    height: 56px;
    padding: 7px;
    border-radius: 14px;
  }

  .store-badge__inner {
    grid-template-columns: 26px 1fr;
    gap: 7px;
    padding: 0 9px;
    border-radius: 9px;
  }

  .store-badge__icon {
    width: 26px;
    height: 26px;
  }

  .store-badge__kicker {
    font-size: 0.52rem;
  }

  .store-badge__name {
    font-size: 0.98rem;
  }

  .pill-list {
    gap: 8px;
  }

  .pill-list li {
    font-size: 0.78rem;
  }

  .phone-stage {
    bottom: 34px;
    width: min(47vw, 218px);
    min-width: 176px;
  }

  .phone-shell {
    border-width: 8px;
    border-radius: 34px;
  }

}

@media (max-width: 620px) and (max-height: 800px) {
  .phone-stage {
    bottom: -42px;
    width: min(44vw, 204px);
    min-width: 168px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .world-art,
  .phone-stage {
    transform: none;
  }
}
