/* ═══════════════════════════════════════════════════
   Ryft Audio Landing — Design Tokens + Styles
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────── */
:root {
  /* Colors — dark palette */
  --c-bg:            #0A0A0F;
  --c-bg-alt:        #111118;
  --c-bg-card:       #16161F;
  --c-bg-glass:      rgba(22, 22, 31, 0.65);
  --c-surface:       #1C1C28;
  --c-border:        rgba(255, 255, 255, 0.06);
  --c-border-light:  rgba(255, 255, 255, 0.10);

  /* Text */
  --c-text:          #E8E8ED;
  --c-text-muted:    #8A8A9A;
  --c-text-dim:      #5A5A6A;

  /* Accent — cyan/teal (audio / EQ vibe) */
  --c-accent:        #00D4FF;
  --c-accent-dim:    rgba(0, 212, 255, 0.15);
  --c-accent-glow:   rgba(0, 212, 255, 0.30);

  /* Secondary — warm amber (RTA / danger) */
  --c-warm:          #E8A030;
  --c-warm-dim:      rgba(232, 160, 48, 0.15);

  /* Gradient */
  --g-hero:          linear-gradient(180deg, #0A0A0F 0%, #0E1420 50%, #0A0A0F 100%);
  --g-accent:        linear-gradient(135deg, #00D4FF 0%, #0088CC 100%);
  --g-card:          linear-gradient(180deg, var(--c-bg-card) 0%, var(--c-bg-alt) 100%);
  --g-glow:          radial-gradient(ellipse at 50% 0%, var(--c-accent-glow) 0%, transparent 70%);

  /* Typography */
  --f-sans:          'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:          'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  --fs-hero:         clamp(2.4rem, 5vw, 4rem);
  --fs-h2:           clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:           clamp(1.1rem, 2vw, 1.4rem);
  --fs-body:         1rem;
  --fs-small:        0.875rem;
  --fs-xs:           0.75rem;

  --fw-regular:      400;
  --fw-medium:       500;
  --fw-semibold:     600;
  --fw-bold:         700;

  /* Spacing */
  --sp-xs:           0.5rem;
  --sp-sm:           1rem;
  --sp-md:           1.5rem;
  --sp-lg:           2.5rem;
  --sp-xl:           4rem;
  --sp-2xl:          6rem;
  --sp-section:      clamp(4rem, 10vh, 8rem);

  /* Layout */
  --max-w:           1120px;
  --max-w-narrow:    860px;
  --radius:          12px;
  --radius-lg:       20px;
  --radius-pill:     999px;

  /* Motion */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:        150ms;
  --dur-normal:      300ms;
  --dur-slow:        600ms;

  /* Shadows */
  --shadow-card:     0 2px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:     0 0 40px var(--c-accent-glow);
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-sans);
  font-weight: var(--fw-regular);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film grain overlay — analog texture across entire page */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  will-change: transform;
}

/* Mouse-follow spotlight — positioned via JS */
.mouse-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
.mouse-glow.is-active { opacity: 1; }

img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; transition: opacity var(--dur-fast); }
a:hover { opacity: 0.8; }

/* ── Utility ───────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-md); }
.narrow      { max-width: var(--max-w-narrow); }
.text-center { text-align: center; }
.text-muted  { color: var(--c-text-muted); }
.text-mono   { font-family: var(--f-mono); }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Navigation ────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--sp-sm) 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur-normal);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-md);
}
.nav__brand {
  display: flex; align-items: center; gap: var(--sp-xs);
  font-weight: var(--fw-bold); font-size: 1.1rem; color: var(--c-text);
}
.nav__brand svg { width: 28px; height: 28px; }
.nav__links { display: flex; gap: var(--sp-md); list-style: none; }
.nav__links a {
  font-size: var(--fs-small); font-weight: var(--fw-medium);
  color: var(--c-text-muted); transition: color var(--dur-fast);
}
.nav__links a:hover { color: var(--c-text); opacity: 1; }
.nav__right {
  display: flex; align-items: center; gap: var(--sp-sm);
}
.nav__pill {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--c-accent-dim); color: var(--c-accent);
  letter-spacing: 0.04em;
}
.nav__theme-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--c-text-muted); padding: 4px;
  border-radius: 50%;
  transition: color var(--dur-fast), background var(--dur-fast);
  display: flex; align-items: center; justify-content: center;
}
.nav__theme-toggle:hover { color: var(--c-text); background: rgba(255,255,255,0.06); }
.nav__theme-icon { width: 18px; height: 18px; }
.nav__theme-icon--light { display: none; }
[data-theme="light"] .nav__theme-icon--dark { display: none; }
[data-theme="light"] .nav__theme-icon--light { display: block; }
.nav__cta {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--g-accent);
  color: #000; font-weight: var(--fw-semibold); font-size: var(--fs-small);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); opacity: 1; }

/* ── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--c-bg);
  overflow: hidden;
  padding: var(--sp-2xl) var(--sp-md);
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Aurora blob — cyan */
.hero__aurora {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: aurora-drift 12s ease-in-out infinite alternate;
}
.hero__aurora--1 {
  width: 500px; height: 500px;
  top: -10%; left: 20%;
  background: var(--c-accent);
}
.hero__aurora--2 {
  width: 400px; height: 400px;
  bottom: -5%; right: 15%;
  background: #6C3AED;
  opacity: 0.15;
  animation-delay: -4s;
  animation-duration: 15s;
}
.hero__aurora--3 {
  width: 350px; height: 350px;
  top: 30%; right: 30%;
  background: var(--c-warm);
  opacity: 0.08;
  animation-delay: -8s;
  animation-duration: 18s;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

.hero__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 140%; max-width: 900px; aspect-ratio: 1;
  background: var(--g-glow);
  pointer-events: none;
  opacity: 0.5;
}
.hero__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero__title {
  font-size: var(--fs-hero); font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}
.hero__title span { /* accent gradient on keyword */
  background: var(--g-accent); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__kicker {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: var(--fw-medium, 500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  -webkit-text-fill-color: var(--c-text-muted);
  background: none;
  margin-top: var(--sp-sm);
}
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--c-text-muted); line-height: 1.7;
  max-width: 580px; margin: 0 auto var(--sp-lg);
}

/* ── Hero Player Widget ────────────────────────── */
.hero-player {
  margin-top: var(--sp-xl);
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255, 0.03);
  border: none;
  border-radius: 20px;
  padding: var(--sp-md) var(--sp-md) var(--sp-sm);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  animation: glow-cycle 6s ease-in-out infinite;
}
@keyframes glow-cycle {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.20), 0 0 60px rgba(0, 212, 255, 0.06); border-color: rgba(0, 212, 255, 0.25); }
  33%      { box-shadow: 0 0 20px rgba(108, 58, 237, 0.20), 0 0 60px rgba(108, 58, 237, 0.06); border-color: rgba(108, 58, 237, 0.25); }
  66%      { box-shadow: 0 0 20px rgba(232, 160, 48, 0.20), 0 0 60px rgba(232, 160, 48, 0.06); border-color: rgba(232, 160, 48, 0.25); }
}

.hero-player__row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.hero-player__art {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.hero-player__art svg { width: 100%; height: 100%; }

.hero-player__meta { min-width: 0; text-align: left; }

.hero-player__track {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-player__info {
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
  font-family: var(--f-mono);
  margin-top: 2px;
}

.hero-player__wave {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: var(--sp-xs);
}

.hero-player__seek {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--sp-sm);
}

.hero-player__progress {
  height: 100%;
  width: 0%;
  background: var(--g-accent);
  border-radius: 2px;
  animation: hero-seek 12s linear infinite;
}

@keyframes hero-seek {
  0%   { width: 0%; }
  100% { width: 100%; }
}

.hero-player__badges {
  display: flex;
  gap: var(--sp-xs);
  justify-content: center;
}

.hero-player__badge {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--c-text-muted);
}

.hero-player__badge--accent {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--c-accent);
}
.hero__actions { display: flex; gap: var(--sp-sm); justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--f-sans);
  font-size: var(--fs-body); font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--g-accent); color: #000;
}
.btn--primary:hover { box-shadow: var(--shadow-glow); }
.btn--ghost {
  background: transparent; color: var(--c-text);
  border: 1px solid var(--c-border-light);
}
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn svg { width: 20px; height: 20px; }

/* ── Trust Bar ─────────────────────────────────── */
.trust {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md);
  text-align: center;
}
.trust__item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-xs); }
.trust__icon {
  width: 40px; height: 40px;
  color: var(--c-accent);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}
.trust__label {
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--c-text);
}

/* ── Section ───────────────────────────────────── */
.section {
  position: relative;
  padding: var(--sp-section) 0;
}
.section--alt { background: var(--c-bg-alt); }

/* Gradient glow divider between sections */
.section::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-glow), transparent);
  opacity: 0.5;
}
.section:first-of-type::before { display: none; }

.section__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.section__title {
  font-size: var(--fs-h2); font-weight: var(--fw-bold);
  line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: var(--sp-sm);
}
.section__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--c-text-muted); line-height: 1.7;
  max-width: 620px; margin: 0 auto;
}

/* ── Three Modes Grid ──────────────────────────── */
.modes__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.mode-card {
  position: relative;
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-md);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.mode-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--g-accent);
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.mode-card:hover { border-color: var(--c-accent); box-shadow: 0 8px 40px rgba(0, 212, 255, 0.08); }
.mode-card:hover::before { opacity: 1; }
.mode-card__icon {
  width: 48px; height: 48px;
  margin-bottom: var(--sp-md);
  color: var(--c-accent);
}
.mode-card__title {
  font-size: var(--fs-h3); font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-xs);
}
.mode-card__desc {
  font-size: var(--fs-small); color: var(--c-text-muted); line-height: 1.7;
}

/* ── Feature Split (text + visual) ─────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl); align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__text { display: flex; flex-direction: column; gap: var(--sp-md); }
.split__title {
  font-size: var(--fs-h2); font-weight: var(--fw-bold);
  line-height: 1.2;
}
.split__body {
  font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.7;
}

/* Feature list inside split */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-sm); }
.feat-list__item {
  display: flex; gap: var(--sp-sm); align-items: flex-start;
}
.feat-list__icon {
  flex-shrink: 0; width: 20px; height: 20px;
  margin-top: 2px; color: var(--c-accent);
}
.feat-list__label { font-weight: var(--fw-medium); }
.feat-list__desc { font-size: var(--fs-small); color: var(--c-text-muted); }

/* ── Visual Panel (mock UI / spectrum) ─────────── */
.visual-panel {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end;
  box-shadow: 0 4px 48px rgba(0, 212, 255, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.visual-panel__spectrum {
  width: 100%; height: 100%;
}

/* ── Before / After EQ Split ──────────────────── */
.compare__disclaimer {
  margin-top: var(--sp-md);
  font-size: 0.7rem;
  color: var(--c-text-muted);
  opacity: 0.6;
  line-height: 1.5;
  text-align: center;
}

.ba { text-align: center; }
.ba__wrap {
  position: relative;
  margin: var(--sp-lg) auto 0;
  max-width: 800px;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ba__wrap canvas {
  display: block;
  width: 100%; height: 100%;
}
.ba__slider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--c-accent);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 12px var(--c-accent);
}
.ba__handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,212,255,0.4);
}
.ba__label {
  position: absolute;
  top: var(--sp-sm);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-pill);
  z-index: 3;
  pointer-events: none;
}
.ba__label--left {
  left: var(--sp-sm);
  background: rgba(255,255,255,0.08);
  color: var(--c-text-muted);
}
.ba__label--right {
  right: var(--sp-sm);
  background: rgba(0,212,255,0.15);
  color: var(--c-accent);
}

/* ── DSP Presets ───────────────────────────────── */
.presets__grid {
  display: flex; flex-wrap: wrap; gap: var(--sp-xs);
  justify-content: center;
  margin-top: var(--sp-lg);
}
.preset-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: var(--fs-small); font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  transition: all var(--dur-fast);
  cursor: default;
}
.preset-chip:hover {
  border-color: var(--c-accent); color: var(--c-accent);
  background: var(--c-accent-dim);
}

/* ── Specs Table ───────────────────────────────── */
.specs__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-cell {
  background: var(--c-bg-card);
  padding: var(--sp-md);
}
.spec-cell__label {
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  color: var(--c-text-dim); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--sp-xs);
}
.spec-cell__value {
  font-size: var(--fs-body); font-weight: var(--fw-semibold);
  font-family: var(--f-mono);
}

/* ── CTA Banner ────────────────────────────────── */
.cta-banner {
  position: relative;
  text-align: center;
  padding: var(--sp-2xl) var(--sp-md);
  overflow: hidden;
}
.cta-banner__glow {
  position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; max-width: 700px; aspect-ratio: 1;
  background: radial-gradient(ellipse, var(--c-accent-glow) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.cta-banner__title {
  font-size: var(--fs-h2); font-weight: var(--fw-bold);
  margin-bottom: var(--sp-sm);
  position: relative; z-index: 1;
}
.cta-banner__sub {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-lg);
  position: relative; z-index: 1;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  padding: var(--sp-xl) 0 var(--sp-lg);
  padding-bottom: calc(var(--sp-lg) + 56px); /* room for sticky player */
  border-top: 1px solid var(--c-border);
  text-align: center;
}
.footer__links {
  display: flex; gap: var(--sp-lg); justify-content: center;
  list-style: none;
  margin-bottom: var(--sp-md);
}
.footer__links a { font-size: var(--fs-small); color: var(--c-text-muted); }
.footer__links a:hover { color: var(--c-text); }
.footer__copy { font-size: var(--fs-xs); color: var(--c-text-dim); }
.footer__made { font-size: var(--fs-xs); color: var(--c-text-dim); margin-top: var(--sp-xs); }

/* ── App Showcase (phone screenshots) ──────────── */
.showcase {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  padding: var(--sp-2xl) 0;
}
.showcase--reverse { flex-direction: row-reverse; }

.showcase__phone {
  flex: 0 0 280px;
  position: relative;
}

.phone-frame {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 3px solid var(--c-border);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow:
    0 0 60px -10px rgba(0, 212, 255, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: var(--c-surface);
  border-radius: 0 0 18px 18px;
  z-index: 2;
  border-bottom: 2px solid var(--c-border);
}

/* Status bar dots */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--c-text-dim);
  border-radius: 50%;
  z-index: 3;
}

.phone-screen {
  position: absolute;
  inset: 3px;
  border-radius: 33px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
}

.phone-screen__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 var(--sp-sm);
}

.phone-screen__icon {
  width: 48px;
  height: 48px;
  color: var(--c-accent);
  opacity: 0.5;
}

/* Placeholder gradient backgrounds per showcase */
.phone-screen--eq {
  background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0a1628 100%);
}
.phone-screen--rta {
  background: linear-gradient(135deg, #0a0f1e 0%, #12203a 50%, #0a0f1e 100%);
}
.phone-screen--usb {
  background: linear-gradient(135deg, #0a1a18 0%, #0d3028 50%, #0a1a18 100%);
}
.phone-screen--hp {
  background: linear-gradient(135deg, #1a0a28 0%, #2d0d47 50%, #1a0a28 100%);
}

/* Fake EQ curves / bars inside placeholders */
.phone-screen__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  padding: 0 var(--sp-md);
}
.phone-screen__bar {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: var(--g-accent);
  opacity: 0.35;
}

.showcase__text {
  flex: 1;
  min-width: 0;
}

.showcase__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: var(--sp-xs);
}

.showcase__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  margin-bottom: var(--sp-sm);
  background: linear-gradient(135deg, var(--c-text) 60%, var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase__desc {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 768px) {
  .showcase,
  .showcase--reverse {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-lg);
  }
  .showcase__phone { flex: none; }
  .showcase__desc { max-width: none; }
}

/* ── Scroll Reveal ─────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > [data-reveal] {
  transition-delay: calc(var(--stagger-i, 0) * 80ms);
}

/* ── Counter animation ─────────────────────────── */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ── How It Works ──────────────────────────────── */
.hiw__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.hiw__step {
  flex: 0 1 260px;
  text-align: center;
  padding: var(--sp-md);
}
.hiw__num {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  font-family: var(--f-mono);
  background: var(--g-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-sm);
  opacity: 0.5;
}
.hiw__icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--sp-sm);
  color: var(--c-accent);
}
.hiw__icon svg { width: 100%; height: 100%; }
.hiw__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-xs);
}
.hiw__desc {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  line-height: 1.7;
}
.hiw__connector {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  opacity: 0.3;
  margin-top: 80px;
}
.hiw__connector svg { width: 40px; height: 24px; }

/* ── Comparison Table ──────────────────────────── */
.compare__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.compare__table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: center;
  font-size: var(--fs-small);
}
.compare__table th,
.compare__table td {
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--c-border);
}
.compare__table th {
  font-weight: var(--fw-semibold);
  background: var(--c-bg-card);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-xs);
}
.compare__table td:first-child {
  text-align: left;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}
.compare__table tr:last-child td { border-bottom: none; }
.compare__table td { background: var(--c-bg-alt); }
.compare__highlight {
  background: rgba(0, 212, 255, 0.05) !important;
}
.compare__table th.compare__highlight {
  color: var(--c-accent);
  background: rgba(0, 212, 255, 0.10) !important;
}
.compare__yes { color: #4ADE80; font-weight: var(--fw-bold); font-size: 1.1rem; }
.compare__no  { color: var(--c-text-dim); font-size: 1.1rem; }
.compare__partial { color: var(--c-warm); font-weight: var(--fw-bold); font-size: 1.1rem; }

/* ── FAQ Accordion ─────────────────────────────── */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-card);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq__item[open] { border-color: rgba(0, 212, 255, 0.2); }
.faq__q {
  cursor: pointer;
  padding: var(--sp-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  transition: color var(--dur-fast);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--c-accent);
  transition: transform var(--dur-normal) var(--ease-out);
}
.faq__item[open] .faq__q::after {
  content: '−';
  transform: rotate(180deg);
}
.faq__q:hover { color: var(--c-accent); }
.faq__a {
  padding: 0 var(--sp-md) var(--sp-md);
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: var(--fs-small);
}

/* ── Sticky Mini-Player ────────────────────────── */
.sticky-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--c-border);
  transform: translateY(100%);
  transition: transform var(--dur-normal) var(--ease-out);
}
.sticky-player.is-visible { transform: translateY(0); }
.sticky-player__progress {
  height: 2px; background: rgba(255,255,255,0.06);
}
.sticky-player__progress-bar {
  height: 100%; width: 0;
  background: var(--g-accent);
  animation: sticky-seek 20s linear infinite;
}
@keyframes sticky-seek { 0% { width: 0; } 100% { width: 100%; } }
.sticky-player__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--sp-xs) var(--sp-md);
}
.sticky-player__left {
  display: flex; align-items: center; gap: var(--sp-xs); min-width: 0;
}
.sticky-player__art {
  width: 32px; height: 32px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.sticky-player__art svg { width: 100%; height: 100%; }
.sticky-player__meta { min-width: 0; }
.sticky-player__track {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-player__info {
  font-size: 0.65rem; color: var(--c-text-dim); font-family: var(--f-mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-player__right {
  display: flex; align-items: center; gap: var(--sp-xs); flex-shrink: 0;
}
.sticky-player__badge {
  font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 212, 255, 0.3); color: var(--c-accent);
  white-space: nowrap;
}
.btn--sm { padding: 0.3rem 0.7rem; font-size: var(--fs-xs); white-space: nowrap; }

/* ── Custom Cursor ─────────────────────────────── */
.custom-cursor {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, opacity 0.3s;
  opacity: 0;
  mix-blend-mode: difference;
}
.custom-cursor.is-active { opacity: 1; }
.custom-cursor.is-hover {
  width: 48px; height: 48px;
  border-color: rgba(0, 212, 255, 0.7);
}

/* ── Light Theme ───────────────────────────────── */
[data-theme="light"] {
  --c-bg:            #F5F5F8;
  --c-bg-alt:        #EBEBF0;
  --c-bg-card:       #FFFFFF;
  --c-bg-glass:      rgba(255, 255, 255, 0.75);
  --c-surface:       #E8E8ED;
  --c-border:        rgba(0, 0, 0, 0.08);
  --c-border-light:  rgba(0, 0, 0, 0.12);
  --c-text:          #1A1A2E;
  --c-text-muted:    #5A5A70;
  --c-text-dim:      #8A8A9A;
  --c-accent:        #0088CC;
  --c-accent-dim:    rgba(0, 136, 204, 0.10);
  --c-accent-glow:   rgba(0, 136, 204, 0.15);
  --g-hero:          linear-gradient(180deg, #F5F5F8 0%, #E8ECF4 50%, #F5F5F8 100%);
  --g-accent:        linear-gradient(135deg, #00AAEE 0%, #0077BB 100%);
  --g-card:          linear-gradient(180deg, #FFFFFF 0%, #F0F0F5 100%);
  --g-glow:          radial-gradient(ellipse at 50% 0%, var(--c-accent-glow) 0%, transparent 70%);
  --shadow-card:     0 2px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow:     0 0 40px var(--c-accent-glow);
}
[data-theme="light"] body { background: var(--c-bg); }
[data-theme="light"] .nav { background: rgba(245, 245, 248, 0.85); }
[data-theme="light"] .hero { background: var(--c-bg); }
[data-theme="light"] .hero::before {
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
}
[data-theme="light"] .hero__aurora { opacity: 0.12; }
[data-theme="light"] body::after { opacity: 0.02; }
[data-theme="light"] .hero-player { background: rgba(255,255,255,0.6); }
[data-theme="light"] .mode-card { border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .sticky-player { background: rgba(245, 245, 248, 0.95); }
[data-theme="light"] .faq__item { background: #fff; }
[data-theme="light"] .compare__table td { background: var(--c-bg); }

/* ── Spectrum Animation (canvas fallback) ──────── */
.spectrum-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 100%; padding: var(--sp-sm);
}
.spectrum-bars__bar {
  flex: 1;
  background: linear-gradient(0deg, var(--c-accent) 0%, var(--c-warm) 100%);
  border-radius: 2px 2px 0 0;
  animation: spectrum-bounce var(--dur-slow) ease-in-out infinite alternate;
  min-height: 4px;
}
@keyframes spectrum-bounce {
  0%   { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .modes__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .split--reverse { direction: ltr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__pill { display: none; }
  .hiw__grid { flex-direction: column; align-items: center; }
  .hiw__connector { transform: rotate(90deg); margin: 0; }
}

@media (max-width: 480px) {
  .trust__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
  .hero__actions { flex-direction: column; align-items: center; }
  .specs__grid { grid-template-columns: 1fr 1fr; }
  .compare__table { font-size: var(--fs-xs); }
  .compare__table th, .compare__table td { padding: var(--sp-xs); }
  .sticky-player__info { display: none; }
  .sticky-player__art { width: 28px; height: 28px; }
}

/* ── Reduced Motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .mouse-glow { display: none; }
  .custom-cursor { display: none; }
  body::after { display: none; }
  .hero__aurora { animation: none; }
  .hero-player::before { animation: none; }
  [data-parallax] { transform: none !important; }
}
