/* ==========================================================================
   Auraloom — Apple HIG Design System v2.0
   Color palette extracted from app icons (dark + light owl illustration)
   60 FPS GPU-accelerated transitions · Dark & Light mode · App Store compliant
   ========================================================================== */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* ── App-Icon-Derived Palette ── */
  /* Dark icon: deep navy bg, neon cyan waves, slate-blue owl */
  /* Light icon: pearl white bg, cornflower blue, same owl */

  /* Accent family (cyan-blue from the soundwave rings) */
  --accent-50:  hsl(196, 82%, 96%);
  --accent-100: hsl(196, 78%, 88%);
  --accent-200: hsl(196, 74%, 74%);
  --accent-300: hsl(196, 70%, 60%);  /* light icon headphone blue */
  --accent-400: hsl(193, 75%, 55%);  /* primary CTA */
  --accent-500: hsl(191, 78%, 47%);  /* wave rings */
  --accent-600: hsl(191, 68%, 36%);
  --accent-700: hsl(191, 65%, 24%);

  /* Owl body palette (slate-blue plumage) */
  --owl-100: hsl(218, 24%, 78%);
  --owl-300: hsl(220, 26%, 64%);
  --owl-500: hsl(220, 30%, 48%);
  --owl-700: hsl(222, 35%, 32%);
  --owl-900: hsl(224, 40%, 18%);

  /* Shared geometry tokens */
  --radius-pill:   9999px;
  --radius-card:   24px;
  --radius-inner:  16px;
  --radius-sm:     10px;
  --radius-icon:   22px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

  /* Motion — easing curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    0.15s;
  --dur-normal:  0.28s;
  --dur-slow:    0.45s;

  /* Elevation & shadow */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.12);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.18);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.32);
  --shadow-glow: 0 0 32px var(--accent-glow);
}

/* ── Realistic 360° Vinyl Record ("Plak") Player ─────────────────────── */
.vinyl-turntable-card {
  position: relative;
  width: 156px;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.vinyl-disc {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #18181b 0%, #18181b 26%,
    #09090b 27%, #27272a 32%,
    #09090b 33%, #18181b 46%,
    #27272a 47%, #09090b 56%,
    #18181b 57%, #27272a 72%,
    #09090b 73%, #18181b 100%);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.2), inset 0 0 10px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spinVinyl 6s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

@keyframes spinVinyl {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vinyl-label {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.vinyl-cover-art {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.spindle-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 0 3px rgba(0,0,0,0.9);
}

/* Tonearm Needle styling */
.tonearm {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 36px;
  height: 60px;
  pointer-events: none;
  z-index: 10;
  transition: transform 0.4s var(--ease-spring);
  transform-origin: top right;
  transform: rotate(-22deg);
}

.tonearm::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #71717a;
  border: 2px solid #e4e4e7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tonearm::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 4px;
  width: 3px;
  height: 48px;
  background: linear-gradient(to bottom, #e4e4e7, #71717a);
  border-radius: 2px;
  transform: rotate(16deg);
  transform-origin: top center;
}

.tonearm.playing {
  transform: rotate(6deg);
}

/* ── Dark Mode (default — matches dark_iOS_Auraloom.png) ─────────────────── */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Backgrounds: navy/obsidian — from dark icon bg gradient */
  --bg:               hsl(224, 35%, 9%);    /* #0E1220 — deepest */
  --bg-secondary:     hsl(224, 32%, 12%);   /* #141926 */
  --bg-elevated:      hsl(224, 28%, 16%);   /* #1C2333 */

  /* Surface / glass cards */
  --surface:         hsl(223, 26%, 18%);
  --surface-glass:   hsla(223, 30%, 18%, 0.72);
  --surface-hover:   hsla(220, 30%, 22%, 0.85);

  /* Accent — cyan from wave rings on dark icon */
  --accent:          hsl(191, 76%, 54%);    /* #28D4E8 */
  --accent-glow:     hsla(191, 76%, 54%, 0.30);
  --accent-dim:      hsl(191, 65%, 40%);
  --accent-bright:   hsl(191, 90%, 68%);   /* highlight */
  --accent-fg:       hsl(224, 35%, 9%);    /* text on accent button */

  /* Text */
  --text-primary:    hsl(210, 20%, 94%);   /* #EFF2F6 */
  --text-secondary:  hsl(216, 12%, 62%);   /* #97A1AF */
  --text-tertiary:   hsl(216, 10%, 44%);   /* #6B7585 */
  --text-disabled:   hsl(216, 8%, 32%);

  /* Borders */
  --border:          hsla(210, 20%, 100%, 0.10);
  --border-hover:    hsla(210, 20%, 100%, 0.22);
  --border-accent:   hsla(191, 76%, 54%, 0.40);

  /* Background radial glow overlay */
  --glow-overlay: radial-gradient(ellipse at 50% -10%, hsla(191, 76%, 54%, 0.14) 0%, transparent 70%);
}

/* ── Light Mode (matches light_iOS_Auraloom.png) ─────────────────────────── */
[data-theme="light"] {
  color-scheme: light;

  /* Backgrounds: pearl/ivory from light icon */
  --bg:               hsl(210, 30%, 98%);  /* #F5F8FC */
  --bg-secondary:     hsl(210, 28%, 94%);  /* #EBF0F7 */
  --bg-elevated:      hsl(0, 0%, 100%);    /* pure white card surface */

  /* Surface / glass cards */
  --surface:         hsl(210, 20%, 96%);
  --surface-glass:   hsla(0, 0%, 100%, 0.78);
  --surface-hover:   hsla(0, 0%, 100%, 0.95);

  /* Accent — cornflower blue from headphones on light icon */
  --accent:          hsl(204, 72%, 48%);   /* #2194CC */
  --accent-glow:     hsla(204, 72%, 48%, 0.25);
  --accent-dim:      hsl(204, 65%, 38%);
  --accent-bright:   hsl(204, 80%, 60%);
  --accent-fg:       hsl(0, 0%, 100%);

  /* Text */
  --text-primary:    hsl(224, 35%, 12%);   /* #121A2E */
  --text-secondary:  hsl(220, 16%, 44%);   /* #636F87 */
  --text-tertiary:   hsl(220, 12%, 60%);   /* #8F98AD */
  --text-disabled:   hsl(220, 8%, 74%);

  /* Borders */
  --border:          hsla(224, 20%, 14%, 0.09);
  --border-hover:    hsla(224, 20%, 14%, 0.18);
  --border-accent:   hsla(204, 72%, 48%, 0.35);

  /* Shadows more visible on light */
  --shadow-sm:   0 1px 4px rgba(18,26,46,0.08);
  --shadow-md:   0 8px 24px rgba(18,26,46,0.12);
  --shadow-lg:   0 20px 60px rgba(18,26,46,0.16);
  --shadow-glow: 0 0 32px var(--accent-glow);

  --glow-overlay: radial-gradient(ellipse at 50% -10%, hsla(204, 72%, 48%, 0.10) 0%, transparent 65%);
}

/* ── System-preference fallback ─────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg:               hsl(210, 30%, 98%);
    --bg-secondary:     hsl(210, 28%, 94%);
    --bg-elevated:      hsl(0, 0%, 100%);
    --surface:         hsl(210, 20%, 96%);
    --surface-glass:   hsla(0, 0%, 100%, 0.78);
    --surface-hover:   hsla(0, 0%, 100%, 0.95);
    --accent:          hsl(204, 72%, 48%);
    --accent-glow:     hsla(204, 72%, 48%, 0.25);
    --accent-dim:      hsl(204, 65%, 38%);
    --accent-bright:   hsl(204, 80%, 60%);
    --accent-fg:       hsl(0, 0%, 100%);
    --text-primary:    hsl(224, 35%, 12%);
    --text-secondary:  hsl(220, 16%, 44%);
    --text-tertiary:   hsl(220, 12%, 60%);
    --text-disabled:   hsl(220, 8%, 74%);
    --border:          hsla(224, 20%, 14%, 0.09);
    --border-hover:    hsla(224, 20%, 14%, 0.18);
    --border-accent:   hsla(204, 72%, 48%, 0.35);
    --shadow-sm:   0 1px 4px rgba(18,26,46,0.08);
    --shadow-md:   0 8px 24px rgba(18,26,46,0.12);
    --shadow-lg:   0 20px 60px rgba(18,26,46,0.16);
    --shadow-glow: 0 0 32px var(--accent-glow);
    --glow-overlay: radial-gradient(ellipse at 50% -10%, hsla(204, 72%, 48%, 0.10) 0%, transparent 65%);
  }
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur-slow) var(--ease-smooth),
              color var(--dur-slow) var(--ease-smooth);
}

/* Ambient background glow — GPU composited, no reflow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--glow-overlay);
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
  transition: background var(--dur-slow) var(--ease-smooth);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Typography utilities ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Gradient text — owl-blue → accent */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 60%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Card ─────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  transition: border-color var(--dur-normal) var(--ease-spring),
              transform var(--dur-normal) var(--ease-spring),
              box-shadow var(--dur-normal) var(--ease-spring);
  will-change: transform;
}

.glass-card:hover {
  border-color: var(--border-hover);
}

/* ── Theme Toggle ───────────────────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-spring),
              transform var(--dur-fast) var(--ease-spring);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.icon-sun, .icon-moon {
  width: 18px;
  height: 18px;
}

/* Dark mode: show moon, hide sun */
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Light mode: show sun, hide moon */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* OS default dark (no explicit theme set) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* OS default light (no explicit theme set) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-moon { display: none; }
  :root:not([data-theme="dark"]) .icon-sun { display: block; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-spring),
              background var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-spring),
              color var(--dur-fast) var(--ease-spring);
  will-change: transform;
}

.btn:active { transform: scale(0.95) !important; }

/* Hero-size buttons */
.hero-btn {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-icon {
  display: block;
  flex-shrink: 0;
}

/* Primary — solid */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(210, 20%, 94%, 0.25);
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 24px hsla(224, 35%, 12%, 0.15);
}

/* Secondary — glass */
.btn-secondary {
  background: var(--surface-glass);
  color: var(--text-primary);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Accent — cyan filled */
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.btn-accent:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-slow) var(--ease-smooth),
              border-color var(--dur-slow) var(--ease-smooth);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-icon);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-spring);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 13px;
  padding: 8px 18px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero-section {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* ── Hero iPhone Frame ──────────────────────────────────────────────────── */
.hero-mockup-wrapper {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}

.device-frame {
  position: relative;
  background: var(--bg);
  border-radius: 44px;
  padding: 14px;
  border: 2px solid var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
  overflow: hidden;
}

.device-screen {
  background: var(--bg-secondary);
  border-radius: 32px;
  padding: 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.device-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.device-audio-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 180px;
  margin-top: 40px;
}

.wave-bar {
  width: 10px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-dim) 100%);
  border-radius: 6px;
  height: 30%;
  animation: pulseWave 1.8s infinite ease-in-out alternate;
  will-change: height, opacity;
}

@keyframes pulseWave {
  0%   { height: 15%; opacity: 0.4; }
  50%  { height: 85%; opacity: 1; filter: drop-shadow(0 0 8px var(--accent)); }
  100% { height: 40%; opacity: 0.7; }
}

/* ── Section headings ───────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Demo Widget ────────────────────────────────────────────────────────── */
.demo-widget {
  padding: 36px;
  margin-bottom: 100px;
  position: relative;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.audio-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: blinkDot 1.5s infinite alternate;
}

@keyframes blinkDot {
  0%   { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ── Spectrum Visualizer ────────────────────────────────────────────────── */
.visualizer-container {
  width: 100%;
  height: 120px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-radius: var(--radius-inner);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}

canvas#visualizerCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Stem Grid (Strict 2x2 Layout) ────────────────────────────────────── */
.stems-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 32px !important;
}

.stem-card {
  background: color-mix(in srgb, var(--bg-secondary) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 20px;
  transition: border-color var(--dur-fast) var(--ease-spring),
              background var(--dur-fast) var(--ease-spring);
}

.stem-card.active {
  border-color: var(--border-accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-secondary));
}

.stem-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stem-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.stem-icon { font-size: 22px; }

/* ── Toggle Switch ──────────────────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-knob {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: color-mix(in srgb, var(--text-primary) 18%, transparent);
  transition: background var(--dur-normal) var(--ease-spring);
  border-radius: var(--radius-pill);
}

.slider-knob::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: transform var(--dur-normal) var(--ease-spring);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider-knob { background: var(--accent); }
input:checked + .slider-knob::before { transform: translateX(20px); }

/* ── Range Sliders ──────────────────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: color-mix(in srgb, var(--text-primary) 15%, transparent);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-spring),
              background var(--dur-fast) var(--ease-spring);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent);
}

/* ── 10-Band Equalizer ──────────────────────────────────────────────────── */
.eq-section { padding: 80px 0; }

.eq-card {
  padding: 36px 32px;
  overflow: hidden;
}

.eq-bank {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin-top: 36px;
  width: 100%;
}

.eq-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.eq-slider-wrapper {
  height: 180px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-slider-wrapper input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(-90deg);
  margin: 0;
  cursor: pointer;
}

.eq-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.eq-val {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ── Scene Cards ────────────────────────────────────────────────────────── */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 100px;
}

.scene-card {
  padding: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-spring);
  pointer-events: none;
}

.scene-card:hover::before { opacity: 1; }
.scene-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.scene-emoji { font-size: 36px; margin-bottom: 16px; }

.scene-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scene-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scene-play-pill {
  margin-top: 20px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-spring),
              color var(--dur-fast) var(--ease-spring);
}

.scene-card:hover .scene-play-pill {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ── Timer Section ──────────────────────────────────────────────────────── */
.timer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 100px;
}

.timer-box {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timer-display {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  margin: 20px 0;
  letter-spacing: -0.02em;
}

.preset-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.preset-btn {
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-spring),
              border-color var(--dur-fast) var(--ease-spring),
              color var(--dur-fast) var(--ease-spring);
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ── Share Generator ────────────────────────────────────────────────────── */
.share-card {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.qr-box {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-inner);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #000;
  box-shadow: var(--shadow-md);
}

.qr-box svg {
  width: 160px;
  height: 160px;
}

.share-link-input {
  width: 100%;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  transition: border-color var(--dur-fast) var(--ease-spring);
}

.share-link-input:focus {
  outline: none;
  border-color: var(--border-accent);
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 100px;
}

.testimonial-card { padding: 28px; }

.stars {
  color: #FFCC00;
  font-size: 14px;
  margin-bottom: 12px;
}

.quote {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.65;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.user-role {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── App Store CTA Banner ───────────────────────────────────────────────── */
.app-store-cta-banner {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 8%, var(--surface)) 0%,
    color-mix(in srgb, var(--bg) 95%, var(--accent)) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 32px;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.app-store-cta-banner::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.app-store-badge {
  display: inline-block;
  margin-top: 24px;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.app-store-badge:hover { transform: scale(1.04); }
.app-store-badge img  { height: 52px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: border-color var(--dur-slow) var(--ease-smooth);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-spring);
}

.footer-links a:hover { color: var(--text-primary); }

.legal-notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-elevated, var(--surface));
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--dur-normal) var(--ease-spring),
              opacity var(--dur-normal) var(--ease-spring);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-spring);
}

.modal-close:hover {
  background: color-mix(in srgb, var(--text-primary) 18%, transparent);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .timer-container        { grid-template-columns: 1fr; }
  .share-card             { grid-template-columns: 1fr; }
  .featured-scene-layout { grid-template-columns: 1fr !important; }
  .nav-links              { display: none; }

  .eq-bank {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .hero-actions  { flex-direction: column; }
  .hero-btn      { width: 100%; }
  .stems-grid    { grid-template-columns: 1fr; }

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

  .app-store-cta-banner { padding: 40px 24px; }
  .share-card   { padding: 24px; }
  .demo-widget  { padding: 24px; }
}
