/* ================================================================
   SpeakerFix Pro — Premium Design System
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --bg:          #030318;
  --bg-2:        #07071e;
  --surface-1:   rgba(255, 255, 255, 0.03);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --surface-3:   rgba(255, 255, 255, 0.10);

  --violet:      #7c3aed;
  --indigo:      #6366f1;
  --cyan:        #22d3ee;
  --green:       #10b981;
  --pink:        #ec4899;
  --amber:       #f59e0b;
  --red:         #ef4444;

  --text-1:      #f8fafc;
  --text-2:      #94a3b8;
  --text-3:      #475569;

  --border:      rgba(255, 255, 255, 0.08);
  --border-md:   rgba(255, 255, 255, 0.13);
  --border-glow: rgba(124, 58, 237, 0.45);

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #22d3ee 100%);
  --grad-card:   linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(34,211,238,0.06) 100%);
  --grad-violet: linear-gradient(135deg, #7c3aed, #6366f1);
  --grad-subtle: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(99,102,241,0.04));

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill:100px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.55);
  --glow-violet: 0 0 40px rgba(124,58,237,0.35);
  --glow-cyan:   0 0 40px rgba(34,211,238,0.25);
  --glow-btn:    0 0 0 4px rgba(124,58,237,0.25), 0 8px 30px rgba(124,58,237,0.5);

  /* Transitions */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s var(--ease);
  --t-med:  0.3s var(--ease);
  --t-slow: 0.5s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ================================================================
   Background Orbs
   ================================================================ */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.12;
  animation: orbFloat 22s infinite ease-in-out;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -250px; left: -200px; animation-delay: 0s;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: 35%; right: -180px; animation-delay: -8s;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #22d3ee, transparent);
  bottom: -80px; left: 25%; animation-delay: -16s;
}

@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(35px, -45px) scale(1.06); }
  66%      { transform: translate(-25px, 25px) scale(0.94); }
}

/* ================================================================
   Navbar
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: var(--t-med);
}

.navbar.scrolled {
  background: rgba(3, 3, 24, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-1);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-brand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 7px; color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.45);
  flex-shrink: 0;
}
.logo-icon.small { width: 28px; height: 28px; border-radius: 8px; padding: 5px; }

.logo-pro {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  color: var(--text-2); text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--t-fast); border: none;
  background: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.nav-link:hover { color: var(--text-1); background: var(--surface-2); }
.nav-link.active { color: var(--text-1); background: var(--surface-2); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-btn { display: flex; align-items: center; gap: 5px; }
.dd-arrow { font-size: 0.7rem; transition: transform var(--t-fast); display: inline-block; }
.nav-dropdown.open .dd-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(7, 7, 30, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg); padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,0.15);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-md);
  color: var(--text-2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: var(--t-fast);
}
.nav-dd-item:hover { color: var(--text-1); background: var(--surface-2); }
.nav-dd-item span { font-size: 1rem; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text-1);
  border-radius: 2px; transition: var(--t-med); display: block;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; padding: 8px 20px 16px;
  background: rgba(3, 3, 24, 0.96);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-2); text-decoration: none;
  padding: 11px 14px; border-radius: var(--r-md);
  font-weight: 500; font-size: 0.9rem; transition: var(--t-fast);
}
.mobile-menu a:hover { color: var(--text-1); background: var(--surface-2); }

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 28px 80px;
  max-width: 1200px; margin: 0 auto;
  gap: 64px;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: var(--r-pill);
  font-size: 0.78rem; color: #a78bfa; font-weight: 500;
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px; height: 6px; background: #22c55e;
  border-radius: 50%; animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 480px; margin-bottom: 40px; line-height: 1.75;
}

/* ================================================================
   Ejector Card (Premium)
   ================================================================ */
.ejector-card {
  background: var(--surface-1) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.35), rgba(99,102,241,0.15), rgba(34,211,238,0.2)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-xl); padding: 32px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 26px;
  max-width: 560px; position: relative; overflow: hidden;
}
.ejector-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at top, rgba(124,58,237,0.06), transparent 70%);
  pointer-events: none;
}

/* Water rings */
.ejector-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; }
.water-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(124,58,237,0.3); transform: translate(-50%,-50%); opacity: 0; }
.ring-1 { width: 100px; height: 100px; }
.ring-2 { width: 152px; height: 152px; }
.ring-3 { width: 206px; height: 206px; }
.ring-4 { width: 264px; height: 264px; }
.ejecting .ring { animation: rippleRing 2.2s infinite ease-out; }
.ejecting .ring-2 { animation-delay: 0.45s; }
.ejecting .ring-3 { animation-delay: 0.9s; }
.ejecting .ring-4 { animation-delay: 1.35s; }
@keyframes rippleRing {
  0%   { opacity: 0.8; transform: translate(-50%,-50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.25); }
}

/* Eject Button */
.eject-btn {
  width: 104px; height: 104px; border-radius: 50%; border: none;
  cursor: pointer; background: var(--grad-brand); position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-med); box-shadow: 0 8px 32px rgba(124,58,237,0.55); z-index: 1;
}
.eject-btn:hover { transform: scale(1.08); box-shadow: var(--glow-btn); }
.eject-btn:active { transform: scale(0.95); }
.eject-btn.ejecting { animation: btnGlow 1.2s infinite alternate; }
@keyframes btnGlow {
  0%   { box-shadow: 0 8px 32px rgba(124,58,237,0.5); }
  100% { box-shadow: 0 8px 60px rgba(34,211,238,0.7), 0 0 100px rgba(124,58,237,0.3); }
}
.btn-icon { width: 36px; height: 36px; color: #fff; }
.btn-ripple {
  position: absolute; border-radius: 50%; width: 100%; height: 100%;
  background: rgba(255,255,255,0.15); opacity: 0;
}
.eject-btn.ejecting .btn-ripple { animation: btnRipple 1.6s infinite; }
@keyframes btnRipple {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Water droplets */
.water-droplets { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.drop { position: absolute; font-size: 0.95rem; opacity: 0; }
.water-droplets.active .drop { animation: dropFly 1.5s infinite; }
.water-droplets.active .drop:nth-child(1) { animation-delay: 0s;    --dx: 65px;  --dy: -85px; }
.water-droplets.active .drop:nth-child(2) { animation-delay: 0.3s;  --dx: -75px; --dy: -65px; }
.water-droplets.active .drop:nth-child(3) { animation-delay: 0.6s;  --dx: 85px;  --dy: 45px; }
.water-droplets.active .drop:nth-child(4) { animation-delay: 0.9s;  --dx: -55px; --dy: 75px; }
.water-droplets.active .drop:nth-child(5) { animation-delay: 1.2s;  --dx: 12px;  --dy: -95px; }
@keyframes dropFly {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(0.4); }
}

/* Status */
.status-indicator {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); flex-shrink: 0; transition: var(--t-med);
}
.status-dot.active { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: dotPulse 1s infinite; }
#statusText { font-size: 0.875rem; color: var(--text-2); }

/* Frequency selector */
.freq-label, .vol-label {
  font-size: 0.75rem; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.vol-label svg { width: 14px; height: 14px; }

.freq-options { display: flex; gap: 8px; }

.freq-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; color: var(--text-2);
  font-size: 0.875rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: var(--t-fast); line-height: 1.4;
}
.freq-btn span { font-size: 0.68rem; font-weight: 400; color: var(--text-3); }
.freq-btn:hover { border-color: rgba(124,58,237,0.4); color: var(--text-1); }
.freq-btn.active, .freq-btn[aria-pressed="true"] {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.5); color: #a78bfa;
}

/* Volume */
.vol-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vol-value { font-size: 0.875rem; font-weight: 700; color: #a78bfa; }

.volume-slider {
  width: 100%; height: 4px; border-radius: 4px;
  background: var(--border); outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--grad-brand); cursor: pointer;
  box-shadow: 0 0 12px rgba(124,58,237,0.6); transition: var(--t-fast);
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }

/* Timer */
.timer-section { display: flex; flex-direction: column; gap: 10px; }
.timer-display { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; font-family: 'Space Grotesk', monospace; }
.timer-display svg { width: 20px; height: 20px; color: #a78bfa; flex-shrink: 0; }
.timer-bar-wrap { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.timer-bar { height: 100%; width: 100%; background: var(--grad-brand); border-radius: 4px; transition: width 1s linear; }

/* Ejecting state card */
.ejector-card.ejecting {
  background: rgba(124,58,237,0.06) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.6), rgba(34,211,238,0.5)) border-box;
}

/* Stats row */
.stats-row { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700;
  background: var(--grad-brand); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

/* ================================================================
   Hero Visual (Phone Mockup)
   ================================================================ */
.hero-visual { flex-shrink: 0; display: flex; justify-content: center; align-items: center; }
.phone-mockup { position: relative; width: 240px; animation: phoneFloat 4.5s infinite ease-in-out; }
@keyframes phoneFloat { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-22px) rotate(3deg); } }

.phone-screen {
  width: 200px; height: 390px;
  background: linear-gradient(160deg, #0d0d2b, #1a1040);
  border-radius: 32px;
  border: 1.5px solid rgba(124,58,237,0.45);
  box-shadow: 0 24px 70px rgba(124,58,237,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 16px; gap: 18px; overflow: hidden; position: relative;
}
.phone-notch { width: 64px; height: 12px; background: var(--bg); border-radius: 0 0 12px 12px; position: absolute; top: 0; }
.phone-content { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.phone-waves { display: flex; flex-direction: column; gap: 8px; width: 78%; }
.p-wave { height: 3px; background: linear-gradient(90deg, transparent, #7c3aed, transparent); border-radius: 3px; animation: waveAnim 2s infinite ease-in-out; }
.p-wave:nth-child(2) { animation-delay: 0.3s; opacity: 0.65; }
.p-wave:nth-child(3) { animation-delay: 0.6s; opacity: 0.4; }
@keyframes waveAnim { 0%,100% { transform: scaleX(0.5); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }
.phone-text { font-size: 0.75rem; color: #a78bfa; font-weight: 600; letter-spacing: 0.05em; }
.phone-drops { font-size: 1.3rem; animation: dropsAnim 1.5s infinite; }
@keyframes dropsAnim { 0%,100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.6; transform: translateY(6px); } }
.phone-glow { position: absolute; bottom: -40px; width: 160px; height: 40px; background: rgba(124,58,237,0.3); filter: blur(22px); border-radius: 50%; }

/* ================================================================
   Section Base
   ================================================================ */
.section { position: relative; z-index: 1; padding: 100px 28px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 5px 14px;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700;
  color: #a78bfa; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px;
}
.section-desc { color: var(--text-2); max-width: 520px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

/* ================================================================
   How It Works
   ================================================================ */
.how-it-works { background: linear-gradient(180deg, transparent, rgba(124,58,237,0.03), transparent); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.step-card {
  background: var(--surface-1) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,211,238,0.08)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-lg); padding: 28px 22px;
  transition: var(--t-med); position: relative; overflow: hidden;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--glow-violet); }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.12em; margin-bottom: 16px; }
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ================================================================
   Tips & Compatibility
   ================================================================ */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tips-list { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.tip-item { display: flex; gap: 16px; align-items: flex-start; }
.tip-icon {
  font-size: 1.4rem; flex-shrink: 0; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--r-md);
}
.tip-item strong { display: block; font-weight: 700; margin-bottom: 4px; }
.tip-item p { color: var(--text-2); font-size: 0.875rem; line-height: 1.6; }

/* Glowing card */
.glowing-card {
  background: var(--surface-1) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.3), rgba(34,211,238,0.2)) border-box;
  border: 1px solid transparent; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: 0 0 80px rgba(124,58,237,0.1);
}
.gc-header { padding: 14px 20px; background: rgba(124,58,237,0.07); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.gc-dot { width: 10px; height: 10px; border-radius: 50%; }
.gc-dot.red { background: #ef4444; } .gc-dot.yellow { background: #f59e0b; } .gc-dot.green { background: #22c55e; }
.gc-title { font-size: 0.78rem; color: var(--text-3); margin-left: 4px; font-weight: 500; }

.compat-list { padding: 18px; display: flex; flex-direction: column; gap: 10px; list-style: none; }
.compat-item {
  display: flex; align-items: center; gap: 12px; font-size: 0.9rem;
  color: var(--text-2); padding: 10px 14px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); transition: var(--t-fast);
}
.compat-item:hover { border-color: rgba(124,58,237,0.35); color: var(--text-1); }
.compat-icon { font-size: 1.1rem; }

/* ================================================================
   Tools Section
   ================================================================ */
.tools-section { background: linear-gradient(180deg, transparent, rgba(99,102,241,0.03), transparent); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.tool-card {
  background: var(--surface-1) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.15), rgba(34,211,238,0.08)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-lg); padding: 28px 22px; position: relative;
  transition: var(--t-med); display: flex; flex-direction: column; gap: 12px;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--glow-violet); }
.tool-card.active-tool {
  background: rgba(124,58,237,0.08) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.5), rgba(34,211,238,0.4)) border-box;
}
.tool-badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--grad-brand); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-pill); letter-spacing: 0.04em;
}
.tool-icon { font-size: 2rem; }
.tool-card h3 { font-size: 1rem; font-weight: 700; }
.tool-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; flex: 1; }
.tool-tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-pill); font-size: 0.68rem; color: #10b981; font-weight: 600; width: fit-content;
}
.tool-btn {
  padding: 10px 16px; background: transparent;
  border: 1px solid rgba(124,58,237,0.4); border-radius: var(--r-md);
  color: #a78bfa; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: var(--t-fast); font-family: 'Inter', sans-serif; width: fit-content;
}
.tool-btn:hover { background: rgba(124,58,237,0.15); border-color: var(--violet); color: var(--text-1); }
.tool-coming { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }

/* ================================================================
   SEO Content Section
   ================================================================ */
.seo-content { padding-top: 40px; padding-bottom: 60px; }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.seo-block {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
}
.seo-block h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.seo-block p { color: var(--text-2); font-size: 0.9rem; line-height: 1.85; margin-bottom: 14px; }
.seo-block strong { color: var(--text-1); font-weight: 600; }

/* ================================================================
   FAQ Section
   ================================================================ */
.faq-grid { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface-1) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.1), transparent) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: var(--t-fast);
}
.faq-item:hover { box-shadow: 0 0 0 1px rgba(124,58,237,0.25); }
.faq-item.open {
  background: rgba(124,58,237,0.06) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.4), rgba(34,211,238,0.2)) border-box;
}
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; gap: 16px; }
.faq-q span { font-weight: 600; font-size: 0.95rem; }
.faq-arrow { width: 22px; height: 22px; color: var(--text-3); flex-shrink: 0; transition: var(--t-fast); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: #a78bfa; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p { padding: 0 22px 20px; color: var(--text-2); font-size: 0.9rem; line-height: 1.75; }

/* ================================================================
   Footer
   ================================================================ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 64px 28px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 52px; }
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 16px; text-decoration: none; color: var(--text-1);
}
.footer-brand p { color: var(--text-2); font-size: 0.875rem; line-height: 1.7; }
.footer-links { display: flex; gap: 56px; }
.footer-col h3 {
  font-size: 0.72rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.875rem; transition: var(--t-fast); }
.footer-col a:hover { color: var(--text-1); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; }
.footer-bottom p { color: var(--text-3); font-size: 0.875rem; }

/* ================================================================
   Toast
   ================================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(7, 7, 30, 0.95);
  border: 1px solid rgba(124,58,237,0.45); border-radius: var(--r-pill);
  padding: 14px 24px; display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.875rem; backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease);
  z-index: 9999; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ================================================================
   Page Hero (sub-pages)
   ================================================================ */
.page-hero {
  position: relative; z-index: 1;
  text-align: center; padding: 140px 28px 80px;
  max-width: 700px; margin: 0 auto;
}
.page-hero-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-hero p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 500px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 0.825rem; margin-bottom: 40px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  padding: 0 28px;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: var(--t-fast); }
.breadcrumb a:hover { color: #a78bfa; }
.breadcrumb span { color: var(--text-3); }

/* ================================================================
   Tool Page Card (sub-pages main card)
   ================================================================ */
.tool-page-section { position: relative; z-index: 1; padding: 0 28px 80px; }
.tool-page-card {
  max-width: 760px; margin: 0 auto;
  background: var(--surface-1) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.35), rgba(34,211,238,0.2)) border-box;
  border: 1px solid transparent; border-radius: var(--r-xl);
  padding: 40px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

/* Channel buttons (sound-test.html) */
.channel-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; }
.channel-btn {
  flex: 1; max-width: 160px; padding: 20px 12px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer; color: var(--text-2);
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700;
  transition: var(--t-med); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.channel-btn .ch-icon { font-size: 2rem; }
.channel-btn .ch-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--text-3); }
.channel-btn:hover { border-color: rgba(124,58,237,0.4); color: var(--text-1); transform: translateY(-3px); }
.channel-btn.ch-active {
  background: rgba(124,58,237,0.15) padding-box,
    linear-gradient(135deg, rgba(124,58,237,0.6), rgba(34,211,238,0.4)) border-box;
  border: 1px solid transparent; color: var(--text-1);
  box-shadow: 0 0 30px rgba(124,58,237,0.3);
}

/* Stereo meter */
.stereo-meter { display: flex; gap: 16px; align-items: flex-end; justify-content: center; height: 80px; margin-bottom: 28px; }
.meter-channel { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.meter-label { font-size: 0.7rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.meter-bar-wrap { width: 40px; height: 60px; background: var(--surface-2); border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; }
.meter-bar-fill { width: 100%; height: 0%; border-radius: 4px; background: var(--grad-brand); transition: height 0.05s; }

/* Canvas waveform (tone-generator.html) */
.wave-canvas-wrap {
  width: 100%; background: rgba(0,0,0,0.3); border-radius: var(--r-md);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 28px;
}
#waveCanvas { display: block; width: 100%; height: 140px; }

/* Frequency display */
.freq-display-box {
  text-align: center; margin-bottom: 24px;
  padding: 24px; background: var(--surface-1); border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.freq-hz {
  font-family: 'Space Grotesk', monospace; font-size: 3rem; font-weight: 800;
  background: var(--grad-brand); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}
.freq-note { font-size: 0.875rem; color: var(--text-3); margin-top: 6px; font-weight: 500; }

/* Waveform type buttons */
.wave-btns { display: flex; gap: 8px; }
.wave-btn {
  flex: 1; padding: 10px 8px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer; color: var(--text-2);
  font-size: 0.825rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: var(--t-fast); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.wave-btn span { font-size: 0.7rem; color: var(--text-3); }
.wave-btn:hover { border-color: rgba(124,58,237,0.4); color: var(--text-1); }
.wave-btn.active {
  background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.5); color: #a78bfa;
}

/* Preset buttons */
.preset-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-btn {
  padding: 7px 14px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-pill); cursor: pointer; color: var(--text-2);
  font-size: 0.8rem; font-weight: 500; font-family: 'Inter', sans-serif;
  transition: var(--t-fast);
}
.preset-btn:hover { border-color: rgba(124,58,237,0.4); color: var(--text-1); background: var(--surface-2); }
.preset-btn.active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.5); color: #a78bfa; }

/* Section sub-label */
.sub-label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px; display: block;
}

/* Big play button (sub pages) */
.play-btn {
  width: 90px; height: 90px; border-radius: 50%; border: none;
  cursor: pointer; background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; transition: var(--t-med);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5); position: relative;
}
.play-btn:hover { transform: scale(1.1); box-shadow: var(--glow-btn); }
.play-btn svg { width: 32px; height: 32px; color: #fff; }
.play-btn.playing { animation: btnGlow 1.2s infinite alternate; }
.play-btn-ripple { position: absolute; border-radius: 50%; width: 100%; height: 100%; background: rgba(255,255,255,0.15); opacity: 0; }
.play-btn.playing .play-btn-ripple { animation: btnRipple 1.6s infinite; }

/* FAQ page category header */
.faq-category-header {
  border-left: 3px solid var(--violet); padding-left: 16px;
  margin: 44px 0 20px;
}
.faq-category-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.faq-category-header p { font-size: 0.875rem; color: var(--text-2); }

/* FAQ page search */
.faq-search-wrap {
  max-width: 500px; margin: 0 auto 48px; position: relative;
}
.faq-search {
  width: 100%; padding: 14px 20px 14px 48px;
  background: var(--surface-1); border: 1px solid var(--border-md);
  border-radius: var(--r-pill); color: var(--text-1);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  outline: none; transition: var(--t-fast);
}
.faq-search:focus { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.faq-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 1rem; pointer-events: none;
}

/* Info blocks on sub-pages */
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto 60px; }
.info-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px; text-align: center;
}
.info-card .info-icon { font-size: 2rem; margin-bottom: 10px; }
.info-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }

/* Legal content */
.legal-section { position: relative; z-index: 1; padding: 0 28px 100px; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700;
  color: var(--text-1); margin: 40px 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-2); line-height: 1.85; margin-bottom: 14px; font-size: 0.925rem; }
.legal-content ul { color: var(--text-2); padding-left: 22px; line-height: 2.1; margin-bottom: 14px; font-size: 0.925rem; }
.legal-content strong { color: var(--text-1); font-weight: 600; }
.legal-content a { color: #a78bfa; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
  .steps-grid, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; text-align: center; gap: 48px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .ejector-card { max-width: 100%; }
  .hero-visual { order: -1; }
  .seo-grid { grid-template-columns: 1fr; gap: 28px; }
  .tips-grid { grid-template-columns: 1fr; gap: 48px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 110px 20px 60px; }
  .section { padding: 70px 20px; }
  .steps-grid, .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 28px; }
  .stats-row { flex-wrap: wrap; justify-content: center; }
  .freq-options { flex-direction: column; }
  .phone-mockup { display: none; }
  .channel-btns { flex-direction: column; align-items: center; }
  .channel-btn { max-width: 100%; width: 100%; flex-direction: row; justify-content: center; gap: 12px; }
  .wave-btns { flex-wrap: wrap; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .ejector-card, .tool-page-card { padding: 24px 18px; }
  .freq-hz { font-size: 2.2rem; }
}
