/* ========================================================================
   VSTHost — landing page styles
   Dark, technical, pro-tool. Geist + JetBrains Mono.
   ====================================================================== */

:root {
  /* surfaces */
  --bg:        oklch(0.135 0.008 250);
  --bg-1:      oklch(0.165 0.009 250);
  --bg-2:      oklch(0.195 0.009 250);
  --bg-3:      oklch(0.235 0.010 250);
  --line:      oklch(0.30 0.010 250);
  --line-soft: oklch(0.235 0.010 250);

  /* text */
  --fg:        oklch(0.965 0.003 250);
  --fg-muted:  oklch(0.72 0.010 250);
  --fg-dim:    oklch(0.52 0.012 250);
  --fg-faint:  oklch(0.38 0.014 250);

  /* signal accents */
  --accent:    oklch(0.82 0.130 200);   /* cyan — matches app UI */
  --accent-ink: oklch(0.18 0.030 200);
  --cyan:      oklch(0.80 0.130 200);
  --amber:     oklch(0.84 0.165 78);
  --magenta:   oklch(0.72 0.200 340);
  --green:     oklch(0.82 0.170 145);
  --red:       oklch(0.70 0.220 25);

  /* layout */
  --maxw: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
  --density: 1;
  --gap-section: calc(120px * var(--density));

  /* type */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* === Layout primitives =============================================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--gap-section) 0;
  position: relative;
}

.section--tight {
  padding: calc(48px * var(--density)) 0;
}

.divider {
  height: 1px;
  background: var(--line-soft);
}

/* === Mono caption labels ============================================ */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero", "ss02";
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow--plain::before { display: none; }

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* === Headings ======================================================= */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(48px, 7.2vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 500;
}

.h-display em {
  font-style: normal;
  color: var(--accent);
}

.h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.h3 {
  font-size: 20px;
  letter-spacing: -0.012em;
  line-height: 1.25;
  font-weight: 500;
}

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* === Top nav ======================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.brand__mark {
  width: 34px; height: 22px;
  background: url('assets/sandyne-wave-v2.png') center / contain no-repeat;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
}

.brand__mark::before,
.brand__mark::after {
  content: none;
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--fg);
}

.brand__mark::before {
  transform: rotate(45deg) scale(0.7);
  border-color: var(--accent);
}

.brand__mark::after {
  border-color: var(--fg);
  border-radius: 2px;
}

.brand__name {
  letter-spacing: 0.22em;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
}

.brand__build {
  color: var(--fg-faint);
  font-size: 10px;
  letter-spacing: 0.10em;
  margin-left: 6px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
}

.nav__links a {
  font-size: 13.5px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--fg); }

.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* === Buttons ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--bg-1);
  border-color: var(--fg-dim);
}

.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 5px;
}

.btn__caret {
  width: 14px; height: 14px;
  display: inline-block;
  position: relative;
  top: 0;
}
.btn__caret::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2 v10 M4 8 l4 4 4-4" stroke="black" stroke-width="1.5" fill="none"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2 v10 M4 8 l4 4 4-4" stroke="black" stroke-width="1.5" fill="none"/></svg>') center / contain no-repeat;
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* === Hero =========================================================== */
.hero {
  padding-top: calc(80px * var(--density));
  padding-bottom: calc(40px * var(--density));
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
}

.hero__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: end;
}

@media (max-width: 920px) {
  .hero__top { grid-template-columns: 1fr; align-items: start; gap: 28px; }
}

.hero__headline {
  margin: 24px 0 0 0;
}

.hero__sub {
  margin-top: 28px;
  max-width: 46ch;
}

.hero__brand-art {
  position: relative;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  user-select: none;
  pointer-events: none;
}
.hero__brand-art img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin-bottom: -10px;
  filter: drop-shadow(0 0 28px oklch(0.7 0.18 320 / 0.18));
}
.hero__brand-art-name {
  font-family: 'Outfit', var(--font-sans);
  font-size: 38px;
  font-weight: 100;  /* Outfit Thin */
  letter-spacing: 22px;
  padding-left: 22px;
  color: var(--fg);
  line-height: 1;
}
.hero__brand-art-tag {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: oklch(0.78 0.005 250);
}

/* Fact row that replaces the old right-column meta grid */
.hero__facts {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 28px;
}
@media (max-width: 920px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__brand-art img { max-width: 380px; }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
}

.hero__meta {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__meta-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.hero__meta-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__platforms {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* Hero screenshot */
.hero__shot {
  margin-top: 56px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.04) inset,
    0 60px 120px -40px oklch(0 0 0 / 0.6),
    0 20px 40px -20px oklch(0 0 0 / 0.5);
}

.hero__shot-chrome {
  height: 32px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.hero__shot-dots {
  display: flex;
  gap: 6px;
  margin-right: 8px;
}
.hero__shot-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

.hero__shot-img {
  display: block;
  width: 100%;
  height: auto;
}

/* === Video frame (demo reel) ============================================ */
.video-frame {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.04) inset,
    0 60px 120px -40px oklch(0 0 0 / 0.6),
    0 20px 40px -20px oklch(0 0 0 / 0.5);
}
.video-frame__chrome {
  height: 32px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}
.video-frame__body {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}
.video-frame__body iframe,
.video-frame__body video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: black;
}

.hero__shot-body {
  /* aspect-ratio for the DAW screenshot placeholder */
  aspect-ratio: 16 / 9;
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, oklch(1 0 0 / 0.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, oklch(1 0 0 / 0.025) 23px 24px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
}

/* === Spec strip ===================================================== */
.specstrip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
}

.specstrip__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 88px;
}
@media (max-width: 880px) {
  .specstrip__inner { grid-template-columns: repeat(3, 1fr); height: auto; }
}

.specstrip__cell {
  border-right: 1px solid var(--line-soft);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.specstrip__cell:last-child { border-right: 0; }
@media (max-width: 880px) {
  .specstrip__cell { border-bottom: 1px solid var(--line-soft); padding: 16px 18px;}
}

.specstrip__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.specstrip__v {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.3;
}

/* === Section header =================================================== */
.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
}

.sec-head__title {
  margin-top: 14px;
}
.sec-head__copy {
  padding-bottom: 6px;
}

/* === Visual Mixer demo =============================================== */
.vmixer {
  background: var(--bg);
  position: relative;
}

.vmixer__wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
@media (max-width: 980px) {
  .vmixer__wrap { grid-template-columns: 1fr; }
}

/* === Visual Mixer real screenshot frame =============================== */
.vmixer-shot {
  margin: 0 0 40px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.04) inset,
    0 60px 120px -40px oklch(0 0 0 / 0.6),
    0 20px 40px -20px oklch(0 0 0 / 0.5);
}
.vmixer-shot__chrome {
  height: 36px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}
.vmixer-shot > img {
  display: block;
  width: 100%;
  height: auto;
  background: oklch(0.115 0.005 250);
}
.vmixer-shot__cap {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-1);
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.vmixer-shot__cap .mono {
  color: var(--accent);
  margin-right: 6px;
}

.vmixer__teaser-head {
  margin: 8px 0 24px;
}

.stage {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 100%, oklch(0.22 0.02 250 / 0.5), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 8.333% 10%;
}

.stage__axes {
  position: absolute;
  inset: 0;
}

.stage__axes::before,
.stage__axes::after {
  content: "";
  position: absolute;
  background: oklch(1 0 0 / 0.10);
}
.stage__axes::before { /* horizontal center */
  left: 0; right: 0; top: 50%; height: 1px;
}
.stage__axes::after { /* vertical center */
  top: 0; bottom: 0; left: 50%; width: 1px;
}

.stage__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  pointer-events: none;
}
.stage__label--l { left: 12px; top: 50%; transform: translateY(-50%); }
.stage__label--r { right: 12px; top: 50%; transform: translateY(-50%); }
.stage__label--t { top: 10px; left: 50%; transform: translateX(-50%); }
.stage__label--b { bottom: 10px; left: 50%; transform: translateX(-50%); }

.puck {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: grab;
  transition: box-shadow 0.15s ease, transform 0.05s ease;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 25%,
    color-mix(in oklch, var(--puck-c) 60%, white 30%),
    var(--puck-c) 70%);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.3),
    inset 0 -6px 12px oklch(0 0 0 / 0.25),
    0 6px 14px oklch(0 0 0 / 0.45),
    0 0 0 1px oklch(0 0 0 / 0.6);
  color: oklch(0.15 0.02 250);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
}
.puck:active { cursor: grabbing; transform: translate(-50%, -50%) scale(0.96); }

.puck__halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--puck-c) 40%, transparent);
  pointer-events: none;
}

.puck__trail {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--puck-c);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.vmixer__readout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vmixer__panel {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 8px;
  padding: 20px;
}
.vmixer__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tracklist__row {
  display: grid;
  grid-template-columns: 14px 1fr 56px 36px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}
.tracklist__row:last-child { border-bottom: 0; }
.tracklist__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--puck-c);
}
.tracklist__name { color: var(--fg); }
.tracklist__pan, .tracklist__vol {
  color: var(--fg-muted);
  text-align: right;
  font-feature-settings: "tnum";
}

.meter {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--accent) 70%, var(--red) 95%);
  width: 0%;
  transition: width 0.08s linear;
}

.meter--master {
  height: 8px;
}

/* === Editors row ===================================================== */
.editors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .editors { grid-template-columns: 1fr; }
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.editor-card__visual {
  aspect-ratio: 16/10;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.editor-card__visual--img {
  background: oklch(0.115 0.005 250);
}
.editor-card__visual--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.editor-card__body {
  padding: 22px 22px 26px;
}
.editor-card__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.editor-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.editor-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

/* Piano roll viz */
.viz-piano {
  position: absolute; inset: 0;
  background: var(--bg);
}
.viz-piano__keys {
  position: absolute; top: 0; bottom: 0; left: 0; width: 40px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
}
.viz-piano__key {
  flex: 1;
  border-bottom: 1px solid var(--line-soft);
}
.viz-piano__key.black {
  background: oklch(0.10 0.005 250);
}
.viz-piano__grid {
  position: absolute; top:0; bottom:0; left:40px; right:0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 8.33% 8.33%;
}
.viz-piano__note {
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  height: 7%;
  box-shadow: 0 0 8px color-mix(in oklch, var(--accent) 50%, transparent);
}
.viz-piano__head {
  position: absolute;
  top: 8px; left: 48px;
  display: flex; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Sample viz */
.viz-sample {
  position: absolute; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.viz-sample__ruler {
  height: 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  gap: 22px;
}
.viz-sample__wave {
  flex: 1;
  position: relative;
  padding: 14px 0;
}
.viz-sample__wave svg {
  width: 100%; height: 100%;
  display: block;
}
.viz-sample__sel {
  position: absolute;
  top: 0; bottom: 0;
  left: 30%; width: 25%;
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

/* Beats viz */
.viz-beats {
  position: absolute; inset: 0;
  background: var(--bg);
  padding: 14px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 6px;
}
.viz-beats__row {
  display: grid;
  grid-template-columns: 60px repeat(16, 1fr);
  gap: 3px;
  align-items: stretch;
  min-height: 0;
}
.viz-beats__name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  align-self: center;
}
.viz-beats__step {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  min-height: 0;
  align-self: stretch;
}
.viz-beats__step.on {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 6px color-mix(in oklch, var(--accent) 50%, transparent);
}
.viz-beats__step.beat {
  background: var(--bg-3);
}

/* === Instruments showcase ============================================ */

.inst-feature {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 1080px) { .inst-feature { grid-template-columns: repeat(2, 1fr); } }

.inst-feature__cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.inst-feature__cell:hover { border-color: var(--fg-dim); }

/* Terrain spans 4 columns at top */
.inst-feature__cell--big {
  grid-column: span 4;
}
@media (max-width: 1080px) {
  .inst-feature__cell--big { grid-column: span 2; }
}

.inst-feature__visual {
  background: oklch(0.115 0.005 250);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  flex: 1;
}
.inst-feature__visual img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.inst-feature__cell--big .inst-feature__visual {
  padding: 28px 22px;
}
.inst-feature__cell--big .inst-feature__visual img {
  max-height: 260px;
}

.inst-feature__copy {
  padding: 14px 18px 16px;
}
.inst-feature__name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg);
  letter-spacing: 0;
  margin: 0 0 4px;
  font-weight: 500;
}
.inst-feature__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
}
.inst-feature__type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
  display: block;
}

/* === Effects wall — horizontally-scrolling rack ===================== */
.fx-wall {
  position: relative;
  margin: 0 0 36px;
  /* Allow the centered+zoomed plate to bleed vertically while still clipping
     the marquee horizontally. */
  overflow-x: clip;
  overflow-y: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: oklch(0.115 0.005 250);
}
.fx-wall::before,
.fx-wall::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.fx-wall::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.fx-wall::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.fx-wall__track {
  display: flex;
  gap: 14px;
  padding: 24px 0;
  width: max-content;
  will-change: transform;
  /* Marquee + centering driven by JS (see <script> at end of index.html) */
}
.fx-wall__track > *:first-child { margin-left: 32px; }
.fx-wall__track > *:last-child { margin-right: 32px; }

.fx-wall__plate {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: oklch(0.16 0.008 250);
  overflow: hidden;
  height: 192px;
  position: relative;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.04),
    0 4px 12px oklch(0 0 0 / 0.4);
}
.fx-wall__plate img {
  display: block;
  height: 100%;
  width: auto;
}

/* Placeholder plate for items without a real screenshot */
.fx-wall__plate--ph {
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 35%, oklch(0.20 0.01 250) 0%, oklch(0.13 0.005 250) 70%),
    repeating-linear-gradient(0deg, transparent 0 19px, oklch(1 0 0 / 0.018) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, oklch(1 0 0 / 0.018) 19px 20px);
}
.fx-wall__plate--ph::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in oklch, var(--accent) 60%, transparent) 25%,
    color-mix(in oklch, var(--accent) 60%, transparent) 75%,
    transparent 100%);
}
.fx-wall__plate--ph .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  text-align: center;
}
.fx-wall__plate--ph .ph__cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.fx-wall__plate--ph .ph__name {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg);
  line-height: 1.15;
}

/* Reverse-direction marquee for the instrument wall — differentiates it visually */
.fx-wall--inst {
  margin-top: 40px;
}
.fx-wall__track--inst {
  /* direction handled in JS marquee driver */
}

.fx-wall__plate-label {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.55);
  background: oklch(0 0 0 / 0.5);
  padding: 3px 6px;
  border-radius: 2px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
  .fx-wall__track { transform: none !important; }
}

/* === Inline showcase for a single panel (e.g. MIDI Humanizer in copy) ==== */
.inline-panel {
  display: inline-block;
  vertical-align: middle;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: oklch(0.13 0.008 250);
  margin: 4px 0;
}
.inline-panel img {
  display: block;
  height: 120px;
  width: auto;
}
.inst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 980px) { .inst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .inst-grid { grid-template-columns: 1fr; } }

.inst {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 150px;
  position: relative;
  transition: background 0.2s;
}
.inst:hover { background: var(--bg-2); }

.inst__id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
}
.inst__name {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-weight: 500;
}
.inst__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.inst__type {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 6px;
}
.inst__type::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}

/* trim outer borders */
.inst-grid > .inst:nth-child(4n) { border-right: 0; }
@media (max-width: 980px) {
  .inst-grid > .inst { border-right: 1px solid var(--line-soft); }
  .inst-grid > .inst:nth-child(2n) { border-right: 0; }
}
@media (max-width: 520px) {
  .inst-grid > .inst { border-right: 0; }
}

/* === Effects table ================================================== */
.fx {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 800px) { .fx { grid-template-columns: 1fr; } }

.fx__group {
  padding: 22px 24px 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
}
.fx__group:nth-child(2n) { border-right: 0; }
@media (max-width: 800px) {
  .fx__group { border-right: 0; }
}

.fx__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.fx__title {
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.fx__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.fx__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fx__chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  padding: 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--fg-muted);
}
.fx__chip:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* === Automation vs Modulation split ================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.knob-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
}
@media (max-width: 700px) {
  .knob-row { grid-template-columns: 1fr; gap: 16px; }
}
.knob-row__copy {
  max-width: 70ch;
}

.split__card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 28px 32px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split__card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.split__card-title {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 500;
}
.split__card-title em {
  font-style: normal;
  color: var(--accent);
}
.split__card-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.lane {
  margin-top: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--bg);
  position: relative;
  height: 110px;
  overflow: hidden;
}
.lane__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 8.33% 25%;
}
.lane__label {
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.lane svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.knob {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-top: 4px;
}
.knob__ring {
  width: 72px; height: 72px;
  position: relative;
}
.knob__copy {
  display: flex; flex-direction: column; gap: 4px;
}
.knob__name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-transform: uppercase;
}
.knob__val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}

/* === VST3 callout =================================================== */
.vst3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .vst3 { grid-template-columns: 1fr; } }

.plugin-rack {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.plugin-rack__slot {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--bg-2);
}
.plugin-rack__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.plugin-rack__name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.plugin-rack__name small {
  color: var(--fg-dim);
  font-size: 11px;
  margin-left: 6px;
  letter-spacing: 0.06em;
}
.plugin-rack__auto {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 3px;
  letter-spacing: 0.12em;
}
.plugin-rack__byp {
  width: 26px; height: 18px;
  background: var(--bg-3);
  border-radius: 9px;
  border: 1px solid var(--line);
  position: relative;
}
.plugin-rack__byp::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  top: 2px; left: 11px;
}

/* === Code/CLI block =================================================== */
.cli {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.cli__chrome {
  height: 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.cli__chrome .dots {
  display: flex; gap: 6px;
  margin-right: 8px;
}
.cli__chrome .dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-3);
}
.cli__body {
  padding: 22px 24px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}
.cli .c-prompt { color: var(--accent); }
.cli .c-cmd    { color: var(--fg); }
.cli .c-flag   { color: var(--cyan); }
.cli .c-str    { color: var(--green); }
.cli .c-cmt    { color: var(--fg-faint); }
.cli .c-num    { color: var(--magenta); }

/* === Export grid ===================================================== */
.export-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 980px) { .export-grid { grid-template-columns: 1fr; } }

.formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.formats__cell {
  padding: 18px 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-1);
}
.formats__cell:nth-child(2n) { border-right: 0; }
.formats__cell:nth-last-child(-n+2) { border-bottom: 0; }
.formats__name {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.formats__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-top: 6px;
}

/* === Final CTA ======================================================= */
.cta-final {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 50% 0%, oklch(0.30 0.05 78 / 0.25), transparent 70%),
    var(--bg);
  padding: calc(120px * var(--density)) 0 calc(140px * var(--density));
  text-align: center;
  overflow: hidden;
}
.cta-final__title {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  font-weight: 500;
}
.cta-final__title em {
  color: var(--accent);
  font-style: normal;
}
.cta-final__sub {
  margin: 24px auto 36px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.cta-final__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final__meta {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Support card (Buy me a coffee) ================================== */
.support-card {
  margin: 56px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, oklch(1 0 0 / 0.02), oklch(1 0 0 / 0)),
    var(--bg-1);
  text-align: left;
}
.support-card__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.support-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.support-card__copy {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 42ch;
}
.support-card__btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.support-card__cup {
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 680px) {
  .support-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
  .support-card__btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Hover-linked items (instruments ↔ grid, fx wall ↔ chips) ====== */
.inst-feature__cell.is-linked {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 40px -22px color-mix(in oklch, var(--accent) 60%, transparent),
    0 0 0 4px color-mix(in oklch, var(--accent) 10%, transparent);
  transform: translateY(-2px);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.inst.is-linked {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--accent);
  z-index: 2;
  position: relative;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.inst.is-linked .inst__name { color: var(--accent); }

.fx-wall__plate.is-linked {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 22px color-mix(in oklch, var(--accent) 40%, transparent),
    0 14px 30px -10px oklch(0 0 0 / 0.5);
  transform: scale(1.3);
  transform-origin: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 5;
  position: relative;
}
.fx-wall__plate.is-linked .fx-wall__plate-label {
  color: var(--accent);
  background: oklch(0 0 0 / 0.7);
}
.fx__chip.is-linked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* === Footer ========================================================== */
.foot {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 36px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
.foot__col h5 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
}
.foot__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.foot__col a {
  font-size: 13.5px;
  color: var(--fg-muted);
}
.foot__col a:hover { color: var(--fg); }
.foot__brand p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  max-width: 32ch;
  line-height: 1.5;
}
.foot__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* === Animations ====================================================== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.pulse { animation: pulse-dot 1.8s ease-in-out infinite; }
