/* ============================================================
   ActTrader — Shared device / terminal mock styles
   Extracted verbatim from the finalized homepage (index.html).
   Powers the animated product hero mockups across product pages.
   ============================================================ */

  .terminal-mock {
    width: 100%; height: 100%;
    background: var(--bg);
    display: grid;
    grid-template-columns: 36px 200px 1fr 240px;
    grid-template-rows: 36px 1fr 22px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    overflow: hidden;
    position: relative;
  }
  .tm-rail {
    grid-row: 1 / 4;
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    align-items: center; padding: 8px 0; gap: 4px;
  }
  .tm-logo {
    width: 22px; height: 22px;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    color: var(--bg); font-weight: 800; font-size: 11px;
    margin-bottom: 6px;
    border-radius: 3px;
  }
  .tm-rail-icon {
    width: 24px; height: 24px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--fg-dimmer);
  }
  .tm-rail-icon.active {
    background: var(--brand-soft);
    color: var(--brand);
    position: relative;
  }
  .tm-rail-icon.active::before {
    content: ''; position: absolute; left: -8px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 14px;
    background: var(--brand);
  }
  .tm-rail-icon svg { width: 12px; height: 12px; }

  .tm-topbar {
    grid-column: 2 / 5;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 12px; gap: 10px;
  }
  .tm-market-status {
    display: flex; align-items: center; gap: 5px;
    padding: 3px 7px;
    background: var(--gain-soft);
    color: var(--gain);
    font-size: 8px;
    letter-spacing: 0.08em;
    border-radius: 999px;
  }
  .tm-market-status::before {
    content: ''; width: 4px; height: 4px;
    background: var(--gain); border-radius: 50%;
    animation: pulse 2s ease infinite;
  }
  .tm-theme-pills {
    display: flex; gap: 2px; padding: 2px;
    background: var(--bg-elev);
    border-radius: 999px;
    margin-left: auto; margin-right: auto;
  }
  .tm-pill {
    padding: 3px 10px;
    font-size: 8px; color: var(--fg-dim);
    border-radius: 999px;
  }
  .tm-pill.on {
    background: var(--brand); color: var(--bg);
  }
  .tm-top-stats {
    display: flex; gap: 14px;
    font-family: 'JetBrains Mono', monospace;
  }
  .tm-top-stat .lbl {
    font-size: 7px;
    color: var(--fg-dimmer);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .tm-top-stat .val {
    font-size: 11px;
    color: var(--fg);
    font-weight: 600;
  }
  .tm-top-stat .val.brand { color: var(--brand); }
  .tm-top-stat .val.gain { color: var(--gain); }
  .tm-acct {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 4px 3px 8px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .tm-demo-tag {
    background: var(--warn); color: var(--bg);
    font-size: 7px; font-weight: 700;
    padding: 1px 5px;
    letter-spacing: 0.05em;
  }
  .tm-acct-id { font-size: 9px; color: var(--fg); font-family: 'JetBrains Mono', monospace; }
  .tm-avatar {
    width: 18px; height: 18px;
    background: var(--brand); color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 700;
  }

  .tm-left {
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    padding: 10px;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 8px;
  }
  .tm-section-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px; color: var(--fg-dimmer);
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 4px;
  }
  .tm-pl-big {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--gain);
    font-weight: 600;
    line-height: 1;
  }
  .tm-pl-meta {
    font-size: 8px;
    color: var(--fg-dim);
    display: flex; gap: 8px;
    margin-top: 4px;
  }
  .tm-pl-meta .up { color: var(--gain); }
  .tm-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .tm-mini-stat {
    background: var(--bg-soft);
    padding: 5px 6px;
  }
  .tm-mini-stat .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6px; color: var(--fg-dimmer);
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 2px;
  }
  .tm-mini-stat .val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: var(--fg);
    font-weight: 600;
  }

  .tm-ai-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
    border: 1px solid rgba(201, 123, 74,0.25);
    border-radius: 4px;
    padding: 8px;
    position: relative;
  }
  .tm-ai-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: var(--brand);
  }
  .tm-ai-card .head {
    display: flex; align-items: center; gap: 5px;
    color: var(--brand);
    font-size: 7px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .tm-ai-card .body {
    font-size: 8px;
    color: var(--fg);
    line-height: 1.45;
  }
  .tm-ai-card .body em {
    font-style: normal;
    color: var(--brand);
  }
  .tm-ai-card .link {
    font-size: 7px;
    color: var(--brand);
    margin-top: 6px;
    letter-spacing: 0.05em;
  }

  .tm-watchlist {
    flex: 1;
    overflow: hidden;
  }
  .tm-tabs {
    display: flex; gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    margin-bottom: 4px;
  }
  .tm-tab {
    font-size: 7px;
    color: var(--fg-dim);
    letter-spacing: 0.1em;
    padding-bottom: 3px;
    position: relative;
  }
  .tm-tab.on {
    color: var(--brand);
  }
  .tm-tab.on::after {
    content: ''; position: absolute;
    bottom: -5px; left: 0; right: 0;
    height: 1px; background: var(--brand);
  }
  .tm-watch-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    align-items: center;
    padding: 4px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    border-bottom: 1px solid var(--line);
  }
  .tm-watch-row.active {
    background: var(--brand-soft);
    border-left: 2px solid var(--brand);
    padding-left: 4px;
  }
  .tm-watch-row .sym { color: var(--fg); }
  .tm-watch-row .spread { color: var(--fg-dimmer); font-size: 7px; }
  .tm-watch-row .px { color: var(--fg); }
  .tm-watch-row .chg.up { color: var(--gain); background: var(--gain-soft); padding: 1px 4px; font-size: 7px; }
  .tm-watch-row .chg.dn { color: var(--loss); background: var(--loss-soft); padding: 1px 4px; font-size: 7px; }

  .tm-center {
    padding: 10px;
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
  }
  .tm-instrument-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
  }
  .tm-symbol {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--fg);
  }
  .tm-symbol-sub {
    font-size: 8px; color: var(--fg-dimmer);
  }
  .tm-ohlc { display: flex; gap: 10px; color: var(--fg-dim); }
  .tm-ohlc .v { color: var(--gain); }
  .tm-ohlc .v.dn { color: var(--loss); }
  .tm-tf-pills {
    display: flex; gap: 2px; margin-left: auto;
  }
  .tm-tf {
    font-size: 7px;
    padding: 3px 6px;
    color: var(--fg-dim);
    border-radius: 3px;
  }
  .tm-tf.on { background: var(--brand-soft); color: var(--brand); }

  .tm-ai-banner {
    display: flex; gap: 8px; align-items: flex-start;
    background: var(--bg-soft);
    border-left: 2px solid var(--brand);
    padding: 6px 8px;
    margin-bottom: 8px;
    font-size: 8px;
    line-height: 1.5;
    color: var(--fg);
  }
  .tm-ai-banner::before {
    content: '✦';
    color: var(--brand);
    flex-shrink: 0;
  }
  .tm-ai-banner em { font-style: normal; color: var(--brand); font-weight: 600; }
  .tm-ai-banner .tag { color: var(--warn); font-weight: 600; }
  .tm-ai-banner .meta {
    margin-left: auto;
    display: flex; gap: 6px;
    flex-shrink: 0;
  }
  .tm-ai-banner .meta span {
    background: var(--bg-elev);
    padding: 2px 5px;
    font-size: 7px;
    color: var(--fg-dim);
    border-radius: 2px;
    white-space: nowrap;
  }

  .tm-chart-chips {
    display: flex; gap: 6px;
    margin-bottom: 4px;
  }
  .tm-chart-chip {
    font-size: 7px;
    padding: 2px 6px;
    background: var(--bg-soft);
    color: var(--fg-dim);
    border-radius: 999px;
    letter-spacing: 0.1em;
  }
  .tm-chart-chip.live { background: var(--gain-soft); color: var(--gain); }
  .tm-chart-chip.live::before {
    content: ''; display: inline-block;
    width: 4px; height: 4px;
    background: var(--gain);
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 2s ease infinite;
  }
  .tm-chart-chip.ai { color: var(--brand); }
  .tm-chart-chip.ai::before { content: '✦ '; color: var(--brand); }

  .tm-chart {
    flex: 1;
    position: relative;
    margin-bottom: 6px;
    min-height: 0;
  }
  .tm-chart svg { width: 100%; height: 100%; display: block; }

  .candle-up { fill: var(--gain); fill-opacity: 0.85; stroke: var(--gain); stroke-width: 0.5; }
  .candle-dn { fill: var(--loss); fill-opacity: 0.85; stroke: var(--loss); stroke-width: 0.5; }
  .candle-wick { stroke-width: 1; }
  .candle-up .candle-wick { stroke: var(--gain); }
  .candle-dn .candle-wick { stroke: var(--loss); }

  .tick-candle rect {
    animation: candleGrow 2.5s ease infinite;
    transform-origin: bottom;
  }
  @keyframes candleGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.15); }
  }

  .tm-positions-tabs {
    display: flex; gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 6px;
    font-size: 8px;
    align-items: center;
  }
  .tm-positions-tabs .t {
    color: var(--fg-dim);
    padding-bottom: 3px;
    position: relative;
  }
  .tm-positions-tabs .t.on { color: var(--brand); }
  .tm-positions-tabs .t.on::after {
    content: ''; position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 1px; background: var(--brand);
  }
  .tm-positions-tabs .badge {
    background: var(--brand-soft); color: var(--brand);
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px; padding: 0 4px;
    border-radius: 2px;
    margin-left: 3px;
  }

  .tm-voice {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elev);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 8px;
    color: var(--fg-dim);
    white-space: nowrap;
    max-width: 90%;
  }
  .tm-voice .kbd {
    background: var(--bg-soft);
    padding: 1px 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg);
    border-radius: 2px;
  }
  .tm-voice .mic {
    width: 18px; height: 18px;
    background: var(--brand);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg);
    box-shadow: 0 0 0 0 rgba(201, 123, 74,0.6);
    animation: micPulse 2s ease infinite;
    flex-shrink: 0;
  }
  @keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 123, 74,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(201, 123, 74,0); }
  }

  .tm-right {
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    padding: 10px;
    display: flex; flex-direction: column; gap: 8px;
    overflow: hidden;
  }
  .tm-right-sym {
    font-size: 11px; font-weight: 600; color: var(--fg);
  }
  .tm-bidask {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .tm-bid, .tm-ask {
    padding: 6px;
    text-align: center;
    border: 1px solid;
  }
  .tm-bid {
    background: var(--loss-soft);
    border-color: rgba(207,100,100,0.3);
  }
  .tm-bid .lbl {
    font-size: 7px;
    color: var(--loss);
    letter-spacing: 0.15em;
    margin-bottom: 2px;
  }
  .tm-bid .px {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--loss);
    font-weight: 600;
  }
  .tm-ask {
    background: var(--gain-soft);
    border-color: rgba(109,197,148,0.3);
  }
  .tm-ask .lbl {
    font-size: 7px;
    color: var(--gain);
    letter-spacing: 0.15em;
    margin-bottom: 2px;
  }
  .tm-ask .px {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--gain);
    font-weight: 600;
  }
  .tm-order-tabs {
    display: flex; gap: 2px;
  }
  .tm-order-tab {
    flex: 1;
    padding: 4px;
    text-align: center;
    font-size: 8px;
    background: var(--bg-elev);
    color: var(--fg-dim);
    border-radius: 2px;
  }
  .tm-order-tab.on {
    background: var(--brand);
    color: var(--bg);
  }
  .tm-qty {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 6px;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 4px;
  }
  .tm-qty-btn {
    width: 18px; height: 18px;
    background: var(--bg);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    color: var(--fg-dim);
    font-size: 11px;
  }
  .tm-qty-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--fg);
    font-weight: 600;
  }
  .tm-qty-lbl {
    font-size: 7px; color: var(--fg-dimmer);
    text-align: right;
    margin-bottom: 2px;
  }
  .tm-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0;
    font-size: 8px;
  }
  .tm-toggle-row .name { color: var(--fg); }
  .tm-toggle-row .sub { font-size: 7px; color: var(--fg-dim); margin-top: 1px; }
  .tm-toggle {
    width: 22px; height: 12px;
    background: var(--bg);
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
  }
  .tm-toggle::after {
    content: ''; position: absolute;
    top: 2px; left: 2px;
    width: 8px; height: 8px;
    background: var(--fg-dimmer);
    border-radius: 50%;
    transition: left 0.3s, background 0.3s;
  }
  .tm-toggle.on {
    background: var(--brand);
  }
  .tm-toggle.on::after {
    left: 12px;
    background: white;
  }
  .tm-buy-btn {
    background: var(--gain);
    color: var(--bg);
    padding: 10px;
    text-align: center;
    border-radius: 2px;
    margin-top: auto;
  }
  .tm-buy-btn .big {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em;
  }
  .tm-buy-btn .sub {
    font-size: 7px;
    opacity: 0.7;
    margin-top: 2px;
  }
  .tm-events {
    border-top: 1px solid var(--line);
    padding-top: 6px;
    margin-top: 4px;
  }
  .tm-event {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 6px;
    padding: 3px 0;
    font-size: 7px;
  }
  .tm-event .when { color: var(--fg-dim); line-height: 1.3; }
  .tm-event .what { color: var(--fg); }
  .tm-event .what .ccy { color: var(--brand); font-weight: 600; }
  .tm-event .what .meta { color: var(--fg-dimmer); margin-top: 1px; font-size: 6px; }

  .tm-footer {
    grid-column: 2 / 5;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    display: flex; align-items: center; padding: 0 12px;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg-dimmer);
    letter-spacing: 0.08em;
  }
  .tm-footer::before {
    content: ''; width: 5px; height: 5px;
    background: var(--gain);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--gain);
    animation: pulse 2s ease infinite;
  }
  .tm-footer .right {
    margin-left: auto;
  }

  /* Tick animation for live numbers */
  @keyframes tickFlash {
    0% { background: var(--gain-soft); }
    100% { background: transparent; }
  }
  .ticking {
    animation: tickFlash 0.4s ease;
  }


  /* ==================================================== */
  /* ============= 3D DEPTH STACK ======================= */
  /* ==================================================== */

  .stack-container {
    position: relative;
    perspective: 1800px;
    perspective-origin: center center;
  }

  .stage {
    position: relative;
    height: 200vh;
    overflow: visible;
  }

  .stage-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
  }

  /* Ambient atmospheric layers ----------------------- */
  .stage-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .stage-atmosphere::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120vmin; height: 120vmin;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-soft), transparent 60%);
    filter: blur(40px);
    animation: stageBreathe 8s ease-in-out infinite;
  }
  .stage-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 30%, rgba(201, 123, 74,0.04), transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(201, 123, 74,0.03), transparent 50%);
  }
  @keyframes stageBreathe {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  }

  /* Giant background watermark numeral ---------------- */
  .stage-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) translateZ(-400px);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(400px, 60vw, 800px);
    font-weight: 400;
    color: var(--brand);
    opacity: 0.04;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
  }

  /* Floating product label behind terminal ----------- */
  .stage-label {
    position: absolute;
    top: 18%; left: 50%;
    transform: translate(-50%, 0) translateZ(-100px);
    z-index: 2;
    text-align: center;
    pointer-events: none;
    will-change: transform, opacity;
  }
  .stage-label .kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
    opacity: 0.8;
    display: inline-flex; align-items: center; gap: 12px;
  }
  .stage-label .kicker::before, .stage-label .kicker::after {
    content: '';
    width: 24px; height: 1px;
    background: var(--brand);
  }
  .stage-label h2 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 400;
    color: var(--fg);
    line-height: 1;
    letter-spacing: -0.01em;
  }
  .stage-label h2 .accent {
    color: var(--brand);
  }

  /* Terminal in center, floating with depth ---------- */
  .stage-terminal {
    position: relative;
    width: clamp(560px, 60vw, 900px);
    aspect-ratio: 16 / 10;
    z-index: 5;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    box-shadow:
      0 60px 120px rgba(0,0,0,0.7),
      0 30px 60px rgba(201, 123, 74,0.15),
      0 0 0 1px var(--line-strong);
  }
  .stage-terminal::before {
    content:'';
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 200%;
    background: linear-gradient(105deg, transparent 30%, rgba(201, 123, 74,0.08) 50%, transparent 70%);
    transform: rotate(15deg) translateY(-25%);
    pointer-events: none;
    z-index: 100;
    animation: lightSweep 8s ease-in-out infinite;
  }

  /* Floating chips around the terminal --------------- */
  .stage-chip {
    position: absolute;
    background: rgba(20,12,7,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    padding: 12px 16px;
    z-index: 6;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex; align-items: center; gap: 10px;
  }
  .stage-chip .icon {
    width: 28px; height: 28px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .stage-chip .icon.gain { background: var(--gain-soft); color: var(--gain); }
  .stage-chip .text { display: flex; flex-direction: column; gap: 2px; }
  .stage-chip .lbl {
    font-size: 8.5px;
    color: var(--fg-dimmer);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .stage-chip .val {
    font-size: 13px;
    color: var(--fg);
    font-weight: 600;
  }
  .stage-chip .val.gain { color: var(--gain); }
  .stage-chip .val.brand { color: var(--brand); }

  /* Orbital feature pills ---------------------------- */
  .stage-orbital {
    position: absolute;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 8px 14px;
    font-size: 11px;
    color: var(--fg-dim);
    z-index: 4;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .stage-orbital .dot {
    display: inline-block;
    width: 5px; height: 5px;
    background: var(--brand);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
  }

  /* Bottom progress indicator ----------------------- */
  .stage-progress {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex; align-items: center; gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--fg-dim);
  }
  .stage-progress-bar {
    width: 200px; height: 1px;
    background: var(--line);
    position: relative;
    overflow: hidden;
  }
  .stage-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--brand);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .stage-progress .num {
    color: var(--brand);
    font-weight: 600;
  }

  /* Corner ticks on the stage ----------------------- */
  .stage-corners {
    position: absolute;
    inset: 40px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.4;
  }
  .stage-corners span {
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--brand);
  }
  .stage-corners .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
  .stage-corners .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
  .stage-corners .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
  .stage-corners .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

  /* Section transition divider ---------------------- */
  .stack-intro {
    text-align: center;
    padding: 140px 32px 80px;
    position: relative;
    z-index: 2;
  }
  .stack-intro .pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 12px;
  }
  .stack-intro .pre::before, .stack-intro .pre::after {
    content: ''; width: 32px; height: 1px; background: var(--brand);
  }
  .stack-intro h2 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(40px, 5.5vw, 76px);
    font-weight: 400;
    color: var(--fg);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }
  .stack-intro h2 .accent { color: var(--brand); }
  .stack-intro p {
    font-size: 16px;
    color: var(--fg-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .stack-intro .hint {
    margin-top: 60px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fg-dimmer);
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  }
  .stack-intro .hint::after {
    content:'';
    width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--brand), transparent);
    animation: scrollLine 2s ease-in-out infinite;
  }

  /* Mini terminal variants for different products --- */
  .terminal-mock.compact {
    grid-template-columns: 32px 160px 1fr 200px;
    font-size: 8px;
  }

  /* Terminal zone highlights ------------------------ */
  .tm-zone-highlight {
    position: absolute;
    border: 2px solid var(--brand);
    box-shadow:
      0 0 0 4px rgba(201, 123, 74,0.15),
      inset 0 0 30px rgba(201, 123, 74,0.1);
    pointer-events: none;
    z-index: 50;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
  }
  .tm-zone-highlight.on { opacity: 1; }

  /* Product-specific terminal modes ----------------- */
  /* Exchange mode: replace watchlist with order book */
  .terminal-mock[data-mode="exchange"] .tm-watchlist { display: none; }
  .terminal-mock[data-mode="exchange"] .tm-orderbook { display: flex; }
  .tm-orderbook {
    display: none;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
    flex: 1;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 7.5px;
  }
  .ob-row {
    display: flex; justify-content: space-between;
    padding: 1.5px 4px;
  }
  .ob-row.ask { color: var(--loss); }
  .ob-row.bid { color: var(--gain); }
  .ob-mid {
    padding: 5px 4px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    margin: 2px 0;
  }

  /* AI mode: voice bar grows huge */
  .terminal-mock[data-mode="ai"] .tm-voice {
    transform: translateX(-50%) scale(1.6);
    bottom: 80px;
    box-shadow: 0 0 0 0 rgba(201, 123, 74,0.6);
    animation: micPulse 1.5s ease infinite;
  }

  /* Strategy mode: chart replaced with code editor */
  .terminal-mock[data-mode="strategy"] .tm-chart { display: none; }
  .terminal-mock[data-mode="strategy"] .tm-code { display: block; }
  .tm-code {
    display: none;
    flex: 1;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    line-height: 1.7;
    color: var(--fg);
    background: var(--bg-soft);
    overflow: hidden;
    margin-bottom: 6px;
  }
  .tm-code .com { color: var(--brand); opacity: 0.7; }
  .tm-code .kw { color: var(--brand); }
  .tm-code .gn { color: var(--gain); }
  .tm-code .cursor::after {
    content: '|';
    color: var(--brand);
    animation: blink 1s infinite;
  }
  @keyframes blink {
    50% { opacity: 0; }
  }

  /* Prediction mode: prediction market bars */
  .terminal-mock[data-mode="prediction"] .tm-chart { display: none; }
  .terminal-mock[data-mode="prediction"] .tm-prediction { display: flex; }
  .tm-prediction {
    display: none;
    flex-direction: column;
    flex: 1;
    padding: 10px 14px;
    gap: 10px;
    background: var(--bg-soft);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
  }
  .pred-row { display: flex; flex-direction: column; gap: 4px; }
  .pred-row .q { color: var(--fg-dim); display: flex; justify-content: space-between; }
  .pred-row .q .px { color: var(--brand); font-weight: 600; }
  .pred-row .bar {
    height: 6px;
    background: var(--bg-elev);
    position: relative; overflow: hidden;
  }
  .pred-row .bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--brand);
    width: var(--p, 50%);
    animation: predPulse 4s ease infinite;
  }
  .pred-row.up .bar::after { background: var(--gain); }
  .pred-row.dn .bar::after { background: var(--loss); }
  @keyframes predPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }

  /* Tokenisation mode: rotating hexagon overlay */
  .terminal-mock[data-mode="token"] .tm-chart { display: none; }
  .terminal-mock[data-mode="token"] .tm-token { display: flex; }
  .tm-token {
    display: none;
    flex: 1;
    align-items: center; justify-content: center;
    background: var(--bg-soft);
    margin-bottom: 6px;
    position: relative;
  }
  .tm-token svg { width: 70%; height: 70%; }

  /* Prop mode: ladder visualization */
  .terminal-mock[data-mode="prop"] .tm-chart { display: none; }
  .terminal-mock[data-mode="prop"] .tm-prop { display: flex; }
  .tm-prop {
    display: none;
    flex: 1;
    background: var(--bg-soft);
    margin-bottom: 6px;
    padding: 10px;
    align-items: center; justify-content: center;
    position: relative;
  }
  .tm-prop svg { width: 100%; height: 100%; }

  /* ============================================
     DEVICE CHASSIS — wraps stage-terminal as
     either a MacBook (stages 1–6) or a Phone
     (stage 7 / AI assistant). Pure CSS via
     pseudo-elements + a thin chrome wrapper so
     the existing 3D animation engine on
     .stage-terminal continues to work unchanged.
  ============================================ */

  /* --- Shared: shift the terminal background to a darker "screen" feel --- */
  .stage-terminal.is-macbook,
  .stage-terminal.is-phone {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  /* ============================================
     MACBOOK CHASSIS (stages 1–6)
     Real MacBook Pro proportions:
       - 16:10 display, ~3% bezels with wider bottom bezel
       - Display notch at top center of the lid
       - Trapezoidal keyboard deck visible below the lid
       - Space-black aluminium with subtle silver edge highlights
     Technique:
       - .stage-terminal.is-macbook is a transparent container
       - The mock element becomes the lid; bezels are rendered
         via a thick border (no extra HTML wrapper needed)
       - Notch + edge gloss are pseudo-elements on .stage-terminal
       - .mb-base sits below as the keyboard deck
  ============================================ */
  .stage-terminal.is-macbook {
    /* Reset the original .stage-terminal — chassis is rendered
       on the inner mock element + on .mb-base below */
    width: clamp(620px, 64vw, 980px);
    aspect-ratio: 16 / 10;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
  }
  /* Remove the original light sweep on macbook variant */
  .stage-terminal.is-macbook::before,
  .stage-terminal.is-macbook::after { display: block; }

  /* THE LID — the mock element gets a thick border (bezel) +
     a deep black background (the off-screen). Content renders
     inside the border box automatically. */
  .stage-terminal.is-macbook > .terminal-mock,
  .stage-terminal.is-macbook > .ai-mock,
  .stage-terminal.is-macbook > .bm-mock,
  .stage-terminal.is-macbook > .actfx-mock,
  .stage-terminal.is-macbook > .prop-mock {
    position: relative;
    width: 100%;
    height: 100%;
    /* Bezels: ~3% on top/sides, ~6% bottom — tuned for premium look */
    border: 10px solid #16110d;
    border-bottom-width: 22px;
    border-radius: 14px;
    /* Outer "off" pixel state */
    background: #050300;
    /* The lid depth — dropped shadow + thin silver outer edge */
    box-shadow:
      0 60px 120px rgba(0,0,0,0.7),
      0 30px 60px rgba(201, 123, 74,0.10),
      0 0 0 1px rgba(201, 123, 74,0.14),
      inset 0 1px 0 rgba(201, 123, 74,0.06);
    overflow: hidden;
    box-sizing: border-box;
  }

  /* The notch — sits on top of the top bezel, center */
  .stage-terminal.is-macbook::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22%;
    max-width: 200px;
    height: 14px;
    background: #050300;
    border-radius: 0 0 10px 10px;
    box-shadow:
      inset 0 -1px 1px rgba(201, 123, 74,0.06),
      0 1px 0 rgba(0,0,0,0.4);
    z-index: 10;
  }

  /* Slim silver edge gleam along the top of the lid */
  .stage-terminal.is-macbook::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255,255,255,0.25) 50%,
      transparent 100%);
    pointer-events: none;
    z-index: 11;
    border-radius: 14px 14px 0 0;
  }

  /* Hide the old .mb-edge-gloss element — the ::after handles it now */
  .stage-terminal.is-macbook .mb-edge-gloss { display: none; }

  /* THE BASE — keyboard deck visible below the lid */
  .stage-terminal.is-macbook .mb-base {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 106%;
    height: 18px;
    pointer-events: none;
    z-index: 6;
  }
  /* Hinge: thin recessed band where lid meets base */
  .stage-terminal.is-macbook .mb-base::before {
    content: '';
    position: absolute;
    top: 0; left: 4%; right: 4%;
    height: 4px;
    background:
      linear-gradient(180deg,
        rgba(0,0,0,0.95) 0%,
        rgba(20,16,12,1) 50%,
        rgba(40,28,18,0.6) 100%);
    border-radius: 0 0 2px 2px;
    box-shadow:
      inset 0 1px 0 rgba(0,0,0,0.9),
      inset 0 -1px 0 rgba(201, 123, 74,0.08);
  }
  /* The keyboard deck — trapezoidal wedge */
  .stage-terminal.is-macbook .mb-base::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0; right: 0;
    height: 14px;
    background:
      linear-gradient(180deg,
        #2a1f17 0%,
        #1a1410 30%,
        #0d0a07 70%,
        #050300 100%);
    /* Trapezoidal — wedge shape, narrower at the front */
    clip-path: polygon(0% 0%, 100% 0%, 96% 100%, 4% 100%);
    box-shadow:
      0 16px 32px rgba(0,0,0,0.65),
      0 8px 16px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(201, 123, 74,0.24);
  }
  /* The trackpad lip — small notch indent at front center */
  .stage-terminal.is-macbook .mb-base .mb-lip {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14%;
    height: 4px;
    background:
      linear-gradient(180deg,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.9) 100%);
    border-radius: 4px 4px 0 0;
    z-index: 2;
  }
  /* Side gleams on the keyboard deck */
  .stage-terminal.is-macbook .mb-base .mb-side {
    position: absolute;
    top: 4px;
    height: 14px;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.02));
    z-index: 3;
  }
  .stage-terminal.is-macbook .mb-base .mb-side.left { left: 1%; clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%); }
  .stage-terminal.is-macbook .mb-base .mb-side.right { right: 1%; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%); }

  /* ============================================
     PHONE CHASSIS (stage 7 — AI Assistant)
  ============================================ */
  .stage-terminal.is-phone {
    width: clamp(280px, 30vw, 360px);
    aspect-ratio: 9 / 19;
    padding: 8px;
    border-radius: 44px;
    background: linear-gradient(145deg, #1a120b 0%, #050300 100%);
    box-shadow:
      0 60px 120px rgba(0,0,0,0.85),
      0 30px 60px rgba(201, 123, 74,0.12),
      inset 0 0 0 2px #3a2a1c,
      inset 0 0 0 5px #000,
      0 0 0 1px rgba(201, 123, 74,0.06);
    overflow: visible;
  }
  .stage-terminal.is-phone::before { display: none; }

  /* Phone screen content */
  .stage-terminal.is-phone > .terminal-mock,
  .stage-terminal.is-phone > .ai-mock {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    background: #050300;
    box-shadow: inset 0 0 15px rgba(0,0,0,1);
  }

  /* Dynamic island notch */
  .stage-terminal.is-phone .ph-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 24px;
    background: #000;
    border-radius: 999px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    box-shadow:
      inset 0 -1px 2px rgba(201, 123, 74,0.14),
      0 0 0 1px rgba(0,0,0,0.6);
  }
  .stage-terminal.is-phone .ph-notch::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gain);
    box-shadow: 0 0 6px rgba(74,222,128,0.7);
    animation: chPulse 2s ease-in-out infinite;
  }

  /* Hardware buttons */
  .stage-terminal.is-phone .ph-btn {
    position: absolute;
    background: linear-gradient(90deg, #181410 0%, #0d0a07 100%);
    box-shadow:
      -2px 0 5px rgba(0,0,0,0.8),
      inset -1px 0 1px rgba(201, 123, 74,0.24),
      inset 1px 0 2px rgba(0,0,0,0.8);
    border-radius: 2px;
    z-index: 1;
  }
  .stage-terminal.is-phone .ph-btn.b1 { top: 14%; left: -3px; width: 3px; height: 24px; }
  .stage-terminal.is-phone .ph-btn.b2 { top: 22%; left: -3px; width: 3px; height: 40px; }
  .stage-terminal.is-phone .ph-btn.b3 { top: 33%; left: -3px; width: 3px; height: 40px; }
  .stage-terminal.is-phone .ph-btn.b4 { top: 22%; right: -3px; width: 3px; height: 60px; transform: scaleX(-1); }

  /* Home indicator */
  .stage-terminal.is-phone .ph-home {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
    z-index: 50;
  }

  /* In phone mode, push the terminal-mock content down past the notch */
  .stage-terminal.is-phone > .terminal-mock {
    padding-top: 38px;
    padding-bottom: 22px;
    /* The compact terminal grid breaks at this narrow width — switch
       to a single-column stack so the rail/center/right collapse into
       a phone-friendly vertical layout */
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    font-size: 8.5px !important;
  }
  .stage-terminal.is-phone > .terminal-mock .tm-rail,
  .stage-terminal.is-phone > .terminal-mock .tm-topbar,
  .stage-terminal.is-phone > .terminal-mock .tm-right {
    display: none !important;
  }
  .stage-terminal.is-phone > .terminal-mock .tm-left {
    display: block !important;
    border-right: 0 !important;
  }
  .stage-terminal.is-phone > .ai-mock {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  /* ============================================
     CINEMATIC UPGRADE — match the hero's deep card
     aesthetic while preserving the existing 3D
     scroll animation engine. Adds:
       - Premium card backing inside each stage-pin
       - Silver Inter-900 brand watermark
       - Inter bold + italic-serif label typography
       - Glass-badge style chips
       - Eyebrow pill kicker with pulse dot
  ============================================ */

  /* Premium dark card backing — sits as a child layer in the stage-pin */
  .stage-pin::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    height: 88vh;
    max-width: 1600px;
    border-radius: 32px;
    background: linear-gradient(145deg, #181410 0%, #0d0a07 100%);
    box-shadow:
      0 40px 100px -20px rgba(0,0,0,0.9),
      0 20px 40px -20px rgba(0,0,0,0.8),
      inset 0 1px 2px rgba(201, 123, 74,0.14),
      inset 0 -2px 4px rgba(0,0,0,0.8);
    border: 1px solid rgba(201, 123, 74,0.08);
    z-index: 0;
    pointer-events: none;
  }
  @media (min-width: 768px) {
    .stage-pin::before { border-radius: 40px; }
  }
  /* Inner warm radial sheen on top of the card */
  .stage-pin::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    height: 88vh;
    max-width: 1600px;
    border-radius: 32px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(900px circle at 50% 30%, rgba(201, 123, 74,0.10) 0%, transparent 45%);
    mix-blend-mode: screen;
    box-shadow: inset 0 0 200px rgba(0,0,0,0.5);
  }
  @media (min-width: 768px) {
    .stage-pin::after { border-radius: 40px; }
  }

  /* Watermark — now displays the brand name in silver Inter 900 */
  .stage-watermark {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    font-size: clamp(80px, 14vw, 220px) !important;
    text-transform: uppercase !important;
    letter-spacing: -0.06em !important;
    line-height: 0.85 !important;
    background: linear-gradient(180deg, #f0e8db 0%, rgba(255,255,255,0.30) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    opacity: 0.18 !important;
    filter:
      drop-shadow(0 12px 24px rgba(0,0,0,0.8))
      drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    white-space: nowrap;
  }

  /* Label — hero-style typography */
  .stage-label .kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
    padding: 7px 16px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-soft-strong);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  /* Remove the old horizontal bar decorations on the kicker */
  .stage-label .kicker::before,
  .stage-label .kicker::after {
    display: none !important;
  }
  /* Add a pulse dot inside the kicker via ::before */
  .stage-label .kicker::before {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important; height: 6px !important;
    background: var(--brand) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px var(--brand) !important;
    animation: stageKickerPulse 2s ease-in-out infinite !important;
  }
  @keyframes stageKickerPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
  }

  /* Label heading — flip to Inter bold base, italic-serif accent */
  .stage-label h2 {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: clamp(40px, 5.5vw, 76px) !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
    color: var(--fg) !important;
    text-shadow:
      0 12px 28px rgba(0,0,0,0.5),
      0 2px 6px rgba(0,0,0,0.3);
  }
  .stage-label h2 .accent {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: var(--brand) !important;
  }

  /* Chips — restyle as floating glass badges */
  .stage-chip {
    background: linear-gradient(135deg, rgba(201, 123, 74,0.14) 0%, rgba(255,255,255,0.01) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow:
      0 0 0 1px rgba(201, 123, 74,0.16),
      0 25px 50px -12px rgba(0,0,0,0.8),
      inset 0 1px 1px rgba(255,255,255,0.18),
      inset 0 -1px 1px rgba(0,0,0,0.5) !important;
    border: 0 !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    display: flex !important; align-items: center !important; gap: 10px !important;
  }
  .stage-chip .icon {
    width: 32px !important; height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, rgba(201, 123, 74,0.22), rgba(201, 123, 74,0.04)) !important;
    border: 1px solid rgba(201, 123, 74,0.3) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: var(--brand) !important;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    flex-shrink: 0;
  }
  .stage-chip .icon.gain {
    background: linear-gradient(180deg, rgba(74,222,128,0.22), rgba(74,222,128,0.04)) !important;
    border: 1px solid rgba(74,222,128,0.3) !important;
    color: var(--gain) !important;
  }
  .stage-chip .text { display: flex !important; flex-direction: column !important; gap: 2px !important; }
  .stage-chip .lbl {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--fg) !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.01em;
  }
  .stage-chip .val {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    color: var(--fg-dim) !important;
  }
  .stage-chip .val.gain { color: var(--gain) !important; }
  .stage-chip .val.brand { color: var(--brand) !important; }

  /* Atmospheric ::before/::after now sit BELOW the card backing
     since they're on .stage-atmosphere which is at z-index:0 but
     the ::before/::after of .stage-pin (card) is z-index:0 too.
     Push atmosphere below explicitly. */
  .stage-atmosphere { z-index: -1; }

  /* Ensure all positioned children sit ABOVE the card backing */
  .stage-watermark,
  .stage-label,
  .stage-terminal,
  .stage-orbital,
  .stage-chip,
  .stage-quotes,
  .stage-quote,
  .stage-progress,
  .stage-ticker,
  .stage-corners {
    z-index: auto;
  }
  .stage-watermark { z-index: 1 !important; }
  .stage-label { z-index: 2 !important; }
  .stage-terminal { z-index: 5 !important; }
  .stage-orbital, .stage-chip { z-index: 6 !important; }
  .stage-progress { z-index: 10 !important; }

  /* The corner brackets — push them to the card's edges, not viewport */
  .stage-corners {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    height: 88vh;
    max-width: 1600px;
    pointer-events: none;
    z-index: 3;
  }

  /* Slightly tone down the orbitals to match the glass language */
  .stage-orbital {
    background: linear-gradient(135deg, rgba(201, 123, 74,0.10) 0%, rgba(255,255,255,0.01) 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(201, 123, 74,0.14) !important;
    box-shadow:
      0 12px 24px rgba(0,0,0,0.4),
      inset 0 1px 1px rgba(201, 123, 74,0.16) !important;
  }


  /* ============================================
     RESPONSIVE — collapse chassis on small screens
  ============================================ */
  @media (max-width: 980px) {
    .stage { height: auto; }
    .stage-pin { position: relative; height: auto; padding: 80px 20px; }
    .stage-pin::before, .stage-pin::after { display: none; }
    .stage-terminal { width: 100%; }
    .stage-watermark { font-size: 60px !important; opacity: 0.10 !important; }
    .stage-label { position: relative; top: 0; transform: none; margin-bottom: 32px; }
    .stage-label h2 { font-size: 40px !important; }
    .stage-chip, .stage-orbital { display: none; }
    .stage-progress { display: none; }
    .stage-corners { display: none; }
    .terminal-mock { grid-template-columns: 28px 1fr 0; }
    .terminal-mock .tm-right, .terminal-mock .tm-left { display: none; }
    .stage-terminal.is-macbook { padding: 8px 8px 14px 8px; }
    .stage-terminal.is-macbook .mb-base { display: none; }
    .stage-terminal.is-phone { width: clamp(220px, 60vw, 300px); }
  }





  /* ============================================ */
  /* === PROP DASHBOARD MOCK (real product) ===== */
  /* ============================================ */
  .prop-mock {
    width: 100%; height: 100%;
    background: var(--bg-soft);
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 36px 1fr;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    overflow: hidden;
    border-radius: inherit;
  }
  .prop-topbar {
    grid-column: 1 / 3;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 14px; gap: 12px;
  }
  .prop-topbar .tm-logo {
    width: 22px; height: 22px;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    color: var(--bg); font-weight: 800; font-size: 11px;
    border-radius: 3px;
  }
  .prop-topbar .brand-name {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--fg);
  }
  .prop-topbar .brand-name em { color: var(--brand); }
  .prop-topbar .right {
    margin-left: auto;
    display: flex; gap: 10px; align-items: center;
  }
  .prop-topbar .icn {
    width: 18px; height: 18px;
    color: var(--fg-dim);
  }
  .prop-topbar .avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #8B6F1A);
  }

  .prop-side {
    background: var(--bg);
    border-right: 1px solid var(--line);
    padding: 12px 10px;
    overflow: hidden;
  }
  .prop-side-head {
    display: flex; justify-content: space-between;
    align-items: center;
    font-size: 9px; color: var(--fg);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .prop-side-head .sort {
    color: var(--fg-dim);
    font-size: 8px;
  }
  .comp-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    transition: border-color 0.3s;
  }
  .comp-card.active {
    border-color: var(--brand);
    background: var(--brand-soft-strong, rgba(201, 123, 74,0.14));
  }
  .comp-card .trophy {
    width: 22px; height: 22px;
    background: var(--brand-soft-strong, rgba(201, 123, 74,0.14));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    font-size: 11px;
  }
  .comp-card .name {
    font-size: 9px;
    color: var(--fg);
    font-weight: 600;
    line-height: 1.2;
  }
  .comp-card .badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.06em;
  }
  .comp-card .badge.active { background: var(--brand-soft-strong, rgba(201, 123, 74,0.18)); color: var(--brand); }
  .comp-card .badge.funded { background: var(--gain-soft); color: var(--gain); }
  .comp-card .badge.ended { background: var(--bg-elev); color: var(--fg-dim); }
  .comp-card .stats {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
    font-family: 'JetBrains Mono', monospace;
  }
  .comp-card .stat {
    display: flex; flex-direction: column;
  }
  .comp-card .stat .v {
    font-size: 9px;
    color: var(--fg);
    font-weight: 600;
  }
  .comp-card .stat .l {
    font-size: 6.5px;
    color: var(--fg-dimmer);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1px;
  }

  .prop-main {
    padding: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .prop-hero {
    display: flex; align-items: center;
    gap: 10px;
  }
  .prop-hero .trophy {
    width: 28px; height: 28px;
    background: var(--brand-soft-strong, rgba(201, 123, 74,0.18));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
    font-size: 13px;
  }
  .prop-hero h3 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--fg);
    font-weight: 700;
  }
  .prop-hero .meta {
    margin-left: auto;
    display: flex; gap: 6px;
  }
  .prop-hero .pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--fg-dim);
  }
  .prop-hero .pill.phase {
    background: var(--brand-soft-strong, rgba(201, 123, 74,0.18));
    color: var(--brand);
  }

  .prop-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
  }
  .prop-metric {
    background: var(--bg);
    padding: 10px;
  }
  .prop-metric .l {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg-dimmer);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .prop-metric .v {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--fg);
    font-weight: 700;
  }
  .prop-metric .v.brand { color: var(--brand); padding: 2px 6px; background: var(--brand-soft); border-radius: 3px; display: inline-block; }
  .prop-metric .sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg-dim);
    margin-top: 4px;
  }
  .prop-metric .sub.gain { color: var(--gain); }
  .prop-metric .sub.loss { color: var(--loss); }

  .prop-balance {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .prop-balance .col {
    display: flex; flex-direction: column;
  }
  .prop-balance .col .l {
    font-size: 7px;
    color: var(--fg-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .prop-balance .col .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--fg);
    font-weight: 600;
  }

  .prop-chart-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }
  .prop-chart-head {
    display: flex; align-items: center;
  }
  .prop-chart-head .title {
    font-size: 11px; color: var(--fg);
    font-weight: 600;
  }
  .prop-chart-head .ctrl {
    margin-left: auto;
    display: flex; gap: 4px;
  }
  .prop-chart-head .ctrl span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    padding: 3px 7px;
    border-radius: 3px;
    background: var(--bg);
    color: var(--fg-dim);
    border: 1px solid var(--line);
  }
  .prop-chart-area {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px;
    position: relative;
    min-height: 0;
  }
  .prop-chart-area svg { width: 100%; height: 100%; }

  .prop-tabs {
    display: flex; gap: 4px;
    padding-top: 4px;
  }
  .prop-tab {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    font-size: 8px;
    color: var(--fg-dim);
    border-radius: 4px;
  }
  .prop-tab.on {
    background: var(--brand);
    color: var(--bg);
    font-weight: 600;
  }

  .prop-rules {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .prop-rule-block {}
  .prop-rule-block .head {
    display: flex; justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .prop-rule-block .head .name { font-size: 8px; color: var(--fg); font-weight: 600; }
  .prop-rule-block .head .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
  .prop-rule-block .pct {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--fg);
    font-weight: 700;
    margin: 4px 0;
  }
  .prop-rule-block .bar {
    height: 3px; background: var(--bg-elev);
    border-radius: 999px; overflow: hidden;
    margin: 4px 0;
  }
  .prop-rule-block .bar .fill {
    height: 100%; background: var(--brand);
    width: var(--p, 0%);
  }
  .prop-rule-block .req {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg-dim);
  }

  /* ============================================ */
  /* === AI ASSISTANT MOCK (real Smart Trading) = */
  /* ============================================ */
  .ai-mock {
    width: 100%; height: 100%;
    background: #050505;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: inherit;
  }
  .ai-mock::before {
    content:'';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 30%, rgba(201, 123, 74,0.10), transparent 50%),
      radial-gradient(ellipse at 80% 80%, rgba(201, 123, 74,0.06), transparent 50%);
    pointer-events: none;
  }
  .ai-mock-header {
    padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
    position: relative; z-index: 2;
  }
  .ai-mock-header::after {
    content:'';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
      transparent,
      rgba(201, 123, 74,0.3),
      rgba(255,200,150,0.4),
      rgba(201, 123, 74,0.3),
      transparent);
  }
  .ai-mock-logo-wrap {
    display: flex; align-items: center; gap: 6px;
  }
  .ai-mock-logo-text {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    background: linear-gradient(135deg, #8C5530 0%, #E89A5F 50%, #8C5530 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
  .ai-mock-ai-badge {
    background: linear-gradient(135deg, #8C5530, #E89A5F);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
  }

  .ai-mock-body {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px;
    gap: 20px;
    position: relative; z-index: 2;
  }
  .ai-mock-bigicon {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
  }
  .ai-mock-bigicon .at {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 28px;
    background: linear-gradient(135deg, #8C5530, #E89A5F);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
  }
  .ai-mock-bigicon .ai-box {
    background: linear-gradient(135deg, #8C5530, #E89A5F);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
  }
  .ai-mock-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
  }
  .ai-mock-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    text-align: center;
    max-width: 380px;
  }

  .ai-mock-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 460px;
    margin-top: 4px;
  }
  .ai-suggest {
    background: rgba(20,12,7,0.6);
    border: 1px solid rgba(201, 123, 74,0.15);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
  }
  .ai-suggest.glow {
    border-color: rgba(201, 123, 74,0.6);
    box-shadow:
      0 0 20px rgba(201, 123, 74,0.2),
      inset 0 0 12px rgba(201, 123, 74,0.05);
  }
  .ai-suggest .ico {
    font-size: 16px;
    flex-shrink: 0;
  }
  .ai-suggest .q {
    font-size: 9px;
    color: white;
    font-weight: 500;
    line-height: 1.35;
  }

  .ai-mock-input {
    margin-top: 12px;
    width: 100%;
    max-width: 460px;
    background: rgba(20,12,7,0.6);
    border: 1px solid rgba(201, 123, 74,0.3);
    border-radius: 999px;
    padding: 10px 14px 10px 18px;
    display: flex; align-items: center; gap: 10px;
    backdrop-filter: blur(12px);
    position: relative;
  }
  .ai-mock-input::before {
    content:'';
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    background: linear-gradient(90deg,
      rgba(201, 123, 74,0.4),
      rgba(255,200,150,0.5),
      rgba(201, 123, 74,0.4));
    z-index: -1;
    opacity: 0.6;
    animation: aiGradient 3s ease infinite;
  }
  @keyframes aiGradient {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
  }
  .ai-mock-input .placeholder {
    flex: 1;
    font-size: 9px;
    color: rgba(255,255,255,0.4);
  }
  .ai-mock-input .send {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8C5530, #E89A5F);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    box-shadow: 0 0 12px rgba(201, 123, 74,0.5);
  }
  .ai-mock-footnote {
    font-size: 7px;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    text-align: center;
  }

  /* ============================================ */
  /* === QUOTE PILLS (parallax flying) ========== */
  /* ============================================ */
  .stage-quotes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
  }
  .stage-quote {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-dim);
    padding: 8px 14px;
    background: rgba(13,10,7,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-left: 2px solid var(--brand);
    white-space: nowrap;
    will-change: transform, opacity;
    backface-visibility: hidden;
  }
  .stage-quote .accent { color: var(--brand); }

  /* ============================================ */
  /* === TYPOGRAPHIC LAYER 2 (keyword tickers) == */
  /* ============================================ */
  .stage-ticker {
    position: absolute;
    bottom: 14%; left: 0; right: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    will-change: transform, opacity;
  }
  .stage-ticker .row {
    white-space: nowrap;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(60px, 8vw, 120px);
    color: var(--brand);
    opacity: 0.05;
    line-height: 0.9;
    will-change: transform;
  }

  /* ============================================ */
  /* === MOUSE-TILT WRAPPER ===================== */
  /* ============================================ */
  .terminal-tilt-wrap {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }


  /* ============================================ */
  /* === HERITAGE 2000 ========================== */
  /* ============================================ */
  .heritage {
    position: relative;
    padding: 160px 0 140px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg);
  }
  .heritage::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px; height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 123, 74,0.08), transparent 60%);
    pointer-events: none;
  }
  .heritage-bg-numeral {
    position: absolute;
    bottom: -120px; right: -80px;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(380px, 50vw, 600px);
    color: var(--brand);
    opacity: 0.04;
    line-height: 0.85;
    user-select: none;
    pointer-events: none;
    will-change: transform;
  }
  .heritage-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
  }
  .heritage-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 100px;
    align-items: start;
  }
  .heritage-text .pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 24px;
    display: inline-flex; align-items: center; gap: 12px;
  }
  .heritage-text .pre::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--brand);
  }
  .heritage-text h2 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(44px, 5.5vw, 76px);
    font-weight: 400;
    color: var(--fg);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 40px;
  }
  .heritage-text h2 .accent {
    color: var(--brand);
  }
  .heritage-text h2 .roman {
    font-style: normal;
    font-family: 'Instrument Serif', serif;
  }
  .heritage-body {
    font-size: 16px;
    color: var(--fg-dim);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 560px;
  }
  .heritage-body strong {
    color: var(--fg);
    font-weight: 500;
  }
  .heritage-body em {
    font-style: italic;
    color: var(--brand);
    font-family: 'Instrument Serif', serif;
    font-size: 1.05em;
  }

  .heritage-marker {
    position: relative;
    padding: 40px 32px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
    display: flex; flex-direction: column;
    align-items: center;
  }
  .heritage-marker::before, .heritage-marker::after,
  .heritage-marker .corner {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--brand);
  }
  .heritage-marker::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
  .heritage-marker::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
  .heritage-marker .corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
  .heritage-marker .corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

  .heritage-year {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 140px;
    font-weight: 400;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
  }
  .heritage-since {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--fg-dim);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-top: 8px;
    margin-bottom: 32px;
  }
  .heritage-marks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    width: 100%;
    margin-top: 16px;
  }
  .heritage-mark {
    background: var(--bg);
    padding: 18px 12px;
    text-align: center;
  }
  .heritage-mark-num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 32px;
    color: var(--fg);
    line-height: 1;
  }
  .heritage-mark-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    color: var(--fg-dim);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 6px;
  }

  /* ============================================ */
  /* === VISION 2026 ROADMAP ==================== */
  /* ============================================ */
  .vision {
    padding: 160px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
  }
  .vision::before {
    content: '';
    position: absolute;
    top: 20%; left: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 123, 74,0.08), transparent 60%);
    pointer-events: none;
  }
  .vision-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
  }
  .vision-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
  }
  .vision-header .pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 12px;
  }
  .vision-header .pre::before, .vision-header .pre::after {
    content: '';
    width: 28px; height: 1px;
    background: var(--brand);
  }
  .vision-header h2 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    color: var(--fg);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
  }
  .vision-header h2 .accent { color: var(--brand); }
  .vision-header p {
    font-size: 16px;
    color: var(--fg-dim);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
  }

  .roadmap-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .roadmap-flow::before {
    content: '';
    position: absolute;
    top: 50px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand) 10%, var(--brand) 90%, transparent);
    opacity: 0.4;
    z-index: 0;
  }
  .milestone {
    padding: 32px 24px;
    border-right: 1px solid var(--line);
    position: relative;
    z-index: 1;
    background: var(--bg-soft);
    transition: background 0.3s;
  }
  .milestone:last-child { border-right: 0; }
  .milestone:hover { background: var(--bg-card); }
  .milestone-marker {
    width: 44px; height: 44px;
    border: 1px solid var(--brand);
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--brand);
    margin-bottom: 18px;
    border-radius: 50%;
    position: relative;
  }
  .milestone-marker::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--brand);
    opacity: 0.2;
  }
  .milestone-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--fg-dim);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .milestone-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
  }
  .milestone-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 8px;
  }
  .milestone-list li {
    font-size: 12px;
    color: var(--fg-dim);
    padding-left: 14px;
    position: relative;
    line-height: 1.45;
  }
  .milestone-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 1px;
    background: var(--brand);
  }

  @media (max-width: 980px) {
    .heritage-grid { grid-template-columns: 1fr; gap: 48px; }
    .heritage-year { font-size: 96px; }
    .heritage-bg-numeral { display: none; }
    .roadmap-flow { grid-template-columns: 1fr; }
    .milestone { border-right: 0; border-bottom: 1px solid var(--line); }
    .milestone:last-child { border-bottom: 0; }
    .roadmap-flow::before { display: none; }
  }

  /* ============================================ */
  /* === BLOCKMAZE EXCHANGE MOCK ================ */
  /* ============================================ */
  .bm-mock {
    width: 100%; height: 100%;
    background: var(--bg);
    display: grid;
    grid-template-columns: 36px 280px 1fr 280px;
    grid-template-rows: 56px 1fr 28px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    overflow: hidden;
    color: var(--fg);
    border-radius: inherit;
  }
  .bm-topbar {
    grid-column: 1 / 5;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 16px; gap: 12px;
  }
  .bm-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--fg);
    display: flex; align-items: center; gap: 6px;
  }
  .bm-logo .b {
    width: 22px; height: 22px;
    background: white; color: #000;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px;
  }
  .bm-topbar .acct {
    margin-left: auto;
    display: flex; align-items: center; gap: 12px;
  }
  .bm-topbar .demo-tag {
    background: var(--warn); color: #000;
    font-size: 7px; font-weight: 700;
    padding: 2px 6px; border-radius: 2px;
    letter-spacing: 0.06em;
  }
  .bm-topbar .acct-info {
    font-size: 10px; color: var(--fg);
    display: flex; flex-direction: column;
    text-align: right;
  }
  .bm-topbar .avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #444, #222);
    color: var(--fg);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700;
  }

  .bm-rail {
    grid-row: 2 / 4;
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    align-items: center;
    padding: 10px 0; gap: 4px;
  }
  .bm-rail-icon {
    width: 24px; height: 24px;
    color: var(--fg-dimmer);
    display: flex; align-items: center; justify-content: center;
  }
  .bm-rail-icon.active { color: var(--brand); }
  .bm-rail-icon svg { width: 14px; height: 14px; }

  .bm-watchlist {
    background: var(--bg);
    border-right: 1px solid var(--line);
    padding: 10px 8px;
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .bm-search {
    height: 28px;
    background: var(--bg-elev);
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 8px;
    font-size: 10px;
    color: var(--fg-dim);
    margin-bottom: 8px;
  }
  .bm-tabs {
    display: flex; gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    margin-bottom: 4px;
  }
  .bm-tab {
    font-size: 9px;
    color: var(--fg-dimmer);
    padding-bottom: 4px;
    position: relative;
  }
  .bm-tab.on { color: var(--brand); }
  .bm-tab.on::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; right: 0;
    height: 1px;
    background: var(--brand);
  }
  .bm-watchlist .rows {
    flex: 1; overflow: hidden;
  }
  .bm-row {
    display: grid;
    grid-template-columns: 70px 60px 60px auto;
    gap: 4px;
    padding: 6px 4px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    border-bottom: 1px solid var(--line);
  }
  .bm-row.active {
    background: rgba(207,100,100,0.06);
    border-left: 2px solid #cf6464;
    padding-left: 2px;
  }
  .bm-row .sym { color: var(--fg); }
  .bm-row .bid-cell {
    background: rgba(207,100,100,0.18);
    color: #cf6464;
    padding: 3px 4px;
    text-align: center;
    font-size: 9px;
  }
  .bm-row .ask-cell {
    background: rgba(207,100,100,0.18);
    color: #cf6464;
    padding: 3px 4px;
    text-align: center;
    font-size: 9px;
  }
  .bm-row .vol { color: var(--fg-dimmer); text-align: right; font-size: 8px; }

  .bm-chart-area {
    background: var(--bg);
    padding: 10px;
    display: flex; flex-direction: column;
    overflow: hidden;
    gap: 8px;
  }
  .bm-chart-head {
    display: flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
  }
  .bm-chart-head .icons { display: flex; gap: 4px; }
  .bm-chart-head .icons span {
    width: 16px; height: 16px;
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--fg-dim);
    font-size: 8px;
  }
  .bm-chart-head .tf { color: var(--fg); padding: 2px 5px; border: 1px solid var(--line-strong); }
  .bm-chart-head .indicators { color: var(--fg-dim); padding: 2px 8px; border: 1px solid var(--line-strong); }
  .bm-chart-head .right { margin-left: auto; display: flex; gap: 4px; }
  .bm-chart-head .right span {
    color: var(--fg-dimmer);
    font-size: 9px;
  }
  .bm-chart-head .sym-big {
    color: var(--fg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
  }
  .bm-chart-head .ohlc {
    color: var(--fg-dim);
    display: flex; gap: 10px;
  }
  .bm-chart-head .ohlc .v { color: #6dc594; }
  .bm-chart-head .ohlc .v.dn { color: #cf6464; }

  .bm-chart {
    flex: 1;
    background: var(--bg);
    position: relative;
    min-height: 0;
  }
  .bm-chart svg { width: 100%; height: 100%; }

  .bm-chart-pairs {
    display: flex; gap: 12px; align-items: center;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    font-size: 9px;
  }
  .bm-chart-pairs .pair {
    color: var(--fg-dim);
    padding: 3px 8px;
    border: 1px solid var(--line-strong);
  }
  .bm-chart-pairs .span {
    margin-left: auto;
    display: flex; gap: 6px;
    color: var(--fg-dimmer);
    font-size: 8px;
  }

  .bm-ticket {
    background: var(--bg);
    border-left: 1px solid var(--line);
    padding: 10px;
    display: flex; flex-direction: column;
    gap: 10px;
    overflow: hidden;
  }
  .bm-ticket-sym {
    font-size: 12px; font-weight: 600; color: var(--fg);
  }
  .bm-buysell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-strong);
  }
  .bm-buysell .b, .bm-buysell .s {
    padding: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    background: var(--bg-elev);
  }
  .bm-buysell .b.on {
    background: var(--gain);
    color: var(--fg);
  }
  .bm-buysell .s {
    color: var(--fg-dim);
  }
  .bm-orderfields {
    display: flex; gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
    font-size: 9px;
  }
  .bm-orderfields span {
    color: var(--fg-dimmer);
    padding-bottom: 4px;
    position: relative;
  }
  .bm-orderfields .on {
    color: var(--brand);
  }
  .bm-orderfields .on::after {
    content: '';
    position: absolute;
    bottom: -7px; left: 0; right: 0;
    height: 1px;
    background: var(--brand);
  }
  .bm-row-label {
    font-size: 9px;
    color: var(--fg-dim);
    display: flex; justify-content: space-between;
    margin-bottom: 3px;
  }
  .bm-input {
    height: 30px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 8px;
    justify-content: space-between;
  }
  .bm-input .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--fg);
  }
  .bm-input .u {
    font-size: 9px;
    color: var(--fg-dimmer);
  }
  .bm-pct {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 4px;
  }
  .bm-pct span {
    text-align: center;
    padding: 4px 0;
    font-size: 9px;
    background: var(--bg-elev);
    color: var(--fg-dim);
    border-radius: 999px;
  }
  .bm-buy-btn {
    background: var(--gain);
    color: var(--bg);
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
  }
  .bm-orderbook {
    border-top: 1px solid var(--line);
    padding-top: 6px;
    font-size: 8px;
    color: var(--fg-dimmer);
  }
  .bm-orderbook .head {
    display: flex; justify-content: space-between;
    margin-bottom: 4px;
  }
  .bm-orderbook .head .title { color: var(--fg); font-size: 9px; font-weight: 500; }

  .bm-positions {
    grid-column: 2 / 4;
    background: var(--bg);
    border-top: 1px solid var(--line);
    display: none;
  }

  .bm-footer {
    grid-column: 2 / 5;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    display: flex; align-items: center;
    padding: 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg-dimmer);
    letter-spacing: 0.08em;
  }
  .bm-footer .right {
    margin-left: auto;
    display: flex; align-items: center; gap: 6px;
  }
  .bm-footer .right .at-mark {
    color: var(--brand);
  }

  /* ============================================ */
  /* === ACTFX STRATEGY BUILDER MOCK ============ */
  /* ============================================ */
  .actfx-mock {
    width: 100%; height: 100%;
    background: var(--bg);
    display: flex; flex-direction: column;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    overflow: hidden;
    border-radius: inherit;
  }
  .actfx-topnav {
    display: flex; gap: 22px;
    padding: 10px 16px 0;
    background: var(--bg);
    align-items: flex-end;
    height: 32px;
  }
  .actfx-topnav .item {
    font-size: 9px;
    color: var(--fg-dim);
    padding-bottom: 6px;
    position: relative;
  }
  .actfx-topnav .item.on { color: var(--brand); }
  .actfx-topnav .item.on::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--brand);
  }

  .actfx-toolbar {
    display: flex; gap: 6px;
    padding: 10px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    align-items: center;
  }
  .actfx-toolbar .btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 9px;
    color: var(--fg);
  }
  .actfx-toolbar .search {
    margin-left: auto;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 9px;
    color: var(--fg-dimmer);
    min-width: 180px;
  }
  .actfx-toolbar .refresh {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 9px;
    color: var(--fg);
  }

  .actfx-subtabs {
    display: flex; gap: 22px;
    padding: 0 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    align-items: flex-end;
    height: 28px;
  }
  .actfx-subtabs .t {
    font-size: 9px;
    color: var(--fg-dim);
    padding-bottom: 6px;
    position: relative;
  }
  .actfx-subtabs .t.on { color: var(--brand); }
  .actfx-subtabs .t.on::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--brand);
  }

  .actfx-body {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 30px;
    gap: 14px;
    background: var(--bg);
  }
  .actfx-body .gear-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--fg-dimmer);
    margin-bottom: 6px;
  }
  .actfx-body .title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--fg);
    font-weight: 600;
  }
  .actfx-body .sub {
    font-size: 10px;
    color: var(--fg-dim);
    text-align: center;
    max-width: 400px;
  }
  .actfx-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    max-width: 540px;
    width: 100%;
  }
  .actfx-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
  }
  .actfx-card.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--bg);
  }
  .actfx-card .ico {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .actfx-card .nm {
    font-size: 10px;
    font-weight: 600;
    color: var(--fg);
  }
  .actfx-card.primary .nm { color: var(--bg); }
  .actfx-card .desc {
    font-size: 8px;
    color: var(--fg-dim);
    line-height: 1.3;
  }
  .actfx-card.primary .desc { color: rgba(13,10,7,0.7); }

  .actfx-statusbar {
    display: flex; gap: 12px;
    padding: 6px 14px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    color: var(--fg-dim);
    letter-spacing: 0.06em;
    align-items: center;
  }
  .actfx-statusbar .item .l { color: var(--fg-dimmer); margin-right: 3px; }
  .actfx-statusbar .item .v { color: var(--fg); }
  .actfx-statusbar .item .v.gain { color: var(--gain); }
  .actfx-statusbar .item .v.brand { color: var(--brand); }
  .actfx-statusbar .right {
    margin-left: auto;
    color: var(--fg-dimmer);
