/* SoundingCloud — showcase site
   Static, self-contained CSS. No external fonts, no frameworks. */

/* ---------- Design tokens ---------- */

:root {
  color-scheme: dark;

  --bg-base: #07070b;
  --bg-base-2: #0b0b12;

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-sheen: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.75);

  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-tertiary: rgba(255, 255, 255, 0.42);

  --accent: #ff6b1a;
  --accent-rgb: 255, 107, 26;
  --accent-2: #ffb347;

  --blob-a: 255, 107, 26;
  --blob-b: 64, 150, 255;
  --blob-c: 168, 92, 255;

  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  font-size: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg-base: #f4f4f8;
    --bg-base-2: #eceef4;

    --glass-bg: rgba(255, 255, 255, 0.50);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(20, 20, 35, 0.10);
    --glass-sheen: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 24px 60px -30px rgba(30, 20, 10, 0.35);

    --text-primary: rgba(12, 12, 20, 0.92);
    --text-secondary: rgba(12, 12, 20, 0.64);
    --text-tertiary: rgba(12, 12, 20, 0.42);

    --accent: #e14700;
    --accent-rgb: 225, 71, 0;
    --accent-2: #ff8a3d;

    --blob-a: 255, 140, 60;
    --blob-b: 90, 160, 255;
    --blob-c: 190, 130, 255;
  }
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden; /* safety net; layout is built not to need it */
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--bg-base);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  z-index: 1000;
  transition: top 0.2s var(--ease-smooth);
  border: 1px solid var(--glass-border);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2.5px solid rgba(var(--accent-rgb), 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Background field ---------- */

.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-base);
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 52s ease-in-out infinite alternate;
}
.bg-blob.a {
  width: 55vmax;
  height: 55vmax;
  left: -15vmax;
  top: -18vmax;
  background: radial-gradient(circle at 30% 30%, rgba(var(--blob-a), 0.65), rgba(var(--blob-a), 0) 70%);
  animation-duration: 46s;
}
.bg-blob.b {
  width: 60vmax;
  height: 60vmax;
  right: -20vmax;
  top: 8vmax;
  background: radial-gradient(circle at 60% 40%, rgba(var(--blob-b), 0.45), rgba(var(--blob-b), 0) 70%);
  animation-duration: 60s;
  animation-delay: -12s;
}
.bg-blob.c {
  width: 50vmax;
  height: 50vmax;
  left: 20vmax;
  bottom: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(var(--blob-c), 0.40), rgba(var(--blob-c), 0) 70%);
  animation-duration: 38s;
  animation-delay: -6s;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
@media (prefers-color-scheme: light) {
  .bg-grain { opacity: 0.25; }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(7%, -9%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none; }
}

/* ---------- Glass ---------- */

.glass {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 40%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--glass-sheen) 0%,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0) 72%,
    rgba(255, 255, 255, 0.28) 100%
  );
  opacity: 0.55;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-chrome {
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
@media (prefers-color-scheme: light) {
  .glass-chrome { background: rgba(255, 255, 255, 0.55); border-color: rgba(20, 20, 35, 0.12); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42em 0.9em;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  white-space: nowrap;
}

/* ---------- Layout helpers ---------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-lede {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 62ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-spring);
}
html.js-ready .reveal[data-reveal-delay="1"] { transition-delay: 0.12s; }

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

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal {
    transition: opacity 0.4s ease;
    transform: none;
  }
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem clamp(0.75rem, 3vw, 2rem) 0;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
}
.brand-mark { color: var(--accent); display: inline-flex; }

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}
.primary-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth);
}
.primary-nav a:hover { color: var(--text-primary); background: rgba(var(--accent-rgb), 0.10); }

.nav-badge { margin-left: auto; }

@media (min-width: 760px) {
  .primary-nav { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-badge { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.hero-copy { min-width: 0; }

.hero-copy h1 {
  font-size: clamp(2.75rem, 7vw, 4.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 0.98;
  background: linear-gradient(135deg, var(--text-primary), var(--text-primary) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.hero-subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: 1.9rem;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.meta-pills li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.42em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.hero-visual { min-width: 0; }

.visual-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 1.4rem;
}

/* ---------- Device scenes (shared) ---------- */

.device-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 320px;
  padding: 1rem;
}


.device-scene--single {
  min-height: 0;
  padding: 0;
}
.device-scene--compact {
  min-height: 0;
  padding: 0;
  margin: 0 auto 1.4rem;
  width: max-content;
}

.device { position: relative; }

/* TV */

.device-tv {
  width: min(100%, 560px);
}
.device-tv-bezel {
  background: linear-gradient(160deg, #1a1c22, #08090c);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device-tv-stand {
  width: 90px;
  height: 10px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, #24262c, #101115);
  border-radius: 0 0 6px 6px;
}
.device-tv-stand::after {
  content: "";
  display: block;
  width: 150px;
  height: 5px;
  margin: 0 auto;
  transform: translateY(3px);
  background: linear-gradient(180deg, #1a1b1f, #0a0a0c);
  border-radius: 3px;
}

.device-tv-screen {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(165deg, #17181d 0%, #0a0a0d 60%, #050506 100%);
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  gap: 10px;
}

.tv-chrome {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.tv-tab {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 9px;
  border-radius: 999px;
}
.tv-tab.is-active { color: #fff; background: rgba(var(--accent-rgb), 0.9); }

.tv-section-label {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tv-tile-row {
  display: flex;
  gap: 8px;
  flex: 1;
  align-items: center;
}
.tv-tile {
  flex: 1;
  align-self: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(155deg, hsl(var(--hue) 85% 62%), hsl(calc(var(--hue) + 30) 80% 38%));
  position: relative;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth);
}
.tv-tile.is-focused {
  transform: scale(1.22) translateY(-6%);
  box-shadow:
    0 12px 22px -8px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(var(--accent-rgb), 0.85);
  z-index: 2;
}
.tv-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-tile-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
}

.tv-player-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
}
.tv-player-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.tv-player-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 12px;
}
.tv-player-wave i {
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  height: 40%;
}
.tv-player-wave i:nth-child(1) { height: 55%; background: var(--accent); }
.tv-player-wave i:nth-child(2) { height: 90%; background: var(--accent); }
.tv-player-wave i:nth-child(3) { height: 35%; background: var(--accent); }
.tv-player-wave i:nth-child(4) { height: 65%; }
.tv-player-wave i:nth-child(5) { height: 45%; }
.tv-player-wave i:nth-child(6) { height: 80%; }
.tv-player-wave i:nth-child(7) { height: 30%; }
.tv-player-wave i:nth-child(8) { height: 55%; }
.tv-player-time {
  font-size: 0.44rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.device-tv--mini { width: 220px; }
.device-tv--mini .device-tv-bezel { padding: 8px; border-radius: 16px; }

.device-tv-screen--qr {
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.qr-mount { width: 100%; max-width: 150px; aspect-ratio: 1; }

/* Phone */

.device-phone {
  width: 168px;
  background: linear-gradient(160deg, #1e2027, #08090c);
  border-radius: 34px;
  padding: 8px;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device-phone--peek {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 128px;
}
.device-phone--mini { width: 128px; }

.device-phone-screen {
  aspect-ratio: 9 / 19.3;
  border-radius: 27px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(170deg, #171920 0%, #0a0b0e 65%, #050506 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}
.device-phone-screen--dark { background: linear-gradient(170deg, #14151a, #06070a); }

.phone-island {
  width: 34%;
  height: 6.5%;
  background: #000;
  border-radius: 999px;
  flex-shrink: 0;
}

.phone-nowplaying {
  width: 100%;
  padding: 10% 12% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.phone-art {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(155deg, hsl(var(--hue) 85% 62%), hsl(calc(var(--hue) + 30) 80% 38%));
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}
.phone-track-title { font-size: 0.56rem; font-weight: 700; color: #fff; }
.phone-track-artist { font-size: 0.44rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 6px; }

.phone-mini-wave {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 14px;
  width: 100%;
  justify-content: center;
}
.phone-mini-wave i {
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.phone-mini-wave i:nth-child(-n+4) { background: var(--accent); }
.phone-mini-wave i:nth-child(1) { height: 40%; }
.phone-mini-wave i:nth-child(2) { height: 75%; }
.phone-mini-wave i:nth-child(3) { height: 55%; }
.phone-mini-wave i:nth-child(4) { height: 90%; }
.phone-mini-wave i:nth-child(5) { height: 35%; }
.phone-mini-wave i:nth-child(6) { height: 60%; }
.phone-mini-wave i:nth-child(7) { height: 45%; }
.phone-mini-wave i:nth-child(8) { height: 70%; }
.phone-mini-wave i:nth-child(9) { height: 30%; }
.phone-mini-wave i:nth-child(10) { height: 50%; }

/* handoff arc (hero) */

.handoff-arc {
  position: absolute;
  left: 2%;
  bottom: -8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.handoff-arc-icon {
  display: inline-flex;
  color: var(--accent);
  animation: pulse-soft 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .handoff-arc-icon { animation: none; } }
@keyframes pulse-soft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@media (max-width: 620px) {
  .handoff-arc { display: none; }
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.1rem;
  max-width: 980px;
  margin: 0 auto;
}

.feature-card {
  padding: 1.6rem 1.5rem;
  min-width: 0;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-smooth);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover { transform: none; }
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.94rem; }

/* ---------- Showcase panels (waveform / mixer) ---------- */

.showcase-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.25rem;
}

.showcase-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.showcase-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.2rem;
}
.showcase-title { font-size: 1.05rem; font-weight: 700; }

.waveform-wrap {
  width: 100%;
  overflow-x: auto; /* defensive fallback; the SVG scales to fit and shouldn't need it */
  overflow-y: visible;
  padding-top: 2.6rem; /* room for comment tooltips */
}
.waveform-mount {
  width: 100%;
}
.waveform-mount svg { width: 100%; height: auto; display: block; overflow: visible; }

.wave-pin {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
}
.wave-pin-dot {
  fill: var(--accent);
  stroke: var(--bg-base);
  stroke-width: 2;
  transition: r 0.25s var(--ease-spring);
}
.wave-pin:hover .wave-pin-dot,
.wave-pin:focus-visible .wave-pin-dot { r: 7; }

.wave-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  bottom: 100%;
  left: 50%;
  width: max-content;
  max-width: 220px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  font-size: 0.76rem;
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-spring);
  pointer-events: none;
  z-index: 5;
}
.wave-pin:hover .wave-tip,
.wave-pin:focus-visible .wave-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -108%);
}
.wave-tip strong { color: var(--text-primary); display: block; margin-bottom: 0.15rem; font-size: 0.74rem; }
.wave-tip .search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  padding: 0.25em 0.6em;
  border-radius: 999px;
}

.waveform-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.section--split { position: relative; }
.split-note {
  max-width: 640px;
}
.split-note h3 { margin-bottom: 0.6rem; }
.split-note p { color: var(--text-secondary); }

.split-reverse {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}
@media (min-width: 800px) {
  .split-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---------- DJ mixer ---------- */

.mixer-panel { padding: clamp(1.5rem, 4vw, 2.5rem); }

.mixer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: center;
}

.deck {
  flex: 1 1 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.deck-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.78rem;
}
.deck-label { font-weight: 800; letter-spacing: 0.02em; }
.deck-bpm { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.jog-wheel {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 0deg, rgba(var(--accent-rgb), 0.5), rgba(255, 255, 255, 0.06) 8deg),
    repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0deg 3deg, transparent 3deg 12deg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0.28), 0 18px 34px -16px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 14s linear infinite;
}
.jog-wheel--b { animation-duration: 11s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .jog-wheel { animation: none; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.jog-wheel-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.jog-wheel-label {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  z-index: 1;
}

.eq-strip {
  display: flex;
  gap: 1.1rem;
}
.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.eq-band::before {
  content: "";
  display: block;
  width: 5px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  position: relative;
}
.eq-fill {
  display: block;
  width: 5px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.10);
  margin-top: -56px;
}
.eq-fill::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--v);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 999px;
}
.eq-band label { font-size: 0.6rem; color: var(--text-tertiary); font-weight: 700; }

.loop-chips {
  display: flex;
  gap: 0.4rem;
}
.loop-chips span {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.35em 0.6em;
  border-radius: 8px;
  color: var(--text-tertiary);
  border: 1px solid var(--glass-border);
}
.loop-chips span.is-active {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.12);
}

.mixer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  flex: 0 1 200px;
}

.automix-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 0.45em 0.9em;
  border-radius: 999px;
}
.automix-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-soft 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .automix-pill .dot { animation: none; } }

.crossfader { width: 100%; max-width: 180px; }
.crossfader-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.crossfader-handle {
  position: absolute;
  top: 50%;
  left: 42%;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(160deg, #fff, #cfcfcf);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  animation: fader-drift 7s ease-in-out infinite;
}
@keyframes fader-drift {
  0%, 100% { left: 38%; }
  50% { left: 58%; }
}
@media (prefers-reduced-motion: reduce) { .crossfader-handle { animation: none; left: 46%; } }
.crossfader-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-tertiary);
  font-weight: 700;
  margin-top: 0.4rem;
}

.filter-knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.filter-knob-dial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2c33, #101114);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.6);
}
.filter-knob-dial::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--accent);
  transform: translateX(-50%) rotate(35deg);
  transform-origin: 50% 18px;
  border-radius: 2px;
}
.filter-knob span { font-size: 0.6rem; color: var(--text-tertiary); font-weight: 700; }

/* CDJ remote (phone) */

.cdj-remote {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 14%;
}
.cdj-jog {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(var(--accent-rgb), 0.45), rgba(255, 255, 255, 0.10) 8deg),
    repeating-conic-gradient(rgba(255, 255, 255, 0.14) 0deg 3deg, transparent 3deg 12deg),
    radial-gradient(circle at 35% 30%, #3a3d47, #14151a);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.35), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 16s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .cdj-jog { animation: none; } }
.cdj-jog-ring { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid rgba(var(--accent-rgb), 0.7); }
.cdj-jog-center { width: 22%; height: 22%; border-radius: 50%; background: rgba(var(--accent-rgb), 0.95); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6); }

.cdj-strip {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  height: 28px;
}
.cdj-fader {
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.cdj-fader::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: var(--v);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

/* ---------- Handoff steps ---------- */

.handoff-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  counter-reset: step;
}
@media (min-width: 860px) {
  .handoff-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.handoff-step {
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.handoff-step-num {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-tertiary);
  border: 1px solid var(--glass-border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.handoff-step h3 { margin: 1.2rem 0 0.6rem; font-size: 1.05rem; }
.handoff-step p { color: var(--text-secondary); font-size: 0.9rem; max-width: 32ch; }

.scan-frame {
  position: absolute;
  inset: 22% 14%;
  pointer-events: none;
}
.scan-frame span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
}
.scan-frame span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.scan-frame span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.scan-frame span:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.scan-frame span:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.signal-badge {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.signal-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .signal-ping { animation: none; opacity: 0; } }

.handoff-followup {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.handoff-followup h3 { margin-bottom: 0.7rem; }
.handoff-followup p { color: var(--text-secondary); }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.footer-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.footer-disclaimer {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 76ch;
}
.footer-disclaimer strong { color: var(--accent); }

.footer-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 68ch;
}

.footer-meta {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
