:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #09090b;
  color: #fff;
  --page-width: 500px;
  --red: #fa1637;
  --dock-height: clamp(70px, 18vw, 86px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #09090b;
  overflow-x: hidden;
  scrollbar-color: #442029 #09090b;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.landing {
  max-width: var(--page-width);
  margin-inline: auto;
  background: #09090b;
  position: relative;
  min-height: 100vh;
}

.screen {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* --- Hero Intro Section --- */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 16px);
  min-height: 100svh;
}

.intro-art {
  flex: 1 1 auto;
  width: 100%;
  max-height: 60svh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* --- Buttons --- */
.get-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(110deg, #ff354a, #f0072f);
  border: 1px solid #ff5364;
  box-shadow: 0 6px 28px #fa163733, inset 0 1px #ffffff1c;
  transition: background .18s, transform .18s, box-shadow .18s;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
}

.get-app svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.get-app:active {
  transform: scale(0.97);
}

.primary-download {
  flex: 0 0 auto;
  min-height: 52px;
  width: min(84%, 320px);
  margin: 12px auto;
  border-radius: 999px;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.benefits {
  flex: 0 0 auto;
  width: calc(100% - 32px);
  max-width: 440px;
  margin: 6px auto 14px;
}

.benefits img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Library / Poster Wall --- */
.library {
  height: 100svh;
  padding: 12px 12px calc(var(--dock-height) + var(--safe-bottom) + 24px);
}

.poster-wall {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 10px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 88%, transparent);
}

.poster-column {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.poster-track {
  animation: movie-scroll var(--duration, 35s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.poster-set {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.poster-card {
  display: block;
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #17171c;
  border: 1px solid #ffffff15;
}

.poster-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes movie-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% / 3)); }
}

.poster-wall.is-paused .poster-track {
  animation-play-state: paused;
}

/* --- Sticky Bottom Dock --- */
.download-dock {
  position: fixed;
  z-index: 100;
  width: calc(100% - 24px);
  max-width: calc(var(--page-width) - 24px);
  height: var(--dock-height);
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  transform: translateX(-50%);
  border-radius: 18px;
  background: #100b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.dock-art {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.dock-logo {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--dock-height) * 0.68);
  height: calc(var(--dock-height) * 0.68);
  object-fit: contain;
  border-radius: 14px;
}

.dock-download {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 110px;
  height: 42px;
  border-radius: 999px;
  font-size: 14px;
  gap: 5px;
}

.dock-download svg {
  width: 15px;
  height: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 600px) {
  body { background: #050506; }
  .landing { border-inline: 1px solid #ffffff0a; }
  .dock-download { width: 130px; font-size: 15px; }
}