:root {
    --bg: #141618;
    --bg2: #1a1d20;
    --bg3: #1e2124;
    --surface: #242729;
    --border: #2e3235;
    --text: #d4d6d8;
    --text-dim: #8a8f94;
    --text-bright: #f0f1f2;
    --accent: #4a9eed;
    --accent-dim: #3a7bc8;
    --exec: #e8e8e8;
    --bool: #9b1d1d;
    --float: #3fc03f;
    --string: #d43dd6;
    --struct: #0f5ab5;
    --orange: #df8a2c;
    --node-bg: #1b1e21;
    --node-header: #2a5aa0;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
  }

  body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: var(--accent);
    color: var(--bg);
  }

  /* ─── NAV ─────────────────────────────── */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 56px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background: rgba(20, 22, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .logo span { color: var(--accent); }

  .theme-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px;
  }
  .theme-toggle button {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    color: var(--text-dim);
    transition: all 0.2s;
  }
  .theme-toggle button:hover { color: var(--text-bright); }
  .theme-toggle button.active {
    background: var(--accent);
    color: var(--bg);
  }

  .nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text-bright); }

  .nav-hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--text-bright);
  }
  .nav-hamburger:hover { background: var(--bg2); }
  .nav-hamburger svg { width: 20px; height: 20px; }

  @media (max-width: 640px) {
    nav {
      padding: 0 1rem;
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .theme-toggle {
      margin-left: auto;
      margin-right: 0.25rem;
    }
    .theme-toggle button {
      padding: 6px 10px;
      font-size: 0.7rem;
    }
    .nav-hamburger { display: inline-flex; }
    .nav-links {
      position: absolute;
      top: 56px;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: rgba(20, 22, 24, 0.98);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0.5rem 0;
      transform: translateY(-8px);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    nav.open .nav-links {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .nav-links a {
      padding: 0.9rem 1.25rem;
      font-size: 0.95rem;
      border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }
  }

  /* ─── HERO ────────────────────────────── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse 65% 58% at 50% 50%, rgba(20, 22, 24, 0.97) 0%, rgba(20, 22, 24, 0.7) 55%, transparent 85%);
    pointer-events: none;
    z-index: -1;
  }

  .hero-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    /* Own compositor layer: without this, scrolled-past canvas frames can be
       composited from stale GPU tiles - ghost trails of old node frames. */
    transform: translateZ(0);
    will-change: transform;
  }
  .hero-canvas canvas {
    width: 100%;
    height: 100%;
  }
  .hero-canvas canvas#dotGrid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
  .hero-canvas canvas#nodeGraph {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
  }

  /* ─── FLOATING WIDGET PREVIEW (Widgets hero theme) ── */
  .widget-preview-float {
    position: absolute;
    right: 24px;
    top: 12vh;
    width: 320px;
    background: #242428;
    border: 1px solid #3a3a40;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    opacity: 0.85;
    z-index: 2;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    pointer-events: auto;
    user-select: none;
  }
  .widget-preview-float.dragging {
    box-shadow: 0 16px 48px rgba(0,0,0,0.65), 0 4px 12px rgba(0,0,0,0.4);
  }
  .wp-titlebar {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: #2a2a2f;
    border-bottom: 1px solid #3a3a40;
    cursor: grab;
    touch-action: none;
  }
  .widget-preview-float.dragging .wp-titlebar { cursor: grabbing; }
  .wp-title { font-size: 11px; font-weight: 600; color: #a1a1aa; flex: 1; }
  .wp-badge {
    font-size: 9px; font-weight: 600;
    background: rgba(74, 144, 217, 0.2);
    color: #6a9ad5;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
  }
  .wp-content { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  .wp-text-title { font-size: 14px; font-weight: 600; color: #e4e4e7; }
  .wp-sep { height: 1px; background: #3a3a40; }
  .wp-row { display: flex; align-items: center; gap: 8px; }
  .wp-label { min-width: 60px; flex-shrink: 0; color: #a1a1aa; font-size: 12px; }
  .wp-progress {
    flex: 1; height: 18px;
    background: #2a2a30;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    touch-action: none;
  }
  .wp-progress-fill { height: 100%; background: #4a7ab5; border-radius: 2px; }
  .wp-progress-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #e4e4e7; font-weight: 500;
  }
  .wp-slider { display: flex; align-items: center; gap: 8px; flex: 1; }
  .wp-slider-track { flex: 1; height: 4px; background: #4a4a50; border-radius: 2px; position: relative; cursor: pointer; touch-action: none; }
  .wp-slider-track::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
  .wp-slider-track:hover .wp-slider-thumb { transform: translateX(-50%) scale(1.2); }
  .wp-slider-fill { height: 100%; background: #4a7ab5; border-radius: 2px; position: absolute; left: 0; top: 0; }
  .wp-slider-thumb {
    width: 12px; height: 12px;
    background: #d4d4d8;
    border-radius: 50%;
    position: absolute; top: -4px;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }
  .wp-slider-val { font-size: 11px; color: #a1a1aa; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
  .wp-checks { gap: 16px; }
  .wp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #e4e4e7; cursor: pointer; }
  .wp-check:hover .wp-checkbox { border-color: #6a9ad5; }
  .wp-checkbox {
    width: 14px; height: 14px;
    border: 1px solid #4a4a50;
    border-radius: 2px;
    background: #1e1e22;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .wp-checkbox.checked { background: #4a7ab5; border-color: #4a7ab5; }
  .wp-checkbox.checked::after { content: '✓'; font-size: 10px; color: #fff; font-weight: 700; }
  .wp-seg {
    flex: 1;
    display: flex;
    background: #1e1e22;
    border: 1px solid #3a3a40;
    border-radius: 3px;
    overflow: hidden;
  }
  .wp-seg-opt {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #a1a1aa;
    padding: 3px 0;
    cursor: pointer;
  }
  .wp-seg-opt + .wp-seg-opt { border-left: 1px solid #3a3a40; }
  .wp-seg-opt:hover { background: #2e2e34; color: #e4e4e7; }
  .wp-seg-opt.active { background: rgba(74, 144, 217, 0.35); color: #fff; }
  .wp-buttons { gap: 6px; }
  .wp-btn {
    flex: 1;
    background: #3a3a40;
    border: 1px solid #4a4a50;
    border-radius: 3px;
    padding: 5px 0;
    min-height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 500; color: #e4e4e7;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
  }
  .wp-btn:hover { background: #45454c; border-color: #5a5a62; }
  .wp-btn:active { background: #2e2e34; }
  .wp-btn-primary { background: rgba(74, 144, 217, 0.35); border-color: #4A90D9; }
  .wp-btn-primary:hover { background: rgba(74, 144, 217, 0.5); border-color: #4A90D9; }
  .wp-btn-primary:active { background: rgba(74, 144, 217, 0.25); }
  @media (max-width: 900px) {
    .widget-preview-float { display: none !important; }
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.3rem;
  }
  .hero h1 .hl {
    color: var(--accent);
  }

  .hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 2.2rem;
  }

  .hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
  }
  .btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

  .btn-ghost {
    color: var(--text-dim);
    padding: 0.7rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
  }
  .btn-ghost:hover { color: var(--text-bright); }


  /* ─── WORKFLOW ─────────────────────────── */
  .workflow {
    padding: 5rem 2rem;
    max-width: 1180px;
    margin: 0 auto;
  }

  .section-label {
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
  }

  .workflow h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
  }

  .steps {
    display: grid;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.2rem;
    padding-bottom: 2.5rem;
    position: relative;
  }

  .step-num {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    position: relative;
    z-index: 1;
  }

  .step:not(:last-child) .step-num::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 1px;
    height: calc(100% + 20px);
    background: var(--border);
    transform: translateX(-50%);
  }

  .step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
  }

  .step-content p {
    color: var(--text-dim);
    font-size: 0.92rem;
    max-width: 520px;
  }

  .step-code {
    margin-top: 0.8rem;
    background: var(--node-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.6;
  }
  .step-code .prompt-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
  }
  .step-code .prompt-text {
    color: var(--text);
  }

  /* ─── CONNECTOR TEASER ──────────────────── */
  .connector-teaser {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .connector-teaser h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
  }
  .connector-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.2rem;
    max-width: 580px;
  }
  .connector-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }
  .connector-bullet {
    padding: 1.3rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .connector-bullet strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
  }
  .connector-bullet span {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
  }
  .connector-cta {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
  }
  .connector-cta:hover { color: var(--text-bright); }
  @media (max-width: 640px) {
    .connector-bullets { grid-template-columns: 1fr; }
  }

  /* ─── FEATURES SECTION ──────────────────── */
  .features {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .features h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }

  .feature-item {
    padding: 1.3rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .feature-item h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
  }

  .feature-item p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* ─── GALLERY FILMSTRIP ──────────────────── */
  .gallery {
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
  }

  .gallery .section-label,
  .gallery h2 {
    text-align: center;
  }

  .gallery .section-label {
    padding: 0 2rem;
  }

  .gallery h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    padding: 0 2rem;
  }

  .gallery-track {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 0 11%;
    cursor: grab;
  }
  .gallery-track.dragging { cursor: grabbing; scroll-behavior: auto; }

  .gallery-slide {
    flex-shrink: 0;
    width: 78%;
    max-width: 820px;
    scroll-snap-align: center;
  }

  .gallery-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9.6;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  .gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
  }

  .gallery-caption {
    margin-top: 14px;
    padding-left: 4px;
  }

  .gallery-caption h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
  }

  .gallery-caption p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 460px;
  }

  /* Nav arrows */
  .gallery-nav {
    position: absolute;
    top: 55%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(20, 22, 24, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-bright);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 10;
  }
  .gallery-nav:hover { opacity: 1; }
  .gallery-nav.prev { left: 20px; }
  .gallery-nav.next { right: 20px; }

  /* Fade edges */
  .gallery-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    pointer-events: none;
    z-index: 5;
  }
  .gallery-fade.left  { left: 0;  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
  .gallery-fade.right { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }

  @media (max-width: 640px) {
    .gallery-slide { width: 88%; }
    .gallery-track {
      padding: 0 1rem;
      gap: 14px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .gallery-track::-webkit-scrollbar { display: none; }
    .gallery-slide { scroll-snap-align: center; }
    .gallery-nav { display: none; }
  }

  /* ─── TRUST / STUDIO SAFE ──────────────── */
  .trust {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .trust h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
  }

  .trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }

  .trust-item {
    padding: 1.3rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .trust-item h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
  }

  .trust-item p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* ─── ANNOUNCEMENT BANNER ──────────────── */
  .promo-banner {
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.45rem 2.5rem 0.45rem 1rem;
    font-size: 0.8rem;
    color: var(--text);
    background: linear-gradient(90deg, rgba(74, 158, 237, 0.12), rgba(74, 158, 237, 0.04));
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  /* display:flex above beats the UA's [hidden]{display:none} - without this
     rule the banner can never be hidden, making the dismiss button a no-op */
  .promo-banner[hidden] { display: none; }
  .promo-banner strong { color: var(--text-bright); }
  .promo-banner a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
  }
  .promo-banner a:hover { text-decoration: underline; }
  .promo-close {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
  }
  .promo-close:hover { color: var(--text-bright); }
  @media (max-width: 640px) {
    .promo-banner {
      top: auto;
      bottom: 0;
      border-bottom: none;
      border-top: 1px solid var(--border);
      background: rgba(20, 22, 24, 0.95);
    }
  }

  /* ─── AI OPTIONS SECTION ────────────────── */
  .ai-options {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .ai-options h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
  }

  .ai-options > p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
  }

  .ai-paths {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .ai-path {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
  }

  .ai-path h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
  }

  .ai-path .path-tag {
    font-size: 0.68rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    margin-bottom: 0.7rem;
  }
  .path-tag.free {
    background: rgba(63, 192, 63, 0.15);
    color: var(--float);
  }
  .path-tag.optional {
    background: rgba(74, 158, 237, 0.15);
    color: var(--accent);
  }

  .ai-path p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
  }

  .ai-path .path-detail {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    opacity: 0.6;
  }

  .gem-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
  }
  .gem-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
  }
  .gem-link:hover { color: var(--text-bright); }

  .ai-path.recommended {
    border-color: var(--accent);
  }
  .ai-rec-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #0a0d10;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
  }

  .ai-path-featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(74, 158, 237, 0.08), var(--bg2) 55%);
    margin-bottom: 1.5rem;
  }
  .ai-path-featured p { max-width: 640px; }
  .ai-path-featured h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .ai-path-featured h3 .ai-new-tag,
  .ai-path-featured h3 .ai-rec-tag { margin-left: 0; }
  .ai-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.1rem;
  }
  .ai-feat h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
  }
  .ai-feat p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
  }
  .ai-new-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3fc03f, #2a9d5c);
    color: #0a0d10;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: aiNewPulse 2.4s ease-in-out infinite;
    white-space: nowrap;
  }
  @keyframes aiNewPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63, 192, 63, 0.35); }
    50% { box-shadow: 0 0 12px 2px rgba(63, 192, 63, 0.3); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ai-new-tag { animation: none; }
  }

  /* ─── DOWNLOAD SECTION ──────────────────── */
  .download {
    padding: 5rem 2rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .download h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
  }

  .dl-notice {
    margin: 1.5rem 0 0.75rem;
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.45);
    border-radius: 10px;
    color: #e8c790;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
  }
  .dl-notice-icon {
    flex: 0 0 16px;
    color: rgba(245, 166, 35, 0.9);
  }
  .dl-notice strong {
    color: #f0d6a6;
    font-weight: 600;
  }

  .dl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .dl-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
  }
  .dl-card.pro {
    border-color: var(--accent);
  }

  .dl-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }

  .dl-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
  }
  .dl-tier-row h3 { margin-bottom: 0; }

  .dl-eb-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #0a0d10;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
  }

  .dl-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
  }
  .dl-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
  }
  .dl-price-was {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-right: 0.45rem;
    vertical-align: middle;
  }
  .dl-tier-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .dl-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
  }

  .dl-features li {
    font-size: 0.84rem;
    color: var(--text-dim);
    padding-left: 1.2rem;
    position: relative;
  }
  .dl-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--float);
    font-size: 0.8rem;
  }

  .dl-btn {
    display: block;
    text-align: center;
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
  }
  .dl-btn.primary {
    background: var(--accent);
    color: var(--bg);
  }
  .dl-btn.primary:hover { background: var(--accent-dim); }
  .dl-btn.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
  }
  .dl-btn.secondary:hover { border-color: #444; }

  .dl-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 1.5rem;
  }
  .dl-relink {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 0.5rem;
  }
  .dl-relink a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .dl-relink a:hover { color: var(--text-bright); }

  /* ─── UPDATES SIGNUP ────────────────────── */
  .waitlist {
    padding: 5rem 2rem;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }
  .waitlist h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 1.8rem;
  }
  /* Centres the EmailOctopus embed regardless of how its own form
     HTML is sized internally, and keeps its inputs on our palette
     where it allows. */
  .waitlist-embed {
    display: flex;
    justify-content: center;
  }
  .waitlist-embed input[type="email"] {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.92rem;
  }
  .waitlist-embed input[type="email"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }
  .waitlist-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 0.9rem;
  }

  /* ─── FOOTER ───────────────────────────── */
  footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-left {
    font-size: 0.78rem;
    color: var(--text-dim);
  }
  .footer-left a {
    color: var(--text-dim);
    text-decoration: none;
  }
  .footer-left a:hover { color: var(--text); }

  .footer-right {
    display: flex;
    gap: 1.2rem;
  }
  .footer-right a {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
  }
  .footer-right a:hover { color: var(--text); }

  .legal {
    width: 100%;
    font-size: 0.68rem;
    color: var(--text-dim);
    opacity: 0.4;
    margin-top: 0.5rem;
    line-height: 1.5;
  }

  .footer-links {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
  }
  .footer-links a {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
  }
  .footer-links a:hover { color: var(--text); }
  /* Sibling Deck apps - pushed to the right edge of the link row.
     Wordmarks use each product's own accent so the brands read as
     themselves (TrackDeck teal, ReviewDeck dusty pink). */
  .footer-links { flex-wrap: wrap; }
  .footer-links .footer-sibling { margin-left: auto; }
  .footer-links .footer-sibling + .footer-sibling { margin-left: 0; }
  .td-wordmark, .rd-wordmark {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-bright);
  }
  .td-wordmark .td-hl { color: #14b8a6; }
  .rd-wordmark .rd-hl { color: #d98fa6; }
  @media (max-width: 600px) {
    .footer-links .footer-sibling { margin-left: 0; }
  }

  .footer-legal-dropdowns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }

  .footer-legal-dropdowns details {
    border-top: 1px solid var(--border);
  }

  .footer-legal-dropdowns details:last-child {
    border-bottom: 1px solid var(--border);
  }

  .footer-legal-dropdowns summary {
    font-size: 0.75rem;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.6rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
  }

  .footer-legal-dropdowns summary::-webkit-details-marker { display: none; }

  .footer-legal-dropdowns summary::before {
    content: '\25B8';
    font-size: 0.65rem;
    transition: transform 0.2s;
  }

  .footer-legal-dropdowns details[open] summary::before {
    transform: rotate(90deg);
  }

  .footer-legal-dropdowns summary:hover {
    color: var(--text);
  }

  .footer-legal-dropdowns .legal-content {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.7;
    padding: 0 0 1rem 1rem;
    opacity: 0.7;
  }

  .footer-legal-dropdowns .legal-content p {
    margin-bottom: 0.6rem;
  }

  .footer-legal-dropdowns .legal-content strong {
    color: var(--text);
    font-weight: 600;
  }

  /* ─── DEMO VIDEO ────────────────────────── */
  .demo {
    padding: 2rem 2rem 5rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .demo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
  }

  .demo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 1px 1px, var(--border) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.3;
  }

  .demo-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(74, 158, 237, 0.15);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.25s;
  }
  .demo-frame:hover .play-btn {
    background: rgba(74, 158, 237, 0.25);
    transform: scale(1.08);
  }

  .play-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
    margin-left: 3px;
  }

  .demo-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
  }

  .demo-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.5;
    margin-top: 0.3rem;
  }

  .demo-chrome {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 32px;
    background: rgba(22, 22, 24, 0.95);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    z-index: 2;
  }
  .chrome-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
  }
  .chrome-title {
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-left: 8px;
    font-weight: 500;
  }

  /* ─── MODES SECTION ────────────────────── */
  .modes {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .modes h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
  }

  .modes > p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
  }

  .mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .mode-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  .mode-card:hover { border-color: #3a3d40; }

  .mode-card .mode-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
  }

  .mode-card .mode-icon {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
    display: block;
  }

  .mode-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mode-card .mode-status {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .status-live {
    background: rgba(63, 192, 63, 0.15);
    color: var(--float);
  }
  .status-beta {
    background: rgba(74, 158, 237, 0.15);
    color: var(--accent);
  }
  .status-planned {
    background: rgba(138, 143, 148, 0.1);
    color: var(--text-dim);
  }

  .mode-card p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.6;
  }

  .mode-card .mode-detail {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    opacity: 0.6;
    line-height: 1.6;
  }

  .mode-card.more-coming {
    border-style: dashed;
    background: transparent;
  }
  .mode-card.more-coming h3 {
    color: var(--text-dim);
  }

  /* Typing animation removed (Aug 2026): the generate demo owns the
     prompt-typing beat now. */

  /* Scroll reveal removed (Aug 2026): content paints immediately,
     same call as the ReviewDeck site. */

  /* ─── MODE ICON ANIMATIONS ────────────── */
  .mode-card svg { overflow: visible; }

  /* Blueprint: wire draws on */
  .mode-card .bp-wire {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: draw-wire 1.6s ease-in-out infinite alternate;
  }
  @keyframes draw-wire {
    0% { stroke-dashoffset: 20; opacity: 0.3; }
    100% { stroke-dashoffset: 0; opacity: 1; }
  }

  /* Materials: sphere rotates */
  .mode-card .mat-orbit {
    animation: orbit-spin 8s linear infinite;
    transform-origin: 14px 14px;
  }
  @keyframes orbit-spin {
    to { transform: rotate(360deg); }
  }

  /* Control rig: joints pulse */
  .mode-card .rig-pulse {
    animation: joint-pulse 1.4s ease-in-out infinite alternate;
  }
  @keyframes joint-pulse {
    0% { r: 0.8; opacity: 0.3; }
    100% { r: 2.5; opacity: 1; }
  }

  /* Blender: hex breathes */
  .mode-card .geo-breathe {
    animation: hex-breathe 3s ease-in-out infinite alternate;
    transform-origin: 14px 15px;
  }
  @keyframes hex-breathe {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.06); opacity: 1; }
  }

  /* Widgets: inner rect pulses */
  .mode-card .widget-pulse {
    animation: widget-pulse 1.5s ease-in-out infinite alternate;
    transform-origin: 11px 9.5px;
  }
  @keyframes widget-pulse {
    0% { transform: scale(0.85); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 1; }
  }

  /* AnimBP: transition line flashes */
  .mode-card .anim-fire {
    animation: anim-fire 1.4s ease-in-out infinite;
  }
  @keyframes anim-fire {
    0%, 100% { opacity: 0.15; stroke-width: 1; }
    50% { opacity: 1; stroke-width: 2.5; }
  }

  /* MetaSounds: equaliser bars */
  .mode-card .sound-bar {
    animation: sound-bar 2s ease-in-out infinite alternate;
  }
  @keyframes sound-bar {
    0% { opacity: 0.3; transform: scaleY(0.4); }
    100% { opacity: 0.8; transform: scaleY(1); }
  }

  /* More coming: dots wave */
  .mode-card.more-coming .dot-wave-1 { animation: dot-wave 1.5s ease-in-out infinite; }
  .mode-card.more-coming .dot-wave-2 { animation: dot-wave 1.5s ease-in-out 0.2s infinite; }
  .mode-card.more-coming .dot-wave-3 { animation: dot-wave 1.5s ease-in-out 0.4s infinite; }
  @keyframes dot-wave {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.7; }
  }

  /* ─── RESPONSIVE ───────────────────────── */
  @media (max-width: 900px) {
    .hero { padding: 5.5rem 1.5rem 3rem; }
  }
  @media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .ai-paths { grid-template-columns: 1fr; }
    .ai-feat-grid { grid-template-columns: 1fr; gap: 0.9rem; }
    .trust-items { grid-template-columns: 1fr; }
    .mode-cards { grid-template-columns: 1fr; }
    .hero { padding: 4.5rem 1.25rem 2.5rem; }
    .preview-nodes { flex-direction: column; align-items: stretch; gap: 1.5rem; }
    .node { min-width: unset; }
    .btn-primary { padding: 0.9rem 1.6rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-ghost { padding: 0.9rem 1.2rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .gallery-track { padding: 0 1rem; }
    .gallery-img-wrap { aspect-ratio: 16 / 10; }
    .hero-canvas canvas#nodeGraph { opacity: 0.22; }
    .hero::before {
      background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(20, 22, 24, 0.96) 0%, rgba(20, 22, 24, 0.7) 55%, transparent 95%);
    }
  }

  /* ─── SECTION VISUAL BREAKS (delete this block to revert) ─── */

  /* Alternating section backgrounds — accent-tinted gradient, follows theme toggle */
  .section-alt {
    position: relative;
  }
  .section-alt::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.6s ease;
  }

  /* Divider lines between major sections */
  .section-divider {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
  }

  /* Accent glow on connector teaser */
  .connector-teaser.section-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.6s ease;
  }

  /* Stats callout bar */
  .stats-callout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-dim);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .stats-callout strong { color: var(--accent); font-weight: 500; }

  /* Download section glow */
  .download.download-glow {
    position: relative;
  }
  .download.download-glow::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    transition: background 0.6s ease;
  }

  /* Understand section */
  .understand {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .understand h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
  }
  .understand-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 580px;
  }
  .understand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }
  .understand-card {
    padding: 1.5rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .understand-icon {
    margin-bottom: 0.8rem;
    opacity: 0.8;
  }
  .understand-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
  }
  .understand-card p {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.65;
  }
  @media (max-width: 640px) {
    .understand-grid { grid-template-columns: 1fr; }
  }

  /* ─── END SECTION VISUAL BREAKS ─── */
  
/* ─── ENGINE-VERSION DOWNLOAD PICKER ───── */
  .dl-picker { position: relative; display: inline-block; }
  .dl-picker summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
  }
  .dl-picker summary::-webkit-details-marker { display: none; }
  .dl-picker .chev { font-size: 0.8em; transition: transform 0.15s ease; }
  .dl-picker[open] .chev { transform: rotate(180deg); }
  .dl-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: #1a1d20;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    z-index: 40;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .dl-menu a {
    display: block;
    padding: 9px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .dl-menu a:hover { background: #24272a; color: var(--text-bright); }

/* Hero sub swaps per selected mode */
.hero-sub { transition: opacity 0.18s ease; }
.hero-sub.swapping { opacity: 0; }

.hero-sub .hero-mode { color: var(--accent); font-weight: 700; }
