:root {
  --bg: #0a0a12;
  --card: #13131e;
  --card-2: #171724;
  --border: #23232f;
  --purple: #8b5cf6;
  --blue: #5b8def;
  --teal: #2fc9a8;
  --text: #f5f5fa;
  --text-2: #9a9ab0;
  --text-3: #5f5f72;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #5b8def 100%);
  --grad-hero: linear-gradient(135deg, #2a1f5c 0%, #1a2450 100%);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.18) 0%, rgba(91,141,239,0.10) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,18,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-right: auto;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #f2f2f5;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo-wrap.small { width: 26px; height: 26px; border-radius: 7px; }
.brand-logo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.brand-logo.small { transform: scale(1.35); }
.brand-name em { font-style: normal; color: var(--purple); }

.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Language switch ---------- */
.lang-switch { position: relative; margin-right: 4px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover { color: var(--text); border-color: #33333f; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lang-menu.open { display: block; }
.lang-menu li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
}
.lang-menu li:hover { background: var(--card-2); color: var(--text); }
.lang-menu li.active { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(139,92,246,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #3a3a48; }
.btn-outline {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--purple); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 72px 24px 40px; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  color: #c4b5fd;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
.grad-text {
  background: linear-gradient(135deg, #a78bfa, #5b8def 60%, #2fc9a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 22px; font-weight: 800; color: var(--text); }
.stat span { font-size: 12.5px; color: var(--text-3); }

/* ---------- Hero mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.mockup {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
/* Hero drop-zone: gradient card + faded edge waveform bars + centered
   file icon/name/meta, mirroring FileDropZone::paint() in the real plugin. */
.mockup-hero {
  position: relative;
  background: var(--grad-hero);
  border-radius: 12px;
  padding: 18px 16px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-bars {
  position: absolute;
  top: 0; bottom: 0;
  width: 45%;
  opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 3px, transparent 3px 6px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.5), transparent);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.5), transparent);
}
.hero-bars-left { left: 0; }
.hero-bars-right { right: 0; transform: scaleX(-1); }
.mockup-note-icon {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.mockup-filename { position: relative; font-weight: 700; font-size: 15px; }
.mockup-filemeta {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  color: #b7b7d6;
  margin-top: 8px;
}
.mockup-filemeta span:nth-of-type(1) { margin-right: 12px; }

/* Mode card: toggle + title/description + quality/transport controls row,
   mirroring the modeCard layout in PluginEditor::resized(). */
.mockup-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.mockup-mode-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mockup-mode-title { font-size: 13px; font-weight: 700; }
.mockup-mode-desc { font-size: 11px; line-height: 1.5; color: var(--text-2); margin: 0 0 10px 32px; }

.toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.toggle input { display: none; }
.toggle-track {
  width: 28px; height: 15px; border-radius: 999px;
  background: var(--purple);
  position: relative;
  display: inline-block;
}
.toggle-thumb {
  position: absolute; top: 1.5px; right: 1.5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
}

.mockup-controls-row {
  display: flex; align-items: center; gap: 4px;
  margin-left: 32px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.quality-caption { font-size: 8px; font-weight: 700; letter-spacing: .3px; color: var(--text-3); margin-right: 1px; flex-shrink: 0; }
.quality-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 6px; color: var(--text-2);
  flex-shrink: 0;
  white-space: nowrap;
}
.separate-btn {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--grad);
  border-radius: 7px; padding: 5px 9px;
  flex-shrink: 0;
  white-space: nowrap;
}
.play-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.transport-label { font-size: 10px; color: var(--text-3); margin-left: 1px; white-space: nowrap; flex-shrink: 0; }

.mockup-hq-row {
  display: flex; align-items: center; gap: 7px;
  margin-left: 32px;
  font-size: 11px; color: var(--text-2);
}
.mini-check {
  width: 13px; height: 13px; border-radius: 4px;
  border: 1.4px solid var(--purple);
  background: rgba(139,92,246,0.18);
}

/* Status block: progress bar + status text + GPU line, matching the
   statusBlock (progressBar/progressStatusLabel/gpuStatusLabel). */
.mockup-progress { margin-bottom: 12px; }
.mockup-progress-bar { height: 5px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin-bottom: 6px; }
.mockup-progress-fill { width: 62%; height: 100%; background: var(--grad); border-radius: 999px; animation: pulseWidth 2.8s ease-in-out infinite; }
@keyframes pulseWidth { 0%,100% { width: 45%; } 50% { width: 78%; } }
.mockup-status-text { display: block; font-size: 11.5px; color: var(--text-2); }
.mockup-gpu-text { display: block; font-size: 11px; color: #e0a030; margin-top: 2px; }

/* Stem rows: icon glyph + name/mute-solo + waveform + level meter + play,
   matching StemWaveformRow's layout and StemIcon.cpp's glyph shapes. */
.mockup-stems { display: flex; flex-direction: column; gap: 7px; }
.stem-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
}
.stem-icon {
  width: 32px; height: 32px; border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-vocal { background: rgba(139,92,246,0.20); color: var(--purple); }
.icon-drums { background: rgba(155,108,246,0.20); color: #9b6cf6; }
.icon-bass  { background: rgba(91,141,239,0.20); color: var(--blue); }
.icon-guitar{ background: rgba(47,201,160,0.20); color: #2fc9a0; }

.stem-info { display: flex; flex-direction: column; gap: 4px; width: 62px; flex-shrink: 0; }
.stem-name { font-size: 12px; font-weight: 700; }
.stem-ms { display: flex; gap: 3px; }
.ms-btn {
  font-size: 8.5px; font-weight: 700; color: var(--text-3);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 3px; padding: 1.5px 4px;
}

.stem-row .wave { height: 20px; flex: 1; min-width: 0; color: var(--text-3); position: relative; }
.stem-row:nth-child(1) .wave { color: var(--purple); }
.stem-row:nth-child(2) .wave { color: #9b6cf6; }
.stem-row:nth-child(3) .wave { color: var(--blue); }
.stem-row:nth-child(4) .wave { color: #2fc9a0; }

.stem-meter {
  width: 5px; height: 26px; border-radius: 3px;
  background: var(--card); border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.meter-fill { width: 100%; display: block; background: var(--grad); }

.stem-play {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Footer branding strip, matching the real "POWERED BY ..." footer line. */
.mockup-footer {
  display: flex; justify-content: space-between;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 9px; letter-spacing: .3px;
  color: var(--text-3);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 30px 24px 60px;
  text-align: center;
}
.trust-strip > span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.daw-list { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.daw-list span { font-size: 15px; font-weight: 700; color: var(--text-3); letter-spacing: .3px; }

/* ---------- Sections generic ---------- */
section { position: relative; z-index: 1; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; padding: 0 24px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 12px; }
.section-head p { font-size: 16px; color: var(--text-2); margin: 0; }

/* ---------- Features ---------- */
.features { padding: 100px 24px; }
.feature-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: #34344a; transform: translateY(-3px); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-purple { background: rgba(139,92,246,0.14); color: var(--purple); }
.icon-blue { background: rgba(91,141,239,0.14); color: var(--blue); }
.icon-teal { background: rgba(47,201,168,0.14); color: var(--teal); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }

/* ---------- How it works ---------- */
.how { padding: 40px 24px 110px; }
.how-steps {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: center;
  gap: 20px;
}
.how-step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 300px;
}
.how-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}
.how-step h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.how-step p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin: 0; }
.how-arrow { color: var(--text-3); font-size: 22px; padding-top: 40px; }

/* ---------- Compat ---------- */
.compat { padding: 0 24px 110px; }
.compat-inner {
  max-width: 1000px; margin: 0 auto;
  background: var(--grad-hero);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}
.compat-inner h2 { font-size: 26px; font-weight: 800; margin: 0 0 32px; }
.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compat-item {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px;
}
.compat-item strong { font-size: 16px; }
.compat-item span { font-size: 13px; color: #b7b7d6; }

/* ---------- Pricing ---------- */
.pricing { padding: 100px 24px; }
.pricing-grid {
  max-width: 820px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
}
.price-card-featured { border-color: rgba(139,92,246,0.5); background: linear-gradient(180deg, rgba(139,92,246,0.08), var(--card) 40%); }
.price-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.price-tag { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.price-card > p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0 0 18px; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex-grow: 1; }
.price-list li { font-size: 13.5px; color: var(--text-2); padding-left: 22px; position: relative; }
.price-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px;
  background: rgba(47,201,168,0.15);
  border: 1px solid var(--teal);
  border-radius: 50%;
}
.price-list li::after {
  content: "✓";
  position: absolute; left: 2.5px; top: 2px;
  font-size: 9px; color: var(--teal); font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq { padding: 0 24px 110px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-3);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 14px 0 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  max-width: 900px; margin: 0 auto 110px;
  padding: 64px 40px;
  text-align: center;
  background: var(--grad-hero);
  border: 1px solid var(--border);
  border-radius: 28px;
}
.final-cta h2 { font-size: 30px; font-weight: 800; margin: 0 0 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 24px; position: relative; z-index: 1; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.footer-copy { font-size: 12.5px; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { flex-direction: column; align-items: stretch; }
  .how-arrow { display: none; }
  .how-step { max-width: none; }
  .compat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
