/* ============================================================
   Buhr Looper — Product Site
   Palette and chrome taken directly from the plugin's
   PremiumTheme tokens in PluginEditor.cpp
   ============================================================ */

:root {
  /* Brand palette (matches PluginEditor.cpp PremiumTheme) */
  --brand-cyan:        #5de8f0;
  --brand-cyan-soft:   #d6fbff;
  --brand-pink:        #ff4ec8;
  --brand-orange:      #ff8a35;
  --brand-gold:        #ffd44f;
  --brand-red:         #ff5757;
  --brand-violet:      #a36bff;

  /* Surfaces */
  --bg-top:            #04060a;
  --bg-bottom:         #020306;
  --bg-glow:           #05161f;
  --panel-fill:        rgba(8, 11, 16, 0.94);
  --panel-fill-soft:   rgba(5, 8, 12, 0.93);
  --panel-outline:     rgba(80, 100, 130, 0.32);
  --panel-highlight:   rgba(255, 255, 255, 0.06);
  --panel-deep:        rgba(2, 3, 6, 0.85);

  /* Type */
  --text-primary:      #eef3f8;
  --text-secondary:    #aeb8c5;
  --text-muted:        #6b7585;
  --text-dim:          #4d5664;

  /* Effects */
  --radius-panel:      14px;
  --radius-btn-lg:     12px;
  --radius-btn:        8px;

  --gradient-brand:
    linear-gradient(90deg,
      #ff2bd6 0%,
      #ff4ec8 18%,
      #ff7a3a 38%,
      #ffb02a 52%,
      #ffd84a 64%,
      #5de8f0 86%,
      #1ff0ff 100%);
  --gradient-brand-vivid:
    linear-gradient(90deg,
      #ff2bd6 0%,
      #ff7a3a 38%,
      #ffd84a 60%,
      #1ff0ff 100%);
  --gradient-brand-soft:
    linear-gradient(90deg,
      rgba(255,43,214,0.7),
      rgba(255,122,58,0.7),
      rgba(255,216,74,0.7),
      rgba(31,240,255,0.7));

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-bottom);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  margin: 0 2px;
}

/* ------------------------------------------------------------ Background layers */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120,150,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,200,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 80%);
  opacity: 0.7;
}
.bg-glow {
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.bg-glow--pink   { top: 8%;  left: -10%; background: var(--brand-pink); }
.bg-glow--orange { top: 30%; left: 50%;  background: var(--brand-orange); opacity: 0.22; animation-delay: -6s; }
.bg-glow--cyan   { top: 60%; right: -8%; background: var(--brand-cyan); opacity: 0.22; animation-delay: -12s; }
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 40%, rgba(2,3,6,0.7) 100%);
}
@keyframes drift {
  0%   { transform: translate(0, 0)       scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

/* ------------------------------------------------------------ Typography helpers */
.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  padding: 6px 10px;
  border: 1px solid rgba(93,232,240,0.25);
  border-radius: 999px;
  background: rgba(93,232,240,0.06);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 18px 0 14px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto;
}

.muted { color: var(--text-muted); }

/* ------------------------------------------------------------ Buttons (mirror plugin's premium button look) */
.pluginbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 60%),
    rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(80,100,130,0.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -8px 18px rgba(0,0,0,0.4),
    0 1px 0 rgba(0,0,0,0.6);
  transition: transform 120ms ease, border-color 160ms ease, box-shadow 160ms ease, color 120ms ease;
  cursor: pointer;
}
.pluginbtn:hover {
  border-color: rgba(93,232,240,0.55);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -8px 18px rgba(0,0,0,0.4),
    0 0 0 1px rgba(93,232,240,0.18),
    0 0 28px rgba(93,232,240,0.18);
}
.pluginbtn:active { transform: translateY(1px); }

.pluginbtn--ghost {
  background: rgba(10,14,20,0.5);
  border-color: rgba(80,100,130,0.36);
}
.pluginbtn--xs {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.pluginbtn--full {
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
}
.pluginbtn--primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0) 60%),
    rgba(8, 12, 18, 0.92);
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  isolation: isolate;
}
.pluginbtn--primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}
.pluginbtn--primary::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: var(--gradient-brand);
  filter: blur(14px);
  opacity: 0.3;
  z-index: -2;
  transition: opacity 200ms ease;
}
.pluginbtn--primary:hover::after { opacity: 0.55; }
.pluginbtn--buy {
  background: rgba(10,14,20,0.85);
  border-color: rgba(255,255,255,0.16);
  font-weight: 700;
}
.pluginbtn--buy::before, .pluginbtn--buy::after { display: none; }
.pluginbtn--buy {
  position: relative;
  isolation: isolate;
}
.pluginbtn--buy::before {
  content: '';
  display: block;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* ------------------------------------------------------------ Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  background:
    linear-gradient(180deg, rgba(2,3,6,0.92), rgba(2,3,6,0.7)),
    var(--bg-bottom);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--panel-outline);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 12px rgba(255,122,58,0.35));
}
.topbar__wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.16em;
  background: var(--gradient-brand-vivid);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar__detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  padding-top: 2px;
}
.topbar__nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar__nav a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 150ms ease;
}
.topbar__nav a:hover { color: white; }
.topbar__cta {
  display: flex;
  gap: 10px;
  justify-self: end;
}

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 64px 60px;
  max-width: 1440px;
  margin: 0 auto;
}
.hero__boxghost {
  position: absolute;
  top: 50%;
  left: 38%;
  width: 320px;
  max-width: 28%;
  height: auto;
  z-index: 0;
  opacity: 0.3;
  filter: blur(0.4px) drop-shadow(0 50px 80px rgba(0,0,0,0.75));
  transform: translate(-50%, -50%) rotate(-6deg);
  pointer-events: none;
  -webkit-mask-image:
    radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 82%);
          mask-image:
    radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 82%);
  animation: ghostFloat 9s ease-in-out infinite;
}
.hero__boxghost--stage {
  display: none;
}
@keyframes ghostFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg) translateY(0); }
  50%      { transform: translate(-50%, -50%) rotate(-6deg) translateY(-10px); }
}
.hero__col--copy { min-width: 0; position: relative; z-index: 1; }
.hero__col--stage { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(93,232,240,0.08);
  border: 1px solid rgba(93,232,240,0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--brand-cyan-soft);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan);
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.78); }
}
.hero__title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 24px 0 22px;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--panel-outline);
  max-width: 540px;
}
.hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.hero__stats--features {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  max-width: 580px;
}
.hero__stats--features > div {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.45);
  border: 1px solid var(--panel-outline);
  transition: border-color 200ms ease, transform 200ms ease;
}
.hero__stats--features > div:hover {
  border-color: rgba(93, 232, 240, 0.45);
  transform: translateY(-2px);
}
.hero__stats--features dt {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  background: var(--gradient-brand-vivid);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats--features dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

/* Theme tray (under the demo, replaces old themes section) */
.theme-tray {
  margin: 22px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--panel-outline);
  background: rgba(8, 11, 16, 0.7);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.theme-tray__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.theme-tray__head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.eyebrow--inline { padding: 4px 9px; font-size: 10.5px; }
.theme-tray__rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}
.theme-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
  text-align: left;
}
.theme-pill:hover {
  border-color: rgba(255,255,255,0.22);
  color: white;
  transform: translateY(-1px);
}
.theme-pill.is-active {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.45);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.theme-pill__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
}
.theme-pill__name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

/* Hero stage / canvas */
.hero__col--stage { display: flex; justify-content: center; overflow: visible; }
.hero-stage {
  position: relative;
  width: min(558px, 81vw);
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.hero-stage__chrome {
  display: none;
  left: 12px;
  right: 12px;
  display: none;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  z-index: 2;
  pointer-events: none;
}
.hero-stage__tag {
  padding: 4px 9px;
  background: rgba(5,8,12,0.7);
  border: 1px solid rgba(93,232,240,0.22);
  border-radius: 4px;
  color: var(--brand-cyan-soft);
}
.hero-stage__state {
  padding: 4px 9px;
  background: rgba(5,8,12,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}
.hero-stage__canvas {
  position: absolute;
  inset: -22%;
  width: 144%;
  height: 144%;
  overflow: visible;
}
.hero-stage__satellites {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  overflow: visible;
}
.hero-stage__satellites .sat {
  position: absolute;
  width: 34%;
  height: 34%;
  overflow: visible;
}
.hero-stage__satellites .sat--red    { top: 4%;   right: -2%; }
.hero-stage__satellites .sat--cyan   { bottom: 0%;  right: 14%; width: 30%; height: 30%; }
.hero-stage__satellites .sat--violet { bottom: 8%; left: -2%; width: 36%; height: 36%; }

/* ------------------------------------------------------------ Marquee */
.marquee {
  margin: 24px 0 48px;
  overflow: hidden;
  border-top: 1px solid var(--panel-outline);
  border-bottom: 1px solid var(--panel-outline);
  background: var(--panel-deep);
  padding: 14px 0;
}
.marquee__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: scrollMarquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--text-muted);
}
.marquee__track span { font-weight: 600; }
.marquee__track i {
  color: var(--brand-orange);
  font-style: normal;
  text-shadow: 0 0 8px rgba(255,138,53,0.6);
}
@keyframes scrollMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ Plugin SHELL (try section — replicates the actual plugin window) */
.panel-section { padding: 40px 32px 80px; max-width: 1320px; margin: 0 auto; }

.plugin-shell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,11,16,0.95), rgba(2,3,6,0.95)),
    radial-gradient(ellipse at top, rgba(93,232,240,0.05), transparent 60%);
  border: 1px solid var(--panel-outline);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.02);
}
.plugin-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0) 35%, rgba(93,232,240,0.18) 70%, rgba(255,138,53,0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Plugin shell — header row (logo + version + trial chip + Buy plugin) */
.plugin-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  gap: 24px;
  border-bottom: 1px solid var(--panel-outline);
}
.plugin-shell__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plugin-shell__brand img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 14px rgba(255,138,53,0.35));
}
.plugin-shell__brand-text { display: flex; flex-direction: column; gap: 2px; }
.plugin-shell__wordmark {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.14em;
  line-height: 1;
  background: var(--gradient-brand-vivid);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plugin-shell__version {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.plugin-shell__header-status {
  display: flex;
  gap: 10px;
  align-items: center;
}
.status-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-secondary);
}
.status-pill--cta {
  position: relative;
  color: white;
  font-weight: 700;
  isolation: isolate;
  background: rgba(8,12,18,0.85);
}
.status-pill--cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

/* Toolbar row (camera, aspect, overlay, tabs) */
.plugin-shell__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--panel-outline);
}
.pillbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: all 160ms ease;
}
.pillbtn:hover {
  border-color: rgba(93,232,240,0.5);
  color: white;
}
.pillbtn i { font-style: normal; opacity: 0.6; font-size: 9px; }
.pillbtn--active {
  color: var(--brand-cyan);
  border-color: rgba(93,232,240,0.6);
  background: rgba(93,232,240,0.06);
  box-shadow: 0 0 12px rgba(93,232,240,0.18);
}
.plugin-shell__tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 12px;
}
.tabbtn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: all 150ms ease;
}
.tabbtn:hover { color: white; border-color: rgba(93,232,240,0.45); }
.tabbtn--active {
  color: var(--brand-cyan);
  border-color: rgba(93,232,240,0.55);
  background: rgba(93,232,240,0.05);
  box-shadow: inset 0 0 0 1px rgba(93,232,240,0.18);
}
.tabbtn--video {
  color: var(--brand-cyan);
  background: rgba(93,232,240,0.10);
  border-color: rgba(93,232,240,0.45);
}

/* Slot strip A1..A8 */
.plugin-shell__slots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--panel-outline);
}
.slot {
  padding: 9px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: all 160ms ease;
}
.slot:hover { color: white; border-color: rgba(93,232,240,0.4); }
.slot--active {
  color: var(--brand-cyan);
  background: rgba(93,232,240,0.10);
  border-color: rgba(93,232,240,0.6);
  box-shadow: 0 0 10px rgba(93,232,240,0.18);
}

/* Main stage with viewport */
.plugin-shell__stage {
  padding: 30px 22px;
  display: flex;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(93,232,240,0.04), transparent 60%);
}
.viewport {
  position: relative;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, rgba(2,3,6,0.6), rgba(2,3,6,0.95));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewport__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(93,232,240,0.05), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 12px);
  border-radius: inherit;
}
.viewport__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--brand-cyan);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(93,232,240,0.2);
}
.viewport__corner--tl { top: 0;    left: 0;    border-top-width: 2px;    border-left-width: 2px; }
.viewport__corner--tr { top: 0;    right: 0;   border-top-width: 2px;    border-right-width: 2px; }
.viewport__corner--bl { bottom: 0; left: 0;    border-bottom-width: 2px; border-left-width: 2px; }
.viewport__corner--br { bottom: 0; right: 0;   border-bottom-width: 2px; border-right-width: 2px; }
.viewport__stage {
  position: relative;
  width: var(--stage-size, 480px);
  height: var(--stage-size, 480px);
  max-width: 92%;
  max-height: 92%;
  aspect-ratio: 1 / 1;
}
.viewport__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.viewport__hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.14em;
  z-index: 2;
}
.viewport__hud b { color: white; font-weight: 700; }
.viewport__hint {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  z-index: 2;
  pointer-events: none;
}

/* Transport row (matches the plugin's RECORD / PLAY / OVERDUB row) */
.plugin-shell__transport {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 14px 22px 22px;
  background: rgba(2,3,6,0.6);
  border-top: 1px solid var(--panel-outline);
}
.tbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    rgba(10,14,20,0.85);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms ease;
  font-family: var(--font-mono);
  position: relative;
  isolation: isolate;
}
.tbtn:hover {
  border-color: rgba(255,255,255,0.18);
  color: white;
}
.tbtn__icon {
  font-size: 16px;
  line-height: 1;
}
.tbtn__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.tbtn--rec  { color: var(--brand-red); }
.tbtn--rec .tbtn__icon  { font-size: 18px; }
.tbtn--rec:hover { border-color: rgba(255,87,87,0.55); box-shadow: 0 0 14px rgba(255,87,87,0.2); }
.tbtn--play { color: #6dffaf; }
.tbtn--play:hover { border-color: rgba(109,255,175,0.55); box-shadow: 0 0 14px rgba(109,255,175,0.2); }
.tbtn--dub  { color: var(--brand-orange); }
.tbtn--dub:hover { border-color: rgba(255,138,53,0.55); box-shadow: 0 0 14px rgba(255,138,53,0.2); }
.tbtn--buffer { color: var(--brand-cyan); }
.tbtn--buffer:hover { border-color: rgba(93,232,240,0.55); box-shadow: 0 0 14px rgba(93,232,240,0.2); }

body[data-demo-state="recording"]   .tbtn--rec,
body[data-demo-state="recording"]   .tbtn--rec  { background: rgba(255,87,87,0.18); border-color: rgba(255,87,87,0.75); animation: tbtnRecBlink 0.85s ease-in-out infinite; }
body[data-demo-state="playing"]     .tbtn--play { background: rgba(109,255,175,0.18); border-color: rgba(109,255,175,0.55); }
body[data-demo-state="overdubbing"] .tbtn--dub  { background: rgba(255,138,53,0.18); border-color: rgba(255,138,53,0.65); animation: tbtnRecBlink 0.85s ease-in-out infinite; }

@keyframes tbtnRecBlink {
  0%, 100% { box-shadow: 0 0 0 rgba(255,87,87,0.5); }
  50%      { box-shadow: 0 0 18px rgba(255,87,87,0.6); }
}

.plugin-panel {
  position: relative;
  background: var(--panel-fill);
  border: 1px solid var(--panel-outline);
  border-radius: var(--radius-panel);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 24px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02);
}
.plugin-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(93,232,240,0.06), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255,138,53,0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.plugin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--panel-outline);
  background: var(--bg-bottom);
}
.plugin-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  font-weight: 500;
}
.plugin-panel__sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
}
.dot--rec {
  background: var(--brand-red);
  box-shadow: 0 0 10px var(--brand-red);
  animation: pulseDot 1.2s ease-in-out infinite;
}
.plugin-panel__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  transition: all 200ms ease;
}
.chip[data-state="rec"].active  { color: var(--brand-red);   border-color: var(--brand-red);    box-shadow: 0 0 12px rgba(255,87,87,0.35); }
.chip[data-state="play"].active { color: #6dffaf;            border-color: #6dffaf;             box-shadow: 0 0 12px rgba(109,255,175,0.35); }
.chip[data-state="dub"].active  { color: var(--brand-orange); border-color: var(--brand-orange); box-shadow: 0 0 12px rgba(255,138,53,0.35); }

.plugin-panel__body { padding: 36px 24px 16px; }

.looper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
}

/* Looper cell — each circle slot */
.loop-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  user-select: none;
}
.loop-cell__stage {
  position: relative;
  width: 280px;
  height: 280px;
  min-width: 180px;
  min-height: 180px;
  max-width: 460px;
  max-height: 460px;
}
.loop-cell__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.loop-cell__handle {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(8,12,18,0.85);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: nwse-resize;
  z-index: 3;
  transition: border-color 160ms ease, transform 160ms ease;
}
.loop-cell__handle:hover {
  border-color: var(--brand-cyan);
  transform: scale(1.1);
}
.loop-cell__handle svg { color: var(--text-secondary); }
.loop-cell__handle:hover svg { color: var(--brand-cyan); }

.loop-cell__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.loop-cell__name {
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
}
.loop-cell__state {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.loop-cell.is-rec  .loop-cell__state { color: var(--brand-red);    border-color: rgba(255,87,87,0.5);  background: rgba(255,87,87,0.08); }
.loop-cell.is-play .loop-cell__state { color: #6dffaf;             border-color: rgba(109,255,175,0.5); background: rgba(109,255,175,0.08); }
.loop-cell.is-dub  .loop-cell__state { color: var(--brand-orange); border-color: rgba(255,138,53,0.5); background: rgba(255,138,53,0.08); }

.loop-cell__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  min-height: 14px;
}

/* Transport */
.plugin-panel__transport {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--panel-outline);
  background: var(--bg-bottom);
  flex-wrap: wrap;
}
.transport-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
}
.transport-meter__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.transport-meter__bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.transport-meter__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-gold), var(--brand-orange));
  border-radius: 3px;
  transition: width 60ms ease;
  box-shadow: 0 0 10px rgba(255,138,53,0.5);
}
.transport-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.caveat {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 20px auto 0;
  max-width: 600px;
}

/* ------------------------------------------------------------ Product box section */
.boxshow {
  position: relative;
  padding: 100px 32px;
  margin: 60px 0;
  isolation: isolate;
}
.boxshow__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.boxshow__bg-glow {
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.boxshow__bg-glow--blue { top: 10%; left: -10%; background: #2266ee; }
.boxshow__bg-glow--red  { top: 35%; right: -10%; background: #ff4422; opacity: 0.35; }
.boxshow__bg-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(40, 30, 50, 0.4));
}
.boxshow__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  justify-items: center;
}
.boxshow__copy { max-width: 560px; justify-self: end; }
.boxshow__art  { justify-self: start; width: 100%; }
.boxshow__copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.boxshow__copy p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.62;
  margin: 0 0 28px;
}
.boxshow__points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.boxshow__points li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--panel-outline);
  font-size: 14.5px;
}
.boxshow__points li:last-child { border-bottom: 1px solid var(--panel-outline); }
.boxshow__points b { color: white; font-weight: 700; }
.boxshow__points span { color: var(--text-secondary); }
.boxshow__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.boxshow__art {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boxshow__img {
  max-width: 100%;
  max-height: 620px;
  filter: drop-shadow(0 60px 80px rgba(0,0,0,0.7));
  animation: boxFloat 6s ease-in-out infinite;
}
@keyframes boxFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(-1.5deg); }
}
.boxshow__fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 44px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, rgba(10,12,18,0.95), rgba(2,3,6,0.95)),
    linear-gradient(135deg, rgba(255,138,53,0.12), rgba(93,232,240,0.12));
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 50px 70px rgba(0,0,0,0.7);
  text-align: center;
}
.boxshow__fallback img {
  width: 120px;
  height: 120px;
}
.boxshow__fallback strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--gradient-brand-vivid);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.boxshow__fallback span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.boxshow__fallback em {
  margin-top: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.boxshow__fallback code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-cyan);
  background: rgba(93,232,240,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ Features */
.features { padding: 80px 32px; max-width: 1280px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--panel-fill);
  border: 1px solid var(--panel-outline);
  border-radius: var(--radius-panel);
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(93,232,240,0.05), transparent 60%);
  pointer-events: none;
}
.feature:hover {
  border-color: rgba(93,232,240,0.45);
  transform: translateY(-3px);
}
.feature:hover::before {
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(93,232,240,0.12), transparent 60%);
}
.feature__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}
.feature code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(93,232,240,0.08);
  color: var(--brand-cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ Themes */
.themes { padding: 80px 32px; max-width: 1280px; margin: 0 auto; }
.theme-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.theme-card {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--panel-fill);
  border: 1px solid var(--panel-outline);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease;
  overflow: hidden;
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.is-active { border-color: rgba(255,255,255,0.5); }
.theme-card__chip {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.theme-card__chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.15), transparent 60%);
}
.theme-card__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.theme-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ Specs / buy */
.specs { padding: 80px 32px 100px; max-width: 1280px; margin: 0 auto; }
.specs__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.specs__copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  margin: 16px 0 28px;
  letter-spacing: -0.02em;
}
.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--panel-outline);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--panel-outline);
  font-size: 15px;
}
.spec-list strong {
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
}
.spec-list span {
  color: var(--text-secondary);
  text-align: right;
}

.buybox {
  position: relative;
  padding: 0;
  border-radius: 18px;
  isolation: isolate;
}
.buybox__halo {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient-brand);
  filter: blur(20px);
  opacity: 0.45;
  z-index: -2;
}
.buybox__inner {
  position: relative;
  padding: 32px 28px;
  background: var(--panel-fill);
  border-radius: 16px;
  border: 1px solid transparent;
  z-index: 1;
}
.buybox__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.buybox__priceflag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--brand-orange);
  background: rgba(255,138,53,0.10);
  border: 1px solid rgba(255,138,53,0.35);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 16px;
}
.buybox__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.buybox__strike {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
}
.buybox__currency { font-size: 24px; color: var(--text-secondary); }
.buybox__amount {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-brand-vivid);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.buybox__note {
  margin-left: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.buybox__check {
  list-style: none;
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--panel-outline);
  border-bottom: 1px solid var(--panel-outline);
}
.buybox__check li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.buybox__check li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(93,232,240,0.16);
  color: var(--brand-cyan);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.buybox a.pluginbtn { margin-top: 10px; }

/* ------------------------------------------------------------ Footer */
.footer {
  background: var(--bg-bottom);
  border-top: 1px solid var(--panel-outline);
  padding: 60px 32px 28px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.footer__brand img {
  width: 88px;
  margin-bottom: 14px;
}
.footer__brand p {
  color: var(--text-secondary);
  max-width: 280px;
  font-size: 14px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer__cols a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 150ms ease;
}
.footer__cols a:hover { color: white; }
.footer__base {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--panel-outline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------ MIDI section */
.midi-section {
  padding: 100px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.midi-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.midi-section__copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.midi-section__copy p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.62;
}
.midi-section__points {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--panel-outline);
}
.midi-section__points li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--panel-outline);
  font-size: 14.5px;
}
.midi-section__points b { color: white; font-weight: 700; }
.midi-section__points span { color: var(--text-secondary); }
.midi-section__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.midi-section__ctas .pluginbtn { font-size: 12px; padding: 9px 14px; }
.midi-section__ctas .pluginbtn.is-active {
  background: rgba(93,232,240,0.10);
  border-color: rgba(93,232,240,0.55);
  color: white;
  box-shadow: 0 0 18px rgba(93,232,240,0.25);
}

.midi-section__stage {
  display: flex;
  justify-content: center;
}
.midi-stage {
  position: relative;
  width: min(560px, 96%);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(58,139,255,0.08), transparent 60%),
    linear-gradient(180deg, rgba(2,3,6,0.6), rgba(2,3,6,0.9));
  border-radius: 16px;
  border: 1px solid var(--panel-outline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.midi-stage__chrome {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  z-index: 2;
  pointer-events: none;
}
.midi-stage__tag {
  padding: 4px 9px;
  background: rgba(5,8,12,0.7);
  border: 1px solid rgba(58,139,255,0.4);
  border-radius: 4px;
  color: #cfe4ff;
}
.midi-stage__state {
  padding: 4px 9px;
  background: rgba(5,8,12,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}
.midi-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------ Auto Instrument */
.autoinstr {
  padding: 100px 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.autoinstr__stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 2fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 56px;
}
.autoinstr__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--panel-fill);
  border: 1px solid var(--panel-outline);
  isolation: isolate;
  overflow: hidden;
}
.autoinstr__step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top, rgba(93,232,240,0.08), transparent 55%);
  pointer-events: none;
}
.autoinstr__step--wide { min-width: 0; }
.autoinstr__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--brand-cyan);
}
.autoinstr__step h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.autoinstr__step > p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.autoinstr__arrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--text-muted);
  padding-top: 38px;
}
.autoinstr__wave {
  height: 110px;
  background: rgba(2,3,6,0.6);
  border-radius: 10px;
  border: 1px solid var(--panel-outline);
  overflow: hidden;
}
.autoinstr__wave canvas { width: 100%; height: 100%; display: block; }
.autoinstr__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.autoinstr__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.autoinstr__detect {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.autoinstr__hz {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(2,3,6,0.55);
  border-radius: 10px;
  border: 1px solid var(--panel-outline);
}
.autoinstr__hz span {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gradient-brand-vivid);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.autoinstr__hz small {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}
.autoinstr__cents { position: relative; }
.autoinstr__cents small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.autoinstr__cents small span { color: var(--brand-orange); font-weight: 600; }
.autoinstr__centsbar {
  display: block;
  height: 8px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--brand-red), var(--brand-orange) 30%, #6dffaf 50%, var(--brand-orange) 70%, var(--brand-red));
  position: relative;
}
.autoinstr__centsbar i {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 14px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  transform: translateX(-50%);
  left: 50%;
  transition: left 280ms ease;
}
.autoinstr__conf { display: flex; flex-direction: column; gap: 6px; }
.autoinstr__conf span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.autoinstr__conf-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.autoinstr__conf-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), #6dffaf);
  box-shadow: 0 0 10px rgba(109,255,175,0.4);
  border-radius: 3px;
  transition: width 280ms ease;
}

/* Piano keyboard */
.piano {
  position: relative;
  display: flex;
  height: 140px;
  background: rgba(2,3,6,0.7);
  border-radius: 8px;
  padding: 6px 6px 8px;
  border: 1px solid var(--panel-outline);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.4);
  overflow-x: auto;
  overflow-y: hidden;
}
.piano__key {
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  font: inherit;
  flex-shrink: 0;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.piano__key--white {
  width: 16px;
  height: 100%;
  background: linear-gradient(180deg, #fafdff, #d2dde8 92%, #b6c4d4);
  border-radius: 0 0 3px 3px;
  border: 1px solid #08101c;
  margin-right: -1px;
  box-shadow: inset 0 -8px 14px rgba(0,0,0,0.18);
  z-index: 1;
}
.piano__key--black {
  width: 11px;
  height: 60%;
  background: linear-gradient(180deg, #1a1f2a, #050810 60%, #000);
  border-radius: 0 0 2px 2px;
  border: 1px solid #000;
  margin: 0 -5.5px;
  z-index: 2;
  box-shadow: inset 0 -6px 8px rgba(255,255,255,0.05), 0 4px 6px rgba(0,0,0,0.6);
}
.piano__key.is-active {
  transform: translateY(2px);
}
.piano__key--white.is-active {
  background: linear-gradient(180deg, #cfe4ff, #5de8f0 60%, #3a8bff);
  box-shadow: inset 0 -8px 14px rgba(58,139,255,0.4), 0 0 14px rgba(93,232,240,0.5);
}
.piano__key--black.is-active {
  background: linear-gradient(180deg, #5de8f0, #3a8bff 60%, #2244ff);
  box-shadow: inset 0 -6px 8px rgba(255,255,255,0.2), 0 0 12px rgba(58,139,255,0.6);
}
.piano__key.is-root {
  outline: 2px solid var(--brand-orange);
  outline-offset: -1px;
  z-index: 4;
}
.piano__key.is-root::after {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange);
}
.piano__label {
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(0,0,0,0.45);
  pointer-events: none;
}

/* ------------------------------------------------------------ Automation Lab */
.autolab {
  padding: 100px 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.autolab__shell {
  position: relative;
  background: var(--panel-fill);
  border: 1px solid var(--panel-outline);
  border-radius: 18px;
  padding: 22px 22px 24px;
  isolation: isolate;
}
.autolab__shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top, rgba(93,232,240,0.06), transparent 55%);
  pointer-events: none;
}
.autolab__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.autolab__header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.autolab__sync {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
}
.autolab__sub {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.autolab__sets, .autolab__runs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.autolab__set, .autolab__run {
  padding: 9px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  cursor: pointer;
  transition: all 160ms ease;
}
.autolab__set:hover, .autolab__run:hover {
  color: white;
  border-color: rgba(93,232,240,0.45);
}
.autolab__set--active {
  color: var(--brand-cyan);
  border-color: rgba(93,232,240,0.6);
  background: rgba(93,232,240,0.10);
  box-shadow: 0 0 10px rgba(93,232,240,0.18);
}
.autolab__run.is-firing {
  background: rgba(109,255,175,0.18);
  color: #6dffaf;
  border-color: #6dffaf;
}
.autolab__status {
  margin: 14px 0 12px;
  padding: 12px 16px;
  background: rgba(2,3,6,0.6);
  border-radius: 10px;
  border: 1px solid var(--panel-outline);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.autolab__status b { color: white; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; font-size: 11.5px; margin-right: 8px; }
.autolab__loopers {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(2,3,6,0.5);
  border-radius: 12px;
  border: 1px solid var(--panel-outline);
  margin-bottom: 16px;
}
.autolab__loopers-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.autolab__looper-chip {
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(58,139,255,0.20), rgba(58,139,255,0.06));
  border: 1px solid rgba(58,139,255,0.55);
  color: #cfe4ff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.autolab__set-loops {
  margin-left: auto;
  padding: 10px 18px;
  background: rgba(109,255,175,0.10);
  border: 1px solid rgba(109,255,175,0.6);
  color: #6dffaf;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 160ms ease;
}
.autolab__set-loops:hover { background: rgba(109,255,175,0.18); color: white; }

/* Editor grid: palette | timeline | inspector */
.autolab__editor {
  display: grid;
  grid-template-columns: 180px 1fr 260px;
  gap: 14px;
  align-items: stretch;
  min-height: 280px;
}
.autolab__palette, .autolab__inspector {
  padding: 16px;
  background: rgba(2,3,6,0.55);
  border-radius: 12px;
  border: 1px solid var(--panel-outline);
}
.autolab__palette h4, .autolab__inspector h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brand-cyan);
}
.autolab__palette-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.palblock {
  padding: 9px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-align: center;
  cursor: grab;
  transition: all 160ms ease;
}
.palblock:hover { color: white; border-color: rgba(93,232,240,0.4); }
.palblock:active, .palblock.is-dragging { cursor: grabbing; opacity: 0.7; transform: scale(0.96); }

.autolab__timeline {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px),
    rgba(2,3,6,0.6);
  border-radius: 12px;
  border: 2px dashed transparent;
  min-height: 220px;
  align-content: flex-start;
  align-items: flex-start;
  transition: border-color 160ms ease, background 160ms ease;
  overflow: hidden;
}
.autolab__timeline.drop-target {
  border-color: rgba(93,232,240,0.45);
  background: rgba(93,232,240,0.04);
}
.autolab__timeline-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  color: var(--text-muted);
}
.autolab__timeline-empty h4 {
  margin: 0 0 8px;
  font-size: 22px;
  color: white;
  font-weight: 700;
}
.autolab__timeline-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.autolab__timeline-bar {
  display: none;
}

.tlblock {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 150px;
  min-height: 110px;
  padding: 12px 12px 10px;
  border-radius: 10px;
  border: 1px solid;
  cursor: grab;
  transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.tlblock:hover { transform: translateY(-2px); }
.tlblock.is-selected { box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 0 16px rgba(255,255,255,0.12); }
.tlblock.is-dragging { opacity: 0.6; transform: scale(0.95); }
.tlblock.is-playing { box-shadow: 0 0 0 2px white, 0 0 28px currentColor; animation: tlplay 0.6s ease infinite alternate; }
@keyframes tlplay { from { filter: brightness(1); } to { filter: brightness(1.4); } }
.tlblock.drop-fx { border-style: dashed; box-shadow: 0 0 0 2px rgba(255,138,53,0.5); }
.tlblock__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.tlblock__bars {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.tlblock__fx {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}
.tlblock__fx-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,138,53,0.5);
  color: var(--brand-orange);
  cursor: pointer;
}
.tlblock__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 160ms ease;
}
.tlblock:hover .tlblock__remove { opacity: 1; }

.autolab__inspector-empty {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.autolab__inspector-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.autolab__inspector-body label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.autolab__inspector-body select {
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: white;
  font: inherit;
  font-size: 13px;
}
.autolab__fx h5 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
}
.autolab__fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.fxchip {
  padding: 8px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--brand-orange);
  background: rgba(255,138,53,0.06);
  border: 1px solid rgba(255,138,53,0.35);
  border-radius: 6px;
  cursor: grab;
  transition: all 160ms ease;
}
.fxchip:hover { background: rgba(255,138,53,0.15); color: white; }
.fxchip.is-dragging { opacity: 0.6; cursor: grabbing; }

.autolab__transport {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   Responsive — mobile-first overrides
   Breakpoints: 1080 / 960 / 760 / 600 / 420
   ============================================================ */

@media (max-width: 1080px) {
  .autoinstr__stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .autoinstr__arrow {
    padding-top: 0;
    justify-content: center;
    transform: rotate(90deg);
  }
  .autolab__editor {
    grid-template-columns: 1fr;
  }
  .midi-section__inner { grid-template-columns: 1fr; }
  .boxshow__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    justify-items: center;
  }
  .boxshow__copy { justify-self: center; }
  .boxshow__art  { justify-self: center; }
  .boxshow__points li { grid-template-columns: 1fr; gap: 4px; text-align: left; padding-left: 0; }
  .boxshow__ctas { justify-content: center; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px;
    gap: 36px;
  }
  .hero__title { margin-top: 18px; }
  .hero__sub, .hero__stats { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__boxghost { display: none; }
  .topbar { grid-template-columns: auto 1fr; padding: 12px 16px; gap: 12px; }
  .topbar__nav { display: none; }
  .specs__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .panel-section, .features, .specs, .midi-section, .autoinstr, .autolab,
  .boxshow { padding-left: 18px; padding-right: 18px; }
  .autolab__sets, .autolab__runs { grid-template-columns: repeat(4, 1fr); }
  .plugin-shell__transport { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Tablet / large phone ---- */
@media (max-width: 760px) {
  body { font-size: 15px; }

  /* Section padding tightens */
  .panel-section { padding: 28px 16px 56px; }
  .features { padding: 56px 16px; }
  .specs    { padding: 56px 16px 72px; }
  .midi-section { padding: 64px 16px; }
  .autoinstr    { padding: 64px 16px; }
  .autolab      { padding: 64px 16px; }
  .boxshow      { padding: 64px 16px; margin: 24px 0; }

  /* Top bar */
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar__mark { width: 32px; height: 32px; }
  .topbar__wordmark { font-size: 13px; letter-spacing: 0.12em; }
  .topbar__detail { display: none; }
  .topbar__cta { gap: 6px; }
  .topbar__cta .pluginbtn { padding: 8px 12px; font-size: 12px; }
  .topbar__cta .pluginbtn--ghost { display: none; }

  /* Section heads */
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 38px); }
  .section-head p { font-size: 15px; }

  /* Hero */
  .hero { padding: 28px 16px 24px; gap: 28px; }
  .hero__title { font-size: clamp(34px, 9vw, 48px); margin: 18px 0 16px; }
  .hero__sub { font-size: 15.5px; margin-bottom: 24px; }
  .hero__badge { font-size: 10.5px; padding: 6px 11px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .pluginbtn { padding: 11px 16px; font-size: 14px; }
  .hero__stats--features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 100%;
    padding-top: 18px;
  }
  .hero__stats--features > div { padding: 12px 12px; }
  .hero__stats--features dt { font-size: 9.5px; }
  .hero__stats--features dd { font-size: 13px; }
  .hero-stage { width: min(420px, 88vw); }

  /* Marquee */
  .marquee { margin: 16px 0 28px; padding: 10px 0; }
  .marquee__track { font-size: 11px; letter-spacing: 0.22em; gap: 18px; }

  /* Plugin shell */
  .plugin-shell { border-radius: 14px; }
  .plugin-shell__header {
    padding: 14px 14px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .plugin-shell__brand { gap: 10px; }
  .plugin-shell__brand img { width: 40px; height: 40px; }
  .plugin-shell__wordmark { font-size: 18px; letter-spacing: 0.12em; }
  .plugin-shell__version { font-size: 10.5px; }
  .plugin-shell__header-status { gap: 6px; flex-wrap: wrap; }
  .status-pill { font-size: 9.5px; padding: 6px 9px; letter-spacing: 0.12em; }

  .plugin-shell__toolbar {
    padding: 10px 12px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .plugin-shell__toolbar::-webkit-scrollbar { display: none; }
  .pillbtn { padding: 7px 11px; font-size: 10px; letter-spacing: 0.12em; flex-shrink: 0; }
  .plugin-shell__tabs {
    margin-left: 0;
    padding-left: 4px;
    flex-shrink: 0;
  }
  .tabbtn { padding: 7px 10px; font-size: 9.5px; flex-shrink: 0; }

  .plugin-shell__slots {
    grid-template-columns: repeat(8, 1fr);
    padding: 10px 12px;
    gap: 5px;
  }
  .slot { padding: 8px 4px; font-size: 10px; letter-spacing: 0.1em; }

  .plugin-shell__stage { padding: 18px 12px; }
  .viewport { aspect-ratio: 4 / 3; }
  .viewport__hud { font-size: 9.5px; top: 10px; left: 10px; right: 10px; }
  .viewport__hint { font-size: 10px; bottom: 8px; padding: 0 12px; }
  .viewport__corner { width: 18px; height: 18px; }

  .plugin-shell__transport {
    grid-template-columns: repeat(5, 1fr);
    padding: 12px 12px 16px;
    gap: 5px;
  }
  .tbtn { padding: 10px 4px; gap: 4px; border-radius: 8px; }
  .tbtn__icon { font-size: 14px; }
  .tbtn__label { font-size: 8.5px; letter-spacing: 0.1em; }

  /* Theme tray */
  .theme-tray { padding: 14px 14px; }
  .theme-tray__rail { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 6px; }
  .theme-pill { padding: 8px 10px; font-size: 11.5px; }
  .theme-pill__swatch { width: 18px; height: 18px; }
  .theme-pill__name { font-size: 10.5px; }

  /* MIDI */
  .midi-section__inner { gap: 32px; }
  .midi-section__copy h2 { font-size: clamp(28px, 8vw, 40px); }
  .midi-section__points li { grid-template-columns: 1fr; gap: 2px; }
  .midi-section__points b { font-size: 13px; }
  .midi-section__ctas { gap: 8px; }
  .midi-section__ctas .pluginbtn { padding: 8px 11px; font-size: 11px; flex: 1 1 calc(50% - 8px); }
  .midi-stage { width: 100%; }

  /* Auto Instrument */
  .autoinstr__stage { margin-top: 32px; gap: 10px; }
  .autoinstr__step { padding: 20px 18px; }
  .autoinstr__step h3 { font-size: 18px; }
  .autoinstr__arrow { font-size: 24px; padding: 4px 0; }
  .autoinstr__hz { padding: 12px 14px; }
  .autoinstr__hz span { font-size: 24px; }
  .autoinstr__hz small { font-size: 12px; }
  .piano { height: 120px; }

  /* Automation Lab */
  .autolab__shell { padding: 16px 14px 18px; }
  .autolab__header h3 { font-size: 22px; }
  .autolab__sync { font-size: 10px; }
  .autolab__sets, .autolab__runs {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .autolab__set, .autolab__run { padding: 8px 4px; font-size: 10px; letter-spacing: 0.1em; }
  .autolab__loopers {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 12px;
  }
  .autolab__set-loops { margin-left: 0; padding: 9px 14px; font-size: 10.5px; }
  .autolab__editor { gap: 10px; }
  .autolab__palette, .autolab__inspector { padding: 14px; }
  .autolab__palette-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .autolab__fx-grid { grid-template-columns: repeat(6, 1fr); }
  .autolab__timeline { padding: 14px; min-height: 180px; }
  .autolab__timeline-empty h4 { font-size: 18px; }
  .autolab__timeline-empty p { font-size: 12px; }
  .tlblock { width: calc(50% - 5px); min-height: 96px; padding: 10px; }

  /* Box show */
  .boxshow__copy h2 { font-size: clamp(28px, 8vw, 42px); }
  .boxshow__copy p { font-size: 15px; }
  .boxshow__points b { font-size: 14px; }
  .boxshow__points span { font-size: 13px; }
  .boxshow__art { min-height: auto; }
  .boxshow__img { max-height: 480px; }

  /* Features */
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 22px 20px; }
  .feature h3 { font-size: 19px; }
  .feature p { font-size: 14px; }

  /* Specs / buy */
  .specs__inner { gap: 24px; }
  .specs__copy h2 { font-size: clamp(26px, 7.5vw, 38px); }
  .spec-list li { flex-direction: column; gap: 4px; padding: 12px 0; font-size: 14px; }
  .spec-list span { text-align: left; }
  .buybox__inner { padding: 24px 20px; }
  .buybox__amount { font-size: 52px; }

  /* Footer */
  .footer { padding: 44px 16px 24px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__base {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 11px;
  }
}

/* ---- Small phone ---- */
@media (max-width: 600px) {
  .topbar__cta .pluginbtn--buy span { font-size: 11px; }
  .hero__stats--features { grid-template-columns: 1fr 1fr; }
  .plugin-shell__transport { grid-template-columns: repeat(4, 1fr); }
  .plugin-shell__slots { grid-template-columns: repeat(4, 1fr); }
  .plugin-panel__chips { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .loop-cell__stage { width: 240px; height: 240px; }

  .section-head h2 { font-size: clamp(24px, 8vw, 32px); }
  .hero__title { font-size: clamp(30px, 10vw, 44px); }

  /* Tabs scroll horizontally */
  .plugin-shell__tabs {
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-left: 0;
    margin-top: 4px;
    scrollbar-width: none;
  }
  .plugin-shell__tabs::-webkit-scrollbar { display: none; }
}

/* ---- Tiny phone ---- */
@media (max-width: 420px) {
  body { font-size: 14.5px; }
  .topbar__wordmark { font-size: 12px; }
  .topbar__cta .pluginbtn { padding: 7px 10px; font-size: 11px; }

  .hero { padding: 22px 14px 18px; }
  .hero__title { font-size: 32px; line-height: 1.05; }
  .hero__sub { font-size: 14.5px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .pluginbtn { width: 100%; }

  .plugin-shell__transport { grid-template-columns: repeat(3, 1fr); }
  .autolab__palette-list { grid-template-columns: 1fr; }
  .autolab__fx-grid { grid-template-columns: repeat(3, 1fr); }
  .tlblock { width: 100%; }

  .buybox__amount { font-size: 44px; }
  .buybox__currency { font-size: 20px; }
}

/* Coarse-pointer touch targets — bump anything tappable to >=40px */
@media (hover: none) and (pointer: coarse) {
  .pluginbtn, .tbtn, .slot, .tabbtn, .pillbtn,
  .autolab__set, .autolab__run, .palblock, .fxchip,
  .theme-pill, .piano__key--white {
    min-height: 40px;
  }
  /* Disable the hover-translate effects that "stick" on touch */
  .feature:hover,
  .hero__stats--features > div:hover,
  .theme-pill:hover,
  .tlblock:hover { transform: none; }
}

/* ============================================================
   REALTIME VIDEO EDITING SECTION
   ============================================================ */
.rtve {
  position: relative;
  padding: 120px 32px 140px;
  overflow: hidden;
  isolation: isolate;
}
.rtve__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.rtve__bg-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.35;
}
.rtve__bg-glow--pink {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--brand-pink) 0%, transparent 65%);
}
.rtve__bg-glow--cyan {
  bottom: -200px;
  right: -180px;
  background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 65%);
  opacity: 0.28;
}
.rtve__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 200, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 240, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, #000 30%, transparent 90%);
}

.rtve .section-head { max-width: 880px; }
.rtve__nbr { display: none; }
@media (min-width: 760px) { .rtve__nbr { display: inline; } }

/* Two-column rows: wide clip + vertical short, then mirrored */
.rtve__row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1240px;
  margin: 56px auto 0;
}
.rtve__row--trail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  margin-top: 40px;
}

/* Wide 16:9 frame styled like the plugin viewport */
.rtve__main {
  margin: 0;
  position: relative;
}
.rtve__main--right .rtve__viewport { transform: rotate(0.4deg); }
.rtve__main .rtve__viewport { transform: rotate(-0.4deg); }

.rtve__viewport {
  position: relative;
  background: var(--panel-deep);
  border: 1px solid var(--panel-outline);
  border-radius: var(--radius-panel);
  padding: 14px;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px -20px rgba(93, 232, 240, 0.18);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.rtve__viewport:hover {
  transform: rotate(0deg) translateY(-2px) !important;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px -10px rgba(255, 78, 200, 0.28);
}
.rtve__viewport .viewport__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--brand-cyan);
  opacity: 0.85;
}
.rtve__viewport .viewport__corner--tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.rtve__viewport .viewport__corner--tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.rtve__viewport .viewport__corner--bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.rtve__viewport .viewport__corner--br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

.rtve__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  padding: 4px 10px 12px;
  text-transform: uppercase;
}
.rtve__chrome-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-pink);
}
.rtve__rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-pink);
  box-shadow: 0 0 12px var(--brand-pink);
  animation: rtveBlink 1.4s ease-in-out infinite;
}
.rtve__rec-dot--cyan {
  background: var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan);
}
@keyframes rtveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}
.rtve__chrome-meta { color: var(--text-muted); }

/* iframe wrappers with locked aspect ratios */
.rtve__iframe {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.rtve__iframe--16x9 { aspect-ratio: 16 / 9; }
.rtve__iframe--9x16 { aspect-ratio: 9 / 16; }
.rtve__iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Captions under each clip */
.rtve__cap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.rtve__cap--tight { font-size: 13px; }
.rtve__cap-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border: 1px solid var(--panel-outline);
  border-radius: 6px;
  color: var(--brand-cyan);
  background: rgba(93, 232, 240, 0.06);
  flex-shrink: 0;
  margin-top: 2px;
}
.rtve__cap strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.005em;
}
.rtve__cap span { color: var(--text-muted); }

/* Vertical short "phone" frame */
.rtve__short {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rtve__phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 12px 10px;
  border-radius: 36px;
  background: linear-gradient(180deg, #0c0f15 0%, #05070b 100%);
  border: 1px solid rgba(120, 140, 170, 0.22);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px -10px rgba(163, 107, 255, 0.25);
  transform: rotate(1.5deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.rtve__phone--alt {
  transform: rotate(-1.8deg);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px -10px rgba(255, 138, 53, 0.22);
}
.rtve__phone:hover { transform: rotate(0deg) translateY(-2px); }
.rtve__phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  border-radius: 12px;
  background: #000;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.rtve__phone .rtve__iframe { border-radius: 26px; }

/* The big pull quote band */
.rtve__pull {
  position: relative;
  max-width: 1100px;
  margin: 88px auto 0;
  padding: 56px 32px 48px;
  text-align: center;
  border-top: 1px solid var(--panel-outline);
  border-bottom: 1px solid var(--panel-outline);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(255, 78, 200, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.4), rgba(8, 11, 16, 0));
}
.rtve__pull-mark {
  display: block;
  font-family: 'Inter', serif;
  font-size: 90px;
  line-height: 0.5;
  color: var(--brand-pink);
  opacity: 0.55;
  margin-bottom: 8px;
  font-weight: 700;
}
.rtve__pull p {
  margin: 0 auto;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 18ch;
}
.rtve__pull-byline {
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Capability chips at end of section */
.rtve__chips {
  list-style: none;
  margin: 64px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
}
.rtve__chips li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--panel-outline);
  background: rgba(8, 11, 16, 0.55);
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.rtve__chips li:hover {
  color: var(--text-primary);
  border-color: rgba(93, 232, 240, 0.45);
  background: rgba(93, 232, 240, 0.06);
}
.rtve__chips li:last-child {
  background: var(--gradient-brand-soft);
  color: #050810;
  border-color: transparent;
  font-weight: 700;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .rtve { padding: 80px 18px 90px; }
  .rtve__row,
  .rtve__row--trail {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
  }
  .rtve__row--trail .rtve__main { order: 1; }
  .rtve__row--trail .rtve__short { order: 2; }
  .rtve__main .rtve__viewport,
  .rtve__main--right .rtve__viewport,
  .rtve__phone,
  .rtve__phone--alt { transform: none; }
  .rtve__pull { margin-top: 60px; padding: 40px 20px; }
  .rtve__pull p { font-size: clamp(24px, 7vw, 36px); }
  .rtve__chips { margin-top: 44px; }
  .rtve__phone { max-width: 280px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track,
  .bg-glow,
  .hero__boxghost,
  .boxshow__img { animation: none !important; }
}

/* ---------- Caveat (mic vs mobile copy) ---------- */
.caveat__mobile { display: none; }
.is-mobile .caveat__desktop { display: none; }
.is-mobile .caveat__mobile { display: inline; }

/* ---------- Mobile-only perf tweaks ---------- */
.is-mobile .bg-glow,
.is-mobile .rtve__bg-glow,
.is-mobile .boxshow__bg-glow {
  filter: blur(70px);
  opacity: 0.35;
}
.is-mobile .hero-stage,
.is-mobile .midi-stage,
.is-mobile .viewport {
  will-change: auto;
}
.is-mobile .hero__boxghost { display: none; }
.is-mobile img,
.is-mobile canvas,
.is-mobile iframe {
  -webkit-tap-highlight-color: transparent;
}

/* On narrow viewports the boxghost still gets in the way of text — hide it */
@media (max-width: 820px) {
  .hero__boxghost { display: none; }
}
