/* VynirRecords — Launch showcase
   Dark synthwave aesthetic mirrored from the artist's SoundCloud profile:
   near-black field, magenta -> pink -> cyan neon gradients, soft glows. */

:root {
  --bg: #08080c;
  --bg-2: #0d0d14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.10);
  --fg: #f4f2fb;
  --muted: rgba(244, 242, 251, 0.62);

  --purple: #7b2ff7;
  --pink: #e0218a;
  --magenta: #ff2db3;
  --cyan: #22d3ee;

  --grad: linear-gradient(100deg, var(--purple) 0%, var(--pink) 48%, var(--cyan) 100%);
  --grad-soft: linear-gradient(100deg, rgba(123,47,247,.18), rgba(224,33,138,.18), rgba(34,211,238,.18));

  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand__name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; display: block; }

/* ---------- Decorative background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx .glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.glow--purple { width: 46vw; height: 46vw; left: -10vw; top: -8vw; background: radial-gradient(circle, var(--purple), transparent 68%); }
.glow--pink   { width: 50vw; height: 50vw; right: -14vw; top: 18vh; background: radial-gradient(circle, var(--pink), transparent 68%); opacity: .42; }
.glow--cyan   { width: 40vw; height: 40vw; left: 8vw; bottom: -18vh; background: radial-gradient(circle, var(--cyan), transparent 70%); opacity: .34; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(8,8,12,.82), rgba(8,8,12,.35));
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__disc {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--purple), var(--pink), var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(224,33,138,.55);
  position: relative;
}
.brand__disc::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.brand__name span { color: var(--muted); font-weight: 500; }
.brand__name--sm { font-size: 1.2rem; }

.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--fg); margin: 5px 0; transition: .25s var(--ease); }

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 11vw, 120px) clamp(16px, 4vw, 40px);
}
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 10px; }
.section__head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section__cta { margin-top: 36px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(224,33,138,.65); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(224,33,138,.8); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 12vw, 130px) clamp(16px, 4vw, 40px) clamp(40px, 7vw, 80px);
  min-height: 78vh; display: flex; align-items: center;
}
.hero__orb {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  width: clamp(260px, 38vw, 520px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--purple), var(--pink), var(--cyan), var(--magenta), var(--purple));
  filter: blur(2px) saturate(1.15);
  box-shadow: 0 0 120px -10px rgba(224,33,138,.5), inset 0 0 80px rgba(0,0,0,.35);
  opacity: .9; animation: spin 36s linear infinite;
}
.hero__orb::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.14), transparent 60%), var(--bg); }
.hero__inner { position: relative; z-index: 2; max-width: 680px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600;
  color: var(--cyan); margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(2.6rem, 8.5vw, 5rem); font-weight: 700; margin: 0 0 18px;
  overflow-wrap: break-word;
  background: linear-gradient(100deg, #fff 10%, #f3c6e6 40%, #b9e9f5 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(224,33,138,.25);
}
.hero__tag { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--fg); max-width: 32ch; margin: 0 0 32px; font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(22px, 5vw, 48px); padding: 0; margin: 0; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; }
.hero__stats span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Music / tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.track {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.track:hover { transform: translateY(-3px); border-color: rgba(224,33,138,.45); box-shadow: 0 16px 40px -18px rgba(224,33,138,.55); }
.track iframe { border-radius: 10px; }

/* ---------- About ---------- */
.section--split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.about__art {
  aspect-ratio: 1; border-radius: 24px; min-height: 240px;
  background:
    radial-gradient(circle at 30% 30%, rgba(123,47,247,.9), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(34,211,238,.75), transparent 55%),
    radial-gradient(circle at 55% 45%, rgba(224,33,138,.85), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 60px rgba(0,0,0,.4);
}
.about__copy h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 18px; }
.about__copy p { color: var(--muted); font-size: 1.1rem; margin: 0 0 16px; }
.about__copy p:first-of-type { color: var(--fg); }

/* ---------- Watch ---------- */
.watch__card {
  display: flex; align-items: center; gap: 20px; max-width: 720px;
  padding: 22px 26px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.watch__card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -20px rgba(224,33,138,.6); }
.watch__play {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center; position: relative;
  box-shadow: 0 0 24px rgba(224,33,138,.55);
}
.watch__play::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.watch__text { display: flex; flex-direction: column; }
.watch__text strong { font-size: 1.15rem; }
.watch__text small { color: var(--muted); }
.watch__arrow { margin-left: auto; font-size: 1.5rem; color: var(--cyan); transition: transform .25s var(--ease); }
.watch__card:hover .watch__arrow { transform: translateX(5px); }

/* ---------- Connect ---------- */
.connect__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.link-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.45); background: var(--surface-2); }
.link-card__k { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.2rem; }
.link-card__v { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  padding: 48px 16px 60px; border-top: 1px solid var(--line);
}
.footer p { color: var(--muted); margin: 10px 0 6px; }
.footer small { color: rgba(244,242,251,.4); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(8,8,12,.97); border-bottom: 1px solid var(--line);
    padding: 8px 0; transform: translateY(-120%); transition: transform .3s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px clamp(16px, 4vw, 40px); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: block; }
  .section--split { grid-template-columns: 1fr; }
  .about__art { order: -1; max-width: 360px; }
}
@media (max-width: 620px) {
  .tracks { grid-template-columns: 1fr; }
  .connect__links { grid-template-columns: 1fr; }
  .hero__orb { opacity: .5; right: -20vw; }
}

/* ---------- Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Waveform-reactive background ----------
   --amp (0..1) is set by JS from the playing track's SoundCloud waveform data,
   indexed by playback position (see js/main.js). The spotlights grow and
   brighten with the real loudness of the music; they settle when paused. */
.glow { transition: transform .13s ease-out, filter .13s ease-out; }
body.is-playing .glow { filter: blur(90px) brightness(calc(1 + var(--amp, 0) * .6)); }
body.is-playing .glow--purple { transform: scale(calc(1 + var(--amp, 0) * .16)); }
body.is-playing .glow--pink   { transform: scale(calc(1 + var(--amp, 0) * .24)); }
body.is-playing .glow--cyan   { transform: scale(calc(1 + var(--amp, 0) * .14)); }
body.is-playing .hero__orb {
  filter: blur(2px) saturate(calc(1.15 + var(--amp, 0) * .8)) brightness(calc(1 + var(--amp, 0) * .3));
}

/* live indicator when something is playing */
.nowplaying {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgba(13,13,20,.8); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(224,33,138,.7);
  opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
body.is-playing .nowplaying { transform: translateX(-50%) translateY(0); opacity: 1; }
.nowplaying__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.nowplaying__eq i {
  width: 3px; height: 100%; border-radius: 2px; background: var(--grad);
  transform-origin: bottom; animation: eq 900ms ease-in-out infinite;
}
.nowplaying__eq i:nth-child(2) { animation-delay: .15s; }
.nowplaying__eq i:nth-child(3) { animation-delay: .3s; }
.nowplaying__eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Albums page ---------- */
.page-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(84px, 13vw, 140px) clamp(16px, 4vw, 40px) 0;
}
.page-head h1 {
  font-size: clamp(2.6rem, 8vw, 5rem); margin: .12em 0 16px;
  background: linear-gradient(100deg, #fff 10%, #f3c6e6 45%, #b9e9f5 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head__sub { color: var(--muted); max-width: 54ch; font-size: 1.12rem; margin: 0; }

.albums { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 44px); }
.album {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(20px, 4vw, 44px);
  align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(20px, 3vw, 34px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.album:hover { transform: translateY(-3px); border-color: rgba(224,33,138,.4); box-shadow: 0 20px 50px -24px rgba(224,33,138,.55); }
.album__badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan);
  padding: 5px 12px; border-radius: 999px; background: var(--grad-soft); border: 1px solid var(--line);
}
.album__info h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 14px 0 12px; }
.album__list { color: var(--muted); margin: 0; padding-left: 1.2em; display: grid; gap: 5px; font-size: .98rem; }
.album__list li::marker { color: var(--pink); font-variant-numeric: tabular-nums; }
.album__player iframe { border-radius: 12px; }
.albums .section__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 760px) {
  .album { grid-template-columns: 1fr; }
  .album__player { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-playing .glow,
  body.is-playing .glow--purple,
  body.is-playing .glow--pink,
  body.is-playing .glow--cyan,
  body.is-playing .hero__orb { transform: none; filter: none; }
  .nowplaying__eq i { animation: none; }
}
