:root {
  --top: #583696;
  --mid: #341c68;
  --bot: #140a2e;
  --gold: #ffd046;
  --cream: #faf6ee;
  --pink: #ff2e78;
  --cyan: #46e1eb;
  --muted: #c9bfe3;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  font: 17px/1.6 var(--font);
  background: var(--bot) linear-gradient(180deg, var(--top) 0%, var(--mid) 38%, var(--bot) 100%) no-repeat;
  background-size: 100% 2400px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 900; letter-spacing: 0.02em; font-size: 18px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--cream); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 17px; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #24123f; box-shadow: 0 10px 30px rgba(255, 208, 70, 0.25); }
.btn-ghost { border: 2px solid var(--line); color: var(--cream); }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: .75; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.btn span { line-height: 1.15; text-align: left; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 80px; }
.hero-title { width: min(400px, 70%); filter: drop-shadow(0 0 40px rgba(255, 46, 120, 0.45)); margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 900; text-transform: uppercase; }
h1 .gold, h2 .gold { color: var(--gold); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 18px 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }

.phone { position: relative; width: min(330px, 80vw); margin: 0 auto; border-radius: 46px; padding: 10px; background: #0d0720; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.5), 0 0 90px rgba(70, 225, 235, 0.25); transform: rotate(3deg); }
.phone video, .phone img { border-radius: 37px; width: 100%; aspect-ratio: 886 / 1920; object-fit: cover; background: var(--mid); }
.float { position: absolute; width: 96px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.float.a { left: -58px; bottom: 70px; transform: rotate(-10deg); }
.float.b { right: -46px; top: 40px; width: 80px; transform: rotate(12deg); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 12px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; text-transform: uppercase; }
.sub { color: var(--muted); font-size: 19px; max-width: 40em; margin: 16px 0 0; }

/* Story */
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.story-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.story-card p { font-size: 19px; margin: 0 0 16px; }
.story-card .sig { color: var(--gold); font-weight: 800; margin: 22px 0 0; }
.quote { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.15; }
.quote em { font-style: normal; color: var(--gold); }
.bubble { display: inline-block; margin-top: 24px; background: var(--cream); color: #24123f; padding: 14px 20px; border-radius: 22px 22px 22px 6px; font-weight: 700; font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 22px; }
.step img { width: 100%; border-radius: 18px; aspect-ratio: 9 / 16; object-fit: cover; object-position: center; margin-bottom: 16px; }
.step b { display: block; color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.step h3 { font-size: 21px; font-weight: 800; margin: 4px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Scoring */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.points { display: grid; gap: 12px; margin-top: 28px; }
.point { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.point .n { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: var(--gold); color: #24123f; }
.point.alt .n { background: var(--pink); color: #fff; }
.point div { font-weight: 700; }
.point div span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }

/* Gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 0 12px; -webkit-overflow-scrolling: touch; }
.gallery img { flex: none; width: 230px; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.gallery .pair { display: flex; flex: none; scroll-snap-align: start; }
.gallery .pair img { border-radius: 22px 0 0 22px; }
.gallery .pair img + img { border-radius: 0 22px 22px 0; }

/* Twists + values */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.card img { width: 64px; margin-bottom: 14px; }
.card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.fact { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.fact dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; }

/* Final CTA */
.final { text-align: center; padding: 90px 0 100px; }
.final .icon { width: 120px; border-radius: 28px; margin: 0 auto 24px; box-shadow: 0 20px 50px rgba(255, 46, 120, .35); }
.final .cta-row { justify-content: center; margin-top: 28px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Simple text pages */
.doc { max-width: 760px; padding: 30px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 8px; }
.doc h2 { font-size: 22px; text-transform: none; margin: 34px 0 8px; color: var(--gold); }
.doc p, .doc li { color: var(--cream); }
.doc .updated { color: var(--muted); }

@media (max-width: 900px) {
  .hero, .story, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 16px; text-align: left; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.keep) { display: none; }
  .float.a { left: -16px; width: 76px; }
  .float.b { right: -10px; width: 64px; }
}
@media (max-width: 520px) {
  section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step { padding: 12px 12px 16px; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; }
  .facts { grid-template-columns: 1fr; }
  .gallery img { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Let grid columns shrink below their content's natural width on small screens. */
.hero > *, .story > *, .split > *, .steps > *, .cards > *, .facts > * { min-width: 0; }
body { overflow-x: hidden; }

/* Longline Games brand */
.brand img { height: 48px; width: auto; }
.studio-card { margin-top: 28px; width: min(300px, 80%); background: #fff; border-radius: 26px; padding: 18px 22px; transform: rotate(-2.5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.studio-card img { width: 100%; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { height: 22px; width: auto; }
@media (max-width: 520px) { .brand img { height: 34px; } }

/* Official Apple "Download on the App Store" badge: unmodified, min 40px tall, clear space around it. */
.appstore-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .15s ease; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge img { height: 54px; width: auto; }
.final .appstore-badge img { height: 60px; }
.cta-row { gap: 16px; }
.btn-ghost { padding: 13px 22px; }
