/* MusicForge AppStoreSite — flagship design system */

:root {
  color-scheme: dark;
  --bg: #0d0716;
  --bg-deep: #090411;
  --surface: rgba(23, 16, 42, 0.72);
  --surface-2: rgba(31, 20, 58, 0.55);
  --line: rgba(167, 139, 250, 0.16);
  --line-strong: rgba(167, 139, 250, 0.34);
  --ink: #f4efff;
  --muted: #a99fc7;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --cyan: #22d3ee;
  --pink: #f0abfc;
  --grad: linear-gradient(100deg, var(--violet), var(--magenta) 55%, var(--pink));
  --radius: 22px;
  --shadow: 0 24px 70px rgba(5, 2, 12, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(139, 92, 246, 0.30), transparent 68%),
    radial-gradient(900px 560px at 96% 2%, rgba(217, 70, 239, 0.22), transparent 64%),
    radial-gradient(760px 520px at 50% 108%, rgba(34, 211, 238, 0.12), transparent 62%),
    var(--bg);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 0.18em; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.shell { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }

/* ---------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 7, 22, 0.72);
  border-bottom: 1px solid var(--line);
}

header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(217, 70, 239, 0.35);
}

nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 550;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
  background: rgba(139, 92, 246, 0.14);
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; }

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 52px;
  align-items: center;
  padding: 84px 0 72px;
}

.hero-wave {
  position: absolute;
  inset: auto 0 -6% 0;
  width: 100%;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 850;
  margin-bottom: 20px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19.5px);
  max-width: 56ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 16px;
  background: rgba(23, 16, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-2px); background: rgba(139, 92, 246, 0.2); }

.button.primary {
  border: none;
  background: var(--grad);
  color: #14071f;
  box-shadow: 0 14px 38px rgba(217, 70, 239, 0.38);
}

.button.primary:hover { box-shadow: 0 18px 46px rgba(217, 70, 239, 0.48); }

/* official badge lockup */

.badge-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
}

.badge-lockup a {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.badge-lockup a:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(217, 70, 239, 0.45)); }

.badge-lockup img { height: 44px; width: auto; }

.badge-note {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
}

.badge-note strong { color: var(--ink); font-weight: 750; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
}

.trust .tick { color: var(--cyan); font-weight: 800; margin-right: 7px; }

/* hero visual */

.hero-visual { position: relative; }

.phone {
  position: relative;
  z-index: 2;
  width: min(330px, 78%);
  margin-inline: auto;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2b1b52, #120a24 60%);
  border: 1px solid rgba(240, 171, 252, 0.35);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 90px rgba(139, 92, 246, 0.35);
  transform: rotate(2.4deg);
}

.phone img {
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(13, 7, 22, 0.86);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(5, 2, 12, 0.5);
  backdrop-filter: blur(10px);
  animation: floaty 5.2s ease-in-out infinite;
}

.chip-a { top: 8%; left: -4%; }
.chip-b { bottom: 13%; right: -2%; animation-delay: 1.6s; }
.chip-c { top: 42%; right: 0; animation-delay: 3.1s; }

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------------------------------------------------------------- strip */

.strip {
  border-block: 1px solid var(--line);
  background: rgba(23, 16, 42, 0.5);
  backdrop-filter: blur(8px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 26px 0;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 850;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { color: var(--muted); font-size: 14px; font-weight: 550; }

/* ---------------------------------------------------------------- sections */

.section { padding: 92px 0; }
.section-alt { background: rgba(9, 4, 17, 0.55); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 820;
}

.section .lede { margin-top: 4px; }

/* genre marquee */

.marquee {
  overflow: hidden;
  padding: 6px 0 12px;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scroll 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

.genre-card {
  width: 236px;
  flex: 0 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.genre-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.genre-card img { aspect-ratio: 1; object-fit: cover; }

.genre-card figcaption { padding: 13px 16px 15px; }
.genre-card b { display: block; font-size: 16px; }
.genre-card span { color: var(--muted); font-size: 13.5px; }

/* feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(5, 2, 12, 0.45);
}

.card .symbol {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid var(--line-strong);
  font-size: 20px;
}

.card h3 { font-size: 17.5px; font-weight: 750; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 14.8px; margin: 0; }

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(23, 16, 42, 0.55);
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 70, 239, 0.3), transparent);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad);
  color: #14071f;
  font-weight: 850;
  font-size: 17px;
}

.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* engine */

.engine-visual {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(9, 4, 17, 0.7);
  padding: clamp(14px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.engine-visual img { width: 100%; }

.footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.engine-copy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 44px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(139, 92, 246, 0.12);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

/* showcase */

.showcase { display: block; }

.showcase-copy {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.showcase-copy .lede { margin-inline: auto; }

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  min-width: 0;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(240, 171, 252, 0.3);
  box-shadow: var(--shadow);
  background: #150c29;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 171, 252, 0.65);
}

.shot img { display: block; width: 100%; height: auto; }

.shot figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.showcase-cta { margin: 32px 0 0; text-align: center; }

/* privacy pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(23, 16, 42, 0.55);
  text-align: center;
}

.pillar .glyph { font-size: 26px; display: block; margin-bottom: 12px; }
.pillar b { display: block; font-size: 16px; margin-bottom: 6px; }
.pillar span { color: var(--muted); font-size: 14px; }

/* pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
}

.plan h3 { font-size: 19px; margin-bottom: 4px; }

.plan-price {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 10px 0 2px;
}

.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.plan .tagline { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
  font-size: 15px;
  color: var(--muted);
}

.plan ul .tick { color: var(--cyan); font-weight: 800; margin-right: 8px; }
.plan .button { margin-top: auto; }

.plan-featured {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 26px 70px rgba(217, 70, 239, 0.22);
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #14071f;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-note {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* CTA */

.cta {
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(217, 70, 239, 0.24), transparent 70%);
}

.cta .badge-lockup { align-items: center; margin-top: 26px; }
.cta .lede { margin-inline: auto; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 4, 17, 0.72);
  padding: 34px 0;
  font-size: 14px;
  color: var(--muted);
}

footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}

footer nav { gap: 20px; font-size: 14px; }
.footer-legal { width: 100%; font-size: 12.5px; opacity: 0.75; }

/* document pages (privacy / support / terms) */

.document { padding: 72px 0 40px; max-width: 780px; }
.document h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 820; }
.document h2 { font-size: 21px; margin-top: 34px; font-weight: 750; }
.document p, .document li { color: var(--muted); font-size: 16px; }
.document strong { color: var(--ink); }
.document a { color: var(--pink); }
.document .updated { font-size: 14px; }
.document code {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.9em;
}

/* reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* responsive */

@media (max-width: 1020px) {
  .grid, .steps, .pillars { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .engine-copy { grid-template-columns: 1fr; gap: 36px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 860px) {
  nav a:not(.nav-cta) { display: none; }
  .hero .shell { grid-template-columns: 1fr; padding-top: 60px; gap: 60px; }
  .hero-visual { order: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .float-chip { display: none; }
}

@media (max-width: 560px) {
  .grid, .steps, .pillars { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shot { border-radius: 14px; }
  .shot figcaption { padding: 8px 6px; font-size: 0.75rem; }
  .section { padding: 68px 0; }
  .phone { width: min(300px, 88%); }
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .float-chip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
