/* ============================================================
   Musik — landing page styles
   Midnight Violet palette, matched 1:1 to the Android app.
   ============================================================ */

:root {
  --bg: #0B0B12;
  --bg-2: #0E0E18;
  --surface: #151522;
  --surface-2: #1D1D2B;
  --primary: #8B5CF6;
  --primary-bright: #A78BFA;
  --grad-a: #8B5CF6;
  --grad-b: #6366F1;
  --text: #F8F7FF;
  --text-2: #A6A3B5;
  --border: #292838;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  --glow: 0 0 60px -12px rgba(139, 92, 246, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

em { font-style: normal; color: var(--primary-bright); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------
   Background ambience
   ------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(55% 45% at 12% 22%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(139, 92, 246, .10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  --b-bg: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--b-bg);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .6);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 18px 40px -12px rgba(139, 92, 246, .7); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .04); border-color: var(--primary); box-shadow: none; }

/* ------------------------------------------------------------
   Brand mark
   ------------------------------------------------------------ */
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: var(--glow);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9) 0 2.2px, transparent 2.6px),
    radial-gradient(circle at 66% 64%, rgba(255, 255, 255, .9) 0 2.2px, transparent 2.6px);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 33%; top: 28%;
  width: 2px; height: 42%;
  background: rgba(255, 255, 255, .85);
  box-shadow: 11px 8px 0 0 rgba(255, 255, 255, .85);
  border-radius: 2px;
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; }
.brand-name { letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 15px; transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 20px;
  overflow: hidden;
}
#scene {
  position: absolute;
  inset: -10% -5% auto -5%;
  width: 110%;
  height: 680px;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding-top: 24px;
}
.hero-copy { max-width: 560px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-bright);
  background: rgba(139, 92, 246, .1);
  border: 1px solid rgba(139, 92, 246, .28);
  padding: 7px 14px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 0 rgba(167, 139, 250, .7);
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .55); }
  70% { box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 78px);
  margin: 22px 0 18px;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 16px; }
.micro { font-size: 13.5px; color: var(--text-2); }

/* animated entrance */
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-copy > *:nth-child(5) { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------
   Phone mockup
   ------------------------------------------------------------ */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: 280px;
  height: 572px;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #20202f, #0c0c15);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1.5px rgba(255, 255, 255, .06),
    0 0 0 1px rgba(0, 0, 0, .6);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg);
  transform-style: preserve-3d;
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: rotateY(-16deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-13deg) rotateX(5deg) translateY(-14px); }
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #17122a 0%, var(--bg) 46%);
  overflow: hidden;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-screen::before {  /* notch */
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #07070c;
  border-radius: 999px;
  z-index: 5;
}
.p-status { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); font-weight: 600; padding: 2px 4px 6px; }
.p-sig { letter-spacing: 1px; }
.p-greet { font-size: 12px; color: var(--text-2); font-weight: 600; }
.p-word { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; margin-top: -4px; letter-spacing: -.02em; }
.p-chips { display: flex; gap: 7px; margin: 4px 0 2px; }
.p-chip { font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.p-chip.on { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; border-color: transparent; }

.p-rep-head { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.p-badge {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(139, 92, 246, .8);
}
.p-rep-head span + span { display: flex; flex-direction: column; line-height: 1.15; }
.p-rep-head b { font-size: 14px; font-weight: 700; }
.p-rep-head i { font-style: normal; font-size: 10.5px; color: var(--text-2); }

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.p-row { display: flex; align-items: center; gap: 11px; }
.p-rank { width: 14px; text-align: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px; color: var(--primary-bright); }
.p-art {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #6d4bd6, #8b5cf6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.p-art.a1 { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.p-art.a2 { background: linear-gradient(135deg, #4f46e5, #0ea5e9); }
.p-art.a3 { background: linear-gradient(135deg, #db2777, #f59e0b); }
.p-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.p-meta b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta i { font-style: normal; font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-pill { font-size: 10px; font-weight: 700; color: var(--primary-bright); background: rgba(139, 92, 246, .14); padding: 3px 7px; border-radius: 999px; }

.p-player {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px 11px;
}
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; margin-left: auto; }
.eq i { width: 3px; background: var(--primary-bright); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.8s; }
.eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -.3s; }
.eq i:nth-child(4) { height: 100%; animation-delay: -.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.phone-glow {
  position: absolute;
  inset: 8% 8% 0;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .45), transparent 72%);
  filter: blur(42px);
}

/* ------------------------------------------------------------
   Marquee
   ------------------------------------------------------------ */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: scroll 34s linear infinite;
  white-space: nowrap;
}
.marquee-track span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(18px, 2.4vw, 26px); color: var(--text-2); opacity: .8; }
.marquee-track span:nth-child(odd) { color: var(--text); opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Bento features
   ------------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(139, 92, 246, .5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.tile:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 26px 60px -28px rgba(139, 92, 246, .5); }
.tile:hover::before { opacity: 1; }
.tile-wide { grid-column: span 2; }
.tile-ic {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .25);
  color: var(--primary-bright);
  margin-bottom: 18px;
}
.tile-ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { color: var(--text-2); font-size: 15.5px; }

.tile-art {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .3), transparent);
  filter: blur(14px);
  pointer-events: none;
}
.tile-art-2 { background: radial-gradient(closest-side, rgba(99, 102, 241, .32), transparent); }

/* ------------------------------------------------------------
   Split / share section
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-copy h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 16px 0 16px; }
.steps { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 16px; }
.steps b { color: var(--text); }
.steps span {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, .14);
  border: 1px solid rgba(139, 92, 246, .3);
  color: var(--primary-bright);
  font-weight: 800; font-size: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.split-visual { display: flex; justify-content: center; }
.share-card {
  width: 300px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease);
}
.share-card:hover { transform: rotate(0); }
.share-cover {
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .18), transparent 40%),
    linear-gradient(135deg, #7c3aed, #c026d3 55%, #f59e0b);
  box-shadow: var(--glow);
  margin-bottom: 16px;
}
.share-meta { display: flex; flex-direction: column; }
.share-meta b { font-size: 19px; font-family: 'Bricolage Grotesque', sans-serif; }
.share-meta span { color: var(--text-2); font-size: 13px; }
.share-bar { height: 5px; border-radius: 999px; background: var(--border); margin-top: 18px; overflow: hidden; }
.share-bar i { display: block; height: 100%; width: 46%; border-radius: inherit; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  transition: border-color .3s;
}
.faq details[open] { border-color: rgba(139, 92, 246, .4); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--primary-bright);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); padding: 0 0 18px; font-size: 15.5px; }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band { padding: 0 24px 96px; }
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(139, 92, 246, .3);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(139, 92, 246, .28), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 72px 28px;
}
.cta-inner h2 { font-size: clamp(32px, 5vw, 56px); }
.cta-inner p { color: var(--text-2); font-size: 19px; margin: 14px 0 32px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 14.5px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; }
.footer a { color: var(--primary-bright); }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 22px; margin-top: 4px; }
.footer-links a { color: var(--text-2); font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-fine { font-size: 13px; opacity: .7; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; min-height: 0; text-align: center; padding-top: 8px; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .eyebrow { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .lead { margin-inline: auto; }
  #scene { height: 420px; inset: -6% -5% auto -5%; }
  .hero-phone { margin-top: 16px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-copy { text-align: center; }
  .steps { align-items: flex-start; max-width: 360px; margin-inline: auto; text-align: left; }
  .eyebrow { display: inline-flex; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .section { padding: 72px 20px; }
  .hero { padding: 28px 20px 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; }
  .phone { width: 248px; height: 506px; }
  .cta-inner { padding: 56px 22px; }
  .marquee { margin-top: 22px; }
}

@media (max-width: 380px) {
  .steps b { font-size: 14px !important; }
}
