:root {
  --bg: #04070d;
  --bg-2: #080f1a;
  --card: #0b1423;
  --border: #1a2942;
  --border-hi: #29436b;
  --text: #edf3fa;
  --text-2: #9ab0c9;
  --muted: #627793;
  --cobalt: #3b82f6;
  --ice: #7dd3fc;
  --ice-dim: rgba(125, 211, 252, 0.12);
  --cobalt-dim: rgba(59, 130, 246, 0.16);
  --crimson: #f43f5e;
  --amber: #f59e0b;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", -apple-system, sans-serif;
  --display: "Syne", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  background: radial-gradient(950px 520px at 78% 12%, rgba(59, 130, 246, 0.14), transparent 62%),
              radial-gradient(700px 420px at 14% 8%, rgba(125, 211, 252, 0.08), transparent 60%),
              var(--bg);
  color: var(--text);
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
body.ns-loading {
  overflow: hidden;
}

/* ULTRA-SMOOTH ANIMATED PROGRESS BOOTLOADER */
.ns-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.16), transparent 55%), #03060c;
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.48s linear;
  will-change: opacity, transform;
}
.ns-loader.done {
  opacity: 0;
  transform: scale(1.035);
  visibility: hidden;
  pointer-events: none;
}
.ns-loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
  pointer-events: none;
}
.ns-loader-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(300px, 84vw);
}
.ns-loader-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-loader-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ns-ring-track {
  fill: none;
  stroke: rgba(125, 211, 252, 0.12);
  stroke-width: 2.5;
}
.ns-ring-dash {
  fill: none;
  stroke: rgba(59, 130, 246, 0.3);
  stroke-width: 1.2;
  stroke-dasharray: 4 7;
  transform-origin: 64px 64px;
  animation: nsSpinSlow 9s linear infinite;
}
@keyframes nsSpinSlow {
  to { transform: rotate(360deg); }
}
.ns-ring-prog {
  fill: none;
  stroke: url(#nsRingGrad);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 351.86;
  stroke-dashoffset: 351.86;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.65));
}
.ns-loader-logo {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.45);
}
.ns-loader-brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.ns-loader-bar-wrap {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  overflow: hidden;
  position: relative;
}
.ns-loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #7dd3fc, #e0f2fe);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.8);
}
.ns-loader-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ns-loader-meta strong {
  font-variant-numeric: tabular-nums;
}
.mono { font-family: var(--mono); }
.ice { color: var(--ice); }
.cobalt { color: var(--cobalt); }
.crimson { color: var(--crimson); }
.muted { color: var(--muted); }
a { color: inherit; text-decoration: none; }

/* TOP NAV */
.ns-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 7, 13, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.ns-nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ns-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ns-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}
.ns-word {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ns-ver {
  font-size: 10.5px;
  color: var(--ice);
  border: 1px solid var(--border-hi);
  background: var(--cobalt-dim);
  padding: 2px 6px;
  border-radius: 4px;
}
.ns-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.ns-links a:hover { color: var(--ice); }
.ns-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ns-ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-hi);
  background: rgba(11, 20, 35, 0.9);
  color: var(--text-2);
  font-size: 11.5px;
  cursor: pointer;
}
.ns-ca-pill:hover { border-color: var(--ice); color: var(--ice); }
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--cobalt);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.ns-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border-hi);
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
}
.ns-x-btn:hover { border-color: var(--ice); color: var(--ice); }
.ns-launch-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #030812;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.35);
}
.ns-launch-btn:hover { filter: brightness(1.12); }

/* ASYMMETRIC SPLIT 3D HERO */
.hero-split {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 36px 24px 52px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: radial-gradient(ellipse 90% 65% at 72% 45%, rgba(59, 130, 246, 0.14), transparent 65%),
              radial-gradient(ellipse 65% 55% at 16% 20%, rgba(14, 165, 233, 0.08), transparent 60%),
              #03060c;
}
.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.hero-aurora {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 190deg at 68% 46%, rgba(59, 130, 246, 0.12), transparent 28%, rgba(125, 211, 252, 0.08) 48%, transparent 72%, rgba(59, 130, 246, 0.1));
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  100% { transform: translate3d(2%, 2%, 0) rotate(12deg); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 42px;
  align-items: center;
}
.class-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.8px;
  letter-spacing: 0.09em;
  color: var(--ice);
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(11, 20, 35, 0.8));
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}
.tag-live-chip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.18);
  color: #e0f2fe;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.7vw, 62px);
  line-height: 1.01;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.chrome-grad {
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 65%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ice-grad {
  background: linear-gradient(90deg, #3b82f6 0%, #7dd3fc 50%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.35));
}
.hero-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 550px;
  margin: 0 0 22px;
}

/* QUICK SCAN SHELL */
.scan-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 9px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 590px;
  margin-bottom: 12px;
}
.scan-shell:focus-within {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 16px 44px rgba(0, 0, 0, 0.55);
}
.scan-prefix { font-size: 12px; color: var(--ice); font-weight: 700; }
.scan-shell input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 9px 4px;
}
.scan-shell input::placeholder { color: var(--muted); }
.scan-go {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #38bdf8);
  color: #030812;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.scan-go:hover { filter: brightness(1.12); }

.hero-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 10.8px;
  margin-bottom: 20px;
}
.preset-chip {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--border-hi);
  background: rgba(11, 20, 35, 0.75);
  color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.preset-chip:hover {
  border-color: var(--ice);
  color: var(--ice);
}

/* CTA ROW */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.btn-cobalt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3b82f6, #38bdf8);
  color: #030812;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.4);
  transition: transform 0.15s, filter 0.15s;
}
.btn-cobalt:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-steel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid var(--border-hi);
  background: rgba(11, 20, 35, 0.85);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-steel:hover { border-color: var(--ice); color: var(--ice); }
.btn-sever {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(59, 130, 246, 0.14);
  color: var(--ice);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-sever:hover { background: rgba(59, 130, 246, 0.28); box-shadow: 0 0 20px rgba(59, 130, 246, 0.35); }

.hero-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 590px;
}
.hs-tile {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(9, 16, 29, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hs-tile strong { font-size: 13px; }
.hs-tile span { font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; }

/* RIGHT 3D INTERACTIVE GEODESIC VAULT */
.chamber-tilt-wrap {
  perspective: 1200px;
}
.chamber-frame {
  position: relative;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(13, 25, 46, 0.9), rgba(4, 8, 16, 0.96));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72), 0 0 70px rgba(59, 130, 246, 0.16), inset 0 1px 0 rgba(186, 230, 253, 0.22);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.25s;
}
.chamber-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), rgba(125, 211, 252, 0.14), transparent 52%);
  pointer-events: none;
  z-index: 3;
}
.chamber-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 10, 19, 0.78);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.chamber-title { display: flex; align-items: center; gap: 8px; }
.tag-threat {
  color: var(--crimson);
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 2.5px 9px;
  border-radius: 4px;
  font-weight: 700;
}
.tag-safe {
  color: var(--ice);
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.45);
  padding: 2.5px 9px;
  border-radius: 4px;
  font-weight: 700;
}
.chamber-stage {
  position: relative;
  height: 455px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.chamber-stage:active { cursor: grabbing; }
#orbitalCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.holo-corner {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  pointer-events: none;
}
.holo-corner.tl { top: 14px; left: 16px; }
.holo-corner.tr { top: 14px; right: 16px; text-align: right; }
.holo-corner.bl { bottom: 13px; left: 16px; }
.holo-corner.br { bottom: 10px; right: 14px; pointer-events: auto; }
.holo-corner strong { font-size: 11.5px; }
.holo-hint {
  font-size: 10px;
  color: var(--muted);
  background: rgba(4, 7, 13, 0.72);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
}
.holo-pill-btn {
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(59, 130, 246, 0.2);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.holo-pill-btn:hover { background: var(--cobalt); color: #030812; }
.chamber-hud {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.6fr;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(4, 7, 13, 0.84);
  font-size: 11px;
}
.hud-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hud-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.hud-cell.right { text-align: right; }

/* TELEMETRY RIBBON */
.telemetry-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.t-cell {
  padding: 16px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.t-cell:last-child { border-right: none; }
.t-cell span { font-size: 10px; letter-spacing: 0.08em; }
.t-cell strong { font-size: 15px; }

/* SECTIONS */
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.sec-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ice);
  margin-bottom: 8px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  margin: 0;
  letter-spacing: -0.01em;
}
.seg-toggle {
  display: inline-flex;
  border: 1px solid var(--border-hi);
  border-radius: 7px;
  padding: 3px;
  background: var(--bg-2);
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 5px;
  cursor: pointer;
}
.seg-btn.active {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #030812;
}

.steel-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13, 22, 37, 0.92), rgba(7, 12, 22, 0.96));
  overflow: hidden;
}
.card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
}

/* INTERACTIVE LASER-CURTAIN DIFF + LIVE ED25519 SANDBOX */
.diff-layout {
  display: grid;
  grid-template-columns: 1.32fr 0.94fr;
  gap: 20px;
  align-items: stretch;
}
.diff-stage-card {
  display: flex;
  flex-direction: column;
}
.diff-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.diff-pill {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}
.diff-pill.crimson {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.diff-pill.ice {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.38);
}

.curtain-wrap {
  position: relative;
  height: 410px;
  background: radial-gradient(circle at 30% 45%, rgba(244, 63, 94, 0.08), transparent 55%),
              radial-gradient(circle at 75% 45%, rgba(59, 130, 246, 0.12), transparent 55%),
              #050912;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.curtain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.curtain-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.layer-shield {
  clip-path: inset(0 0 0 50%);
  background: radial-gradient(circle at 72% 45%, rgba(59, 130, 246, 0.16), transparent 60%), #050a14;
}
.layer-hud {
  position: absolute;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 4;
}
.layer-hud.top-left { left: 16px; align-items: flex-start; }
.layer-hud.top-right { right: 16px; align-items: flex-end; text-align: right; }
.hud-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
}
.hud-badge.crimson {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.42);
}
.hud-badge.ice {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.45);
}
.hud-sub {
  font-size: 10.5px;
  color: var(--text-2);
}

.leak-feed {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  z-index: 4;
}
.shield-feed {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  z-index: 4;
}
.leak-item,
.shield-item {
  font-size: 10.8px;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leak-item {
  background: rgba(16, 8, 16, 0.84);
  border: 1px solid rgba(244, 63, 94, 0.24);
}
.shield-item {
  background: rgba(6, 15, 28, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.26);
}
.leak-item code,
.shield-item code {
  color: var(--text);
  font-weight: 600;
}
.l-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.l-tag.crit { background: rgba(244, 63, 94, 0.22); color: var(--crimson); }
.l-tag.warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.l-tag.safe { background: rgba(59, 130, 246, 0.24); color: var(--ice); }

.curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-1px);
  z-index: 10;
  pointer-events: none;
}
.curtain-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7dd3fc, #3b82f6, #7dd3fc);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.9), 0 0 36px rgba(59, 130, 246, 0.7);
}
.curtain-knob {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--ice);
  background: rgba(4, 10, 20, 0.94);
  color: var(--ice);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.6);
  pointer-events: auto;
  cursor: ew-resize;
}

.diff-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(4, 7, 13, 0.75);
}
.diff-stat {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
}
.diff-stat:last-child { border-right: none; }
.diff-stat span { font-size: 9.8px; letter-spacing: 0.06em; }

/* RIGHT LIVE SANDBOX CARD */
.sandbox-card {
  display: flex;
  flex-direction: column;
}
.sandbox-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sb-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(4, 7, 13, 0.7);
  font-size: 10.5px;
}
.sb-meta-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}
.sb-pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-step {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(5, 10, 19, 0.85);
}
.sb-step.highlight {
  border-color: rgba(125, 211, 252, 0.42);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(6, 13, 24, 0.94));
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}
.sb-step-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.sb-num {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--cobalt-dim);
  color: var(--ice);
  font-weight: 700;
}
.sb-tag {
  margin-left: auto;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.22);
  color: var(--ice);
  font-weight: 700;
}
.sb-copy {
  margin-left: auto;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(4, 7, 13, 0.7);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 9.8px;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
}
.sb-copy:hover { background: var(--cobalt); color: #030812; }
.sb-val {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-proof-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.28);
  font-size: 10.8px;
}
.sb-proof-ok { color: var(--ice); font-weight: 700; }

.sb-history-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.sb-hist-head {
  display: flex;
  justify-content: space-between;
  font-size: 9.8px;
  letter-spacing: 0.06em;
}
.sb-history {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sb-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(4, 7, 13, 0.72);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.sb-hist-row:hover { border-color: var(--ice); }
.sandbox-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* 4-COL CAPABILITIES */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.cap-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s, transform 0.18s;
}
.cap-card:hover {
  border-color: var(--ice);
  transform: translateY(-3px);
}
.cap-idx { font-size: 11px; color: var(--ice); letter-spacing: 0.08em; }
.cap-card h3 { margin: 0; font-size: 17px; }
.cap-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; flex: 1; }
.cap-go { font-size: 11.5px; color: var(--ice); margin-top: 6px; }

.utility-banner {
  padding: 28px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: var(--border-hi);
}
.utility-banner h3 { margin: 0 0 8px; font-size: 21px; }
.utility-banner p { margin: 0; color: var(--text-2); max-width: 640px; font-size: 14px; }
.utility-banner code { color: var(--ice); font-family: var(--mono); }
.utility-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.ns-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--card);
  border: 1px solid var(--ice);
  color: var(--ice);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 90;
}
.toast.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .diff-layout { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .telemetry-grid { grid-template-columns: repeat(3, 1fr); }
  .ns-links { display: none; }
}
@media (max-width: 640px) {
  .ns-nav-inner { height: 56px; padding: 0 14px; gap: 8px; }
  .ns-logo { width: 28px; height: 28px; }
  .ns-word { font-size: 16px; }
  .ns-ver, .ns-ca-pill, .hide-xs { display: none !important; }
  .ns-x-btn { width: 32px; height: 32px; }
  .ns-launch-btn { height: 32px; padding: 0 11px; font-size: 10.8px; }

  .wrap { padding: 0 14px; }
  .hero-split { padding: 20px 14px 36px; min-height: auto; }
  .class-tag { font-size: 9.5px; padding: 4px 8px; gap: 6px; max-width: 100%; }
  .tag-live-chip { display: none; }
  .hero-h1 { font-size: clamp(30px, 9.2vw, 42px); margin-bottom: 14px; }
  .hero-lead { font-size: 14px; margin-bottom: 18px; }

  .scan-shell { padding: 5px 5px 5px 10px; gap: 6px; max-width: 100%; }
  .scan-prefix { font-size: 10.5px; }
  .scan-shell input { font-size: 12px; }
  .scan-go { height: 34px; padding: 0 12px; font-size: 11px; }

  .hero-presets { gap: 6px; font-size: 10px; margin-bottom: 16px; }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .hero-ctas .btn-cobalt { grid-column: 1 / -1; justify-content: center; }
  .hero-ctas .btn-steel, .hero-ctas .btn-sever { justify-content: center; padding: 0 10px; font-size: 11px; }

  .hero-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 100%; }
  .hs-tile { padding: 10px 11px; }

  .chamber-top { padding: 10px 12px; font-size: 10px; gap: 8px; }
  .chamber-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tag-threat, .tag-safe { font-size: 9.5px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; }
  .chamber-stage { height: 330px; }
  .holo-corner { font-size: 9.2px; }
  .holo-corner strong { font-size: 10.5px; }
  .holo-hint { font-size: 9px; padding: 3px 6px; }
  .chamber-hud { grid-template-columns: 1fr auto; padding: 10px 12px; gap: 8px; }
  .chamber-hud .hud-cell:nth-child(2) { display: none; }

  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .t-cell { padding: 12px 10px; border-bottom: 1px solid var(--border); }
  .t-cell strong { font-size: 13.5px; }

  .section { padding: 48px 0; }
  .sec-head { gap: 14px; margin-bottom: 20px; }
  .seg-toggle { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg-btn { padding: 8px 6px; font-size: 10px; text-align: center; }

  .card-bar { padding: 10px 12px; font-size: 10px; }
  .curtain-wrap { height: 350px; }
  .layer-hud { top: 10px; }
  .layer-hud.top-left { left: 10px; }
  .layer-hud.top-right { right: 10px; }
  .hud-badge { font-size: 9px; padding: 3px 7px; }
  .hud-sub { display: none; }
  .leak-feed { left: 8px; width: 47%; bottom: 8px; gap: 4px; }
  .shield-feed { right: 8px; width: 47%; bottom: 8px; gap: 4px; }
  .leak-item, .shield-item { font-size: 9px; padding: 4px 6px; gap: 5px; }
  .diff-footer { grid-template-columns: 1fr; }
  .diff-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 9px 12px; flex-direction: row; justify-content: space-between; align-items: center; }
  .diff-stat:last-child { border-bottom: none; }

  .sandbox-body { padding: 12px; }
  .sandbox-foot { padding: 12px; }
  .cap-grid { grid-template-columns: 1fr; gap: 12px; }
  .utility-banner { padding: 20px 16px; }
  .utility-btns { width: 100%; }
  .utility-btns a { flex: 1; justify-content: center; }
  .ns-footer { padding: 20px 14px; font-size: 10px; }
}
