:root {
  --bg: #08080a;
  --bg-2: #0d0d11;
  --panel: #101014;
  --panel-2: #14141a;
  --line: #212127;
  --line-2: #2c2c34;
  --text: #e9e9ee;
  --muted: #9a9aa6;
  --dim: #6b6b78;
  --font: -apple-system, "SF Pro Display", "Avenir Next", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -10%, rgba(90, 96, 140, 0.14), transparent 60%),
    radial-gradient(50vw 50vw at 8% 20%, rgba(70, 90, 110, 0.08), transparent 60%),
    var(--bg);
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.stack .badge {
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 500;
}

.links {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
}

.links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.links a:hover { color: var(--text); border-color: var(--line-2); }

.open-to {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
}

main { max-width: 1080px; margin: 0 auto; padding: 24px; }

.section { margin-bottom: 72px; }

.section-title {
  margin: 0 0 28px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-transform: uppercase;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.feature:first-of-type { border-top: none; }

.feature .info { min-width: 0; }

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature .tagline {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature .desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.chip {
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
}

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

.actions a {
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s;
}
.actions a:hover { border-color: var(--text); }

.actions .demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 8px;
}

/* Demo panes */
.demo {
  background: #050507;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.demo-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line-2);
}

.demo-bar .title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.demo-body { padding: 18px; }

.demo canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #050507;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: #1a1a22; border-color: #3a3a46; }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: transparent; }

.readout {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  min-height: 16px;
}

/* Grid of smaller things */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.15s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.card .meta { margin-bottom: 2px; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  color: var(--dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 24px; }
}
/* --- Premium demo shell (light "faceplate" on the dark page) --- */
.premium-demo {
  --accent: #9d8bc2;
  background: #0d0d11;
  color: #e9e9ee;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 16px 16px 14px;
  margin-top: 12px;
}
.synth.premium-demo { display: flex; flex-direction: column; gap: 12px; }

.pbtn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  color: #e9e9ee;
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.pbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55); }
.pbtn:active { transform: translateY(0) scale(0.98); }
.pbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbtn.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 24%, #141419); }
.pbtn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.ripple {
  position: absolute;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.35;
  transform: scale(0);
  pointer-events: none;
  animation: ripp 0.62s ease-out;
}
@keyframes ripp { to { transform: scale(2.4); opacity: 0; } }

.waves { display: flex; gap: 8px; flex-wrap: wrap; }
.wave { display: flex; align-items: center; gap: 8px; }
.wave canvas.mini-wave { display: block; }

.keys { position: relative; height: 64px; user-select: none; touch-action: none; }
.key { position: absolute; top: 0; bottom: 0; border-radius: 0 0 5px 5px; }
.key.white { background: #cfd2d8; border: 1px solid rgba(0, 0, 0, 0.4); }
.key.white.on { background: color-mix(in srgb, var(--accent) 40%, #cfd2d8); }
.key.black { height: 62%; background: #23262d; border-radius: 0 0 4px 4px; z-index: 2; }
.key.black.on { background: var(--accent); }

.scopes { display: flex; flex-direction: column; gap: 8px; }
.scopes canvas { width: 100%; height: auto; background: #09090d; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }

.melodies { display: flex; gap: 8px; flex-wrap: wrap; }
.knobs { display: flex; gap: 20px; flex-wrap: wrap; }
.knobs label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #9a9aa6; font-weight: 600; }
.knobs input[type="range"] { accent-color: var(--accent); width: 170px; }
.readout { font-family: var(--mono); font-size: 12px; color: #9a9aa6; }

.synth.v2 { gap: 10px; }
.premium-demo .scope { width: 100%; height: auto; background: #09090d; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }
.row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.chip { padding: 6px 12px; font-size: 12px; }

.synth.v3 .vrow { display: flex; gap: 12px; align-items: stretch; }
.vkeys { display: flex; flex-direction: column; width: 58px; gap: 2px; }
.vkeys .key { position: relative; top: auto; bottom: auto; border-radius: 6px; }
.vkeys .key.white { background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); }
.vkeys .key.black { height: auto; flex: 1; background: #23262d; margin-right: 20px; z-index: auto; border-radius: 6px; }
.vkeys .key.white.on, .vkeys .key.black.on { background: var(--accent); }
.figures { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.figures canvas { width: 100%; height: auto; background: #09090d; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; }
.synth.v3 .wavefig { height: 150px; }

.synth.v4 .scope { width: 100%; height: auto; background: linear-gradient(180deg, #0a0a0e, #060608); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.piano { position: relative; height: 46px; user-select: none; touch-action: none; }
.pkey { position: absolute; top: 0; bottom: 0; border-radius: 0 0 6px 6px; cursor: pointer; }
.pkey.white { background: linear-gradient(180deg, #e7eaee, #b9bdc5); border: 1px solid rgba(0, 0, 0, 0.45); transition: background 0.08s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.pkey.white.on, .pkey.white:active { background: color-mix(in srgb, var(--accent) 38%, #cfd2d8); }
.pkey.black { height: 60%; background: linear-gradient(180deg, #09090c, #1a1d24); z-index: 2; border-radius: 0 0 4px 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.pkey.black.on { background: var(--accent); }

.band.premium-demo { --accent: #00c8ff; }
.band-head { display: flex; flex-direction: column; gap: 3px; }
.band-kicker { font-family: var(--mono); font-weight: 800; letter-spacing: 0.24em; font-size: 15px; color: #fff; }
.band-single { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.band-mid { display: flex; align-items: center; gap: 16px; }
.band-disc { flex: 0 0 96px; width: 96px; height: 96px; background: #0a0a0e; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.band-eq { flex: 1; min-width: 0; width: 100%; height: 96px; background: #0a0a0e; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { display: inline-flex; align-items: center; gap: 8px; }
.plat span { opacity: 0.7; }
.tv-row { display: flex; }
.tvroom canvas { width: 100%; height: auto; background: #05060a; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; margin-top: 8px; }
.tv-ctrl { display: flex; gap: 8px; margin-top: 8px; }

.band.premium-demo { display: flex; flex-direction: column; gap: 12px; }
.band .tvrow { display: flex; align-items: center; gap: 8px; }
.tv { flex: 1; position: relative; border-radius: 12px; overflow: hidden; background: #05060a; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.tv::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.25) 2px, rgba(0, 0, 0, 0.25) 3px); }
.tv::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.85) 100%); }
.tv-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #05060a; }
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-screen .tv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tvbtn { flex: 0 0 auto; }
.game-btns { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.game-btns .pbtn { padding: 6px 12px; }
.tv-info { margin-top: 2px; font-family: var(--mono); font-size: 11px; color: #9a9aa6; }
.tv-info .tv-index { color: var(--accent); font-weight: 700; }
.tv-info .tv-label { color: #e9e9ee; }
