/* ===== Tokens ===== */
:root {
  --ink: #17031a;          /* page black, tinted plum */
  --plum: #580c5d;         /* app splash purple */
  --plum-soft: #7a1a73;
  --magenta: #e30f6c;      /* app accent */
  --rose: #ff5fa2;
  --slate: #263033;        /* app player background */
  --mist: #f7eef6;
  --text: #f6ecf6;
  --text-dim: rgba(246, 236, 246, .72);
  --radius: 18px;
  --head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, dt { font-family: var(--head); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #ff2a85; transform: translateY(-2px); }
.btn-small { padding: .55em 1.2em; font-size: .95rem; }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--mist); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(23, 3, 26, .75), transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.brand img { height: 26px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); }
.site-header nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.site-header nav a:not(.btn):hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 80% at 70% 20%, #3a0a40 0%, var(--ink) 60%);
  padding: 7rem 0 4rem;
}

/* Aurora: three blurred colour fields drifting slowly */
.aurora { position: absolute; inset: 0; z-index: -3; filter: blur(70px) saturate(1.2); }
.blob { position: absolute; border-radius: 50%; opacity: .75; will-change: transform; }
.b1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -20vmax; background: var(--plum-soft); animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 45vmax; height: 45vmax; right: -12vmax; top: 5vmax; background: var(--magenta); opacity: .55; animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 40vmax; height: 40vmax; left: 25vw; bottom: -25vmax; background: #3b6f78; opacity: .35; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 12vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -8vmax) scale(1.2); } }

/* Film grain so the gradients never band */
.grain {
  position: absolute; inset: 0; z-index: -2; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Slow light beam sweeping behind the phone */
.beam {
  position: absolute; z-index: -1; right: 8%; top: -20%;
  width: 60vmax; height: 140%;
  background: conic-gradient(from 200deg at 50% 0%, transparent 0 40deg, rgba(255, 95, 162, .16) 60deg, transparent 85deg);
  transform-origin: 50% 0;
  animation: sweep 14s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes sweep { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

.hero-inner {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem 1rem .4rem .8rem;
  border-radius: 999px;
  font-size: .95rem; font-weight: 500;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 1.6rem;
}
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(255, 95, 162, .7); animation: ping 2.2s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 .7rem rgba(255, 95, 162, 0); } }

.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: inline-block; transform: translateY(105%); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.line:nth-child(2) > span { animation-delay: .15s; }
.shine {
  background: linear-gradient(100deg, #fff 0%, var(--rose) 30%, var(--magenta) 50%, var(--rose) 70%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) .15s forwards, shimmer 6s linear 1s infinite;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes shimmer { to { background-position: -250% 0; } }

.lede { max-width: 34rem; margin-top: 1.5rem; font-size: 1.2rem; color: var(--text-dim); opacity: 0; animation: fade .8s ease .55s forwards; }
.store-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; opacity: 0; animation: fade .8s ease .75s forwards; }
.store-row.center { justify-content: center; opacity: 1; animation: none; }
@keyframes fade { to { opacity: 1; } }

.store img { height: 54px; width: auto; border-radius: 10px; transition: transform .25s ease, filter .25s ease; }
.store:hover img { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 10px 18px rgba(227, 15, 108, .45)); }

/* Phone stage: parallax tilt (JS sets --rx / --ry), floating phones, orbit rings */
.hero-stage {
  position: relative;
  min-height: min(70vh, 640px);
  display: grid; place-items: center;
  perspective: 1200px;
}
.halo {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 15, 108, .55), rgba(227, 15, 108, 0) 65%);
  filter: blur(20px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }

.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); aspect-ratio: 1; }
.r1 { width: 78%; }
.r2 { width: 100%; border-style: dashed; border-color: rgba(255, 255, 255, .1); animation: spin 50s linear infinite; }
.r2::after { content: ""; position: absolute; top: 4%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 18px 4px rgba(255, 95, 162, .8); }
@keyframes spin { to { transform: rotate(360deg); } }

.phone { position: relative; grid-area: 1 / 1; will-change: transform; transition: transform .25s ease-out; }
.phone-front {
  width: min(78%, 360px);
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55));
  transform: translate3d(calc(var(--ry, 0) * 14px), calc(var(--rx, 0) * -14px), 60px) rotateY(calc(var(--ry, 0) * 10deg)) rotateX(calc(var(--rx, 0) * -8deg));
  animation: float 7s ease-in-out infinite;
}
.phone-back {
  width: min(26%, 120px);
  justify-self: end; align-self: end;
  margin: 0 4% 6% 0;
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .5)) brightness(.9);
  transform: translate3d(calc(var(--ry, 0) * -26px), calc(var(--rx, 0) * 22px), 0);
  animation: float 9s ease-in-out -3s infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }

/* ===== Sections ===== */
section.listen, section.clubs, section.teens, section.download { padding: clamp(4rem, 9vw, 8rem) 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.reverse .text { order: 1; }
.text h2, .download h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
.text p { margin-top: 1.2rem; max-width: 34rem; }

/* Listen */
.listen { background: var(--slate); }
.listen-shot img { width: min(100%, 520px); margin-inline: auto; border-radius: 28px 28px 0 0; }
.listen .text p { color: var(--text-dim); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--magenta); box-shadow: inset 0 0 0 5px var(--slate), 0 0 0 1.5px var(--magenta); }

/* Clubs */
.clubs { background: var(--mist); color: #2a0a2d; }
.clubs .text p { color: #5b3a5e; }
.club-list { margin: 2rem 0 0; display: grid; gap: 1rem; }
.club-list > div { padding-left: 1.2rem; border-left: 4px solid var(--magenta); }
.club-list dt { font-size: 1.5rem; font-weight: 800; color: var(--plum); }
.club-list dd { margin: .2rem 0 0; color: #5b3a5e; }
.clubs-shot { position: relative; display: grid; place-items: center; }
.clubs-glow { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(227, 15, 108, .35), transparent 65%); filter: blur(10px); }
.clubs-shot img { position: relative; width: min(100%, 400px); filter: drop-shadow(0 30px 40px rgba(88, 12, 93, .35)); }

/* Teens */
.teens { background: linear-gradient(135deg, var(--magenta), #a80a62 60%, var(--plum)); overflow: hidden; }
.teens .text p { color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }
.teens-photo { align-self: end; margin-bottom: calc(clamp(4rem, 9vw, 8rem) * -1); }
.teens-photo img { width: min(100%, 440px); margin-inline: auto; }

/* Download */
.download { text-align: center; background: radial-gradient(90% 70% at 50% 100%, #4a0a50, var(--ink) 70%); overflow: hidden; }
.download p { margin-top: .8rem; color: var(--text-dim); }
.trio { width: min(100%, 900px); margin: 3rem auto -2rem; }

/* Footer */
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 3rem); background: #0f0211; color: var(--text-dim); font-size: .95rem; }
.site-footer img { height: 22px; width: auto; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .site-header nav a:not(.btn) { display: none; }
  .hero { padding-top: 6rem; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .store-row { justify-content: center; }
  .hero-stage { min-height: 460px; margin-top: 1rem; }
  .split.reverse .text { order: 0; }
  .text { text-align: center; }
  .text p { margin-inline: auto; }
  .ticks { justify-items: start; width: fit-content; margin-inline: auto; text-align: left; }
  .club-list { text-align: left; }
  .teens-photo { order: 2; }
  .store img { height: 48px; }
}

/* ===== Respect reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line > span, .lede, .store-row { transform: none; opacity: 1; }
  .shine { background-position: 0 0; }
}
