/* ═══════════════════════════════════════════════════════════════════════════
   PhosphorVox — Professional Pro-Audio Design System
   
   Color palette:
     Background:   #05070a (deep obsidian)
     Surface:      #0a1012 (panel)
     Surface-2:    #0d1518 (elevated)
     Border:       rgba(34, 255, 136, 0.12)
     Phosphor:     #22ff88 (P31 emerald)
     Amber:        #ffaa22 (warning / accent)
     Text:         #e0f0e8
     Muted:        #7a9b8a
     Dim:          #4a6a58
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #05070a;
  --surface: #0a1012;
  --surface-2: #0d1518;
  --border: rgba(34, 255, 136, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --phosphor: #22ff88;
  --phosphor-dim: rgba(34, 255, 136, 0.15);
  --amber: #ffaa22;
  --amber-dim: rgba(255, 170, 34, 0.12);
  --text: #e0f0e8;
  --muted: #7a9b8a;
  --dim: #4a6a58;
  --danger: #ff5555;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 180ms ease;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--phosphor); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
p { max-width: 65ch; }
.eyebrow { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--amber); margin-bottom: 8px; }
.note { color: var(--dim); font-size: 0.85rem; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { width: min(1200px, calc(100vw - 48px)); margin: 0 auto; }
.container-wide { width: min(1440px, calc(100vw - 48px)); margin: 0 auto; }

/* ── Persistent Navigation ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; height: 56px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--phosphor);
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--phosphor), var(--amber));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--bg); font-weight: 800;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
  color: var(--muted); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--phosphor); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
  min-height: 40px; text-decoration: none;
}
.btn:hover { border-color: var(--phosphor); background: var(--phosphor-dim); color: var(--text); }
.btn-primary {
  background: var(--phosphor); color: var(--bg); border-color: var(--phosphor);
  font-weight: 700;
}
.btn-primary:hover { background: #1aee7a; border-color: #1aee7a; }
.btn-ghost { border-style: dashed; border-color: var(--dim); color: var(--muted); }
.btn-ghost:hover { border-color: var(--phosphor); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; min-height: 32px; }

/* ── Panels / Cards ────────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border); box-shadow: 0 0 24px rgba(34,255,136,0.06); }

/* ── Grid Layouts ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Section Spacing ───────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-head { margin-bottom: 40px; }
.section-head p.eyebrow { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 8px; }
.section-head .subtitle { color: var(--muted); font-size: 1.05rem; max-width: 55ch; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--dim);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--dim); font-size: 0.82rem; }
.footer-links a:hover { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-text { text-align: left; }
.hero h1 {
  margin: 0 0 20px;
  max-width: 18ch;
  background: linear-gradient(135deg, var(--text) 0%, var(--phosphor) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-3d-wrap { position: relative; min-height: 320px; }
.hero-viewer3d {
  width: 100%; height: 360px;
  border: 1px solid rgba(34,255,136,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #05070a;
  box-shadow: 0 0 40px rgba(34,255,136,0.04), inset 0 0 30px rgba(34,255,136,0.02);
}
.hero-viewer3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-viewer3d-fallback {
  width: 100%; height: 360px;
  border: 1px solid rgba(34,255,136,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #05070a;
  display: flex; align-items: center; justify-content: center;
}
.hero-viewer3d-fallback canvas { display: block; width: 100%; height: 100%; }

/* ── Spectrogram Card ──────────────────────────────────────────────────────── */
.spectrogram-card {
  background: #020305;
  border: 1px solid rgba(34,255,136,0.2);
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--phosphor);
  overflow-x: auto;
  margin: 20px 0;
}

/* ── Pillars ───────────────────────────────────────────────────────────────── */
.pillar-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--phosphor-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.pillar-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pillar-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ── Audio / Video Showcase ────────────────────────────────────────────────── */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.showcase-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase-visual {
  height: 160px;
  background: linear-gradient(135deg, rgba(34,255,136,0.06), rgba(255,170,34,0.04));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--phosphor);
}
.showcase-info { padding: 16px; }
.showcase-info h4 { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 0.95rem; margin-bottom: 4px; }
.showcase-info p { color: var(--dim); font-size: 0.82rem; }

/* ── CTA Section ───────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin: 0 auto 28px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: PLAYGROUND (Studio)
   ═══════════════════════════════════════════════════════════════════════════ */

.studio-layout {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 16px;
  min-height: calc(100vh - 56px - 80px);
  padding: 16px 0;
}
.studio-rack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
  padding: 16px;
}
.studio-viewport {
  display: flex; flex-direction: column; gap: 12px;
}
.viewer3d {
  flex: 1; min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(34,255,136,0.05), rgba(0,0,0,0.3));
  border: 1px solid var(--border-subtle);
}
.viewer3d canvas { display: block; width: 100%; height: 100%; }

#oscilloscope {
  width: 100%; height: 160px;
  border-radius: var(--radius);
  background: #020407;
  border: 1px solid var(--border-subtle);
  display: block;
}

/* ── Pads ──────────────────────────────────────────────────────────────────── */
.pad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pad {
  min-height: 72px; padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,255,136,0.06), rgba(255,170,34,0.03));
  color: var(--text); text-align: left; cursor: pointer;
  transition: all var(--transition);
}
.pad:hover, .pad:focus-visible {
  border-color: rgba(34,255,136,0.4);
  box-shadow: 0 0 16px rgba(34,255,136,0.1);
  transform: translateY(-1px);
}
.pad strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.pad span { display: block; font-size: 0.78rem; color: var(--dim); }

/* ── Telemetry / Code blocks ───────────────────────────────────────────────── */
.telemetry {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: #020407;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 80px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.log {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: #020407;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 160px;
  max-height: 300px;
  overflow-y: auto;
}

/* ── Rack Sections ─────────────────────────────────────────────────────────── */
.rack-section { margin-bottom: 20px; }
.rack-section h4 {
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.rack-section label {
  display: grid; gap: 4px; margin-bottom: 10px;
  color: var(--muted); font-size: 0.82rem;
}
.rack-section select, .rack-section input[type="text"], .rack-section input[type="password"] {
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #020407; color: var(--text);
  font-size: 0.85rem;
}
.rack-section input[type="range"] {
  width: 100%; accent-color: var(--phosphor);
}
.rack-section .note { font-size: 0.78rem; margin-top: 4px; }

/* ── Transport Bar ─────────────────────────────────────────────────────────── */
.transport-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; flex-wrap: wrap;
}
.transport-bar .btn { font-size: 0.82rem; padding: 6px 14px; min-height: 34px; }

/* ── Oscilloscope Controls ─────────────────────────────────────────────────── */
.osc-controls {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
}
.osc-controls .btn-active { background: var(--phosphor); color: var(--bg); border-color: var(--phosphor); }

/* ── Live Mic ──────────────────────────────────────────────────────────────── */
.mic-indicator { font-size: 12px; transition: color 0.3s; }
.mic-indicator.recording { color: var(--danger); animation: mic-pulse 1s ease-in-out infinite; }
@keyframes mic-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.mic-meter {
  position: relative; height: 8px; background: var(--surface-2);
  border-radius: 4px; overflow: hidden; margin: 6px 0;
}
.mic-meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--phosphor) 0%, var(--amber) 70%, var(--danger) 100%);
  border-radius: 4px; transition: width 0.06s linear;
  box-shadow: 0 0 6px rgba(34,255,136,0.3);
}
.mic-meter-peak {
  position: absolute; top: 0; left: 0; width: 2px; height: 100%;
  background: #fff; transition: left 0.12s ease-out;
}

/* ── Session Buttons ───────────────────────────────────────────────────────── */
.session-btn {
  width: 100%; text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text); border-radius: 8px;
  padding: 10px 12px; cursor: pointer;
  transition: all var(--transition); font-size: 0.85rem;
}
.session-btn:hover { border-color: var(--border); background: rgba(255,255,255,0.04); }
.session-btn small { display: block; color: var(--dim); font-size: 0.78rem; margin-top: 2px; }

/* ── Phoneme / Preset Chips ────────────────────────────────────────────────── */
.chip-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip {
  padding: 5px 12px; border-radius: 999px; font-size: 0.8rem;
  border: 1px solid var(--border); background: rgba(34,255,136,0.04);
  color: var(--text); cursor: pointer; transition: all var(--transition);
}
.chip:hover { border-color: var(--phosphor); background: rgba(34,255,136,0.1); }
.chip-amber { border-color: rgba(255,170,34,0.25); background: rgba(255,170,34,0.04); }
.chip-amber:hover { border-color: var(--amber); background: rgba(255,170,34,0.1); }

/* ── IPA Input ─────────────────────────────────────────────────────────────── */
.ipa-input {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.3);
  color: var(--text); font-family: var(--font-mono); font-size: 1rem;
}
.ipa-input:focus { outline: none; border-color: var(--phosphor); box-shadow: 0 0 12px rgba(34,255,136,0.12); }
.ipa-input::placeholder { color: var(--dim); }

/* ── A/B Flip ──────────────────────────────────────────────────────────────── */
.ab-delta {
  padding: 8px 12px; background: var(--amber-dim);
  border: 1px solid rgba(255,170,34,0.2);
  border-radius: 8px; color: var(--amber);
  font-size: 0.82rem; margin-top: 8px;
}

/* ── Formant Radar ─────────────────────────────────────────────────────────── */
#formant-radar-canvas {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(2,4,7,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px; z-index: 200;
}
.modal-card {
  width: min(560px, 100%); background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 20px rgba(34,255,136,0.03);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-subtle); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.04); }
.doctor-card { width: min(640px, 100%); }

/* ── Safety Warning ────────────────────────────────────────────────────────── */
.safety-warning {
  margin-top: 8px; padding: 12px;
  background: rgba(255,85,85,0.06);
  border: 1px solid rgba(255,85,85,0.25);
  border-radius: 8px; color: var(--danger);
  font-size: 0.85rem; line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: TECHNOLOGY
   ═══════════════════════════════════════════════════════════════════════════ */
.tech-prose { max-width: 72ch; }
.tech-prose h3 { margin: 32px 0 12px; font-size: 1.2rem; }
.tech-prose p { margin-bottom: 16px; color: var(--muted); }
.tech-prose ul, .tech-prose ol { margin: 12px 0 16px 24px; color: var(--muted); }
.tech-prose li { margin-bottom: 6px; }
.tech-prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: rgba(34,255,136,0.06); padding: 2px 6px; border-radius: 4px;
}
.tech-prose strong { color: var(--text); }
.equation-block {
  font-family: var(--font-mono); font-size: 0.9rem;
  background: #020407; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 16px 20px;
  margin: 16px 0; color: var(--phosphor);
  overflow-x: auto;
}
.diagram-placeholder {
  height: 200px; background: var(--surface-2);
  border: 1px dashed var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 0.9rem; margin: 20px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: PRICING
   ═══════════════════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.price-card:hover { border-color: var(--border); }
.price-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255,170,34,0.2), 0 8px 40px rgba(255,170,34,0.06);
  position: relative;
}
.price-card.featured .pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--bg);
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700; color: var(--phosphor);
  margin: 16px 0 8px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; flex: 1; }
.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li {
  padding: 6px 0; color: var(--muted); font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
}
.price-card li:last-child { border-bottom: none; }
.price-card .btn { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE: FAQ
   ═══════════════════════════════════════════════════════════════════════════ */
.faq-category { margin-bottom: 32px; }
.faq-category h3 { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px; cursor: pointer;
  font-weight: 600; color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+'; display: inline-block; width: 20px;
  color: var(--phosphor); font-weight: 400;
}
.faq-item[open] summary::before { content: '−'; }
.faq-item p { padding: 0 18px 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ── Doctor Modal ──────────────────────────────────────────────────────────── */
.doctor-card { max-width: 640px; }
.doctor-report { font-size: 0.78rem; max-height: 280px; overflow-y: auto; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--phosphor); color: var(--bg);
  padding: 10px 24px; border-radius: 10px;
  font-weight: 700; font-size: 0.88rem; z-index: 300;
  animation: toast-in 0.3s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Audio Unlock Banner ───────────────────────────────────────────────────── */
.audio-unlock-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, rgba(34,255,136,0.1), rgba(255,170,34,0.06));
  border-top: 1px solid var(--border);
  padding: 10px 20px; text-align: center;
  color: var(--phosphor); font-size: 0.88rem; font-weight: 600;
  z-index: 50; backdrop-filter: blur(10px); cursor: pointer;
}
.audio-unlock-banner.hidden { display: none; }

/* ── Disclaimer ────────────────────────────────────────────────────────────── */
.disclaimer {
  margin-top: 10px; padding: 8px 12px;
  background: var(--amber-dim); border: 1px solid rgba(255,170,34,0.2);
  border-radius: 8px; color: var(--amber);
  font-size: 0.78rem; font-weight: 600;
}


/* ── Specimen Waveform Player ──────────────────────────────────────────────── */
.specimen-grid { display: grid; gap: 16px; }
.specimen-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: border-color var(--transition);
}
.specimen-card:hover { border-color: rgba(34,255,136,0.3); }
.specimen-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.specimen-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.specimen-desc { color: var(--muted); font-size: 0.85rem; }
.specimen-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.specimen-tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(34,255,136,0.06); border: 1px solid rgba(34,255,136,0.15);
  color: var(--phosphor);
}
.specimen-player { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.specimen-play {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--phosphor);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.specimen-play:hover { border-color: var(--phosphor); background: var(--phosphor-dim); }
.specimen-waveform {
  flex: 1; height: 48px; border-radius: 6px;
  background: #020407; border: 1px solid var(--border-subtle); display: block;
}
.specimen-time {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim);
  min-width: 90px; text-align: right; flex-shrink: 0;
}
.specimen-download { margin-top: 4px; }

/* ── Download Cards ────────────────────────────────────────────────────────── */
.download-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.download-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.download-card-header h3 { margin-bottom: 6px; }
.download-badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.download-card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.download-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
}

/* ── OS Tabs ───────────────────────────────────────────────────────────────── */
.os-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.os-tab {
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border-subtle); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.os-tab:hover { border-color: var(--border); color: var(--text); }
.os-tab.active { color: var(--phosphor); border-color: var(--phosphor); background: var(--phosphor-dim); }

/* ── Spec Grid ─────────────────────────────────────────────────────────────── */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-subtle); border-radius: 8px; overflow: hidden; margin-top: 16px;
}
.spec-cell { background: var(--surface-2); padding: 12px 14px; }
.spec-label { display: block; font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.spec-value { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); }

/* ── Spec Badge ────────────────────────────────────────────────────────────── */
.spec-badge {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(34,255,136,0.2); color: var(--phosphor);
  background: rgba(34,255,136,0.04);
}

/* ── Hero Status Pill ──────────────────────────────────────────────────────── */
.hero-status-pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem;
  background: rgba(34,255,136,0.06); border: 1px solid rgba(34,255,136,0.18);
  color: var(--phosphor); margin-bottom: 20px;
}

/* ── Video Preview Cards ───────────────────────────────────────────────────── */
.video-preview {
  background: #020407; border: 1px solid var(--border-subtle);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.video-preview-portrait { width: 180px; height: 320px; margin: 0 auto; }
.video-preview-landscape { width: 100%; height: 200px; }
.video-preview-inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: radial-gradient(circle, rgba(34,255,136,0.04), transparent); }
.video-preview-label {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .studio-layout { grid-template-columns: 1fr; }
  .studio-rack { max-height: 320px; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .video-preview-portrait { width: 140px; height: 250px; }
}
@media (max-width: 720px) {
  .container, .container-wide { width: calc(100vw - 24px); }
  .nav-inner { height: 48px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 0.78rem; }
  .hero { padding: 60px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: center; }
  .hero .subtitle { max-width: 50ch; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-3d-wrap { min-height: 260px; }
  .hero-viewer3d, .hero-viewer3d-fallback { height: 280px; }
  .section { padding: 48px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .pad-grid { grid-template-columns: 1fr; }
  .transport-bar { flex-wrap: wrap; }
  .transport-bar .btn { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .btn { min-height: 44px; }
  .modal-card { padding: 20px; border-radius: 16px; }
  .modal-close { width: 44px; height: 44px; }
}
@media (min-resolution: 2dppx) {
  #oscilloscope { image-rendering: crisp-edges; }
}