:root {
  --bg-deep: #0a0a0c;
  --bg-surface: #121318;
  --bg-surface-elevated: #181a22;
  --border-subtle: #232634;
  --border-bright: #32374d;
  --text-primary: #e6e8f0;
  --text-secondary: #9499ad;
  --text-muted: #5e6378;

  --nominal: #10b981;
  --nominal-dim: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.14);
  --alert: #ef4444;
  --alert-dim: rgba(239, 68, 68, 0.16);
  --cyan-accent: #38bdf8;

  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Subtle CRT / Tactical Terminal Scanline Overlay */
.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(
    rgba(18, 19, 24, 0) 50%,
    rgba(0, 0, 0, 0.22) 50%
  );
  background-size: 100% 4px;
  z-index: 999;
  opacity: 0.35;
}

/* TOP COMMAND HEADER */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--nominal);
  background: var(--nominal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.reticle-dot {
  width: 8px;
  height: 8px;
  background-color: var(--nominal);
  box-shadow: 0 0 8px var(--nominal);
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.version-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  color: var(--cyan-accent);
  margin-left: 6px;
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.header-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background-color: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.badge-armed {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--nominal);
  background: var(--nominal-dim);
}

.badge-core {
  color: var(--cyan-accent);
  border-color: rgba(56, 189, 248, 0.35);
}

.badge-latency .badge-label {
  color: var(--text-secondary);
}

.badge-latency .badge-value {
  color: var(--nominal);
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.pulse-green {
  background-color: var(--nominal);
  box-shadow: 0 0 8px var(--nominal);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.pulse-amber {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.pulse-red {
  background-color: var(--alert);
  box-shadow: 0 0 10px var(--alert);
  animation: pulseGlow 0.7s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-terminal {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-terminal:hover {
  border-color: var(--nominal);
  color: var(--nominal);
}

.btn-active {
  background-color: var(--nominal-dim);
  border-color: var(--nominal);
  color: var(--nominal);
}

.btn-shock {
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--warning);
}

.btn-shock:hover,
.btn-shock.shock-active {
  background-color: var(--alert-dim);
  border-color: var(--alert);
  color: var(--alert);
}

/* BIFURCATION RISK ALERT BANNER */
.alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.alert-nominal {
  background-color: rgba(16, 185, 129, 0.08);
  border-bottom-color: rgba(16, 185, 129, 0.35);
  color: var(--nominal);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.12);
  border-bottom-color: rgba(245, 158, 11, 0.45);
  color: var(--warning);
}

.alert-critical {
  background-color: rgba(239, 68, 68, 0.18);
  border-bottom-color: var(--alert);
  color: var(--alert);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.banner-center {
  color: var(--text-primary);
  font-size: 11px;
}

.banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.banner-right strong {
  color: var(--text-primary);
}

.banner-divider {
  color: var(--border-bright);
}

/* MAIN WORKSPACE GRID */
.terminal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 350px 1fr 370px;
  gap: 12px;
  padding: 12px 16px;
  min-height: 0;
}

.panel-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.terminal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background-color: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.card-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  letter-spacing: 0.06em;
  background: var(--nominal-dim);
  color: var(--nominal);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-warning {
  background: var(--warning-dim);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.45);
}

.tag-critical {
  background: var(--alert-dim);
  color: var(--alert);
  border-color: rgba(239, 68, 68, 0.55);
}

/* CARD 1: SHIELD COHERENCE INDEX */
.sci-body {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sci-gauge-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}

.sci-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: var(--bg-deep);
  stroke-width: 11;
}

.gauge-fill {
  fill: none;
  stroke: var(--nominal);
  stroke-width: 11;
  stroke-linecap: butt;
  stroke-dasharray: 402.12;
  stroke-dashoffset: 20.0;
  transition: stroke-dashoffset 0.2s ease, stroke 0.2s ease;
}

.sci-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sci-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.sci-unit {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 1px;
}

.sci-sublabel {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sci-metrics-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
}

.m-label {
  color: var(--text-secondary);
}

.m-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* CARD 2: ORDER BOOK DEPTH ABSORBABILITY */
.depth-price-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 6px;
}

.price-box {
  background-color: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-box-mid {
  border-color: var(--border-bright);
}

.p-label {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.p-val {
  font-size: 13px;
  font-weight: 700;
}

.text-green { color: var(--nominal) !important; }
.text-amber { color: var(--warning) !important; }
.text-red { color: var(--alert) !important; }

.absorb-bar-section {
  padding: 8px 12px;
}

.absorb-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.dual-liquidity-bar {
  position: relative;
  height: 12px;
  background-color: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  display: flex;
  overflow: hidden;
}

.bar-bid {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), var(--nominal));
  height: 100%;
  transition: width 0.15s ease;
}

.bar-ask {
  background: linear-gradient(90deg, var(--alert), rgba(239, 68, 68, 0.35));
  height: 100%;
  transition: width 0.15s ease;
}

.bar-center-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--text-primary);
  z-index: 2;
}

.absorb-buffer-box {
  padding: 6px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buffer-header-row,
.buffer-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
}

.segmented-meter {
  height: 10px;
  background-color: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--nominal),
    var(--nominal) 6px,
    transparent 6px,
    transparent 8px
  );
  transition: width 0.2s ease;
}

/* CARD 3: CRYPTO PROVENANCE */
.crypto-box {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crypto-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.c-label {
  color: var(--text-secondary);
}

.c-hash {
  color: var(--cyan-accent);
  background: var(--bg-deep);
  padding: 2px 6px;
  border: 1px solid var(--border-subtle);
  font-size: 10px;
}

/* CENTER COLUMN: INTERACTIVE RADAR */
.radar-card {
  flex: 1;
  min-height: 480px;
}

.radar-header {
  align-items: flex-start;
}

.radar-subtitle {
  display: block;
  font-size: 9.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.radar-controls,
.console-actions {
  display: flex;
  gap: 6px;
}

.btn-mini {
  background: var(--bg-deep);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-mini:hover,
.btn-mini-active {
  color: var(--nominal);
  border-color: var(--nominal);
  background: var(--nominal-dim);
}

.radar-canvas-container {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #141722 0%, #0a0a0c 78%);
  overflow: hidden;
}

#phaseRadarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-hud {
  position: absolute;
  background: rgba(10, 10, 12, 0.78);
  border: 1px solid var(--border-subtle);
  padding: 7px 10px;
  font-size: 10px;
  color: var(--text-secondary);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.radar-hud span {
  color: var(--text-primary);
  font-weight: 600;
}

.hud-top-left { top: 12px; left: 12px; }
.hud-top-right { top: 12px; right: 12px; text-align: right; }
.hud-bottom-left {
  bottom: 12px;
  left: 12px;
  flex-direction: row;
  gap: 12px;
}
.hud-bottom-right { bottom: 12px; right: 12px; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
}

.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}
.dot-green { background: var(--nominal); }
.dot-amber { background: var(--warning); }
.dot-red { background: var(--alert); }

/* RIGHT COLUMN: LIVE TELEMETRY CONSOLE */
.console-card {
  flex: 1;
  min-height: 480px;
}

.console-stats-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-secondary);
}

.console-stats-bar strong {
  color: var(--text-primary);
}

.telemetry-console {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 210px);
}

.console-entry {
  background-color: var(--bg-deep);
  border-left: 3px solid var(--nominal);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 8px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.console-entry.entry-marginal {
  border-left-color: var(--warning);
}

.console-entry.entry-bifurcation {
  border-left-color: var(--alert);
  background-color: rgba(239, 68, 68, 0.06);
}

.entry-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.entry-seq {
  color: var(--text-primary);
  font-weight: 700;
}

.entry-metrics {
  display: flex;
  justify-content: space-between;
  color: var(--text-primary);
}

.entry-sig {
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.sig-ok {
  color: var(--nominal);
}

@media (max-width: 1240px) {
  .terminal-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-console {
    max-height: 320px;
  }
}


/* ==========================================================================
   INSTITUTIONAL LANDING PAGE (landing.html) — APPLE "TRUE-SCRUB" PINNED STAGE
   PURE BLACK (#000000) BASE, FROSTED GLASS, & FOCUS LUMINOSITY HIERARCHY
   ========================================================================== */

.landing-body {
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  height: auto;
  display: block;
  position: relative;
  overflow-x: clip;
  font-size: 15px; /* 125% native desktop scale */
  --unfocused-text: rgba(255, 255, 255, 0.35);
  --focused-text: rgba(255, 255, 255, 1);
  --focused-glow: 0 0 26px rgba(255, 255, 255, 0.22);
}

/* Fixed Ambient Velocity-Reactive Mesh Canvas on #000000 Base */
#ambientGridCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Top Scroll Progress Indicator Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 120;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nominal), var(--cyan-accent), #ffffff);
  box-shadow: 0 0 14px var(--nominal);
  will-change: width;
}

/* Top Navigation Bar (Frosted Glass over #000000) */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.landing-nav .brand-mark,
.landing-nav .brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.landing-nav .brand-name {
  font-size: 16.5px;
  letter-spacing: 0.13em;
  color: #ffffff;
}

.landing-nav .brand-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.network-pill strong {
  color: var(--nominal);
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(14, 14, 18, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-portal:hover {
  border-color: var(--nominal);
  color: var(--nominal);
  background-color: rgba(16, 185, 129, 0.1);
  transform: translate3d(0, -1px, 0);
}

/* ==========================================================================
   APPLE "TRUE-SCRUB" PINNED RUNWAY (350VH) & STICKY VIEWPORT STAGE
   ========================================================================== */

#appleScrubRunway,
.apple-scrub-runway {
  position: relative;
  height: 350vh;
  width: 100%;
  z-index: 2;
}

.hero-sticky-stage,
.apple-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.apple-stage-inner {
  position: relative;
  width: 100%;
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 84px 64px 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Scrubbed Stage Layers (Centered in Viewport, GPU-Composited) */
.scrub-stage-layer {
  position: absolute;
  left: 64px;
  right: 64px;
  max-height: calc(100vh - 165px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* LAYER 1 (0.00 -> 0.25): HERO STAGE */
#stageHero {
  max-width: 1080px;
  margin: 0 auto;
  gap: 26px;
  z-index: 30;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--nominal);
  text-transform: uppercase;
}

.hero-kicker-line {
  width: 38px;
  height: 1px;
  background-color: var(--nominal);
  box-shadow: 0 0 12px var(--nominal);
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: rgba(255, 255, 255, var(--hero-lum, 1));
  text-shadow: 0 0 32px rgba(255, 255, 255, var(--hero-glow, 0.22));
}

.hero-headline .accent-dim {
  color: rgba(255, 255, 255, var(--hero-muted-lum, 0.35));
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(14.5px, 1.3vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, var(--hero-sub-lum, 0.65));
  max-width: 880px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 6px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 34px;
  background-color: var(--nominal);
  color: #000000;
  border: 1px solid var(--nominal);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-primary:hover {
  background-color: #34d399;
  box-shadow: 0 0 36px rgba(16, 185, 129, 0.5);
  transform: translate3d(0, -2px, 0);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  background: rgba(14, 14, 18, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease;
}

.btn-cta-secondary:hover {
  border-color: #ffffff;
  background: rgba(28, 28, 36, 0.78);
  transform: translate3d(0, -2px, 0);
}

/* LAYER 2 (0.25 -> 0.60): TELEMETRY MATRIX STAGE */
#stageTelemetry {
  max-width: 1232px;
  margin: 0 auto;
  gap: 22px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.telemetry-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, var(--tel-lum, 0.35));
  text-shadow: 0 0 20px rgba(255, 255, 255, var(--tel-glow, 0));
}

/* Premium Frosted Glass Telemetry Matrix */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  will-change: transform, opacity;
}

.spec-cell {
  padding: 32px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.spec-cell:last-child {
  border-right: none;
}

.spec-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, var(--tel-sub-lum, 0.35));
}

.spec-val {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: rgba(255, 255, 255, var(--tel-lum, 0.35));
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(255, 255, 255, var(--tel-glow, 0));
  letter-spacing: -0.015em;
}

.spec-val.text-green {
  color: rgba(16, 185, 129, var(--tel-lum, 0.35));
  text-shadow: 0 0 28px rgba(16, 185, 129, var(--tel-glow, 0));
}

.spec-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

/* LAYER 3 (0.60 -> 1.00): HARDWARE ARCHITECTURE CARDS STAGE */
#stagePillars {
  max-width: 1232px;
  margin: 0 auto;
  gap: 22px;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: rgba(255, 255, 255, var(--pillars-lum, 0.35));
  text-shadow: 0 0 22px rgba(255, 255, 255, var(--pillars-glow, 0));
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  transform-style: preserve-3d;
}

/* Apple Frosted Glass Architecture Cards */
.pillar-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --card-lum: 0.35;
  --card-sub-lum: 0.35;
  --card-glow: 0;
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  will-change: transform, opacity, border-color;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card.hardware-locked {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.88), 0 0 32px rgba(16, 185, 129, 0.14);
}

.pillar-card:hover {
  border-color: rgba(16, 185, 129, 0.65);
}

.pillar-index {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nominal);
  letter-spacing: 0.12em;
}

.pillar-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, var(--card-lum, 0.35));
  text-shadow: 0 0 24px rgba(255, 255, 255, var(--card-glow, 0));
  margin-top: 8px;
}

.pillar-desc {
  font-size: 13.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, var(--card-sub-lum, 0.35));
}

.pillar-meta {
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
}

/* Sticky Stage Bottom Scrub Telemetry HUD */
.scrub-hud-bar {
  position: absolute;
  bottom: 20px;
  left: 64px;
  right: 64px;
  max-width: 1232px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.12em;
  z-index: 40;
}

.scrub-phase-steps {
  display: flex;
  align-items: center;
  gap: 24px;
}

.scrub-phase-pill {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.scrub-phase-pill.is-active {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.scrub-readout {
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.scrub-readout strong {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   POST-RUNWAY SECTIONS (EXECUTION PIPELINE & TERMINAL DOCK)
   ========================================================================== */

.landing-post-runway {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 108px 64px 120px;
  display: flex;
  flex-direction: column;
  gap: 104px;
}

.pipeline-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 6px;
  padding-bottom: 12px;
}

.pipeline-step {
  --step-lum: 0.35;
  --step-sub-lum: 0.35;
  --step-glow: 0;
  --stagger-delay: 0ms;
  --mouse-x: 50%;
  --mouse-y: 50%;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: transform, opacity, border-color, box-shadow;
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger-delay),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger-delay),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.pipeline-step.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Luminous Active Top Border Tracer (#00f59b Emerald Glow) */
.pipeline-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00f59b 50%, var(--cyan-accent) 85%, transparent 100%);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  box-shadow: 0 0 16px #00f59b;
  pointer-events: none;
}

/* Subtle Glass Refraction Sheen on Hover / Touch */
.pipeline-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mouse-x) var(--mouse-y),
    rgba(0, 245, 155, 0.09),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pipeline-step.is-active-trace {
  border-color: rgba(0, 245, 155, 0.36);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 245, 155, 0.14);
}

.pipeline-step.is-active-trace::before {
  opacity: 1;
  transform: scaleX(1);
}

.pipeline-step.is-revealed:hover,
.pipeline-step.is-revealed.is-touch-active {
  transition-delay: 0ms;
  transform: translateY(-4px);
  border-color: rgba(0, 245, 155, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.88), 0 0 32px rgba(0, 245, 155, 0.2);
}

.pipeline-step:hover::before,
.pipeline-step.is-touch-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.pipeline-step:hover::after,
.pipeline-step.is-touch-active::after {
  opacity: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(56, 189, 248, 0.75);
  letter-spacing: 0.1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.pipeline-step.is-active-trace .step-badge,
.pipeline-step:hover .step-badge {
  color: #00f59b;
  text-shadow: 0 0 14px rgba(0, 245, 155, 0.45);
}

.step-latency {
  color: rgba(0, 245, 155, 0.65);
  font-weight: 700;
  padding: 2px 8px;
  border: 1px solid rgba(0, 245, 155, 0.18);
  background: rgba(0, 245, 155, 0.05);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pipeline-step.is-active-trace .step-latency,
.pipeline-step:hover .step-latency {
  color: #00f59b;
  border-color: rgba(0, 245, 155, 0.55);
  background: rgba(0, 245, 155, 0.14);
  box-shadow: 0 0 16px rgba(0, 245, 155, 0.35);
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, var(--step-lum, 0.35));
  text-shadow: 0 0 22px rgba(255, 255, 255, var(--step-glow, 0));
  letter-spacing: 0.05em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.step-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, var(--step-sub-lum, 0.35));
  transition: color 0.25s ease;
}

/* Interactive Final Deploy / CTA Section with Apple Ambient Depth Glow */
.terminal-dock-wrapper {
  position: relative;
  padding: 12px 0 24px;
}

.terminal-dock-wrapper::before {
  content: "";
  position: absolute;
  inset: -28px 6%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 245, 155, 0.18) 0%,
    rgba(56, 189, 248, 0.10) 42%,
    transparent 74%
  );
  filter: blur(44px);
  opacity: var(--dock-glow-opacity, 0);
  transform: scale3d(var(--dock-glow-scale, 0.88), var(--dock-glow-scale, 0.88), 1);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.terminal-dock-card {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 46px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale3d(0.94, 0.94, 1);
  will-change: transform, opacity, border-color, box-shadow;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.terminal-dock-card.is-expanded {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  border-color: rgba(0, 245, 155, 0.38);
  box-shadow: 0 36px 84px rgba(0, 0, 0, 0.92), 0 0 42px rgba(0, 245, 155, 0.14);
}

.terminal-dock-card:hover {
  border-color: rgba(0, 245, 155, 0.55);
  box-shadow: 0 38px 88px rgba(0, 0, 0, 0.94), 0 0 52px rgba(0, 245, 155, 0.22);
}

.terminal-dock-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
}

.terminal-dock-title {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.24);
}

.terminal-dock-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

/* Footer */
.landing-footer {
  position: relative;
  z-index: 2;
  padding: 28px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* Enterprise API Access Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.modal-open {
  display: flex;
}

.modal-window {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 14, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.92);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-field label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.modal-input {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.modal-input:focus {
  outline: none;
  border-color: var(--nominal);
}

.modal-status {
  display: none;
  padding: 12px 14px;
  background: var(--nominal-dim);
  border: 1px solid var(--nominal);
  color: var(--nominal);
  font-size: 12px;
  line-height: 1.55;
}

/* Tablet breakpoint */
@media (max-width: 1080px) {
  .landing-nav,
  .landing-post-runway,
  .landing-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .apple-stage-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
  .scrub-stage-layer,
  .scrub-hud-bar {
    left: 32px;
    right: 32px;
  }
  .pipeline-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Viewport (@media max-width: 768px) */
@media (max-width: 768px) {
  .landing-nav {
    padding: 14px 18px;
    gap: 10px;
  }

  .network-pill {
    display: none;
  }

  #appleScrubRunway,
  .apple-scrub-runway {
    height: 350vh;
  }

  .apple-stage-inner {
    padding: 72px 18px 56px;
  }

  .scrub-stage-layer {
    left: 18px;
    right: 18px;
    max-height: calc(100vh - 135px);
  }

  .hero-headline {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.15;
    word-break: break-word;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.58;
  }

  /* Full-width ergonomic touch CTAs on mobile */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    padding: 14px 18px;
    font-size: 13px;
  }

  /* 2x2 metric counters grid on mobile */
  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-cell {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .spec-cell:nth-child(2n) {
    border-right: none;
  }

  .spec-val {
    font-size: clamp(18px, 5vw, 22px);
  }

  /* Compact vertical stack of 3 frosted cards inside sticky stage on mobile */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pillar-card {
    padding: 14px 16px;
    gap: 6px;
  }

  .pillar-title {
    font-size: 13.5px;
    margin-top: 2px;
  }

  .pillar-desc {
    font-size: 11.5px;
    line-height: 1.42;
  }

  .pillar-meta {
    padding-top: 6px;
    font-size: 10px;
  }

  .scrub-hud-bar {
    left: 18px;
    right: 18px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .scrub-phase-steps {
    gap: 10px;
  }

  .landing-post-runway {
    padding: 72px 18px 120px;
    gap: 72px;
  }

  .pipeline-track {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .terminal-dock-card {
    padding: 28px 22px;
  }

  .section-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .landing-footer {
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}
