/* ═══════════════════════════════════════════════════════════════
   GIGADOME — PRODUCTION STYLESHEET
   Principal Author: GigaDome UI Engineering
   Stack: Vanilla CSS + Tailwind (via CDN config)
   Aesthetic: SpaceX/Tesla Industrial Dark — Monospace Precision
═══════════════════════════════════════════════════════════════ */

/* VARIABLES */
:root {
  --sidebar-w: 220px;
  --amber: #D97706;
  --amber-bright: #F59E0B;
  --cyan: #06B6D4;
  --cyan-bright: #22D3EE;
  --black: #050505;
  --surface: #0A0A0A;
  --panel: #0F0F0F;
  --border: #1A1A1A;
  --border-mid: #222222;
  --border-bright: #2E2E2E;
  --white: #F5F5F5;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --green: #10B981;
  --red: #EF4444;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Barlow Condensed', sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: var(--font-ui); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--amber); color: var(--black); }

/* SCANLINE OVERLAY */
.scanline-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}

/* ═══════════════════════ SIDEBAR ═══════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-primary {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 3px;
  color: var(--white); line-height: 1;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 7px; letter-spacing: 2px;
  color: var(--gray); margin-top: 2px;
}

.sidebar-status {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--green); }
}

.sidebar-nav-list {
  list-style: none; padding: 12px 0; flex: 1;
}
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  color: var(--gray); cursor: pointer;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  position: relative;
}
.nav-item:hover, .nav-item.active {
  color: var(--amber);
  border-left-color: var(--amber);
  background: rgba(217, 119, 6, 0.05);
}
.nav-index { color: var(--border-bright); font-size: 9px; }
.nav-label { flex: 1; }
.nav-arrow { opacity: 0; transition: opacity 0.2s; }
.nav-item:hover .nav-arrow, .nav-item.active .nav-arrow { opacity: 1; }

.sidebar-telemetry {
  padding: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sidebar-telem-label {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 2px; color: var(--gray);
}
.sidebar-telem-value {
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  color: var(--white); margin-top: 2px;
}

.sidebar-footer {
  padding: 12px 16px;
}

.mobile-nav-toggle {
  display: none;
  position: fixed; top: 16px; left: 16px; z-index: 200;
  flex-direction: column; gap: 5px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px; cursor: pointer;
}
.mobile-nav-toggle span {
  display: block; width: 20px; height: 1px; background: var(--white);
}

/* ═══════════════════════ MAIN CONTENT ═══════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.content-section {
  padding: 60px 48px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.section-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 4px; color: var(--gray);
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
}
.section-live-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--green);
  background: rgba(16, 185, 129, 0.05);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-green 1.5s infinite;
}
.live-dot.small { width: 6px; height: 6px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 4px; line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}
.section-subtitle {
  font-size: 15px; line-height: 1.6;
  color: var(--gray-light); max-width: 700px;
  margin-bottom: 40px;
}
.section-divider {
  height: 1px; background: var(--border);
  margin-top: 60px;
}

/* ═══════════════════════ SECTION 1: MANIFESTO ═══════════════════════ */
.manifesto-hero {
  margin-bottom: 56px;
}
.manifesto-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 6px; color: var(--amber);
  margin-bottom: 16px;
}
.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 140px);
  line-height: 0.9; letter-spacing: 8px;
  color: var(--white);
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--amber);
  text-shadow: 0 0 60px rgba(217, 119, 6, 0.4);
}
.manifesto-subtitle-bar {
  display: flex; align-items: center; gap: 16px;
}
.subtitle-line {
  flex: 1; height: 1px; background: var(--border-bright);
  max-width: 120px;
}
.subtitle-text {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 4px; color: var(--gray);
  white-space: nowrap;
}

.manifesto-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.manifesto-copy-block {
  border-left: 2px solid var(--amber);
  padding-left: 24px;
}
.manifesto-copy {
  font-size: 16px; line-height: 1.8; color: var(--gray-light);
}

.kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s;
}
.kpi-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.kpi-amber::before { background: var(--amber); }
.kpi-cyan::before { background: var(--cyan); }
.kpi-green::before { background: var(--green); }
.kpi-card:hover { border-color: var(--border-bright); }

.kpi-label {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 2px; color: var(--gray);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 28px; font-weight: 800; line-height: 1;
  color: var(--amber); margin-bottom: 10px;
}
.kpi-cyan .kpi-value { color: var(--cyan); }
.kpi-number { display: inline-block; }
.kpi-bar {
  height: 2px; background: var(--border);
  margin-bottom: 8px; overflow: hidden;
}
.kpi-bar-fill {
  height: 100%; width: 0%;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}
.kpi-bar-amber { background: var(--amber); }
.kpi-bar-cyan { background: var(--cyan); }
.kpi-bar-green { background: var(--green); }
.kpi-desc {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--gray); line-height: 1.5;
}

/* ═══════════════════════ SECTION 2: TELEMETRY ═══════════════════════ */
.physics-constants-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--amber);
  margin-bottom: 40px;
  font-family: var(--font-mono);
}
.const-label {
  font-size: 9px; letter-spacing: 2px; color: var(--gray);
  text-transform: uppercase;
}
.const-item { display: flex; flex-direction: column; gap: 2px; }
.const-key { font-size: 8px; color: var(--gray); }
.const-val { font-size: 11px; color: var(--amber); font-weight: 600; }
.const-separator { color: var(--border-bright); font-size: 12px; }

.telemetry-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}

.controls-header {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 4px; color: var(--gray);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.slider-group {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px; margin-bottom: 20px;
}
.slider-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.slider-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; color: var(--gray-light);
}
.slider-unit {
  display: block; font-size: 8px; color: var(--gray);
  margin-top: 2px;
}
.slider-current { text-align: right; }

.slider-track-wrapper { margin-bottom: 8px; }
.gd-slider {
  width: 100%; height: 4px;
  -webkit-appearance: none;
  appearance: none;
  outline: none; cursor: pointer;
  background: var(--border-bright);
  border-radius: 0;
}
.slider-amber::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--amber);
  border: 2px solid var(--black);
  box-shadow: 0 0 12px rgba(217,119,6,0.6);
  cursor: pointer;
}
.slider-cyan::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--cyan);
  border: 2px solid var(--black);
  box-shadow: 0 0 12px rgba(6,182,212,0.6);
  cursor: pointer;
}
.slider-amber::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--amber); border: 2px solid var(--black);
  border-radius: 0; cursor: pointer;
}
.slider-cyan::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--cyan); border: 2px solid var(--black);
  border-radius: 0; cursor: pointer;
}
.slider-bounds {
  display: flex; justify-content: space-between; margin-top: 6px;
}
.slider-equation {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.eq-label {
  font-family: var(--font-mono); font-size: 7px;
  letter-spacing: 2px; color: var(--gray);
}
.eq-text {
  font-size: 11px; color: var(--gray-light);
}

.thermo-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
}
.thermo-diagram-title {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 3px; color: var(--gray);
  margin-bottom: 12px;
}
.thermo-svg { width: 100%; height: auto; }

/* TELEMETRY PANEL */
.telemetry-panel {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  position: relative;
}
.telemetry-panel::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
}
.telem-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.telem-panel-title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 3px; color: var(--gray);
}
.telem-panel-status {
  display: flex; align-items: center; gap: 6px;
}

.telem-metric {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.telem-metric::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
}
.telem-amber::before { background: var(--amber); }
.telem-cyan::before { background: var(--cyan); }

.telem-metric-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.telem-metric-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; color: var(--gray);
}
.telem-metric-eq {
  font-size: 9px; color: var(--border-bright);
}
.telem-metric-value {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.telem-metric-value span:first-child {
  font-size: 28px; font-weight: 700; line-height: 1;
  transition: all 0.3s ease;
}
.telem-metric-unit {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gray);
}
.telem-metric-bar {
  height: 2px; background: var(--border); overflow: hidden;
  margin-bottom: 6px;
}
.telem-bar-fill {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.telem-bar-amber { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); }
.telem-bar-cyan { background: linear-gradient(90deg, var(--cyan), var(--cyan-bright)); }
.telem-metric-sub {
  font-size: 9px; color: var(--gray);
}

.telem-ratio-block {
  padding: 16px 20px;
}
.ratio-header {
  margin-bottom: 12px;
}
.ratio-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ratio-item {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
}
.ratio-label {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 1px; color: var(--gray);
  margin-bottom: 4px;
}
.ratio-value {
  font-size: 13px; font-weight: 700;
}

/* ═══════════════════════ SECTION 3: SCHEMATIC ═══════════════════════ */
.process-flow-bar {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 40px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
}
.flow-step {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border-bright);
  min-width: 80px;
}
.flow-cyan { border-color: rgba(6,182,212,0.3); }
.flow-amber { border-color: rgba(217,119,6,0.3); }
.flow-step-num {
  font-family: var(--font-mono); font-size: 14px; font-weight: 800;
  color: var(--amber);
}
.flow-cyan .flow-step-num { color: var(--cyan); }
.flow-step-label {
  font-family: var(--font-mono); font-size: 7px;
  letter-spacing: 1px; color: var(--gray);
  margin-top: 2px;
}
.flow-arrow {
  font-size: 20px; padding: 0 8px;
}
.flow-arrow-amber { color: var(--amber); }
.flow-arrow-cyan { color: var(--cyan); }

.schematic-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.schematic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.schematic-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.schematic-amber::before { background: var(--amber); }
.schematic-cyan::before { background: var(--cyan); }

.schematic-card-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.schematic-track-num {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 4px; color: var(--gray);
  margin-bottom: 6px;
}
.schematic-track-name {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 2px; line-height: 1.1;
  margin-bottom: 10px;
}
.schematic-phase-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border: 1px solid;
}
.amber-badge {
  color: var(--amber); border-color: var(--amber);
  background: rgba(217,119,6,0.08);
}
.cyan-badge {
  color: var(--cyan); border-color: var(--cyan);
  background: rgba(6,182,212,0.08);
}

.schematic-body { padding: 20px; }
.schematic-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.schematic-block:last-of-type { border-bottom: none; }
.schematic-block-title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; color: var(--white);
  margin-bottom: 6px;
}
.schematic-block-detail {
  font-size: 13px; color: var(--gray-light);
  line-height: 1.6; margin-bottom: 12px;
}
.schematic-spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.spec-key {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1px; color: var(--gray);
  flex-shrink: 0;
}
.spec-val {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--gray-light); text-align: right;
}

.schematic-core-duty {
  background: var(--panel);
  border: 1px solid var(--border-bright);
  padding: 14px;
  margin-top: 16px;
}
.core-duty-label {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 3px; color: var(--amber);
  margin-bottom: 6px;
}
.schematic-cyan .core-duty-label { color: var(--cyan); }
.core-duty-text {
  font-size: 12px; line-height: 1.7; color: var(--gray-light);
}

/* ═══════════════════════ SECTION 4: LCOS ═══════════════════════ */
.lcos-headline-grid {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 24px; align-items: center;
  margin-bottom: 40px;
}
.lcos-headline-card {
  padding: 24px; border: 1px solid;
  position: relative; overflow: hidden;
}
.lcos-gd {
  border-color: rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.03);
}
.lcos-li {
  border-color: var(--border-bright);
  background: var(--surface);
}
.lcos-headline-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 3px; color: var(--gray);
  margin-bottom: 8px;
}
.lcos-headline-value {
  font-size: 48px; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.lcos-headline-unit {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--gray); margin-bottom: 8px;
}
.lcos-headline-sub {
  font-size: 12px; color: var(--gray);
  font-style: italic;
}
.lcos-vs-block {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lcos-vs-label {
  font-size: 24px; font-weight: 800; color: var(--gray);
}
.lcos-advantage-arrow {
  font-size: 24px; color: var(--cyan);
}

.lcos-table-wrapper {
  border: 1px solid var(--border-bright);
  overflow: hidden;
}
.lcos-table-header {
  display: grid; grid-template-columns: 2fr 2fr 2fr 1.5fr;
  background: var(--panel);
  border-bottom: 2px solid var(--border-bright);
}
.lcos-col-header {
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; color: var(--gray);
  border-right: 1px solid var(--border);
  line-height: 1.5;
}
.lcos-col-header:last-child { border-right: none; }

.lcos-row {
  display: grid; grid-template-columns: 2fr 2fr 2fr 1.5fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.lcos-row:hover { background: rgba(255,255,255,0.01); }
.lcos-row-alt { background: rgba(255,255,255,0.01); }
.lcos-row-total {
  background: rgba(6,182,212,0.04);
  border-top: 2px solid var(--cyan);
  border-bottom: none;
}

.lcos-cell {
  padding: 16px;
  border-right: 1px solid var(--border);
}
.lcos-cell:last-child { border-right: none; }

.lcos-param-title {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1px; color: var(--white);
  margin-bottom: 4px;
}
.lcos-param-sub {
  font-size: 11px; color: var(--gray);
}
.lcos-val-primary {
  font-size: 15px; font-weight: 700;
  margin-bottom: 6px; line-height: 1.2;
}
.lcos-val-detail {
  font-size: 11px; line-height: 1.5; color: var(--gray-light);
}
.lcos-adv-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px;
  padding: 4px 8px; margin-bottom: 6px;
}
.adv-neutral {
  color: var(--gray); border: 1px solid var(--border-bright);
}
.adv-strong {
  color: var(--cyan); border: 1px solid var(--cyan);
  background: rgba(6,182,212,0.06);
}
.adv-decisive {
  color: var(--amber); border: 1px solid var(--amber);
  background: rgba(217,119,6,0.08);
  padding: 6px 12px;
}
.lcos-adv-detail {
  font-size: 11px; line-height: 1.5; color: var(--gray-light);
}

/* ═══════════════════════ SECTION 5: PORTAL ═══════════════════════ */
.portal-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 48px; align-items: start;
}

.portal-credentials {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
}
.portal-cred-title {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 3px; color: var(--gray);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.portal-cred-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.portal-cred-item:last-child { border-bottom: none; padding-bottom: 0; }
.portal-cred-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
}
.portal-cred-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.portal-cred-dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.portal-cred-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.cred-name {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; color: var(--white);
  margin-bottom: 3px;
}
.cred-detail {
  font-size: 11px; color: var(--gray); line-height: 1.5;
}

.portal-encryption-badge, .portal-response-badge {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 12px;
}
.enc-icon { font-size: 20px; flex-shrink: 0; }
.enc-title {
  font-size: 10px; letter-spacing: 2px; color: var(--green);
  margin-bottom: 4px;
}
.enc-sub {
  font-size: 11px; color: var(--gray); line-height: 1.5;
}

.portal-form { }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; color: var(--gray);
}
.form-required { color: var(--amber); }
.form-input {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-mono); font-size: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), inset 0 0 20px rgba(217,119,6,0.03);
}
.form-input::placeholder { color: var(--gray); }
.form-select { cursor: pointer; }
.form-select option {
  background: var(--panel); color: var(--white);
}
.form-error {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--red); letter-spacing: 1px;
  min-height: 14px;
}
.form-input.error { border-color: var(--red); }

.form-submit-btn {
  width: 100%;
  background: var(--amber);
  color: var(--black);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 4px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.form-submit-btn::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.form-submit-btn:hover::before { left: 100%; }
.form-submit-btn:hover {
  background: var(--amber-bright);
  box-shadow: 0 0 40px rgba(217,119,6,0.4);
}
.submit-icon {
  font-size: 22px;
  transition: transform 0.3s;
}
.form-submit-btn:hover .submit-icon { transform: translateX(4px); }

/* ═══════════════════════ MODAL ═══════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.modal-container {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-top: 3px solid var(--cyan);
  padding: 40px;
  max-width: 580px; width: 100%;
  transform: translateY(20px);
  transition: transform 0.4s;
  position: relative;
}
.modal-overlay.active .modal-container { transform: translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-lock-icon { font-size: 32px; }
.modal-status-row {
  display: flex; align-items: center; gap: 8px;
}
.modal-title {
  font-size: 32px; font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.modal-encryption-bar {
  height: 4px; background: var(--border);
  margin-bottom: 4px; overflow: hidden;
}
.enc-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 2s ease;
}
.modal-enc-label {
  margin-bottom: 24px;
}
.modal-confirmation-text {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 2px; color: var(--cyan);
  line-height: 1.7; padding: 16px;
  border: 1px solid rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.04);
  margin-bottom: 20px;
}
.modal-submission-data {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px; margin-bottom: 20px;
}
.modal-sub-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px;
}
.modal-sub-row:last-child { border-bottom: none; }
.modal-sub-key { color: var(--gray); }
.modal-sub-val { color: var(--white); text-align: right; max-width: 60%; }
.modal-ref {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--gray); margin-bottom: 24px;
  letter-spacing: 2px;
}
.modal-close-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--gray-light);
  padding: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 3px; cursor: pointer;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

/* FOOTER */
.gd-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 8px;
  color: var(--white);
}
.footer-tagline {
  font-size: 9px; letter-spacing: 4px; color: var(--gray);
  margin-top: 4px;
}

/* GLOW ANIMATION ON METRIC VALUES */
@keyframes value-glow {
  0%,100% { text-shadow: none; }
  50% { text-shadow: 0 0 20px currentColor; }
}
.value-updating { animation: value-glow 0.4s ease; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1200px) {
  .manifesto-body { grid-template-columns: 1fr; }
  .telemetry-layout { grid-template-columns: 1fr; }
  .schematic-grid { grid-template-columns: 1fr; }
  .lcos-table-header, .lcos-row {
    grid-template-columns: 1fr 1fr;
  }
  .lcos-col-adv { display: none; }
  .lcos-headline-grid { grid-template-columns: 1fr; }
  .lcos-vs-block { display: none; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .content-section { padding: 40px 24px; }
  .mobile-nav-toggle { display: flex; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group-full { grid-column: 1; }
  .manifesto-headline { font-size: clamp(48px, 12vw, 80px); }
  .lcos-table-header, .lcos-row {
    grid-template-columns: 1fr;
    display: block;
  }
  .lcos-cell { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .physics-constants-bar { display: none; }
  .modal-container { padding: 24px; }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-bright); }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }
