/* ============================================================
   ELITE IT SOLUTIONS — ENTERPRISE DESIGN SYSTEM
   Defense-Grade Command Interface
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500&family=Barlow+Condensed:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:      #00A6D6;
  --secondary:    #008FB8;
  --accent:       #33C3F0;
  --bg:           #0A0F14;
  --bg-panel:     #0D1520;
  --bg-card:      #101A24;
  --bg-overlay:   rgba(10, 15, 20, 0.92);
  --border:       rgba(0, 166, 214, 0.18);
  --border-hover: rgba(0, 166, 214, 0.55);
  --text-primary: #E8F4F8;
  --text-muted:   #6B8FA8;
  --text-dim:     #3A5568;
  --glow-sm:      0 0 8px rgba(0, 166, 214, 0.35);
  --glow-md:      0 0 20px rgba(0, 166, 214, 0.25);
  --glow-lg:      0 0 40px rgba(0, 166, 214, 0.2);
  --font-ui:      'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-display: 'Barlow Condensed', sans-serif;
  --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-ui); }
canvas { display: block; }

/* ── Page Transition Overlay ───────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#page-transition.active { opacity: 1; pointer-events: all; }
#page-transition .transition-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,166,214,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,166,214,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 0.4s ease;
}
#page-transition .transition-bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  animation: scanBar 0.4s linear;
  box-shadow: var(--glow-md);
}
@keyframes gridPulse { 0%{opacity:0} 50%{opacity:1} 100%{opacity:0} }
@keyframes scanBar { 0%{top:-2px} 100%{top:100%} }

/* ── Navigation ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 15, 20, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0,166,214,0.4);
}
.nav-logo-mark svg { width: 18px; height: 18px; fill: var(--primary); }
.nav-logo-text { display: flex; flex-direction: column; gap: 0; }
.nav-logo-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1;
  text-transform: uppercase;
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border-left: 1px solid transparent;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-left-color: var(--border);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 1px;
  background: var(--primary);
  box-shadow: var(--glow-sm);
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-status-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulseDot 2s ease infinite;
}
.pulse-dot.warning { background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--border-hover);
  padding: 7px 16px;
  transition: var(--transition);
}
.nav-cta:hover {
  background: rgba(0, 166, 214, 0.1);
  color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ── Page Canvas ───────────────────────────────────────────── */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
}
.page-content {
  position: relative;
  z-index: 10;
  padding-top: 64px;
}

/* ── Section Utility ───────────────────────────────────────── */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-sm { padding: 48px 32px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}
.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-top: 16px;
}

/* ── Panel / Card ──────────────────────────────────────────── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  transition: var(--transition);
}
.panel:hover { border-color: var(--border-hover); }
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--primary);
}
.panel-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.panel-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ── Stat Card ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat-item {
  background: var(--bg-panel);
  padding: 20px 24px;
  position: relative;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: transparent;
  transition: var(--transition);
}
.stat-item:hover::before { background: var(--primary); box-shadow: var(--glow-sm); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-value.highlight { color: var(--primary); }
.stat-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Button Styles ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,166,214,0.4);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(0,166,214,0.08);
  border-color: var(--primary);
  box-shadow: var(--glow-sm);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 10px;
}
.btn-ghost:hover { color: var(--primary); border-color: var(--border-hover); }
.btn svg { width: 14px; height: 14px; }
.btn-arrow::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Divider / Separator ───────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  position: relative;
}
.divider::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 80px; height: 1px;
  background: var(--primary);
  box-shadow: var(--glow-sm);
}

/* ── Tag / Badge ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag.active { color: #22C55E; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.06); }
.tag.critical { color: #EF4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.tag.warning { color: #F59E0B; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.06); }
.tag.primary { color: var(--primary); border-color: var(--border-hover); background: rgba(0,166,214,0.06); }

/* ── Progress Bar ──────────────────────────────────────────── */
.progress-bar {
  height: 2px;
  background: rgba(0,166,214,0.12);
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: 0 0 6px rgba(0,166,214,0.5);
  transition: width 1s ease;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--primary);
  box-shadow: var(--glow-sm);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.hero-title .accent { color: var(--primary); }
.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ── Division Grid ─────────────────────────────────────────── */
.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
@media (max-width: 1024px) { .division-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .division-grid { grid-template-columns: 1fr; } }

.division-card {
  background: var(--bg-panel);
  padding: 36px 32px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.division-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}
.division-card:hover {
  background: var(--bg-card);
}
.division-card:hover::before {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: var(--glow-sm);
}
.division-card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.division-card:hover .division-card-icon {
  border-color: var(--border-hover);
  box-shadow: var(--glow-sm);
}
.division-card-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.division-card-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  position: absolute;
  top: 20px; right: 20px;
}
.division-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.division-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}
.division-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.division-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.division-card-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.division-card-cta::after { content: '→'; transition: transform 0.2s; }
.division-card:hover .division-card-cta::after { transform: translateX(4px); }

/* ── Subsystem Hero ────────────────────────────────────────── */
.subsystem-hero {
  padding: 120px 32px 60px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}
.subsystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--border-hover);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.subsystem-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s infinite;
}
.subsystem-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.subsystem-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* ── Dashboard Grid ────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}
.dash-2 { grid-template-columns: 1fr 1fr; }
.dash-3 { grid-template-columns: 1fr 1fr 1fr; }
.dash-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.dash-2-1 { grid-template-columns: 2fr 1fr; }
.dash-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1024px) {
  .dash-2, .dash-3, .dash-4, .dash-2-1, .dash-1-2 { grid-template-columns: 1fr; }
}

/* ── Live Feed ─────────────────────────────────────────────── */
.live-feed {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.live-feed-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,166,214,0.03);
}
.live-feed-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #22C55E;
}
.live-indicator::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulseDot 1.5s infinite;
}
.feed-list { padding: 0; max-height: 320px; overflow-y: auto; }
.feed-list::-webkit-scrollbar { width: 3px; }
.feed-list::-webkit-scrollbar-track { background: transparent; }
.feed-list::-webkit-scrollbar-thumb { background: var(--border-hover); }
.feed-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(0,166,214,0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: background 0.2s;
}
.feed-item:hover { background: rgba(0,166,214,0.04); }
.feed-time { color: var(--text-dim); font-size: 10px; }
.feed-msg { color: var(--text-muted); }
.feed-level {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
}
.feed-level.info { color: var(--primary); border-color: rgba(0,166,214,0.3); }
.feed-level.warn { color: #F59E0B; border-color: rgba(245,158,11,0.3); }
.feed-level.crit { color: #EF4444; border-color: rgba(239,68,68,0.3); }
.feed-level.ok { color: #22C55E; border-color: rgba(34,197,94,0.3); }

/* ── Canvas Panel ──────────────────────────────────────────── */
.canvas-panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.canvas-panel canvas { width: 100% !important; display: block; }
.canvas-panel-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.canvas-label {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Grid Background ───────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(0,166,214,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,166,214,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.grid-bg-dense {
  background-image:
    linear-gradient(rgba(0,166,214,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,166,214,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Vision Section ────────────────────────────────────────── */
.vision-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.vision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,166,214,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,166,214,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.vision-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
}
@media (max-width: 768px) { .vision-grid { grid-template-columns: 1fr; } }
.vision-item {
  background: var(--bg);
  padding: 36px 28px;
}
.vision-item-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.vision-item-icon svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.vision-item-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.vision-item-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────── */
#footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 640px) { .footer-links { grid-template-columns: 1fr 1fr; } }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col-links a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.footer-meta {
  display: flex;
  gap: 24px;
}
.footer-meta a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.footer-meta a:hover { color: var(--text-muted); }

/* ── Threat Matrix (SOC) ───────────────────────────────────── */
.threat-matrix {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 2px;
}
.matrix-cell {
  aspect-ratio: 1;
  background: rgba(0,166,214,0.05);
  border: 1px solid rgba(0,166,214,0.08);
  transition: var(--transition);
  cursor: default;
  position: relative;
}
.matrix-cell:hover { background: rgba(0,166,214,0.15); border-color: var(--border-hover); }
.matrix-cell.active-low { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.2); }
.matrix-cell.active-med { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.2); }
.matrix-cell.active-high { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.25); animation: cellPulse 2s infinite; }
@keyframes cellPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Topology Node ─────────────────────────────────────────── */
.topo-canvas-wrap {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── CI/CD Pipeline ────────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}
.pipeline::-webkit-scrollbar { height: 3px; }
.pipeline::-webkit-scrollbar-thumb { background: var(--border-hover); }
.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.pipeline-connector {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--border-hover), rgba(0,166,214,0.3));
  flex-shrink: 0;
  position: relative;
}
.pipeline-connector::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid rgba(0,166,214,0.5);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.pipeline-stage-icon { width: 32px; height: 32px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.pipeline-stage-icon svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.pipeline-stage-name { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; color: var(--text-muted); }
.pipeline-stage-status { font-family: var(--font-mono); font-size: 8px; padding: 2px 6px; border: 1px solid; }
.pipeline-stage-status.pass { color: #22C55E; border-color: rgba(34,197,94,0.3); }
.pipeline-stage-status.run { color: var(--primary); border-color: rgba(0,166,214,0.3); animation: blinkText 1s infinite; }
.pipeline-stage-status.wait { color: var(--text-dim); border-color: var(--border); }
@keyframes blinkText { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,166,214,0.5); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.anim-fade-up { animation: fadeInUp 0.6s ease both; }
.anim-fade-up-2 { animation: fadeInUp 0.6s 0.1s ease both; }
.anim-fade-up-3 { animation: fadeInUp 0.6s 0.2s ease both; }
.anim-fade-up-4 { animation: fadeInUp 0.6s 0.3s ease both; }
.anim-fade-up-5 { animation: fadeInUp 0.6s 0.4s ease both; }
.anim-fade-up-6 { animation: fadeInUp 0.6s 0.5s ease both; }

/* ── Hamburger / Mobile Nav ────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--border-hover); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-muted);
  transition: var(--transition);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--primary); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--primary); }

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(10, 15, 20, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-mobile-drawer.open {
  max-height: 520px;
}
.nav-mobile-links {
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,166,214,0.06);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mobile-links a::after { content: '→'; opacity: 0; transition: var(--transition); }
.nav-mobile-links a:hover, .nav-mobile-links a.active {
  color: var(--primary);
  background: rgba(0,166,214,0.04);
  padding-left: 32px;
}
.nav-mobile-links a:hover::after, .nav-mobile-links a.active::after { opacity: 1; }
.nav-mobile-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.nav-mobile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-status { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-drawer { display: block; }
  .nav-inner { padding: 0 16px; }

  /* Sections */
  .section { padding: 40px 16px; }
  .section-sm { padding: 32px 16px; }
  .subsystem-hero { padding: 90px 16px 36px; }

  /* Hero title sizing */
  .hero-title { font-size: clamp(36px, 10vw, 60px); }
  .hero-inner { padding: 100px 16px 60px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Subsystem title */
  .subsystem-title { font-size: clamp(32px, 9vw, 56px); }

  /* Section title */
  .section-title { font-size: clamp(26px, 7vw, 42px); }

  /* Feed items — stack on very small screens */
  .feed-item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 8px;
  }
  .feed-level {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  /* Stat grid — allow 2 col on phones */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Vision inner */
  .vision-inner { padding: 48px 16px; }

  /* Footer */
  .footer-inner { padding: 32px 16px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-meta { flex-wrap: wrap; gap: 12px; }

  /* Threat matrix — reduce columns */
  .threat-matrix { grid-template-columns: repeat(8, 1fr); }

  /* Buttons — full width on small screens when stacked */
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Panel value font size */
  .panel-value { font-size: 28px; }

  /* Division card padding */
  .division-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  /* Even tighter on small phones */
  .section { padding: 32px 14px; }
  .subsystem-hero { padding: 84px 14px 28px; }
  .nav-inner { padding: 0 14px; }
  .hero-inner { padding: 90px 14px 48px; }

  /* Stat grid — single col on tiny screens */
  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Footer links — single col */
  .footer-links { grid-template-columns: 1fr !important; }

  /* Threat matrix */
  .threat-matrix { grid-template-columns: repeat(6, 1fr); }

  /* Feed items */
  .feed-item { grid-template-columns: 60px 1fr; font-size: 10px; }
  .feed-time { font-size: 9px; }
}

/* ── Responsive Grid Utilities ─────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.grid-2col-gap1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.grid-sidebar-right-320 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
.grid-sidebar-right-380 {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}
.grid-2-1col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: var(--border);
}
@media (max-width: 768px) {
  .grid-2col,
  .grid-2col-gap1,
  .grid-sidebar-right-320,
  .grid-sidebar-right-380,
  .grid-2-1col {
    grid-template-columns: 1fr;
    background: none;
  }
  .grid-2col { gap: 20px; }
  .grid-2col-gap1 { gap: 1px; background: var(--border); }
}
.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.text-primary-color { color: var(--primary); }
.text-muted-color { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.opacity-0 { opacity: 0; }
