/* ============================================================
   WSGuardian — "Midnight Studio"
   Dark-first premium music-product landing
   ============================================================ */

:root {
  /* ---- base surfaces (OLED dark) ---- */
  --bg:        #06060a;          /* near-black OLED */
  --bg-2:      #000000;
  --bg-3:      #0c0c12;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-solid: #0d0d14;
  --glass:     rgba(14, 14, 20, 0.6);
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* ---- ink ---- */
  --ink:   #f4f5fb;
  --ink-2: #c1c5d4;
  --ink-3: #9aa0b4;
  --ink-4: #6b7186;

  /* ---- brand accents (violet → magenta) for section headings ---- */
  --a0: #5b6bff;            /* electric blue edge */
  --a1: #8b6bff;            /* violet */
  --a2: #ff4fa1;            /* magenta */
  --a-soft: rgba(139, 107, 255, 0.14);
  --accent: var(--a1);
  --grad: linear-gradient(135deg, var(--a0) 0%, var(--a1) 45%, var(--a2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,107,255,0.16), rgba(255,79,161,0.12));

  /* ---- the action / "play" color (Spotify-like green) ---- */
  --good: #1ed760;
  --good-2: #22c55e;
  --grad-green: linear-gradient(135deg, #1ed760, #22c55e);
  --green-soft: rgba(30,215,96,0.12);
  --warn: #ffb454;

  --r-sm: 9px;
  --r-md: 15px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --glow-violet: 0 0 0 1px rgba(139,107,255,0.26), 0 24px 70px -22px rgba(139,107,255,0.5);
  --glow-green:  0 0 0 1px rgba(30,215,96,0.3), 0 24px 70px -22px rgba(30,215,96,0.45);
  --glow-soft:   0 30px 80px -40px rgba(91,107,255,0.7);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.06) inset, 0 28px 60px -30px rgba(0,0,0,0.85);
  --shadow-glow: var(--glow-violet);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(1100px 760px at 78% -10%, rgba(139,107,255,0.26), transparent 58%),
    radial-gradient(900px 640px at 6% 8%,     rgba(255,79,161,0.16),  transparent 56%),
    radial-gradient(820px 620px at 50% 104%,  rgba(30,215,96,0.14),   transparent 60%),
    var(--bg);
}

/* slow drifting aurora behind everything */
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: -2;
  background:
    radial-gradient(560px 560px at 22% 26%, rgba(139,107,255,0.16), transparent 60%),
    radial-gradient(520px 520px at 80% 72%, rgba(30,215,96,0.12), transparent 62%);
  filter: blur(34px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

/* fine grain overlay for richness */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(139,107,255,0.35); color: #fff; }

/* ===== Layout ===== */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: rgba(8, 8, 16, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,107,255,0.5), rgba(255,79,161,0.4), transparent);
  opacity: 0.7;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; letter-spacing: -0.01em; }
.nav-brand .mark, .nav-brand .mark-logo { flex: none; }
.nav-brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-cta { flex: none; }
.nav-brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px -6px rgba(139,107,255,0.65);
  position: relative;
}
.nav-brand .mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 5px;
  background: var(--surface-solid);
  mask: radial-gradient(circle at 30% 40%, transparent 22%, #000 22%);
}
.nav-brand .mark svg { position: relative; z-index: 1; }
.nav-brand .mark-logo { background: transparent; box-shadow: none; width: 32px; height: 32px; border-radius: 0; }
.nav-brand .mark-logo::after { display: none; }
.nav-brand .mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 1; filter: drop-shadow(0 4px 14px rgba(139,107,255,0.5)); }
.nav-brand b { font-weight: 600; font-size: 15px; }
.nav-brand small { color: var(--ink-3); font-size: 12px; margin-left: 4px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 13.5px; color: var(--ink-2); transition: color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  opacity: 0; transform: translateX(-4px); transition: all .2s;
}
.nav-links a:hover .dot { opacity: 1; transform: none; }

.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all .18s ease;
  white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.26); transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-green);
  color: #04210f; border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(30,215,96,0.5), inset 0 0 0 1px rgba(30,215,96,0.55);
}
.btn-primary svg { color: #04210f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px rgba(30,215,96,0.65); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 14.5px; }
.btn .ic { width: 16px; height: 16px; flex: none; }

/* ===== Hero (centered immersive stage) ===== */
.hero {
  position: relative; padding: 64px 0 36px; overflow: hidden;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero-grid { display: contents; }
.hero > .shell, .hero .hero-grid > div:first-child { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 10px var(--good);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 26px auto 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal; font-weight: 800;
  background: linear-gradient(100deg, var(--good) 0%, #5af6a0 50%, var(--good-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 26px rgba(30,215,96,0.35));
}
.hero p.lead {
  color: var(--ink-3);
  font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.55;
  max-width: 60ch; margin: 0 auto 34px; text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 56px;
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.hero-meta .item svg { color: var(--good); }

/* ===== Now-Playing Stage ===== */
.player-stage, .stage { position: relative; width: 100%; max-width: 540px; margin: 0 auto; }
.player-stage::before, .stage-glow {
  content: ""; position: absolute; inset: -60px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(30,215,96,0.26), rgba(139,107,255,0.18) 50%, transparent 72%);
  filter: blur(42px);
  animation: breathe 6s var(--ease) infinite alternate;
}
@keyframes breathe { from { opacity:.7; transform:scale(.95);} to {opacity:1; transform:scale(1.05);} }

.player {
  background: linear-gradient(165deg, rgba(20,22,32,0.92), rgba(8,9,14,0.96));
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.player::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,215,96,0.6), transparent);
}

.vinyl-row { display: flex; align-items: center; gap: 22px; }
.vinyl { position: relative; flex-shrink: 0; width: 132px; height: 132px; }
.vinyl .cover {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #2b1850, #120a22);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.vinyl .cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; display: block;
  transition: opacity .4s var(--ease);
}
.vinyl .cover img.fade { opacity: 0; }
.vinyl .disc {
  position: absolute; right: -26px; top: 50%; transform: translateY(-50%);
  width: 96px; height: 96px; border-radius: 50%; z-index: -1;
  background: repeating-radial-gradient(circle at center, #0a0a0e 0 2px, #14141c 2px 4px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: spin 6s linear infinite;
}
.vinyl .disc::after {
  content: ""; position: absolute; inset: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--good), var(--a1));
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.track-meta { flex: 1; min-width: 0; text-align: left; transition: opacity .35s var(--ease); }
.track-meta.fade { opacity: 0; }
.track-src {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--good);
  margin-bottom: 8px; font-family: var(--font-mono);
}
.track-title { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { color: var(--ink-3); font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Equalizer */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 70px; margin: 26px 0 18px; }
.eq span {
  width: 6px; border-radius: 6px;
  background: linear-gradient(to top, var(--good), #5af6a0);
  box-shadow: 0 0 12px rgba(30,215,96,0.5);
  animation: eqbar 1.1s ease-in-out infinite;
}
.eq span:nth-child(1){ animation-delay:-.2s; height:30%; }
.eq span:nth-child(2){ animation-delay:-.5s; height:62%; }
.eq span:nth-child(3){ animation-delay:-.1s; height:88%; }
.eq span:nth-child(4){ animation-delay:-.7s; height:48%; }
.eq span:nth-child(5){ animation-delay:-.35s; height:96%; }
.eq span:nth-child(6){ animation-delay:-.9s; height:40%; }
.eq span:nth-child(7){ animation-delay:-.15s; height:74%; }
.eq span:nth-child(8){ animation-delay:-.6s; height:55%; }
.eq span:nth-child(9){ animation-delay:-.4s; height:84%; }
.eq span:nth-child(10){ animation-delay:-.8s; height:34%; }
.eq span:nth-child(11){ animation-delay:-.25s; height:68%; }
.eq span:nth-child(12){ animation-delay:-.55s; height:50%; }
@keyframes eqbar { 0%,100%{ transform: scaleY(.4); } 50%{ transform: scaleY(1); } }

/* Progress */
.progress { display: flex; align-items: center; gap: 12px; }
.progress .time { font-size: 11px; color: var(--ink-4); font-family: var(--font-mono); }
.bar { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; position: relative; }
.bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 42%);
  border-radius: 999px; background: linear-gradient(90deg, var(--good), #5af6a0);
  box-shadow: 0 0 14px rgba(30,215,96,0.6); transition: width .5s var(--ease);
}

/* Controls */
.controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 22px; }
.controls button {
  background: none; border: none; color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center; transition: color .18s var(--ease), transform .18s var(--ease);
}
.controls button:hover { color: var(--ink); transform: scale(1.1); }
.controls .play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-green); color: #04210f;
  box-shadow: 0 8px 26px rgba(30,215,96,0.5);
}
.controls .play:hover { color: #04210f; transform: scale(1.07); }

/* generic pill tab (used by Modules chips) */
.tab {
  font-size: 11.5px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--ink-3);
  border: 1px solid var(--line);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

@media (max-width: 540px) {
  .vinyl-row { flex-direction: column; text-align: center; }
  .vinyl .disc { display: none; }
  .track-meta { text-align: center; }
  .player { padding: 24px; }
  .controls { gap: 18px; }
}

/* ===== Section primitives ===== */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-label {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--good); font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px; font-family: var(--font-mono); justify-content: center;
}
.section-label::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.section-label::after { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance;
}
.section-title em {
  font-style: normal; font-weight: 700;
  background: linear-gradient(100deg, var(--good) 0%, #5af6a0 55%, var(--good-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--ink-3); font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto; text-wrap: pretty; }

/* ===== Marquee strip ===== */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: rgba(255,255,255,0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track { display: flex; gap: 48px; align-items: center; white-space: nowrap; animation: marquee 38s linear infinite; width: max-content; }
.strip-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); }
.strip-item svg { color: var(--ink-4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Features (card grid) ===== */
.features-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-row {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(10px);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
  box-shadow: var(--shadow-card);
}
.feature-row:hover { transform: translateY(-4px); border-color: rgba(30,215,96,0.4); background: rgba(30,215,96,0.04); }
.feature-row .num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--good); background: var(--green-soft); border: 1px solid rgba(30,215,96,0.28);
  letter-spacing: 0.02em;
}
.feature-row h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin: 4px 0 0; line-height: 1.25; }
.feature-row .badge {
  display: inline-block; font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 5px; background: var(--green-soft); color: var(--good);
  margin-left: 10px; vertical-align: middle; text-transform: uppercase;
  border: 1px solid rgba(30,215,96,0.28);
}
.feature-row p { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin: 0; text-wrap: pretty; }
@media (max-width: 900px) { .features-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-list { grid-template-columns: 1fr; } }

/* ===== Modules grid (glass bento) ===== */
.modules { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.module {
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-card);
}
.module::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(30,215,96,0.5), transparent 40%, transparent 60%, rgba(139,107,255,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.module:hover { transform: translateY(-4px); border-color: rgba(30,215,96,0.4); box-shadow: var(--shadow-card), 0 24px 50px -20px rgba(30,215,96,0.28); }
.module:hover::before { opacity: 1; }
.module .ic-wrap {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(30,215,96,0.16), rgba(139,107,255,0.16));
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center; color: var(--good); margin-bottom: 16px;
}
.module h4 { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.005em; color: var(--ink); }
.module p { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; margin: 0; }
.module .badge-mini {
  position: absolute; top: 20px; right: 20px;
  font-size: 10px; font-family: var(--font-mono); padding: 3px 8px; border-radius: 5px; letter-spacing: 0.06em;
  border: 1px solid transparent;
}
.module .badge-mini.free { background: rgba(43,212,160,0.14); color: var(--good); border-color: rgba(43,212,160,0.3); }
.module .badge-mini.pro { background: var(--green-soft); color: var(--good); border-color: rgba(30,215,96,0.3); }
.module.wide { grid-column: span 4; min-height: 280px; }
.module.tall { grid-column: span 2; grid-row: span 2; min-height: 0; }
@media (max-width: 980px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .module, .module.wide, .module.tall { grid-column: span 2; grid-row: auto; min-height: 180px; }
}

/* module visuals */
.mod-visual-music { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-bottom: 16px; }
.mod-visual-music span { flex: 1; background: linear-gradient(180deg, var(--a2), var(--a1)); border-radius: 2px; opacity: 0.75; }
.mod-visual-music span:nth-child(odd) { animation: bar 1.2s ease-in-out infinite; }
.mod-visual-music span:nth-child(even) { animation: bar 1s ease-in-out infinite reverse; }
@keyframes bar { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.mod-visual-lyrics { font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--ink-4); margin-bottom: 12px; }
.mod-visual-lyrics .hl { color: var(--good); }
.mod-visual-fav { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mod-visual-fav .row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); }
.mod-visual-fav .row svg { color: var(--a2); }
.mod-visual-playlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; max-width: 120px; }
.mod-visual-playlist .tile { aspect-ratio: 1; border-radius: 6px; min-height: 0; background: linear-gradient(135deg, var(--a1), var(--a2)); opacity: 0.6; }
.mod-visual-playlist .tile:nth-child(2) { background: linear-gradient(135deg, #5b6bff, var(--a1)); opacity: 0.85; }
.mod-visual-playlist .tile:nth-child(3) { background: linear-gradient(135deg, var(--a2), #ffb86b); opacity: 0.5; }
.mod-visual-playlist .tile:nth-child(4) { opacity: 0.4; }
.mod-visual-playlist .tile:nth-child(5) { background: linear-gradient(135deg, #2bd4a0, var(--a1)); opacity: 0.7; }
.mod-visual-playlist .tile:nth-child(6) { opacity: 0.3; }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px;
  background: var(--surface); backdrop-filter: blur(12px);
  position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.plan.pro {
  border-color: rgba(30,215,96,0.4);
  background:
    radial-gradient(700px 320px at 50% -30%, rgba(30,215,96,0.18), transparent 62%),
    var(--surface-2);
  box-shadow: var(--glow-green);
}
.plan.pro::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-green);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.6;
}
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.plan-name { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.plan.pro .plan-name { color: var(--good); }
.plan-flag {
  font-size: 10.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--grad-green); color: #04210f; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.08em;
  box-shadow: 0 6px 18px -6px rgba(30,215,96,0.7);
}
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 6px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 600; font-size: 58px; line-height: 1; letter-spacing: -0.035em; }
.plan.pro .plan-price .amount { background: var(--grad-green); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price .period { color: var(--ink-3); font-size: 14px; }
.plan-tagline { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 28px; max-width: 360px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--ink); border-top: 1px dashed var(--line); }
.plan-features li:first-child { border-top: none; }
.plan-features li.off { color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.plan-features li svg { flex: none; margin-top: 2px; }
.plan-features li .check { color: var(--good); }
.plan-features li.off .check { color: var(--ink-4); }
.plan.pro .plan-features li .check { color: var(--good); }
.plan-cta { width: 100%; justify-content: center; }

/* ===== Panel preview ===== */
.panel-preview {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface-2); backdrop-filter: blur(12px);
  overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0,0,0,0.85), var(--glow-green);
}
.panel-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.panel-dots { display: flex; gap: 6px; }
.panel-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.panel-dots span:first-child { background: #ff6058; }
.panel-dots span:nth-child(2) { background: #ffbd2e; }
.panel-dots span:nth-child(3) { background: #28ca42; }
.panel-url {
  flex: 1; height: 28px; border-radius: 8px; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; padding: 0 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); gap: 8px;
}
.panel-url svg { color: var(--good); }
.panel-body { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }
.panel-side { border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.panel-side .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 13px; color: var(--ink-2); transition: background .15s; }
.panel-side .item:hover { background: rgba(255,255,255,0.04); }
.panel-side .item.on { background: var(--green-soft); color: var(--good); }
.panel-side .item svg { width: 16px; height: 16px; }
.panel-side .div { height: 1px; background: var(--line); margin: 8px 6px; }
.panel-content { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.panel-h h4 { font-family: var(--font-display); font-weight: 600; font-size: 25px; margin: 0; letter-spacing: -0.02em; }
.panel-h .save { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.panel-h .save .saved { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.stat .label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.stat .value { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin-top: 4px; }
.stat .value small { font-size: 13px; color: var(--ink-3); margin-left: 2px; }
.stat.pro { background: linear-gradient(135deg, rgba(30,215,96,0.14), rgba(139,107,255,0.10)); border-color: rgba(30,215,96,0.35); }
.stat.pro .value { color: var(--good); }
.toggle-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: rgba(255,255,255,0.025); display: flex; flex-direction: column; gap: 10px; }
.toggle-card h5 { font-size: 12px; color: var(--ink-3); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding: 6px 0; }
.toggle-row + .toggle-row { border-top: 1px dashed var(--line); }
.toggle { width: 32px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.14); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle.on { background: var(--grad-green); }
.toggle.on::after { transform: translateX(14px); }
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) {
  .panel-body { grid-template-columns: 1fr; }
  .panel-side { display: none; }
  .panel-grid-2, .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ===== Commands strip ===== */
.cmd-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.cmd { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: rgba(0,0,0,0.35); color: #f5f3ff; font-family: var(--font-mono); transition: border-color .2s; }
.cmd:hover { border-color: rgba(139,107,255,0.4); }
.cmd .l { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.cmd .c { font-size: 13px; color: rgba(255,255,255,0.92); }
.cmd .c .p { color: var(--a2); }
.cmd .c .a { color: var(--good); }
@media (max-width: 760px) { .cmd-strip { grid-template-columns: 1fr 1fr; } }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 28px 0; cursor: pointer; display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: start; transition: background .2s; }
.faq-item:hover { background: rgba(255,255,255,0.02); }
.faq-item .q-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); padding-top: 6px; }
.faq-item h4 { margin: 0; letter-spacing: -0.02em; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.faq-item .toggle-ic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); transition: all .25s; }
.faq-item.open .toggle-ic { background: var(--green-soft); color: var(--good); border-color: rgba(30,215,96,0.45); transform: rotate(45deg); }
.faq-answer { grid-column: 2; max-height: 0; overflow: hidden; transition: max-height .35s ease, margin .25s, opacity .25s; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 600px; opacity: 0; }
.faq-item.open .faq-answer { max-height: 220px; margin-top: 14px; opacity: 1; }
@media (max-width: 720px) { .faq-item { grid-template-columns: 36px 1fr auto; gap: 12px; } .faq-answer { grid-column: 2; } }

/* ===== Final CTA ===== */
.cta-card {
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-xl);
  padding: 84px 48px; text-align: center;
  background:
    radial-gradient(720px 420px at 50% 100%, rgba(139,107,255,0.5), transparent 70%),
    radial-gradient(520px 320px at 80% 0%, rgba(255,79,161,0.32), transparent 70%),
    linear-gradient(180deg, rgba(26,24,54,0.9), rgba(10,9,22,0.96));
  color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--glow-violet);
}
.cta-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); }
.cta-card .section-label { color: var(--good); }
.cta-card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; }
.cta-card h2 em { font-style: normal; font-weight: 700; background: linear-gradient(100deg, var(--good) 0%, #5af6a0 55%, var(--good-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-card p { color: rgba(255,255,255,0.78); font-size: 16px; max-width: 540px; margin: 0 auto 32px; line-height: 1.6; }
.cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 720px) { .cta-card { padding: 56px 24px; } }

/* ===== Footer ===== */
.footer { padding: 52px 0 36px; border-top: 1px solid var(--line); margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-grid h6 { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 14px; font-weight: 500; }
.footer-grid a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid p { color: var(--ink-3); font-size: 13.5px; line-height: 1.6; max-width: 280px; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; gap: 16px; }
.footer-bottom .links a { color: var(--ink-3); margin-left: 18px; transition: color .15s; }
.footer-bottom .links a:hover { color: var(--ink); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ===== Theme toggle + lang picker ===== */
.theme-tog {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04);
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.theme-tog:hover { color: var(--ink); transform: rotate(15deg); border-color: rgba(139,107,255,0.5); }
.theme-tog svg { transition: transform .3s; }
.lang-picker { position: relative; }
.lang-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; }
.lang-btn:hover { transform: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,0.7); min-width: 180px; z-index: 60;
  backdrop-filter: blur(16px);
}
.lang-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: transparent; border: none; color: var(--ink-2); font-size: 13px; font-family: inherit; border-radius: 8px; cursor: pointer; text-align: left; width: 100%; }
.lang-item:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.lang-item.on { color: #c0aeff; background: var(--a-soft); }
.lang-item svg { margin-left: auto; }

/* ===== Tweaks dynamic accents ===== */
[data-accent="violet"] { --a0:#5b6bff; --a1:#8b6bff; --a2:#ff4fa1; --a-soft:rgba(139,107,255,0.14); }
[data-accent="lime"]   { --a0:#2bd4a0; --a1:#34d399; --a2:#8b6bff; --a-soft:rgba(43,212,160,0.14); }
[data-accent="amber"]  { --a0:#ffb454; --a1:#ff7a3a; --a2:#ff4fa1; --a-soft:rgba(255,122,58,0.14); }
[data-accent="cyan"]   { --a0:#22d3ee; --a1:#2aa9d9; --a2:#8b6bff; --a-soft:rgba(42,169,217,0.14); }

/* density */
[data-density="cozy"] .section { padding: 76px 0; }
[data-density="airy"] .section { padding: 124px 0; }

/* hero variants */
[data-hero="minimal"] .hero-grid { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; text-align: center; }
[data-hero="minimal"] .hero-meta { justify-content: center; }
[data-hero="minimal"] .hero-ctas { justify-content: center; }
[data-hero="minimal"] .player-stage { display: none; }
[data-hero="minimal"] .hero p.lead { margin-left: auto; margin-right: auto; }
[data-hero="mono"] .hero h1 em { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); font-style: italic; }

@media (min-width: 721px) { .mobile-only { display: none; } }

/* ============================================================
   LIGHT THEME  — clean "daylight studio" alternative
   ============================================================ */
[data-theme="light"] {
  --bg:        #f4f3fb;
  --bg-2:      #ffffff;
  --bg-3:      #eceaf6;
  --surface:   #ffffff;
  --surface-2: #faf9ff;
  --surface-solid: #ffffff;
  --glass:     rgba(255,255,255,0.7);
  --line:        rgba(20,18,45,0.09);
  --line-strong: rgba(20,18,45,0.16);

  --ink:   #14122d;
  --ink-2: #4a4868;
  --ink-3: #76748f;
  --ink-4: #a6a4bd;

  --a-soft: rgba(139,107,255,0.10);
  --grad-soft: linear-gradient(135deg, rgba(91,107,255,0.10), rgba(255,79,161,0.07));

  --shadow-card: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 44px -22px rgba(20,19,42,0.18);
  --shadow-glow: 0 0 0 1px rgba(139,107,255,0.22), 0 30px 80px -24px rgba(139,107,255,0.35);
  color-scheme: light;
}
[data-theme="light"] body {
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(139,107,255,0.16), transparent 60%),
    radial-gradient(900px 600px at 4% 18%,   rgba(255,79,161,0.10),  transparent 60%),
    radial-gradient(700px 500px at 50% 96%,  rgba(43,212,160,0.07),  transparent 60%),
    var(--bg);
}
[data-theme="light"] body::before { opacity: 0.7; }
[data-theme="light"] body::after { opacity: 0.025; }
[data-theme="light"] .nav { background: rgba(244,243,251,0.74); }
[data-theme="light"] .btn:not(.btn-primary) { background: var(--surface); }
[data-theme="light"] .btn:not(.btn-primary):hover { background: var(--surface-2); border-color: rgba(20,18,45,0.24); }
[data-theme="light"] .btn-ghost { background: transparent; }
[data-theme="light"] .btn-ghost:hover { background: rgba(20,18,45,0.05); }
[data-theme="light"] .eyebrow { background: var(--surface); box-shadow: 0 2px 12px -4px rgba(20,19,42,0.1); }
[data-theme="light"] .module,
[data-theme="light"] .plan,
[data-theme="light"] .panel-preview { background: var(--surface); }
[data-theme="light"] .plan.pro { background: radial-gradient(700px 320px at 50% -30%, rgba(139,107,255,0.1), transparent 62%), linear-gradient(180deg, #fff, #faf8ff); }
[data-theme="light"] .panel-bar,
[data-theme="light"] .stat,
[data-theme="light"] .toggle-card,
[data-theme="light"] .panel-side .item:hover { background: var(--surface-2); }
[data-theme="light"] .panel-url { background: var(--bg); }
[data-theme="light"] .cmd { background: #14122d; color: #f5f3ff; border-color: rgba(255,255,255,0.06); }
[data-theme="light"] .strip { background: var(--surface); }
[data-theme="light"] .toggle { background: rgba(20,18,45,0.14); }
[data-theme="light"] .feature-row .badge { color: #6d4fe0; }
[data-theme="light"] .module .badge-mini.pro,
[data-theme="light"] .module .ic-wrap,
[data-theme="light"] .plan.pro .plan-name,
[data-theme="light"] .panel-side .item.on,
[data-theme="light"] .stat.pro .value,
[data-theme="light"] .lang-item.on,
[data-theme="light"] .faq-item.open .toggle-ic,
[data-theme="light"] .cmd .c .a,
[data-theme="light"] .mod-visual-lyrics .hl { color: #6d4fe0; }

/* ============================================================
   MOBILE POLISH
   ============================================================ */

/* tablet / large phone */
@media (max-width: 880px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  /* keep nav compact: drop the secondary "panel login" button, keep primary */
  .nav-cta .btn-ghost { display: none; }
  .nav-inner { height: 62px; }
  .btn-lg { height: 46px; padding: 0 20px; font-size: 14px; }
}

/* phone */
@media (max-width: 600px) {
  .shell { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }

  /* nav: keep brand name visible but compact, free up room for the CTA */
  .nav-brand small { display: none; }
  .nav-brand b { font-size: 13.5px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.12; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 0 14px; }

  /* hero */
  .hero { padding: 40px 0 28px; }
  .hero h1 { margin: 20px auto 18px; }
  .hero p.lead { margin-bottom: 28px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero-meta { gap: 14px 22px; margin-bottom: 40px; }

  /* now-playing card */
  .player { padding: 22px; border-radius: 22px; }
  .eq { height: 56px; margin: 22px 0 16px; }
  .track-title { font-size: 21px; }

  /* feature cards a touch tighter */
  .feature-row { padding: 24px 20px; }

  /* pricing */
  .plan { padding: 28px 24px; border-radius: 24px; }
  .plan-price .amount { font-size: 50px; }

  /* panel preview — make it readable, not cramped */
  .panel-content { padding: 20px; gap: 18px; }
  .panel-h h4 { font-size: 21px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 13px; }
  .stat .value { font-size: 21px; }
  .panel-grid-2 { grid-template-columns: 1fr; }
  .panel-url { font-size: 10.5px; }

  /* commands stack to single column for legibility */
  .cmd-strip { grid-template-columns: 1fr; margin-top: 28px; }

  /* faq */
  .faq-item { padding: 22px 0; }
  .faq-item h4 { font-size: 18px; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* very small phones */
@media (max-width: 400px) {
  .hero h1 { font-size: 2.1rem; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  body::before { animation: none; }
}
