/* ==========================================================================
   ANIMUS VERTEX // PIOTR BOGUS - PORTFOLIO & SOFTWARE
   One visual language with the DropShift editor (turn_the_keys/src/editor.rs):
   a dark panel lit from above, thin borders, red for what is on, cyan for
   status, amber for the demo, violet for HQ. Glow only where something is lit.
   ========================================================================== */

/* ==========================================================================
   FONTS, served from this site (no request to Google): variable WOFF2 from
   Fontsource 5.3.0, SIL Open Font License (assets/fonts/OFL-*.txt)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Surfaces, as in the editor */
  --bg-deep: #0b0a10;
  --bg-dark: #0e0d13;
  --bg-card: #14131a;
  --bg-card-inner: #111016;
  --card-top: #14131a;
  --card-bottom: #0e0d12;
  --panel-top: #1a1920;
  --panel-bottom: #111016;
  --inset: #08070c;
  --inset-border: #1f1d26;
  --track: #2e2b38;
  --led-off: #34313d;
  --led-on: #e9e8ef;

  --border-subtle: #1f1d26;
  --border-card: #26242e;
  --border-card-hover: #3a3744;
  --panel-border: #2c2935;

  /* Accents, as in the editor */
  --neon-red: #e8173a;
  --neon-cyan: #19d3f0;
  --neon-magenta: #a88cff;   /* violet: HQ in the editor */
  --amber: #ffb347;
  --red-rgb: 232, 23, 58;
  --cyan-rgb: 25, 211, 240;
  --violet-rgb: 168, 140, 255;
  --amber-rgb: 255, 179, 71;

  --grad-card: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
  --grad-panel: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bottom) 100%);

  /* Text */
  --text-primary: #f2f2f5;
  --text-secondary: #aaa7b6;
  --text-muted: #8a8796;
  --text-dark: #8f8c9b;

  /* Type */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: var(--font-main);
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Shape */
  --radius-sm: 8px;
  --radius-card: 14px;
  --radius-panel: 18px;
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--red-rgb), 0.10) 0%, transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--track); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-red); }

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--led-on);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.circuit-bg-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

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

button {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   BUTTONS: the editor's pills. Filled red for the one main action, outlined
   for the rest, mono capitals with wide spacing.
   ========================================================================== */
.btn {
  --btn: var(--text-primary);
  --btn-rgb: 242, 242, 245;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--btn-rgb), 0.55);
  background: rgba(var(--btn-rgb), 0.06);
  color: var(--btn);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.btn:hover {
  background: rgba(var(--btn-rgb), 0.14);
  border-color: rgba(var(--btn-rgb), 0.85);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-rgb: var(--red-rgb);
  background: var(--neon-red);
  border-color: var(--neon-red);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(var(--red-rgb), 0.28);
}

.btn-primary:hover {
  background: #ec3a57;   /* red mixed 15 % towards the text color, as in the editor */
  border-color: #ec3a57;
  box-shadow: 0 8px 26px rgba(var(--red-rgb), 0.42);
}

.btn-cyan {
  --btn: var(--neon-cyan);
  --btn-rgb: var(--cyan-rgb);
}

.btn-outline {
  --btn: var(--text-primary);
  --btn-rgb: 242, 242, 245;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  min-height: 36px;
  padding: 0.55rem 1.05rem;
  font-size: 0.74rem;
}

.btn-block { width: 100%; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 0;
  transition: padding var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
  background: rgba(11, 10, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.navbar-scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 10, 16, 0.92);
  border-bottom-color: var(--panel-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo-svg {
  height: 40px;
  width: auto;
  max-width: 160px;
  display: block;
  overflow: visible;
}

.logo-emblem { fill: #d11124; transition: fill var(--transition-fast), filter var(--transition-fast); }
.logo-word-animus { fill: #ffffff; }
.logo-word-vertex { fill: #888888; transition: fill var(--transition-fast); }

.brand-logo:hover .logo-emblem {
  fill: var(--neon-red);
  filter: drop-shadow(0 0 10px rgba(var(--red-rgb), 0.6));
}

.brand-logo:hover .logo-word-vertex { fill: var(--text-secondary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 0.4rem 0;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link.nav-link-gumroad { color: var(--neon-cyan); }
.nav-link.nav-link-gumroad:hover { color: #ffffff; }

.btn-nav-touch {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--red-rgb), 0.75);
  background: rgba(var(--red-rgb), 0.08);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-nav-touch:hover {
  background: var(--neon-red);
  border-color: var(--neon-red);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-nav-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO: intro on top, the DropShift window below as the product shot
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 4rem;
  position: relative;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.25rem;
}

.hero-headline {
  font-size: clamp(2rem, 3.9vw, 3.3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero-headline .headline-line { display: block; }

.glow-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 28px rgba(var(--cyan-rgb), 0.35);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-subtext {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
}

.hero-subtext strong { color: var(--text-primary); }

.hero-facts {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ----- Product stage ----- */
.product-stage {
  max-width: 936px;
  margin: 0 auto;
}

.host-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-bottom: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.host-bar-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.host-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-red);
  box-shadow: 0 0 8px rgba(var(--red-rgb), 0.7);
  flex-shrink: 0;
}

.host-bar-name {
  color: var(--text-primary);
  font-weight: 700;
}

.host-bar-sub {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* The recording: segments like the plugin's Input switch */
.host-tracks {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px #24222c;
}

.host-tracks button {
  min-height: 28px;
  padding: 0 0.8rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.host-tracks button:hover { color: var(--text-primary); background: rgba(46, 43, 56, 0.6); }

.host-tracks button[aria-checked="true"] {
  background: var(--led-on);
  color: var(--bg-deep);
  font-weight: 700;
}

.host-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 34px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--cyan-rgb), 0.55);
  background: rgba(var(--cyan-rgb), 0.07);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.host-play:hover { background: rgba(var(--cyan-rgb), 0.15); }
.host-play .icon-stop { display: none; }
.host-play.is-playing { color: var(--text-primary); border-color: rgba(var(--red-rgb), 0.7); background: rgba(var(--red-rgb), 0.1); }
.host-play.is-playing .icon-play { display: none; }
.host-play.is-playing .icon-stop { display: block; color: var(--neon-red); }

.host-play-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led-off);
}

.host-play.is-playing .host-play-led {
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  animation: led-pulse 1.2s ease-in-out infinite;
}

.product-bar {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  gap: 1.1rem 2rem;
  align-items: center;
  padding: 1.35rem 1.5rem 1.25rem;
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-card);
}

.product-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--neon-red);
}

.product-title {
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.product-version {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  vertical-align: middle;
  margin-left: 0.35rem;
}

.product-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.product-specs-btn {
  margin-top: 0.15rem;
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-specs-btn span { display: inline-block; transition: transform var(--transition-fast); }
.product-specs-btn:hover { color: #ffffff; }
.product-specs-btn:hover span { transform: translateX(3px); }

.product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: flex-start;
}

/* The free demo: one button for the visitor's system, a plain link for the other one. */
.demo-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.demo-alt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(var(--cyan-rgb), 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.demo-alt:hover,
.demo-alt:focus-visible { color: var(--neon-cyan); }

/* What you get: the purchase in four facts, under the product bar. */
.get-section {
  max-width: 936px;
  margin: 3rem auto 0;
}

.get-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.get-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.get-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--card-highlight);
}

.get-item strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
}

.get-item span {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.get-foot {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--text-muted);
}

.get-foot a { color: var(--neon-cyan); }

@media (max-width: 900px) {
  .get-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.compat-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.compat-label,
.compat-platforms {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.compat-platforms { width: 100%; color: var(--text-dark); }

.daw-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.daw-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem;
  background: var(--inset);
  border: 1px solid var(--inset-border);
  border-radius: 999px;
  color: var(--text-secondary);
}

.preview-note {
  max-width: 760px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   DROPSHIFT EDITOR PREVIEW (.dsx)
   Every size and position comes from src/editor.rs, where the window is
   720 x 424. The window is drawn at that size and scaled to fit by app.js;
   below 600 px it reflows into a single column at its own size.
   ========================================================================== */
.dsx-host {
  container: dsxhost / inline-size;
  position: relative;
  width: 100%;
  height: calc(424px * var(--dsx-scale, 1));
  overflow: hidden;
  background: #0b0a10;
  border: 1px solid var(--border-card);
  border-top-color: var(--inset-border);
  border-bottom-color: var(--inset-border);
}

.dsx {
  --bg: #0b0a10;
  --panel-top: #1a1920;
  --panel-bottom: #111016;
  --panel-border: #2c2935;
  --card-top: #14131a;
  --card-bottom: #0e0d12;
  --card-border: #26242e;
  --inset: #08070c;
  --inset-border: #1f1d26;
  --track: #2e2b38;
  --led-off: #34313d;
  --led-on: #e9e8ef;
  --text: #f2f2f5;
  --text-dim: #8a8796;
  --text-soft: #aaa7b6;
  --red: #e8173a;
  --cyan: #19d3f0;
  --amber: #ffb347;
  --violet: #a88cff;
  --metal-light: #d6d6de;
  --metal-dark: #282830;
  --mode: var(--amber);
  --mode-rgb: var(--amber-rgb);

  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 424px;
  transform: scale(var(--dsx-scale, 1));
  transform-origin: 0 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dsx[data-mode="classic"] { --mode: var(--amber); --mode-rgb: var(--amber-rgb); }
.dsx[data-mode="live"]    { --mode: var(--red);   --mode-rgb: var(--red-rgb); }
.dsx[data-mode="studio"]  { --mode: var(--cyan);  --mode-rgb: var(--cyan-rgb); }
.dsx[data-mode="hq"]      { --mode: var(--violet); --mode-rgb: var(--violet-rgb); }

:where(.dsx) button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:where(.dsx) :focus-visible { outline: 1px solid var(--cyan); outline-offset: 2px; }

/* Card label: Medium 8, TEXT_DIM, spacing 1.6 */
.dsx-label {
  position: absolute;
  top: 11px;
  left: 14px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--text-dim);
  pointer-events: none;
}

/* ----- Top bar: logo, title, mode status ----- */
.dsx-top {
  position: relative;
  height: 50px;
}

.dsx-logo {
  position: absolute;
  top: 11px;
  left: 14px;
  width: 92px;
  height: 26px;
  display: block;
}

.dsx-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0.88);
  transition: filter var(--transition-fast);
}

.dsx-logo:hover svg { filter: none; }

.dsx-title {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.dsx-title-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.dsx-title-name em {
  font-style: normal;
  color: var(--red);
}

.dsx-title-sub {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--text-soft);
}

.dsx-status {
  position: absolute;
  top: 14px;
  right: 14px;
  height: 20px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(var(--mode-rgb), 0.6);
  background: rgba(var(--mode-rgb), 0.08);
  color: var(--mode);
  font-size: 8.5px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

/* ----- Scope strip ----- */
.dsx-scope {
  position: relative;
  height: 34px;
  margin: 0 10px;
  border-radius: 8px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--inset-border);
  overflow: hidden;
}

.dsx-scope-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.dsx-scope-tag {
  position: absolute;
  top: 5px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(8, 7, 12, 0.85);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.dsx-scope-tag--in { left: 6px; width: 20px; color: var(--cyan); }
.dsx-scope-tag--out { left: 28px; width: 26px; color: var(--red); }

.dsx-scope-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: text-shadow var(--transition-fast), color var(--transition-fast);
}

.dsx-scope-empty:hover,
.dsx-scope-empty:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.8);
}

.dsx.is-silent .dsx-scope-empty { display: flex; }

/* ----- The pedal panel ----- */
.dsx-panel {
  position: relative;
  height: 290px;
  margin: 8px 10px 0;
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: 212px 224px 212px;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: inset 0 0 0 1.2px var(--panel-border), inset 0 1.2px 0 rgba(255, 255, 255, 0.07);
}

.dsx-screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #26252d;
  box-shadow: 0 0 0 1px #3a3744;
}

.dsx-screw::after {
  content: '';
  position: absolute;
  left: 1.5px;
  top: 3px;
  width: 4px;
  height: 1px;
  background: var(--bg);
  transform: rotate(-31deg);
}

.dsx-screw--tl { top: 2.5px; left: 2.5px; }
.dsx-screw--tr { top: 2.5px; right: 2.5px; }
.dsx-screw--bl { bottom: 2.5px; left: 2.5px; }
.dsx-screw--br { bottom: 2.5px; right: 2.5px; }

.dsx-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsx-card {
  position: relative;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  box-shadow: inset 0 0 0 1px var(--card-border), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ----- Input ----- */
.dsx-input { height: 36px; }
.dsx-input .dsx-label { top: 14px; }

.dsx-seg {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 136px;
  height: 24px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 12px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px #24222c;
}

.dsx-seg button {
  border-radius: 9px;
  font-size: 8.5px;
  letter-spacing: 1px;
  color: var(--text-dim);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dsx-seg button:hover { background: rgba(46, 43, 56, 0.6); }

.dsx-seg button[aria-checked="true"] {
  background: var(--led-on);
  color: var(--bg);
  font-weight: 700;
}

/* ----- Mode list ----- */
.dsx-modes {
  height: 220px;
  box-shadow: inset 0 0 0 1px rgba(var(--mode-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow var(--transition-fast);
}

.dsx-mode-list {
  position: absolute;
  top: 28px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dsx-mode {
  --row: var(--amber);
  --row-rgb: var(--amber-rgb);
  position: relative;
  height: 40px;
  border-radius: 9px;
  background: rgba(8, 7, 12, 0.7);
  text-align: left;
  transition: background var(--transition-fast);
}

.dsx-mode[data-mode="live"] { --row: var(--red); --row-rgb: var(--red-rgb); }
.dsx-mode[data-mode="studio"] { --row: var(--cyan); --row-rgb: var(--cyan-rgb); }
.dsx-mode[data-mode="hq"] { --row: var(--violet); --row-rgb: var(--violet-rgb); }

.dsx-mode:hover { background: rgba(46, 43, 56, 0.6); }

.dsx-mode-name,
.dsx-mode-lat,
.dsx-mode-tag {
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
}

.dsx-mode-name {
  top: 9px;
  left: 12px;
  font-size: 9.5px;
  letter-spacing: 1.4px;
  color: var(--text);
}

.dsx-mode-lat {
  top: 10px;
  right: 10px;
  font-size: 8.5px;
  letter-spacing: 0.6px;
  color: var(--text-soft);
}

.dsx-mode-tag {
  top: 24px;
  left: 12px;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-soft);
}

.dsx-mode[aria-checked="true"] {
  background: rgba(var(--row-rgb), 0.13);
  box-shadow: inset 0 0 0 1px rgba(var(--row-rgb), 0.5);
}

.dsx-mode[aria-checked="true"]::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 3px;
  height: 24px;
  border-radius: 1.5px;
  background: var(--row);
}

.dsx-mode[aria-checked="true"] .dsx-mode-name { color: var(--row); font-weight: 700; }
.dsx-mode[aria-checked="true"] .dsx-mode-lat,
.dsx-mode[aria-checked="true"] .dsx-mode-tag { color: color-mix(in srgb, var(--row) 65%, var(--text)); }

/* ----- Drop: LED ring, labels, knob, fine tune ----- */
.dsx-drop { height: 264px; }

.dsx-drop-body {
  position: absolute;
  top: 0;
  left: 50%;
  width: 224px;
  height: 264px;
  margin-left: -112px;
}

.dsx-leds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.dsx-led { fill: var(--led-off); }
.dsx-led.is-lit { fill: var(--led-on); }
.dsx-led-sel { fill: var(--red); filter: drop-shadow(0 0 3px rgba(var(--red-rgb), 0.9)); }

.dsx-drop-label {
  position: absolute;
  width: 30px;
  height: 20px;
  margin: -10px 0 0 -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 400;
  color: var(--text-dim);
  z-index: 2;
}

.dsx-drop-label:hover { color: #cdcdcd; }

.dsx-drop-label.is-selected {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.dsx-knob-hit {
  position: absolute;
  left: 37px;
  top: 41px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  cursor: grab;
  z-index: 1;
  touch-action: none;
}

.dsx-knob-hit:active,
.dsx-knob-hit.is-dragging { cursor: grabbing; }

.dsx-knob {
  position: absolute;
  left: 52px;
  top: 56px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
}

.dsx-knob:focus-visible { outline: none; }
.dsx-knob:focus-visible .dsx-knob-knurl { box-shadow: 0 4px 0 2px rgba(0, 0, 0, 0.43), 0 0 0 3px rgba(var(--cyan-rgb), 0.7); }

/* Shadow (r60, 4 px down), base and knurled ring (r54 to r58) */
.dsx-knob-knurl {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: repeating-conic-gradient(#4a4a4a 0deg 1.5deg, #151515 1.5deg 3deg);
  box-shadow: 0 4px 0 2px rgba(0, 0, 0, 0.43);
}

/* Machined face, r54: two highlights as light falls on brushed aluminium, three turning rings */
.dsx-knob-metal {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, transparent calc(35% - 0.6px), rgba(0, 0, 0, 0.1) 35%, transparent calc(35% + 0.6px)),
    radial-gradient(circle closest-side, transparent calc(60% - 0.6px), rgba(0, 0, 0, 0.1) 60%, transparent calc(60% + 0.6px)),
    radial-gradient(circle closest-side, transparent calc(85% - 0.6px), rgba(0, 0, 0, 0.1) 85%, transparent calc(85% + 0.6px)),
    conic-gradient(from 10.6deg, #7d7d85 0deg, #b3b3bb 45deg, #7d7d85 90deg, #47474f 135deg, #7d7d85 180deg, #b3b3bb 225deg, #7d7d85 270deg, #47474f 315deg, #7d7d85 360deg);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.59);
  transition: filter var(--transition-fast);
}

.dsx-drop-body.is-hover .dsx-knob-metal { filter: brightness(1.08); }

/* Recessed display, r41 shadow and r39 well */
.dsx-knob-recess {
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #16151c 0%, #07060a 72%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px #000, inset 0 0 0 2.5px rgba(255, 255, 255, 0.05);
}

.dsx-knob-pointer {
  position: absolute;
  left: 60px;
  top: 58.5px;
  width: 9px;
  height: 3px;
  margin-left: 43px;
  transform-origin: -43px 1.5px;
  transform: rotate(var(--angle, 135deg));
  background: var(--red);
  box-shadow: 0 0 0 1.5px rgba(var(--red-rgb), 0.25);
}

.dsx-knob-value {
  position: absolute;
  left: 0;
  right: 0;
  top: 42px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--text);
}

.dsx-knob-value.is-long { top: 47px; font-size: 26px; }

.dsx-knob-note {
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--text-dim);
}

.dsx-fine-label {
  position: absolute;
  top: 232px;
  right: 166px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--text-dim);
}

.dsx-fine-step {
  position: absolute;
  top: 226px;
  width: 18px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}

.dsx-fine-step:hover { color: var(--text); }
.dsx-fine-step--down { left: 64px; }
.dsx-fine-step--up { left: 142px; }

.dsx-fine {
  position: absolute;
  left: 86px;
  top: 226px;
  width: 52px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px #24222c;
  font-size: 8.5px;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  cursor: ns-resize;
  touch-action: none;
}

.dsx-fine:hover,
.dsx-fine.is-dragging { box-shadow: inset 0 0 0 1px var(--text-dim); }
.dsx-fine.is-active { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(var(--amber-rgb), 0.8); }

.dsx-fine-bar {
  position: absolute;
  left: 86px;
  top: 251px;
  width: 52px;
  height: 2px;
  border-radius: 1px;
  background: var(--track);
}

.dsx-fine-bar::after {
  content: '';
  position: absolute;
  left: 25.5px;
  top: -1px;
  width: 1px;
  height: 4px;
  background: var(--text-dim);
}

.dsx-fine-bar i {
  position: absolute;
  top: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--amber);
}

/* ----- Mix ----- */
.dsx-mix { height: 56px; }
.dsx-mix .dsx-label { top: 9px; }

.dsx-mix-value {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  color: var(--text);
}

.dsx-fader {
  --v: 1;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 22px;
  height: 30px;
  cursor: ew-resize;
  touch-action: none;
}

.dsx-fader-track {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 13px;
  height: 3px;
  border-radius: 1.5px;
  background: var(--track);
}

.dsx-fader-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(6px + (100% - 12px) * var(--v));
  background: linear-gradient(90deg, #6b6878, #e9e8ef);
}

.dsx-fader-cap {
  position: absolute;
  top: 3px;
  left: calc(6px + (100% - 24px) * var(--v));
  width: 12px;
  height: 22px;
  border-radius: 2.5px;
  background:
    linear-gradient(transparent 6.5px, rgba(0, 0, 0, 0.45) 6.5px, rgba(0, 0, 0, 0.45) 7.5px, transparent 7.5px, transparent 10.5px, rgba(0, 0, 0, 0.45) 10.5px, rgba(0, 0, 0, 0.45) 11.5px, transparent 11.5px, transparent 14.5px, rgba(0, 0, 0, 0.45) 14.5px, rgba(0, 0, 0, 0.45) 15.5px, transparent 15.5px) 3px 0 / 6px 100% no-repeat,
    linear-gradient(180deg, #b6b6be, #5d5d66);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.59), 0 2px 0 rgba(0, 0, 0, 0.51);
  filter: brightness(0.93);
  transition: filter var(--transition-fast);
}

.dsx-fader:hover .dsx-fader-cap,
.dsx-fader.is-dragging .dsx-fader-cap { filter: none; }

/* ----- Tone ----- */
.dsx-tone { height: 104px; }

.dsx-tone-box {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--cyan-rgb), 0.035);
  box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), 0.3);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.dsx-tone-box:hover,
.dsx-tone-box.is-dragging { background: rgba(var(--cyan-rgb), 0.10); }
.dsx-tone-box.is-on { background: rgba(var(--cyan-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), 0.55); }
.dsx-tone-box.is-on:hover { background: rgba(var(--cyan-rgb), 0.10); }

.dsx-formant { top: 30px; text-align: left; }
.dsx-lowcut { top: 66px; cursor: ns-resize; touch-action: none; }

.dsx-tone-name {
  position: absolute;
  top: 10px;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: var(--text);
  pointer-events: none;
}

.dsx-formant .dsx-tone-name { left: 50px; }
.dsx-lowcut .dsx-tone-name { left: 10px; }

.dsx-switch {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 30px;
  height: 16px;
  border-radius: 8px;
  background: #3a3644;
  transition: background var(--transition-fast);
}

.dsx-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e9e9ee;
  transition: left var(--transition-fast), background var(--transition-fast);
}

.dsx-formant.is-on .dsx-switch { background: var(--cyan); }
.dsx-formant.is-on .dsx-switch i { left: 16px; }

.dsx-lock {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 12px;
  height: 14px;
  color: var(--text-dim);
  display: none;
}

.dsx-formant.is-locked {
  cursor: default;
  background: rgba(138, 135, 150, 0.04);
  box-shadow: inset 0 0 0 1px rgba(138, 135, 150, 0.3);
}

.dsx-formant.is-locked .dsx-switch { background: #2a2733; }
.dsx-formant.is-locked:hover { background: rgba(138, 135, 150, 0.04); }
.dsx-formant.is-locked .dsx-switch i { left: 2px; background: #77737f; }
.dsx-formant.is-locked .dsx-tone-name { color: var(--text-dim); }
.dsx-formant.is-locked .dsx-lock { display: block; }

.dsx-lowcut-bar {
  position: absolute;
  left: 84px;
  top: 13px;
  width: 44px;
  height: 3px;
  border-radius: 1.5px;
  background: var(--track);
  overflow: hidden;
}

.dsx-lowcut-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--track);
}

.dsx-lowcut.is-on .dsx-lowcut-bar i { background: var(--cyan); }

.dsx-lowcut-value {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.dsx-lowcut.is-on .dsx-lowcut-value { color: var(--cyan); }

/* ----- Footswitch ----- */
.dsx-footswitch { height: 88px; }

.dsx-stomp {
  position: absolute;
  left: calc(50% - 23px);
  top: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #15141a;
  box-shadow:
    0 3px 0 1px rgba(0, 0, 0, 0.59),
    inset 0 0 0 0.5px #15141a,
    inset 0 0 0 3.5px #3a3644,
    0 0 0 3.5px rgba(var(--red-rgb), 0),
    0 0 0 6px rgba(var(--red-rgb), 0),
    0 0 0 9px rgba(var(--red-rgb), 0);
  transition: box-shadow var(--transition-fast);
}

.dsx-stomp-metal {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, transparent calc(35% - 0.6px), rgba(0, 0, 0, 0.1) 35%, transparent calc(35% + 0.6px)),
    radial-gradient(circle closest-side, transparent calc(60% - 0.6px), rgba(0, 0, 0, 0.1) 60%, transparent calc(60% + 0.6px)),
    conic-gradient(from 10.6deg, #7d7d85 0deg, #b3b3bb 45deg, #7d7d85 90deg, #47474f 135deg, #7d7d85 180deg, #b3b3bb 225deg, #7d7d85 270deg, #47474f 315deg, #7d7d85 360deg);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.59);
  transition: filter 0.08s ease;
}

.dsx-stomp:hover .dsx-stomp-metal { filter: brightness(1.08); }
.dsx-stomp:active .dsx-stomp-metal { filter: brightness(0.75); }

.dsx-stomp[aria-pressed="true"] {
  box-shadow:
    0 3px 0 1px rgba(0, 0, 0, 0.59),
    inset 0 0 0 0.5px #15141a,
    inset 0 0 0 3.5px var(--red),
    0 0 0 3.5px rgba(var(--red-rgb), 0.22),
    0 0 0 6px rgba(var(--red-rgb), 0.12),
    0 0 0 9px rgba(var(--red-rgb), 0.06);
}

.dsx-stomp-state {
  position: absolute;
  left: calc(50% + 38px);
  top: 44px;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--text-dim);
}

.dsx-stomp-state.is-on { color: var(--red); font-weight: 700; }

/* ----- Footer: BUY NOW and the version ----- */
.dsx-foot {
  position: relative;
  height: 24px;
  margin: 10px 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dsx-pill {
  height: 24px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.dsx-pill--buy {
  width: 92px;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
}

.dsx-pill--buy:hover { background: #ec3a57; }


.dsx-version {
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: 0.8px;
  color: var(--amber);
}

/* ----- Locked in the preview: the plugin's look and defaults, no action ----- */
.dsx .is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.dsx .is-locked * { cursor: not-allowed; }
.dsx .dsx-formant.is-locked { opacity: 1; filter: none; }   /* drawn as the plugin draws a locked option */
.dsx-seg.is-locked button:not([aria-checked="true"]):hover { background: transparent; }
.dsx-fine.is-locked:hover { box-shadow: inset 0 0 0 1px #24222c; }
.dsx-fine-step.is-locked:hover { color: var(--text-dim); }
.dsx-fader.is-locked:hover .dsx-fader-cap { filter: brightness(0.93); }
.dsx-lowcut.is-locked:hover { background: rgba(var(--cyan-rgb), 0.035); }

/* ----- Below 600 px: one column at the editor's own size ----- */
@container dsxhost (max-width: 599.98px) {
  .dsx {
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    padding-bottom: 12px;
  }

  .dsx-top { height: 76px; }
  .dsx-logo { top: 12px; left: 12px; width: 74px; height: 21px; }
  .dsx-title { top: 38px; }
  .dsx-status { top: 12px; right: 12px; }

  .dsx-panel {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 10px;
  }

  .dsx-col { display: contents; }
  .dsx-drop { order: -2; }
  .dsx-input { order: -1; }

  .dsx-foot { flex-wrap: wrap; }
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.categories-section { margin-top: 4.5rem; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  --accent-rgb: var(--red-rgb);
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--card-highlight), var(--shadow-card);
}

.category-card:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  transform: translateY(-3px);
  box-shadow: var(--card-highlight), 0 22px 46px rgba(0, 0, 0, 0.55);
}

.cat-icon-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}

.card-icon-soundwave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}

.card-icon-soundwave .bar {
  width: 6px;
  background: var(--neon-red);
  border-radius: 3px;
  transform-origin: bottom;
  animation: soundwave-bounce 1.4s ease-in-out infinite alternate;
}

.card-icon-soundwave .bar-1 { height: 22px; animation-delay: 0.1s; }
.card-icon-soundwave .bar-2 { height: 36px; animation-delay: 0.3s; }
.card-icon-soundwave .bar-3 { height: 44px; animation-delay: 0s; }
.card-icon-soundwave .bar-4 { height: 30px; animation-delay: 0.4s; }
.card-icon-soundwave .bar-5 { height: 16px; animation-delay: 0.2s; }

.cat-title {
  display: flex;
  flex-direction: column;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}

.cat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.cat-link-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-color);
  transition: gap var(--transition-fast);
}

.category-card:hover .cat-link-indicator { gap: 0.8rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section-block {
  padding: 4.5rem 0;
  position: relative;
}

.section-header { margin-bottom: 2.75rem; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--neon-red);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.1vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 720px;
}

/* ==========================================================================
   SOFTWARE & PROJECTS
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--inset);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.filter-btn:hover { color: var(--text-primary); border-color: var(--border-card-hover); }

.filter-btn.active {
  background: var(--led-on);
  border-color: var(--led-on);
  color: var(--bg-deep);
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  --project-rgb: var(--red-rgb);
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
  box-shadow: var(--card-highlight), var(--shadow-card);
  position: relative;
}

.project-card:hover {
  border-color: rgba(var(--project-rgb), 0.5);
  transform: translateY(-3px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.project-cat-badge,
.project-price-badge,
.project-version-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.project-cat-badge {
  color: var(--text-secondary);
  background: var(--inset);
  border: 1px solid var(--inset-border);
}

/* The regular price, struck through while the launch price lasts. */
.price-was {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.6;
  font-weight: 500;
  margin-right: 0.15em;
}

.project-price-badge {
  color: #ffffff;
  font-weight: 700;
  background: rgba(var(--red-rgb), 0.12);
  border: 1px solid rgba(var(--red-rgb), 0.5);
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.project-version-badge {
  color: var(--neon-cyan);
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
}

.project-tagline {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tech-tags,
.modal-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.tech-tag,
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--inset);
  border: 1px solid var(--inset-border);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: var(--text-secondary);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-project-details {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-project-details:hover { color: var(--text-primary); }

/* Empty category */
.category-upcoming-card {
  grid-column: 1 / -1;
  background: var(--grad-card);
  border: 1px dashed rgba(var(--cyan-rgb), 0.35);
  border-radius: var(--radius-panel);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.upcoming-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.1) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.upcoming-content-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

.upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(var(--cyan-rgb), 0.08);
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  color: var(--neon-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.4rem;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: led-pulse 2s infinite;
}

.upcoming-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.upcoming-subtext {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.upcoming-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Gumroad banner */
.gumroad-feature-banner {
  margin-top: 3.5rem;
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(var(--red-rgb), 0.09), transparent 60%),
    var(--grad-panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  padding: 3rem;
  box-shadow: var(--card-highlight), var(--shadow-card);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.gumroad-banner-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.gumroad-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gumroad-icon-badge {
  background: var(--neon-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gumroad-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.gumroad-banner-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}

.gumroad-banner-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gumroad-benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.benefit-check { color: var(--neon-cyan); font-weight: 700; }

.gumroad-banner-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--inset);
  border: 1px solid var(--inset-border);
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem;
}

.store-guarantee-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   SPECS: the four engines, in the editor's mode colors
   ========================================================================== */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.engine-card {
  --engine: var(--amber);
  --engine-rgb: var(--amber-rgb);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.25rem 1.2rem 1.45rem;
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--card-highlight);
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.engine-card::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 1.35rem;
  width: 3px;
  height: 1.1rem;
  border-radius: 2px;
  background: var(--engine);
}

.engine-card:hover {
  border-color: rgba(var(--engine-rgb), 0.5);
  transform: translateY(-2px);
}

.engine-card.is-current {
  border-color: rgba(var(--engine-rgb), 0.6);
  background: linear-gradient(180deg, rgba(var(--engine-rgb), 0.09), rgba(var(--engine-rgb), 0.02)), var(--grad-card);
}

.engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.engine-name {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--engine);
}

.engine-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: var(--engine);
  border: 1px solid rgba(var(--engine-rgb), 0.45);
  background: rgba(var(--engine-rgb), 0.08);
}

.engine-tech {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82em;
  color: var(--text-muted);
}

.engine-lat {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.engine-lat small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.engine-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.engine-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.engine-footnote {
  margin: 1rem 0 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ accordion: the answer opens to its own height */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 900px;
}

.faq-item {
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  transition: border-color var(--transition-fast);
}

.faq-item.active { border-color: rgba(var(--cyan-rgb), 0.45); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--neon-cyan); }

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--neon-cyan);
  transition: transform var(--transition-fast), color var(--transition-fast);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--neon-red);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.active .faq-answer { grid-template-rows: 1fr; }

.faq-answer-inner { overflow: hidden; }

.faq-answer p {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-answer strong { color: var(--text-primary); font-weight: 600; }

.faq-answer a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(var(--cyan-rgb), 0.4);
  text-underline-offset: 3px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.bio-terminal-card,
.capabilities-wrapper {
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--card-highlight), var(--shadow-card);
}

.bio-terminal-card { overflow: hidden; }

.terminal-bar {
  background: var(--inset);
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--inset-border);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots .dot { width: 9px; height: 9px; border-radius: 50%; }
.terminal-dots .dot.red { background: var(--neon-red); }
.terminal-dots .dot.yellow { background: var(--amber); }
.terminal-dots .dot.green { background: var(--neon-cyan); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-body { padding: 1.8rem; }

.terminal-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.avatar-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
  padding: 2px;
  flex-shrink: 0;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.avatar-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.author-name { font-size: 1.4rem; }

.linkedin-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(10, 102, 194, 0.12);
  border: 1px solid rgba(10, 102, 194, 0.45);
  border-radius: 999px;
  color: #58b6ff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.linkedin-badge-link:hover { background: #0a66c2; color: #ffffff; }

.author-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-top: 0.15rem;
}

.author-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.8);
}

.bio-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.bio-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bio-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stat-box {
  background: var(--inset);
  border: 1px solid var(--inset-border);
  border-radius: 10px;
  padding: 0.95rem 1rem;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.25rem;
}

.capabilities-wrapper { padding: 1.6rem 1.8rem; }

.capabilities-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.1rem;
}

.capabilities-title-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--neon-red);
}

.tech-badge-cyan,
.capability-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  background: rgba(var(--cyan-rgb), 0.07);
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.capability-card {
  background: var(--inset);
  border: 1px solid var(--inset-border);
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  transition: border-color var(--transition-fast);
}

.capability-card:hover { border-color: rgba(var(--cyan-rgb), 0.4); }

.capability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.capability-title { font-size: 1rem; }

.capability-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.capability-highlights li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.bullet-tag { color: var(--neon-red); font-weight: 700; }

.capability-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-info-card {
  background: var(--grad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-panel);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--card-highlight), var(--shadow-card);
}

.contact-highlight-box {
  background: radial-gradient(ellipse 60% 140% at 0% 50%, rgba(var(--red-rgb), 0.08), transparent 70%), var(--inset);
  border: 1px solid rgba(var(--red-rgb), 0.3);
  border-radius: var(--radius-card);
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-email-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}

.contact-email-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--red-rgb), 0.08);
  border: 1px solid rgba(var(--red-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-red);
  flex-shrink: 0;
}

.contact-detail-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

.contact-detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.contact-detail-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-email-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(var(--red-rgb), 0.5);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  overflow-wrap: anywhere;
}

.contact-email-link:hover {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

.contact-email-link svg {
  color: var(--neon-red);
  flex-shrink: 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.contact-email-link:hover svg {
  color: var(--neon-cyan);
  transform: translate(2px, -2px);
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem 1.75rem;
  background: var(--inset);
  border: 1px solid var(--inset-border);
  border-radius: var(--radius-card);
  transition: border-color var(--transition-fast);
}

.contact-item-row:hover { border-color: rgba(var(--cyan-rgb), 0.3); }

.social-links-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.social-pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-pill-link:hover {
  color: var(--text-primary);
  border-color: rgba(var(--cyan-rgb), 0.6);
  background: rgba(var(--cyan-rgb), 0.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
  background: #08070c;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-slogan {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-divider-line {
  width: 100%;
  max-width: 460px;
  height: 1px;
  background: var(--border-subtle);
}

.footer-legal {
  font-size: 0.82rem;
  color: var(--text-dark);
}

/* ==========================================================================
   PRIVACY & CREDITS PAGES
   ========================================================================== */
.legal-page {
  padding: 4rem 0 5rem;
}

.legal-page .container {
  max-width: 820px;
}

.legal-head { margin-bottom: 2rem; }

.legal-date {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.legal-page h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-page p + p { margin-top: 0.8rem; }

.legal-page ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-page strong { color: var(--text-primary); font-weight: 600; }

.legal-page a:not(.btn) {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(var(--cyan-rgb), 0.4);
  text-underline-offset: 3px;
}

.legal-page a:not(.btn):hover { text-decoration-color: var(--neon-cyan); }

.legal-page code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--inset);
  border: 1px solid var(--inset-border);
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.legal-summary {
  padding: 1.3rem 1.5rem;
  background: var(--grad-card);
  border: 1px solid rgba(var(--cyan-rgb), 0.35);
  border-radius: var(--radius-card);
  box-shadow: var(--card-highlight);
}

.legal-summary h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.legal-table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: var(--inset);
}

.legal-table tr:last-child td { border-bottom: none; }
.legal-table td { color: var(--text-secondary); }

/* ==========================================================================
   DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog,
.video-modal-dialog {
  position: relative;
  z-index: 2;
  width: 92%;
  background: var(--grad-panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--card-highlight), 0 30px 80px rgba(0, 0, 0, 0.7);
}

.modal-dialog {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.1rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--track) transparent;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }

.modal-project-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.modal-project-title {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
}

.modal-project-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.modal-note {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(var(--amber-rgb), 0.05);
  border: 1px solid rgba(var(--amber-rgb), 0.3);
  border-radius: 10px;
}

.modal-note-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.modal-note p {
  font-size: 0.85rem;
  line-height: 1.55;
}

.modal-project-specs-container {
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--inset);
  border: 1px solid var(--inset-border);
  border-radius: 12px;
}

.modal-specs-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.modal-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-spec-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.modal-spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  padding-top: 0.1rem;
}

.modal-spec-value { color: var(--text-secondary); }

.modal-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.modal-actions-group .btn-primary { flex: 1 1 100%; }
.modal-actions-group .btn-cyan,
.modal-actions-group .btn-outline { flex: 1 1 0; }

/* Video */
.video-modal-dialog {
  max-width: 840px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.video-modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  padding-right: 2.5rem;
}

.video-modal-close-btn { top: -0.4rem; right: -0.4rem; }

.video-modal-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.video-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-red);
  animation: led-pulse 1.8s infinite;
}

.video-modal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.video-modal-title { font-size: 1.25rem; }

.video-player-container {
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--inset);
  border: 1px solid var(--inset-border);
}

.video-player-element {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #1a1920 0%, var(--inset) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.video-play-icon-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--red-rgb), 0.12);
  border: 1px solid rgba(var(--red-rgb), 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.video-play-icon-glow:hover {
  transform: scale(1.06);
  background: rgba(var(--red-rgb), 0.25);
}

.video-placeholder-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.video-placeholder-title { font-size: 1.1rem; }

.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.video-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.v-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  flex-shrink: 0;
}

.video-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-msg {
  background: var(--panel-top);
  border: 1px solid rgba(var(--cyan-rgb), 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(420px, calc(100vw - 3rem));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast-msg.toast-show { opacity: 1; transform: translateY(0); }
.toast-marker { color: var(--neon-cyan); font-weight: 700; }

body.knob-dragging-active,
body.knob-dragging-active * { cursor: grabbing !important; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes soundwave-bounce {
  0% { transform: scaleY(0.45); }
  100% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .bio-grid,
  .gumroad-feature-banner { grid-template-columns: 1fr; }
  .projects-grid,
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { gap: 1.25rem; }
}

@media (max-width: 860px) {
  .product-bar { grid-template-columns: 1fr; }
  .product-ctas { justify-content: flex-start; }
  .contact-info-card { padding: 1.5rem; }
  .contact-highlight-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .contact-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .brand-logo-svg { height: 34px; max-width: 136px; }
  .hero-section { padding-top: 3rem; }
  .categories-grid,
  .projects-grid { grid-template-columns: 1fr; }
  .mobile-nav-toggle { display: block; }
  .btn-nav-touch { display: none; }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    background: rgba(11, 10, 16, 0.98);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  }

  .nav-menu.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .gumroad-feature-banner { padding: 1.75rem 1.25rem; gap: 1.75rem; }
  .gumroad-benefits-list { grid-template-columns: 1fr; }
  .section-block { padding: 3.5rem 0; }
  .modal-dialog { padding: 1.6rem 1.15rem; }
  .modal-spec-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .video-modal-dialog { padding: 1.25rem 1rem; }
  .host-bar-sub { display: none; }
}

@media (max-width: 600px) {
  .legal-table th,
  .legal-table td { white-space: normal; padding: 0.6rem 0.7rem; }
  .host-bar { flex-wrap: wrap; padding: 0.6rem; }
  .host-controls { width: 100%; justify-content: space-between; }
  .host-tracks button { padding: 0 0.6rem; }
  .engine-grid { grid-template-columns: 1fr; }
  .product-bar { padding: 1.15rem 1rem; }
  .product-ctas .btn { flex: 1 1 auto; }
  .product-ctas .demo-cta { flex: 1 1 100%; }
  .product-ctas .demo-cta .btn { width: 100%; }
  .product-ctas .btn-primary { flex-basis: 100%; }
  .faq-question { font-size: 0.92rem; padding: 1rem 1.05rem; }
  .faq-answer p { padding: 0 1.05rem 1.05rem; font-size: 0.86rem; }
  .contact-email-val { font-size: 1.05rem; }
  .contact-actions-row,
  .contact-actions-row .btn { width: 100%; }
  .terminal-body { padding: 1.3rem; }
  .capabilities-wrapper { padding: 1.3rem 1.1rem; }
  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
}
