/* =========================================================
   ANDROID MUSIC — Promo Site Styles
   Token system: color, typography, spacing via CSS variables
   ========================================================= */

:root {
  /* --- Colors --- */
  --bg-deep: #0b0a14;
  --bg-surface: #14121f;
  --bg-surface-2: #1b1829;
  --border-soft: rgba(255, 255, 255, 0.08);

  --purple: #8b5cf6;
  --pink: #ec4899;
  --blue: #3b82f6;

  --grad-main: linear-gradient(120deg, var(--purple), var(--pink) 55%, var(--blue));
  --grad-main-soft: linear-gradient(120deg, rgba(139,92,246,0.18), rgba(236,72,153,0.18) 55%, rgba(59,130,246,0.18));

  --text-primary: #f5f3ff;
  --text-muted: #a6a0bf;
  --text-faint: #6f6a8a;

  /* --- Typography --- */
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  /* --- Spacing / Layers --- */
  --container-w: 1180px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-glow: 0 20px 60px rgba(139, 92, 246, 0.25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--pink); color: #fff; }

/* Accessibility: for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep keyboard focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 14px;
  max-width: 560px;
}

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 26px 70px rgba(236, 72, 153, 0.35);
}
.btn--primary svg { transition: transform 0.35s var(--ease); }
.btn--primary:hover svg { transform: translateY(2px); }

.btn--ghost {
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 24px;
}

.nav {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(11, 10, 20, 0.6);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav__link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav__link.is-active { color: #fff; background: var(--grad-main-soft); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 480px; height: 480px;
  background: var(--purple);
  top: -120px; left: -120px;
  animation: drift1 14s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 420px; height: 420px;
  background: var(--blue);
  bottom: -140px; right: -100px;
  animation: drift2 16s ease-in-out infinite alternate;
}
.hero__glow--3 {
  width: 500px; height: 500px;
  background: var(--pink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
}

@keyframes drift1 {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 30px); }
}
@keyframes drift2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, -40px); }
}

/* Signature motif: subtle equalizer bars in the background */
.hero__eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  opacity: 0.12;
  z-index: 0;
  padding-bottom: 0;
}
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  justify-content: center;
  height: 60vh;
}
.eq-bars span {
  width: 14px;
  border-radius: 8px 8px 0 0;
  background: var(--grad-main);
  animation: eqPulse 2.6s ease-in-out infinite;
}
.eq-bars span:nth-child(odd) { animation-duration: 2.1s; }
.eq-bars span:nth-child(3n) { animation-duration: 3s; }
.eq-bars span:nth-child(1) { height: 30%; animation-delay: -0.1s; }
.eq-bars span:nth-child(2) { height: 55%; animation-delay: -0.5s; }
.eq-bars span:nth-child(3) { height: 40%; animation-delay: -1s; }
.eq-bars span:nth-child(4) { height: 70%; animation-delay: -1.4s; }
.eq-bars span:nth-child(5) { height: 35%; animation-delay: -0.3s; }
.eq-bars span:nth-child(6) { height: 60%; animation-delay: -0.8s; }
.eq-bars span:nth-child(7) { height: 45%; animation-delay: -1.2s; }
.eq-bars span:nth-child(8) { height: 75%; animation-delay: -0.2s; }
.eq-bars span:nth-child(9) { height: 30%; animation-delay: -1.6s; }
.eq-bars span:nth-child(10) { height: 65%; animation-delay: -0.6s; }
.eq-bars span:nth-child(11) { height: 50%; animation-delay: -1.1s; }
.eq-bars span:nth-child(12) { height: 38%; animation-delay: -0.4s; }
.eq-bars span:nth-child(13) { height: 68%; animation-delay: -1.3s; }
.eq-bars span:nth-child(14) { height: 42%; animation-delay: -0.7s; }
.eq-bars span:nth-child(15) { height: 58%; animation-delay: -1.5s; }
.eq-bars span:nth-child(16) { height: 33%; animation-delay: -0.9s; }
.eq-bars span:nth-child(17) { height: 62%; animation-delay: -0.15s; }
.eq-bars span:nth-child(18) { height: 46%; animation-delay: -1.7s; }
.eq-bars span:nth-child(19) { height: 72%; animation-delay: -0.55s; }
.eq-bars span:nth-child(20) { height: 36%; animation-delay: -1.05s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1.15); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero__logo-badge { margin-bottom: 22px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
}

.hero__cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  gap: 34px;
  margin-top: 52px;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.hero__stat span {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

/* ---------- Phone mockup ---------- */
.phone-mock {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-surface);
  border: 6px solid #2a2540;
  border-radius: 38px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-mock--hero {
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.phone-mock__notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 16px;
  background: #2a2540;
  border-radius: 20px;
  z-index: 2;
}

.phone-mock__screen {
  position: absolute;
  inset: 4px;
  border-radius: 32px;
  background: linear-gradient(165deg, #1b1829, #0f0d1a);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini player content (hero phone) */
.mini-player {
  width: 100%;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mini-player__art {
  width: 120px; height: 120px;
  border-radius: 16px;
  background: var(--grad-main);
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(139,92,246,0.35);
}
.mini-player__title { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.mini-player__artist { color: var(--text-faint); font-size: 0.75rem; margin-top: 3px; }

.mini-player__progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-top: 18px;
  overflow: hidden;
}
.mini-player__progress span {
  display: block;
  width: 55%;
  height: 100%;
  background: var(--grad-main);
}

.mini-player__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-top: 16px;
}
.mini-player__eq i {
  width: 3px;
  background: var(--pink);
  border-radius: 2px;
  animation: eqPulse 1.4s ease-in-out infinite;
}
.mini-player__eq i:nth-child(1){height:40%;animation-delay:-0.1s}
.mini-player__eq i:nth-child(2){height:80%;animation-delay:-0.4s}
.mini-player__eq i:nth-child(3){height:55%;animation-delay:-0.7s}
.mini-player__eq i:nth-child(4){height:95%;animation-delay:-0.2s}
.mini-player__eq i:nth-child(5){height:35%;animation-delay:-0.9s}
.mini-player__eq i:nth-child(6){height:70%;animation-delay:-0.5s}
.mini-player__eq i:nth-child(7){height:50%;animation-delay:-1.1s}
.mini-player__eq i:nth-child(8){height:85%;animation-delay:-0.3s}

.mini-player__controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  color: var(--text-primary);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-soft);
  border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--pink);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 130px 0 100px; }

.about__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about__text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: 60px 0 120px; }

.features__grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(236,72,153,0.4);
  background: var(--bg-surface-2);
}

.feature-card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--i-grad, var(--grad-main));
  color: #fff;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover .feature-card__icon { transform: rotate(-6deg) scale(1.08); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   SCREENSHOTS
   ========================================================= */
.screenshots { padding: 60px 0 120px; }

.screenshots__track-wrap {
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
  padding-bottom: 12px;
}
.screenshots__track-wrap::-webkit-scrollbar { height: 8px; }
.screenshots__track-wrap::-webkit-scrollbar-thumb {
  background: var(--grad-main);
  border-radius: 8px;
}

.screenshots__track {
  display: flex;
  gap: 24px;
  padding-inline: 24px;
  width: max-content;
  /* margin:auto centers the track when it fits inside the viewport;
     if it's wider than the viewport, the browser resolves these
     margins to 0 so it stays left-aligned and fully scrollable
     (no content gets hidden off-screen to the left). */
  margin-inline: auto;
}

.phone-mock--shot {
  width: 210px;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.phone-mock--shot:hover { transform: translateY(-10px) scale(1.03); }
.phone-mock--shot .phone-mock__screen { background: var(--shot-grad, var(--grad-main)); }

.shot-label {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 12, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(0.9);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__content { transform: scale(1); }

.phone-mock--lightbox { width: 280px; }

.lightbox__caption {
  font-family: var(--font-display);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lightbox__close {
  position: absolute;
  top: 28px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}
.download__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download .section-title,
.download .section-sub { margin-inline: auto; }

.store-badge {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.store-badge:hover { transform: translateY(-4px) scale(1.03); border-color: rgba(139,92,246,0.5); }
.store-badge small { display: block; font-size: 0.72rem; color: var(--text-faint); }
.store-badge strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }

.download__meta {
  margin-top: 60px;
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  justify-content: center;
}
.download__meta div { display: flex; flex-direction: column; align-items: center; }
.download__meta strong { font-family: var(--font-display); font-size: 1.2rem; }
.download__meta span { font-size: 0.8rem; color: var(--text-faint); margin-top: 4px; }

/* =========================================================
   PRIVACY POLICY
   ========================================================= */
.privacy { padding: 60px 0 130px; }
.privacy__inner { max-width: 760px; }

.privacy__body { margin-top: 40px; }
.privacy__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 34px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.privacy__body h3:first-child { margin-top: 0; }
.privacy__body p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.footer__social a:hover {
  color: #fff;
  border-color: var(--pink);
  transform: translateY(-3px);
}
.footer__contact { color: var(--text-faint); font-size: 0.9rem; }

.footer__bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__cta-row, .hero__stats { justify-content: center; }
  .hero__visual { margin-top: 20px; order: -1; }
  .phone-mock--hero { width: 200px; }

  .about__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11,10,20,0.95);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 10px;
    backdrop-filter: blur(18px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s ease;
  }
  .nav__links.is-open { max-height: 400px; opacity: 1; }
  .nav__link { text-align: center; padding: 12px; }
  .nav__toggle { display: flex; }

  .section-title { max-width: 100%; }
  .hero__stats { gap: 22px; }
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .download__meta { gap: 28px; }
  .hero__title { font-size: 2.5rem; }
}