/* ==========================================================================
   MosTune — Design system
   Deep indigo canvas · modern player UI · subtle vintage studio hardware
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Atmosphere (light, grain, rails, ticks)
   5.  Typography
   6.  Buttons, chips, badges
   7.  Navigation
   8.  Hero
   9.  Amp frame + player + hardware parts (knobs, meters, waveform, EQ)
   10. Stats dashboard
   11. Feature sections
   12. AI section
   13. Premium
   14. Voting
   15. Player showcase
   16. Editorial (blog, changelog, announcements)
   17. Commands explorer
   18. Docs, FAQ, support, final CTA
   19. Footer
   20. Motion, focus, responsive, print
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --bg: #07060d;
  --bg-soft: #0a0813;
  --surface: #0e0c18;
  --surface-2: #12101e;
  --raised: #171426;
  --navy: #0a0c1c;

  --violet: #7c5cff;
  --violet-bright: #9d82ff;
  --violet-deep: #3c259c;
  --lavender: #cfc6ff;
  --pink: #f2a8d2;
  --cream: #f6e7c8;
  --gold: #e0b46a;
  --mint: #6fdcae;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --text-3: rgba(255, 255, 255, 0.56);
  --text-4: rgba(255, 255, 255, 0.4);

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --line-gold: rgba(224, 180, 106, 0.28);

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.28), 0 18px 44px -28px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 34px 70px -34px rgba(10, 4, 40, 0.95);
  --glow-violet: 0 0 0 1px rgba(124, 92, 255, 0.28), 0 18px 50px -22px rgba(124, 92, 255, 0.55);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-2xl: 34px;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 8.5vw, 128px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 70px;
}

/* 2. Reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: rgba(124, 92, 255, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 10px;
  translate: -50% -220%;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: translate 0.2s var(--ease);
}

.skip-link:focus {
  translate: -50% 0;
}

/* 3. Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: 1340px;
}

.container--text {
  max-width: 760px;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(56px, 6vw, 84px);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
}

.stack-8 > * + * {
  margin-top: 8px;
}
.stack-16 > * + * {
  margin-top: 16px;
}
.stack-24 > * + * {
  margin-top: 24px;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}

.panel--flat {
  background: var(--surface);
}

.panel--pad {
  padding: clamp(22px, 3vw, 40px);
}

/* 4. Atmosphere --------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

.aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.aura--violet {
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.34), rgba(124, 92, 255, 0));
}

.aura--indigo {
  background: radial-gradient(closest-side, rgba(63, 62, 214, 0.26), rgba(63, 62, 214, 0));
}

.aura--pink {
  background: radial-gradient(closest-side, rgba(242, 168, 210, 0.18), rgba(242, 168, 210, 0));
}

.aura--gold {
  background: radial-gradient(closest-side, rgba(224, 180, 106, 0.24), rgba(224, 180, 106, 0));
}

.rails {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
  opacity: 0.5;
}

.tick-rule {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 14px;
  overflow: hidden;
  opacity: 0.5;
}

.tick-rule i {
  display: block;
  width: 1px;
  height: 5px;
  background: var(--line-3);
  flex: 0 0 auto;
}

.tick-rule i:nth-child(5n + 1) {
  height: 12px;
  background: rgba(207, 198, 255, 0.5);
}

/* 5. Typography --------------------------------------------------------- */
.display {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 600;
}

.h2 {
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
}

.h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.h4 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.lead {
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--text-2);
}

.body {
  color: var(--text-2);
}

.muted {
  color: var(--text-3);
}

.tiny {
  font-size: 14px;
  color: var(--text-3);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
}

.eyebrow--gold {
  color: var(--gold);
}

.eyebrow__num {
  color: var(--text-4);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.gradient-text {
  background: linear-gradient(94deg, #ffffff 8%, var(--lavender) 52%, var(--pink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text--gold {
  background: linear-gradient(94deg, #fffaf0 10%, var(--cream) 48%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 6. Buttons, chips, badges -------------------------------------------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--text);
  --btn-line: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-3);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: linear-gradient(180deg, #8b6bff, #6b45f0);
  --btn-line: rgba(196, 178, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 16px 40px -18px rgba(124, 92, 255, 0.75);
}

.btn--primary:hover {
  --btn-bg: linear-gradient(180deg, #987aff, #7551f5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 20px 48px -18px rgba(124, 92, 255, 0.9);
}

.btn--vote {
  --btn-bg: rgba(242, 168, 210, 0.08);
  --btn-line: rgba(242, 168, 210, 0.38);
  color: #ffd9ee;
}

.btn--vote:hover {
  --btn-bg: rgba(242, 168, 210, 0.15);
  --btn-line: rgba(242, 168, 210, 0.55);
  box-shadow: 0 14px 34px -20px rgba(242, 168, 210, 0.6);
}

.btn--gold {
  --btn-bg: linear-gradient(180deg, #f3ddb0, #dfb069);
  --btn-line: rgba(255, 240, 214, 0.6);
  color: #23180a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 16px 40px -20px rgba(224, 180, 106, 0.7);
}

.btn--gold:hover {
  --btn-bg: linear-gradient(180deg, #f8e6bf, #e6ba76);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-line: var(--line-2);
  color: var(--text-2);
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.chip--cmd {
  color: var(--lavender);
  border-color: rgba(124, 92, 255, 0.3);
  background: rgba(124, 92, 255, 0.1);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.badge--gold {
  color: var(--cream);
  border-color: var(--line-gold);
  background: rgba(224, 180, 106, 0.1);
}

.badge--live {
  color: #b9ffe0;
  border-color: rgba(111, 220, 174, 0.3);
  background: rgba(111, 220, 174, 0.08);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(111, 220, 174, 0.16);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.trust-line span:not(:last-child)::after {
  content: "•";
  margin-left: 14px;
  color: var(--text-4);
}

/* 7. Navigation --------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px var(--gutter) 0;
  transition: padding 0.3s var(--ease);
}

.nav {
  position: relative;
  max-width: 1340px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--nav-h);
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 19, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.nav-wrap.is-scrolled .nav {
  background: rgba(9, 7, 16, 0.88);
  border-color: var(--line-2);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.95);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 16.5px;
  flex: 0 0 auto;
}

.nav__brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px -10px rgba(124, 92, 255, 0.8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-bright), transparent);
}

.nav__link svg {
  width: 13px;
  height: 13px;
  margin-left: 5px;
  opacity: 0.5;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
}

.nav__burger span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav__burger span::before {
  top: -5px;
}
.nav__burger span::after {
  top: 5px;
}

.nav__panel {
  display: none;
}

@media (max-width: 1080px) {
  .nav__links,
  .nav__actions .btn:not(.btn--primary) {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__burger {
    display: inline-flex;
  }

  .nav__panel {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 18px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    background: #0b0913;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.24s var(--ease), translate 0.24s var(--ease), visibility 0.24s;
  }

  .nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .nav__panel-links {
    display: grid;
    gap: 2px;
    margin-bottom: 16px;
  }

  .nav__panel-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: 16px;
  }

  .nav__panel-links a:hover,
  .nav__panel-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  .nav__panel-actions {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
}

/* 8. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(112px, 13vw, 168px);
  padding-bottom: clamp(56px, 7vw, 96px);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__bg .aura--violet {
  width: 900px;
  height: 900px;
  top: -380px;
  left: -140px;
}

.hero__bg .aura--indigo {
  width: 820px;
  height: 820px;
  top: -180px;
  right: -260px;
}

.hero__bg .aura--pink {
  width: 620px;
  height: 620px;
  bottom: -320px;
  left: 32%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0), var(--bg));
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero__copy {
  max-width: 580px;
}

.hero__title {
  margin-top: 22px;
}

.hero__sub {
  margin-top: 20px;
  max-width: 520px;
}

.hero__ctas {
  margin-top: 30px;
}

.hero__trust {
  margin-top: 22px;
}

.hero__eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding-inline: var(--gutter);
  opacity: 0.16;
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}

.hero__eq i {
  flex: 1 1 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--lavender), rgba(124, 92, 255, 0.05));
  transform-origin: bottom;
  animation: eqPulse 2.6s var(--ease) infinite alternate;
}

@keyframes eqPulse {
  from {
    height: 12%;
  }
  to {
    height: 88%;
  }
}

/* 9. Amp frame, player, hardware --------------------------------------- */
.amp {
  position: relative;
  border-radius: var(--r-2xl);
  padding: 16px;
  background: linear-gradient(180deg, #17142a 0%, #0d0b18 46%, #0a0813 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 -1px 0 rgba(0, 0, 0, 0.6) inset,
    var(--shadow-lift);
}

.amp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-2xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.amp__screws {
  position: absolute;
  inset: 14px;
  pointer-events: none;
}

.amp__screws i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.amp__screws i:nth-child(1) {
  top: 0;
  left: 0;
}
.amp__screws i:nth-child(2) {
  top: 0;
  right: 0;
}
.amp__screws i:nth-child(3) {
  bottom: 0;
  left: 0;
}
.amp__screws i:nth-child(4) {
  bottom: 0;
  right: 0;
}

.amp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px 14px;
}

.amp__plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.amp__plate img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.amp__plate-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.meters {
  display: flex;
  gap: 12px;
}

.vu {
  width: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 6px 3px;
  background: linear-gradient(180deg, rgba(246, 231, 200, 0.06), rgba(0, 0, 0, 0.25));
}

.vu svg {
  width: 100%;
  height: 30px;
}

.vu__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-4);
}

.vu__needle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: vuSwing 3.4s var(--ease) infinite alternate;
}

.vu:nth-child(2) .vu__needle {
  animation-duration: 2.9s;
  animation-delay: -0.7s;
}

@keyframes vuSwing {
  from {
    rotate: -26deg;
  }
  to {
    rotate: 22deg;
  }
}

.player {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(16px, 1.6vw, 22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 26px 60px -34px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.player::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.22), transparent);
  pointer-events: none;
}

.player__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.player__source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.player__queue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
}

.player__main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.player__art {
  position: relative;
  width: clamp(76px, 8vw, 96px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
}

.player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__art--disc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.55) 6%, transparent 7%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
  opacity: 0.35;
}

.player__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.player__track {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__artist {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__req {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-4);
}

.player__req img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 46px;
  margin: 16px 0 6px;
  cursor: pointer;
}

.wave i {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s var(--ease);
}

.wave i.is-played {
  background: linear-gradient(180deg, var(--lavender), var(--violet));
}

.wave i.is-cursor {
  background: #fff;
  box-shadow: 0 0 10px rgba(207, 198, 255, 0.9);
}

.is-playing .wave i.is-cursor {
  animation: cursorPulse 1.4s ease-in-out infinite;
}

@keyframes cursorPulse {
  50% {
    opacity: 0.55;
  }
}

.player__times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
  letter-spacing: 0.04em;
}

.player__bar {
  position: relative;
  height: 4px;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.player__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.player__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.transport {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ctrl svg {
  width: 17px;
  height: 17px;
}

.ctrl:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--line);
}

.ctrl[aria-pressed="true"] {
  color: var(--lavender);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.16);
  box-shadow: 0 0 18px -6px rgba(124, 92, 255, 0.7);
}

.ctrl--play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #8b6bff, #6a44ef);
  border-color: rgba(196, 178, 255, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 34px -14px rgba(124, 92, 255, 0.85);
}

.ctrl--play svg {
  width: 20px;
  height: 20px;
}

.ctrl--play:hover {
  background: linear-gradient(180deg, #9a7cff, #7550f5);
  transform: translateY(-1px);
}

.volume {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
}

.volume svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex: 0 0 auto;
}

.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  height: 22px;
  background: transparent;
  cursor: pointer;
  min-width: 70px;
}

.volume input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--violet-bright) 0 var(--vol, 70%),
    rgba(255, 255, 255, 0.12) var(--vol, 70%) 100%
  );
}

.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.35);
}

.volume input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.volume input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.volume__val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
  width: 34px;
  text-align: right;
}

.amp__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 12px 6px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.knobs {
  display: flex;
  gap: 18px;
}

.knob {
  text-align: center;
  width: 58px;
}

.knob__dial {
  position: relative;
  width: 42px;
  height: 42px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #2a2540, #14111f 62%, #2a2540);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 18px -10px rgba(0, 0, 0, 0.9);
}

.knob__dial::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: var(--lavender);
  box-shadow: 0 0 8px rgba(207, 198, 255, 0.9);
  transform: translateX(-50%) rotate(var(--knob, 0deg));
  transform-origin: 50% 15px;
}

.knob__dial::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  border-top-color: transparent;
  border-bottom-color: rgba(124, 92, 255, 0.35);
}

.knob__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}

.knob__val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lavender);
  margin-top: 2px;
}

.spectrum {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  flex: 1 1 auto;
  max-width: 210px;
  justify-content: flex-end;
}

.spectrum i {
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--pink), var(--violet) 55%, rgba(124, 92, 255, 0.15));
  animation: eqPulse 1.9s var(--ease) infinite alternate;
}

/* 10. Stats dashboard --------------------------------------------------- */
.dash {
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dash__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dash__meta {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.dash__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dash__grid .stat:last-child {
  border-right: 0;
}

.stat {
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}

.stat__val {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.stat__bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 22px;
  margin-top: 14px;
  opacity: 0.85;
}

.stat__bars i {
  flex: 1 1 0;
  border-radius: 1.5px;
  background: linear-gradient(180deg, rgba(207, 198, 255, 0.85), rgba(124, 92, 255, 0.18));
}

/* 11. Feature sections -------------------------------------------------- */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.feature:first-of-type {
  border-top: 0;
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy {
  max-width: 480px;
}

.feature__title {
  margin-top: 18px;
}

.feature__body {
  margin-top: 16px;
}

.feature__list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.feature__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
}

.feature__list b {
  color: var(--text);
  font-weight: 600;
}

.feature__list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
  color: var(--violet-bright);
}

.feature__cmds {
  margin-top: 24px;
}

.feature__visual {
  position: relative;
  min-width: 0;
}

/* --- visual: waveform lab --- */
.lab {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #100e1c, #0a0812);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.lab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.lab__body {
  padding: clamp(16px, 2vw, 26px);
}

.wave-lg {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 118px;
}

.wave-lg i {
  flex: 1 1 0;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(242, 168, 210, 0.9), var(--violet));
  opacity: 0.9;
}

.analyzer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 78px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.analyzer i {
  flex: 1 1 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--lavender), rgba(124, 92, 255, 0.12));
  animation: eqPulse 2.2s var(--ease) infinite alternate;
}

.scale {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-4);
}

/* --- visual: hardware key grid --- */
.keypad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.keycap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 12px;
  min-height: 92px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 10px 22px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.keycap:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.45);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.02));
}

.keycap svg {
  width: 18px;
  height: 18px;
  color: var(--lavender);
}

.keycap span {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.25;
}

.keycap em {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-style: normal;
  color: var(--text-4);
  margin-top: 3px;
}

/* --- visual: DAW / EQ --- */
.daw__presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.preset {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  transition: all 0.2s var(--ease);
}

.preset:hover {
  color: #fff;
  border-color: var(--line-3);
}

.preset[aria-pressed="true"] {
  color: #fff;
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.5);
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 0.8vw, 9px);
  height: 168px;
  padding: 10px 0;
  position: relative;
}

.eq::before,
.eq::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.eq::before {
  top: 50%;
}

.eq::after {
  bottom: 9px;
}

.eq__band {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eq__track {
  position: absolute;
  inset: 0 auto 0 50%;
  translate: -50% 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.eq__fill {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lavender), var(--violet));
  transition: height 0.5s var(--ease);
}

.eq__thumb {
  position: absolute;
  left: 50%;
  translate: -50% 50%;
  width: 18px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, #efeaff, #b9a9f5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 14px -2px rgba(157, 130, 255, 0.8);
  transition: bottom 0.5s var(--ease);
}

.eq__labels {
  display: flex;
  gap: clamp(4px, 0.8vw, 9px);
  margin-top: 10px;
}

.eq__labels span {
  flex: 1 1 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-4);
}

.daw__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.readout {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.readout b {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--lavender);
  font-weight: 500;
}

/* --- visual: liked list / console --- */
.list-panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #100e1c, #0a0812);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--line);
}

.list-row:first-of-type {
  border-top: 0;
}

.list-row__idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
  width: 18px;
  flex: 0 0 auto;
}

.list-row__art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.list-row__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-row__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.list-row__title {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-row__sub {
  font-size: 12.5px;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-row__right {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.list-row__right svg {
  width: 15px;
  height: 15px;
  color: var(--pink);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--line);
}

.mini-card {
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.mini-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}

.mini-card__val {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mini-card__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-3);
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--line);
}

.console-row:first-of-type {
  border-top: 0;
}

.console-row__text {
  min-width: 0;
}

.console-row__text b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.console-row__text span {
  font-size: 12.5px;
  color: var(--text-3);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfc9e6;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.switch[aria-pressed="true"] {
  background: rgba(124, 92, 255, 0.4);
  border-color: rgba(157, 130, 255, 0.6);
}

.switch[aria-pressed="true"]::after {
  transform: translateX(20px);
  background: #fff;
}

/* 12. AI section -------------------------------------------------------- */
.ai {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 130% at 12% 0%, rgba(60, 37, 201, 0.24), transparent 62%),
    radial-gradient(90% 100% at 92% 100%, rgba(242, 168, 210, 0.12), transparent 60%),
    linear-gradient(180deg, #0a0814, #08070f);
}

.ai__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}

.chat {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: rgba(9, 8, 17, 0.72);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.chat__head img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.chat__head-name {
  font-size: 14px;
  font-weight: 600;
}

.chat__head-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}

.chat__body {
  padding: clamp(16px, 2vw, 24px);
  display: grid;
  gap: 16px;
}

.msg {
  display: flex;
  gap: 12px;
}

.msg__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(160deg, #3b3352, #221d33);
  border: 1px solid var(--line);
  color: var(--text-2);
  overflow: hidden;
}

.msg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg__content {
  min-width: 0;
  flex: 1 1 auto;
}

.msg__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.msg__name .badge {
  height: 19px;
  font-size: 9.5px;
  padding: 0 6px;
  color: var(--lavender);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.14);
}

.msg__text {
  font-size: 15px;
  color: var(--text-2);
}

.msg__text em {
  color: var(--lavender);
  font-style: normal;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 22px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lavender);
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}

.result-card {
  margin-top: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.result-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.result-card__title {
  font-size: 14px;
  font-weight: 600;
}

.result-card__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
}

.result-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeUp 0.5s var(--ease) both;
}

.result-track:first-child {
  border-top: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.result-track__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  width: 16px;
}

.result-track__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.result-track__title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-track__artist {
  font-size: 12px;
  color: var(--text-4);
}

.result-track__len {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
}

.prompt-bar {
  display: flex;
  gap: 10px;
  padding: 14px clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.prompt-bar input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.35);
  font-size: 14.5px;
  color: #fff;
}

.prompt-bar input::placeholder {
  color: var(--text-4);
}

.prompt-bar input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.prompt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.prompt-preset {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13.5px;
  color: var(--text-2);
  text-align: left;
  transition: all 0.2s var(--ease);
}

.prompt-preset:hover {
  color: #fff;
  border-style: solid;
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.12);
}

.ai__cmds {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.ai-cmd {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.ai-cmd:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.08);
}

.ai-cmd code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lavender);
  flex: 0 0 auto;
}

.ai-cmd span {
  font-size: 13.5px;
  color: var(--text-3);
}

/* 13. Premium ----------------------------------------------------------- */
.premium {
  position: relative;
  overflow: hidden;
  background: radial-gradient(110% 120% at 82% 8%, rgba(224, 180, 106, 0.16), transparent 58%),
    radial-gradient(90% 110% at 6% 92%, rgba(60, 60, 160, 0.16), transparent 60%),
    linear-gradient(180deg, #080a16, #060810);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.premium__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.premium__mark {
  position: relative;
  width: min(340px, 76%);
  margin-inline: auto;
}

.premium__mark img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 40px 90px -40px rgba(224, 180, 106, 0.55),
    0 0 0 1px rgba(246, 231, 200, 0.16);
}

.premium__mark .aura--gold {
  width: 140%;
  height: 140%;
  left: -20%;
  top: -20%;
  z-index: -1;
}

.benefit {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-gold);
}

.benefit:first-child {
  border-top: 0;
}

.benefit__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  background: rgba(224, 180, 106, 0.1);
  color: var(--cream);
}

.benefit__icon svg {
  width: 18px;
  height: 18px;
}

.benefit__title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.benefit__body {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--text-2);
}

.benefit code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream);
  border: 1px solid var(--line-gold);
  background: rgba(224, 180, 106, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare caption {
  text-align: left;
  padding-bottom: 16px;
  color: var(--text-3);
  font-size: 14px;
}

.compare th,
.compare td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  border-bottom-color: var(--line-2);
}

.compare tbody th {
  font-weight: 500;
  color: var(--text);
}

.compare td {
  color: var(--text-2);
  width: 22%;
}

.compare .yes {
  color: var(--cream);
}

.compare .no {
  color: var(--text-4);
}

/* 14. Voting ------------------------------------------------------------ */
.vote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.vote-card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(242, 168, 210, 0.22);
  background: radial-gradient(120% 100% at 20% 0%, rgba(242, 168, 210, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.vote-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vote-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 168, 210, 0.35);
  background: rgba(242, 168, 210, 0.12);
  color: #ffd9ee;
}

.vote-card__icon svg {
  width: 22px;
  height: 22px;
}

.milestone {
  margin-top: 24px;
}

.milestone__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.milestone__val {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.milestone__bar {
  position: relative;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.milestone__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  box-shadow: 0 0 18px -3px rgba(242, 168, 210, 0.7);
}

.vote-card__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-3);
}

/* ==========================================================================
   16  Player showcase
   17  Page heads
   18  Editorial (blog, changelog, announcements)
   19  Command explorer
   20  Docs, FAQ, support
   21  Final CTA & footer
   22  Focus, reveal, toast
   23  Responsive, reduced motion, print
   ========================================================================== */

/* 16. Player showcase ----------------------------------------------------- */
.showcase {
  position: relative;
  overflow: hidden;
}

.showcase__panel {
  position: relative;
  z-index: 1;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #15121f, #0a0812);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.showcase__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.showcase__head img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.showcase__head-title {
  font-size: 14px;
  font-weight: 600;
}

.showcase__head-sub {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}

.showcase__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(18px, 2.4vw, 32px);
  padding: clamp(18px, 2.4vw, 30px);
}

.showcase__left {
  min-width: 0;
}

.showcase__now {
  display: flex;
  gap: 18px;
  align-items: center;
}

.showcase__art {
  position: relative;
  width: clamp(104px, 13vw, 148px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 1);
}

.showcase__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.showcase__artist {
  color: var(--text-3);
  font-size: 15px;
}

.showcase__queue {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  padding: 6px 14px 12px;
  min-width: 0;
}

.showcase__queue-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.queue-item:last-child {
  border-bottom: 0;
}

.queue-item__art {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.35), rgba(242, 168, 210, 0.18));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--lavender);
}

.queue-item__art svg {
  width: 15px;
  height: 15px;
}

.queue-item__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.queue-item__title {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item__sub {
  font-size: 11.5px;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rack {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2vw, 30px);
  padding: 18px clamp(18px, 2.4vw, 30px) 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

/* 17. Page heads ---------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(52px, 6vw, 84px));
  padding-bottom: clamp(30px, 4vw, 52px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-head .aura--violet {
  left: -220px;
  top: -180px;
}

.page-head .aura--indigo {
  right: -260px;
  top: -240px;
}

/* 18. Editorial ----------------------------------------------------------- */
.feature-post {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature-post:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.feature-post__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.feature-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-post__title {
  margin: 12px 0 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.post:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.34);
  background: rgba(124, 92, 255, 0.06);
}

.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.post__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.post__excerpt {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.55;
}

.post__more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13.5px;
  color: var(--lavender);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.filter em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--text-4);
}

.filter:hover {
  color: #fff;
  border-color: var(--line-3);
}

.filter[aria-pressed="true"] {
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.16);
  color: #fff;
}

.filter[aria-pressed="true"] em {
  color: var(--lavender);
}

.article {
  max-width: 760px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.article__hero {
  margin: 0 0 32px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8;
}

.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body p {
  margin-bottom: 20px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-2);
}

.article__body h2 {
  margin: 34px 0 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.article__body ul {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.article__body li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--text-2);
}

.article__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
}

.article__body blockquote {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-left: 2px solid var(--violet);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(124, 92, 255, 0.07);
  font-size: 16.5px;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.back-link:hover {
  color: #fff;
}

.release {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.release + .release {
  margin-top: 16px;
}

.release--latest {
  border-color: rgba(124, 92, 255, 0.34);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), rgba(255, 255, 255, 0.015));
  box-shadow: 0 34px 80px -50px rgba(124, 92, 255, 0.6);
}

.release__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.release__version {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.release__date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
}

.release__groups {
  display: grid;
  gap: 20px;
}

.release__group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
}

.release__group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--violet-bright);
}

.release__group--improved .release__group-title {
  color: #a9d7ff;
}

.release__group--improved .release__group-title::before {
  background: #7cb6ff;
}

.release__group--fixed .release__group-title {
  color: #a9f0d3;
}

.release__group--fixed .release__group-title::before {
  background: var(--mint);
}

.release__items {
  display: grid;
  gap: 8px;
}

.release__items li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-2);
}

.release__items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--line-3);
}

.ann {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 22px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.ann:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.ann__date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.ann__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.ann__msg {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.55;
}

.ann__cta {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--lavender);
}

/* 19. Command explorer ---------------------------------------------------- */
.cmd-toolbar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  z-index: 20;
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(10, 8, 19, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search > svg {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--text-4);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 108px 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.4);
  font-size: 15px;
  color: var(--text);
}

.search input::placeholder {
  color: var(--text-4);
}

.search input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.search__kbd {
  position: absolute;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-4);
  pointer-events: none;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--text-3);
}

.search__clear {
  position: absolute;
  right: 12px;
  display: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
}

.search__clear svg {
  width: 14px;
  height: 14px;
}

.search.has-value .search__kbd {
  display: none;
}

.search.has-value .search__clear {
  display: grid;
}

.search__clear:hover {
  color: #fff;
  border-color: var(--line-3);
}

.cmd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cmd-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-4);
  white-space: nowrap;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 14px;
}

.cmd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}

.cmd:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.34);
  background: rgba(124, 92, 255, 0.06);
}

.cmd__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd__name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--lavender);
  letter-spacing: -0.01em;
}

.cmd__copy {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--text-4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.cmd__copy svg {
  width: 14px;
  height: 14px;
}

.cmd__copy:hover {
  color: #fff;
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.06);
}

.cmd__copy.is-done {
  color: var(--mint);
  border-color: rgba(111, 220, 174, 0.4);
}

.cmd__desc {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.55;
}

.cmd__usage {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-4);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  white-space: nowrap;
}

.cmd__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: var(--text-4);
}

.empty {
  grid-column: 1 / -1;
  padding: clamp(34px, 5vw, 60px) 24px;
  text-align: center;
  border-radius: var(--r-xl);
  border: 1px dashed var(--line-2);
  background: rgba(255, 255, 255, 0.015);
}

.empty svg {
  width: 26px;
  height: 26px;
  margin: 0 auto 14px;
  color: var(--text-4);
}

/* 20. Docs, FAQ, support -------------------------------------------------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.doc-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}

.doc-link svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: 0 0 auto;
  color: var(--lavender);
}

.doc-link b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.doc-link:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.34);
  background: rgba(124, 92, 255, 0.06);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq details {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.faq details[open] {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.035);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.012em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 0.22s var(--ease);
}

.faq details[open] summary::after {
  rotate: -135deg;
  translate: 0 2px;
}

.faq__answer {
  padding: 0 20px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-3);
  max-width: 68ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.support-media {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-soft);
}

.support-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 13, 0.1), rgba(7, 6, 13, 0.72));
}

/* 21. Final CTA & footer -------------------------------------------------- */
.final {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.final__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.final__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 50% 15%, rgba(60, 37, 156, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 13, 0.72), rgba(7, 6, 13, 0.94));
}

.final__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.final__mark {
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -34px rgba(124, 92, 255, 0.9);
}

.final__tagline {
  margin-top: 30px;
  font-size: 14.5px;
  color: var(--text-4);
}

.footer {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 600;
}

.footer__brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
}

.footer__tagline {
  margin-top: 14px;
  max-width: 300px;
  font-size: 14px;
  color: var(--text-4);
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__socials svg {
  width: 17px;
  height: 17px;
}

.footer__socials a:hover {
  color: #fff;
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.footer__col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 500;
}

.footer__col li + li {
  margin-top: 9px;
}

.footer__col a {
  font-size: 14.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-4);
}

/* 22. Focus, reveal, toast ------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

html:not(.js) .reveal {
  opacity: 1;
  translate: 0 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(16, 13, 28, 0.96);
  box-shadow: var(--shadow-lift);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}

.toast.is-in {
  opacity: 1;
  translate: -50% 0;
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
}

/* 23. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid,
  .feature,
  .feature--flip,
  .ai__grid,
  .premium__grid,
  .vote-grid,
  .showcase__body,
  .split,
  .feature-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  .hero__copy,
  .feature__copy {
    max-width: none;
  }

  .dash__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-right: 0;
  }

  .stat:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --nav-h: 64px;
  }

  .release {
    grid-template-columns: minmax(0, 1fr);
  }

  .rack {
    flex-wrap: wrap;
  }

  .cmd-toolbar {
    position: static;
  }
}

@media (max-width: 720px) {
  .keypad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    border-right: 1px solid var(--line);
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stat:last-child {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo,
  .mini-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .player__controls {
    flex-wrap: wrap;
    gap: 12px;
  }

  .volume input[type="range"] {
    width: 72px;
  }

  .eq {
    height: 132px;
  }

  .eq__labels span:nth-child(even) {
    visibility: hidden;
  }

  .meters .vu:nth-child(2) {
    display: none;
  }

  .article__body p,
  .article__body li {
    font-size: 16px;
  }

  .final__mark {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 560px) {
  .keypad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__eq {
    height: 130px;
  }

  .player__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .player__art {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .player__art--disc::after {
    display: none;
  }

  .showcase__now {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase__art {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .knobs {
    gap: 14px;
  }

  .spectrum {
    display: none;
  }

  .cmd-grid,
  .card-grid,
  .docs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-line {
    gap: 4px 14px;
  }

  .trust-line span:not(:last-child)::after {
    margin-left: 14px;
  }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    translate: 0 0;
  }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .nav-wrap,
  .grain,
  .rails,
  .hero__eq,
  .toast,
  .aura {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .panel,
  .cmd,
  .post {
    border-color: #ddd;
    box-shadow: none;
  }
}

/* 24. Hero brand mark ----------------------------------------------------- */
.hero__mark {
  position: relative;
  display: inline-flex;
  margin-bottom: clamp(18px, 2vw, 26px);
}

.hero__mark img {
  width: clamp(60px, 6vw, 74px);
  height: clamp(60px, 6vw, 74px);
  border-radius: 21px;
  border: 1px solid var(--line-2);
  box-shadow: 0 22px 44px -20px rgba(124, 92, 255, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.hero__mark::after {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.32), transparent);
  pointer-events: none;
}

.page-head__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
}

.page-head__mark img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
}
