:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --surface: #14131a;
  --line: #2c2938;
  --text: #f3f3f6;
  --muted: #b2afbf;
  --accent: #b7a4ff;
  --primary: #6f5ccb;
  --green: #8fe0ae;
  font-family: Ubuntu, Cantarell, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 650px; z-index: -1;
  background: radial-gradient(ellipse 66% 70% at 50% 0%, #6f5ccb55, transparent 75%);
}
.wrap { width: min(1080px, calc(100% - 3rem)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { color: var(--muted); line-height: 1.65; }
h1, h2, h3, p { margin-block: 0; }
h1, h2 { line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 5vw, 3.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
.site-header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.65rem; font-weight: 700; letter-spacing: -.04em; }
.wave { color: var(--accent); display: inline-flex; justify-content: center; align-items: center; gap: 3px; width: 36px; height: 36px; background: #17151f; border: 1px solid #302747; border-radius: 11px; }
.wave i { width: 2px; height: 8px; border-radius: 2px; background: currentColor; }
.wave i:nth-child(2), .wave i:nth-child(4) { height: 12px; }
.wave i:nth-child(3) { height: 18px; }
.wave.small { width: 24px; height: 24px; gap: 2px; border-radius: 7px; }
.wave.small i { transform: scaleY(.7); }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; }
nav { color: var(--muted); font-size: .9rem; }
nav a:hover, .footer a:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3b364b; border-radius: .7rem; padding: .7rem 1.1rem; font-weight: 600; text-align: center; }
.button:hover { background: #211d32; }
.button.primary { background: var(--primary); border-color: transparent; color: white; }
.button.primary:hover { background: #725dce; }
.hero { text-align: center; padding: clamp(2.8rem, 7vw, 5.5rem) 0 3.3rem; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.1rem); background: linear-gradient(#fff 33%, #c5b9fa); color: transparent; background-clip: text; }
.hero-copy p, .intro { max-width: 41rem; font-size: 1.15rem; }
.hero-copy p { margin: 1.4rem auto; }
.hero .actions, .download .actions { justify-content: center; }
.hero .button, .download .button { padding: .9rem 1.4rem; }
.preview { position: relative; max-width: 950px; margin: 3.7rem auto 0; }
.board { margin: 0; overflow: hidden; text-align: left; border: 1px solid #332e46; border-radius: 1.1rem; background: #0e0d13; box-shadow: 0 0 115px #765bd333, 0 16px 50px #0007; }
.titlebar { padding: .6rem .9rem; background: #15131d; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.titlebar h2 { display: flex; align-items: center; gap: .5rem; font-size: .95rem; letter-spacing: 0; }
.board-body { padding: clamp(.7rem, 2.2vw, 1.35rem); }
#demo-help { margin-bottom: .9rem; font-size: .9rem; }
.pads { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; }
.pad, .demo-editor { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.pad { position: relative; min-width: 0; display: grid; border-radius: .8rem; }
.pad-trigger, .pad-options, .demo-editor button { font: inherit; color: inherit; cursor: pointer; }
.pad-trigger {
  min-height: 6rem; min-width: 0; display: grid; gap: .3rem; align-content: space-between;
  padding: .65rem; background: transparent; border: 0; border-radius: inherit; text-align: left;
}
.pad-meta { display: flex; align-items: center; justify-content: space-between; padding-right: 2.2rem; gap: .25rem; }
.pad:hover { border-color: #7563a8; }
.pad-options {
  position: absolute; top: .35rem; right: .35rem; width: 2rem; min-height: 2rem; padding: 0;
  border-radius: .45rem; border: 1px solid var(--line); background: #1c1a25;
}
.pad-options:hover, .demo-volume summary:hover { background: #302645; }
.pad-meta kbd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad.on { background: linear-gradient(135deg,#1a1730,#272040); border-color: var(--accent); }
.pad.on::after {
  content: ""; position: absolute; pointer-events: none; inset: auto 0 0; height: 4px;
  border-radius: 0 0 .8rem .8rem; background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .pad.on::after { transform-origin: left; transform: scaleX(var(--progress, 0)); }
}
.demo-volume { position: relative; }
.demo-volume summary {
  display: block; list-style: none; cursor: pointer; padding: .4rem .65rem;
  border: 1px solid var(--line); border-radius: .5rem;
}
.demo-volume summary::-webkit-details-marker { display: none; }
.demo-volume[open] {
  display: grid; gap: .4rem; background: var(--surface); padding: .5rem;
  border-radius: .65rem; position: absolute; right: .9rem; top: .35rem; z-index: 2;
  box-shadow: 0 6px 24px #0009;
}
.titlebar { min-height: 3.1rem; position: relative; }
.demo-volume label, .demo-editor label { display: flex; justify-content: space-between; gap: 1rem; }
.demo-volume input, .demo-editor input { width: 100%; accent-color: var(--accent); }
.demo-editor { width: min(23rem, calc(100% - 2rem)); border-radius: 1rem; padding: 1.25rem; }
.demo-editor::backdrop { background: #08060bcc; }
.demo-editor form { display: grid; gap: .8rem; }
.demo-editor form > button { justify-self: end; }
.demo-shortcut > span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.demo-shortcut-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.demo-shortcut-actions button { padding: .4rem .65rem; font-size: .88rem; }
#demo-shortcut-feedback:not(:empty) { margin-top: .4rem; font-size: .88rem; color: var(--accent); }
.board :is(button, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#demo-message { margin-top: .75rem; color: var(--accent); }
.pad small { color: var(--muted); }
.sound-icon, .feature-icon { color: var(--accent); font-size: 1.25rem; }
kbd { font: .8rem system-ui, sans-serif; border: 1px solid #3a354a; border-radius: .35rem; padding: .15rem .4rem; background: #1c1a25; }
.benchmark-note { display: inline-block; margin-top: .8rem; color: var(--accent); font-size: .85rem; }
.benchmark-note:hover, .text-link:hover { text-decoration: underline; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); max-width: 860px; margin: 2.6rem auto .9rem; }
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: .35rem; padding: 0 .5rem; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats dt { color: var(--muted); font-size: .9rem; }
.hero-stats dd { margin: 0; color: var(--accent); font-weight: 700; font-size: clamp(1.4rem, 4.4vw, 2.65rem); letter-spacing: -.045em; }
.hero-stats small { font-size: .55em; letter-spacing: 0; }
.small-print { font-size: .86rem; }
.section { border-top: 1px solid #201d2a; padding: clamp(3.5rem, 8vw, 6rem) 0; scroll-margin-top: 1rem; }
.eyebrow { color: var(--accent); font-size: .9rem; font-weight: 700; margin-bottom: .65rem; }
.feature-grid, .performance-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.card, .steps li { border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; padding: clamp(1.15rem, 3vw, 1.75rem); }
.card p, .steps p { margin-top: .5rem; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #221c35; border-radius: .65rem; margin-bottom: .95rem; }
.waveform, .mix, .chips { margin-top: 1.2rem; }
.waveform { display: flex; height: 60px; align-items: center; justify-content: center; gap: 5px; background: #110e19; border-radius: .6rem; }
.waveform i { width: 5px; height: 30%; border-radius: 8px; background: #ad96ff; }
.waveform i:nth-child(3n) { height: 65%; }
.waveform i:nth-child(4n) { height: 88%; }
.waveform i:nth-child(5n) { height: 46%; }
.mix { display: grid; gap: .4rem; }
.mix span { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.mix b { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span { background: #231c36; border-radius: .4rem; color: #ded2ff; padding: .25rem .55rem; font-size: .85rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; }
.steps li::before { counter-increment: step; content: counter(step); display: block; color: var(--accent); font-weight: 700; margin-bottom: .75rem; }
.performance { background: radial-gradient(ellipse at 50% 100%, #1b142c, transparent 70%); }
.intro { margin-top: 1rem; }
.metric { display: flex; flex-direction: column; gap: .5rem; }
.metric span { color: var(--muted); }
.metric strong { color: var(--accent); font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.metric strong small { font-size: .55em; letter-spacing: -.02em; }
.metric.memory strong { color: var(--green); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0 .9rem; border: 1px solid var(--line); border-radius: .85rem; background: #111017; }
table { border-collapse: collapse; min-width: 535px; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
caption { padding: .8rem 1rem; text-align: left; font-weight: 600; }
th, td { border-top: 1px solid var(--line); padding: .7rem 1rem; }
thead th { color: var(--muted); font-size: .85rem; }
.performance .actions { margin-top: 1.35rem; }
.text-link { color: var(--accent); font-weight: 500; }
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 1.5rem; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--accent); }
details p { margin: .6rem 0 .1rem 1.1rem; }
.download { text-align: center; background: radial-gradient(ellipse 75% 95% at 50% 100%, #2d204f, transparent); }
.download p { margin: .85rem auto; }
.download .actions { margin-top: 1.35rem; }
.footer { padding-block: 1.35rem; }
.footer-identity p { margin-top: .5rem; font-size: .9rem; }
.footer-identity p a { color: var(--accent); text-decoration: underline; }
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; padding-top: .9rem; }
  .site-header nav { width: 100%; order: 1; gap: .9rem; padding-block: .15rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 530px) {
  .wrap { width: calc(100% - 2rem); }
  .preview { margin-top: 2.1rem; }
  .pads { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid, .performance-grid { grid-template-columns: 1fr; }
  .hero-stats dt { font-size: .77rem; }
  .hero-stats > div { padding-inline: .3rem; }
  .site-header .button { padding-inline: .75rem; font-size: .85rem; }
  .footer { align-items: flex-start; flex-direction: column; }
}
