/* ============================================================
   ATMOSPHERIC ANALYTICS GROUP — DESIGN SYSTEM
   Enterprise Mobile-First — Safari WebKit optimised
   iPhone SE → iPhone 15 Pro Max → Desktop
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg-void:       #0d0f12;
  --bg-primary:    #13151a;
  --bg-panel:      #1a1d24;
  --bg-surface:    #20242d;
  --bg-elevated:   #272b35;
  --cyan:          #019EDC;
  --cyan-bright:   #01C5FF;
  --cyan-dim:      rgba(1,158,220,0.10);
  --cyan-border:   rgba(1,158,220,0.20);
  --cyan-border2:  rgba(1,158,220,0.40);
  --violet:        #a855f7;
  --violet-dim:    rgba(168,85,247,0.10);
  --violet-border: rgba(168,85,247,0.28);
  --threat:        #f87171;
  --threat-dim:    rgba(248,113,113,0.10);
  --threat-border: rgba(248,113,113,0.30);
  --warn:          #fbbf24;
  --warn-dim:      rgba(251,191,36,0.10);
  --ok:            #4ade80;
  --ok-dim:        rgba(74,222,128,0.10);
  --text-primary:   #d4dce8;
  --text-secondary: #8892a4;
  --text-muted:     #555f72;
  --text-dim:       #3a4252;
  --border-panel:  rgba(255,255,255,0.07);
  --border-bright: rgba(1,158,220,0.40);
  --border-subtle: rgba(255,255,255,0.04);
  --font-display: 'Orbitron', monospace;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --ease-out:   cubic-bezier(0.16,1,0.3,1);
  --ease-sharp: cubic-bezier(0.4,0,0.2,1);
  --nav-h: 60px;
  --nav-z: 0;
}

/* ── ENTERPRISE MOBILE-FIRST RESET ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: -webkit-fill-available;
}

body {
  margin: 0;
  padding: 0;
  padding-left:   env(safe-area-inset-left);
  padding-right:  env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

img, video, canvas, iframe, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(1,158,220,0.30); color: var(--cyan-bright); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1,h2,h3,h4,h5,h6 { margin-top:0; font-weight:700; line-height:1.15; word-break:break-word; overflow-wrap:break-word; }
p { margin-bottom:1rem; overflow-wrap:break-word; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: min(1280px,100%);
  padding-left:  max(16px,env(safe-area-inset-left));
  padding-right: max(16px,env(safe-area-inset-right));
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   NAV — ENTERPRISE MOBILE-FIRST WITH DRAWER
   The nav never overflows on any screen width.
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-top:   env(safe-area-inset-top);
  padding-left:  max(16px,env(safe-area-inset-left));
  padding-right: max(16px,env(safe-area-inset-right));
  background: rgba(13,15,18,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-panel);
}
@supports (padding-top: env(safe-area-inset-top)) {
  .nav { height: calc(var(--nav-h) + env(safe-area-inset-top)); }
}
.nav-home-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; min-width: 0; flex-shrink: 1; overflow: hidden;
}
.nav-logo-img { height: 36px; width: auto; flex-shrink: 0; opacity: 0.92; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 0.55rem; letter-spacing: 0.18em;
  color: var(--text-primary); text-transform: uppercase;
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.nav-brand span {
  display: block; font-size: 0.38rem; letter-spacing: 0.32em;
  color: var(--cyan); font-family: var(--font-mono);
}
.nav-links {
  display: flex; list-style: none; gap: 0;
  margin: 0; padding: 0; height: var(--nav-h); align-items: stretch;
}
.nav-links li { display: flex; }
.nav-links a {
  display: flex; align-items: center; padding: 0 1.1rem;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em;
  color: var(--text-secondary); text-transform: uppercase;
  border-right: 1px solid var(--border-panel); white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links li:first-child a { border-left: 1px solid var(--border-panel); }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); background: rgba(1,158,220,0.06); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.14em;
  color: var(--ok); text-transform: uppercase; white-space: nowrap;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 6px var(--ok); flex-shrink: 0;
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.nav-cta {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bg-void); background: var(--cyan);
  border: none; padding: 0.5rem 1rem; text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
  min-height: 36px; cursor: pointer; transition: background 0.15s;
}
.nav-cta:hover { background: var(--cyan-bright); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border-panel); color: var(--text-secondary);
  padding: 0; width: 44px; height: 44px; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── MOBILE DRAWER (replaces overlay) ────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  left: 0; right: 0; bottom: 0;
  background: rgba(13,15,18,0.99);
  z-index: 800;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer-inner {
  display: flex; flex-direction: column;
  padding: 1.5rem max(1.25rem,env(safe-area-inset-left));
  gap: 0;
}
.mobile-link {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.18em;
  color: var(--text-secondary); text-transform: uppercase;
  padding: 1rem 0; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; min-height: 44px;
  transition: color 0.15s; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover, .mobile-link.active { color: var(--cyan); }
.mobile-drawer-cta {
  margin-top: 1.5rem;
  background: var(--cyan); color: var(--bg-void);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 1rem;
  text-align: center; display: flex; align-items: center; justify-content: center;
  min-height: 52px; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── SIDENAV ─────────────────────────────────────────────────── */
.sidenav {
  position: fixed; left: 0; top: var(--nav-h); bottom: 0; z-index: 200;
  width: 52px; background: rgba(13,15,18,0.97); border-right: 1px solid var(--border-panel);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; overflow: hidden;
  transition: width 0.3s var(--ease-sharp);
}
.sidenav:hover { width: 220px; }
.sidenav-track {
  flex: 1; display: flex; flex-direction: column;
  padding: 1rem 0; gap: 2px; overflow-y: auto; overflow-x: hidden;
}
.sidenav-track::-webkit-scrollbar { display: none; }
.sidenav-item {
  display: flex; align-items: center; flex-shrink: 0; width: 100%;
  min-height: 44px; padding: 0 0 0 16px; cursor: pointer;
  text-decoration: none; border-left: 3px solid transparent;
  transition: background 0.14s, border-color 0.14s;
}
.sidenav-item:hover  { background: rgba(1,158,220,0.08); border-left-color: rgba(1,158,220,0.4); }
.sidenav-item.active { background: rgba(1,158,220,0.13); border-left-color: var(--cyan); }
.sidenav-node { position: relative; flex-shrink: 0; width: 20px; display: flex; flex-direction: column; align-items: center; height: 100%; min-height: 44px; }
.sidenav-node-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--text-dim); flex-shrink: 0; margin-top: 18px; transition: background 0.14s, border-color 0.14s, box-shadow 0.14s; position: relative; z-index: 1; }
.sidenav-item:hover .sidenav-node-dot, .sidenav-item.active .sidenav-node-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.sidenav-node-line { width: 1px; flex: 1; background: var(--border-subtle); margin-top: 2px; }
.sidenav-item:last-child .sidenav-node-line { display: none; }
.sidenav-content { display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 10px; opacity: 0; min-width: 0; transition: opacity 0.22s var(--ease-sharp); overflow: hidden; }
.sidenav:hover .sidenav-content { opacity: 1; }
.sidenav-num { font-family: var(--font-mono); font-size: 0.48rem; letter-spacing: 0.2em; color: var(--text-dim); text-transform: uppercase; line-height: 1; margin-bottom: 2px; }
.sidenav-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }
.sidenav-item:hover .sidenav-label, .sidenav-item.active .sidenav-label { color: var(--cyan); }
.sidenav-divider { height: 1px; background: var(--border-panel); margin: 6px 10px 6px 19px; flex-shrink: 0; }
.sidenav-top-btn { flex-shrink: 0; display: flex; align-items: center; width: 100%; padding: 10px 0 10px 14px; gap: 0; cursor: pointer; border: none; background: none; border-top: 1px solid var(--border-panel); transition: background 0.14s; min-height: 44px; }
.sidenav-top-btn:hover { background: rgba(1,158,220,0.08); }
.sidenav-top-icon { width: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidenav-top-icon svg { color: var(--text-muted); transition: color 0.14s, transform 0.2s; }
.sidenav-top-btn:hover .sidenav-top-icon svg { color: var(--cyan); transform: translateY(-2px); }
.sidenav-top-label { padding-left: 12px; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; opacity: 0; white-space: nowrap; transition: opacity 0.22s; }
.sidenav:hover .sidenav-top-label { opacity: 1; }
.sidenav-top-btn:hover .sidenav-top-label { color: var(--cyan); }

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb { position: fixed; top: var(--nav-h); left: 52px; right: 0; z-index: 199; display: flex; align-items: center; gap: 0; padding: 0 1.5rem; height: 30px; background: rgba(19,21,26,0.95); border-bottom: 1px solid var(--border-panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.breadcrumb-item { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.18em; color: var(--text-dim); text-transform: uppercase; white-space: nowrap; }
.breadcrumb-item.active { color: var(--cyan); }
.breadcrumb-sep { font-family: var(--font-mono); font-size: 0.5rem; color: var(--border-panel); margin: 0 0.5rem; flex-shrink: 0; }
.breadcrumb-progress { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-bar { width: 70px; height: 2px; background: var(--border-subtle); overflow: hidden; }
.breadcrumb-fill { height: 100%; background: var(--cyan); width: 0%; transition: width 0.3s ease; box-shadow: 0 0 6px var(--cyan); }
.breadcrumb-pct { font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.12em; color: var(--text-dim); min-width: 3ch; text-align: right; }

/* ── PAGE BODY ────────────────────────────────────────────────── */
.page-body { margin-top: var(--nav-h); margin-left: 52px; }
@supports (padding-top: env(safe-area-inset-top)) {
  .page-body { margin-top: calc(var(--nav-h) + env(safe-area-inset-top)); }
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding-top: var(--nav-z);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content {
  position: relative; z-index: 2; text-align: center;
  width: 100%; max-width: min(900px,100%);
  padding: clamp(1rem,4vw,2rem) max(clamp(1rem,4vw,2rem),env(safe-area-inset-left));
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.hero-content.visible { opacity: 1; transform: translateY(0); }

/* Loader */
#hero-loader { position: absolute; inset: 0; z-index: 10; background: var(--bg-void); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
#hero-loader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring-wrap { position: relative; width: 80px; height: 80px; margin-bottom: 1.5rem; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid transparent; animation: loader-spin 2.4s linear infinite; }
.loader-ring-1 { border-top-color: var(--cyan); border-right-color: rgba(1,197,255,.2); }
.loader-ring-2 { inset: 10px; border-bottom-color: var(--violet); border-left-color: rgba(168,85,247,.2); animation-duration: 1.7s; animation-direction: reverse; }
.loader-ring-3 { inset: 20px; border-top-color: rgba(1,197,255,.5); border-bottom-color: rgba(1,197,255,.5); animation-duration: 3.1s; }
.loader-core { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle,rgba(1,197,255,.2) 0%,transparent 70%); animation: loader-pulse-core 1.8s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse-core { 0%,100%{opacity:.4;transform:scale(.9)} 50%{opacity:1;transform:scale(1.1)} }
.loader-counter { font-family: var(--font-display); font-size: clamp(1.6rem,5vw,2.2rem); font-weight: 700; letter-spacing: 0.08em; color: var(--cyan); line-height: 1; margin-bottom: 0.4rem; text-shadow: 0 0 20px rgba(1,197,255,0.4); }
.loader-pct { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.4em; color: var(--cyan); }
.loader-bar-wrap { width: min(200px,70vw); height: 1px; background: var(--border-subtle); margin: 1rem 0 0.75rem; }
.loader-bar-fill { height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); width: 0%; transition: width 0.05s linear; }
.loader-label { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.25em; color: var(--text-muted); text-transform: uppercase; animation: loader-blink 1.1s step-end infinite; }
@keyframes loader-blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Eyebrow */
.hero-eyebrow { position: relative; margin-bottom: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.eyebrow-scanbar { position: relative; width: min(320px,88vw); height: 18px; overflow: hidden; border: 1px solid rgba(1,197,255,0.15); background: rgba(1,197,255,0.03); }
.eyebrow-scanbar::before { content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg,transparent,rgba(1,197,255,0.25),transparent); animation: eyebrow-scan 2.2s linear infinite; }
@keyframes eyebrow-scan { to { left: 130%; } }
.eyebrow-blips { display: flex; align-items: center; height: 100%; padding: 0 8px; gap: 5px; }
.eyebrow-blip { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; animation: eyebrow-blip-pulse 1.8s ease-in-out infinite; }
.eyebrow-blip:nth-child(2){background:var(--ok);animation-delay:.3s;width:4px;height:4px;}
.eyebrow-blip:nth-child(3){animation-delay:.6s;}
.eyebrow-blip:nth-child(4){background:var(--warn);animation-delay:.9s;width:4px;height:4px;}
.eyebrow-blip:nth-child(5){animation-delay:1.2s;}
.eyebrow-blip:nth-child(6){background:var(--violet);animation-delay:.45s;}
.eyebrow-blip:nth-child(7){animation-delay:1.5s;}
.eyebrow-micro { flex: 1; height: 1px; background: linear-gradient(90deg,transparent,rgba(1,197,255,0.4),rgba(1,197,255,0.1)); margin-left: 4px; }
@keyframes eyebrow-blip-pulse { 0%,100%{opacity:.3;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }
.eyebrow-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-family: var(--font-mono); font-size: clamp(0.48rem,1.5vw,0.62rem); letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase; flex-wrap: wrap; }
.eyebrow-row::before,.eyebrow-row::after { content: ''; display: block; height: 1px; width: 0; background: linear-gradient(90deg,transparent,var(--cyan)); animation: eyebrow-line-grow 1.2s 0.3s ease forwards; }
.eyebrow-row::after { background: linear-gradient(90deg,var(--cyan),transparent); }
@keyframes eyebrow-line-grow { to { width: 50px; } }
.eyebrow-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: eyebrow-dot-blink 2s ease-in-out infinite; }
@keyframes eyebrow-dot-blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.eyebrow-sigbars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eyebrow-sigbar { width: 3px; border-radius: 1px; background: var(--cyan); opacity: 0.5; animation: eyebrow-sig-bounce 1.4s ease-in-out infinite; }
.eyebrow-sigbar:nth-child(1){height:4px;animation-delay:.0s;}
.eyebrow-sigbar:nth-child(2){height:7px;animation-delay:.1s;}
.eyebrow-sigbar:nth-child(3){height:10px;animation-delay:.2s;opacity:.75;}
.eyebrow-sigbar:nth-child(4){height:12px;animation-delay:.3s;opacity:1;}
.eyebrow-sigbar:nth-child(5){height:9px;animation-delay:.4s;opacity:.8;}
.eyebrow-sigbar:nth-child(6){height:6px;animation-delay:.5s;}
.eyebrow-sigbar:nth-child(7){height:3px;animation-delay:.6s;}
@keyframes eyebrow-sig-bounce { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(.4);opacity:.2} }
.eyebrow-coords { font-family: var(--font-mono); font-size: clamp(0.38rem,1.2vw,0.48rem); letter-spacing: 0.15em; color: var(--text-dim); text-transform: uppercase; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero text */
.hero-headline { font-family: var(--font-display); font-size: clamp(1.6rem,7vw,3.6rem); font-weight: 700; letter-spacing: 0.06em; line-height: 1.08; text-transform: uppercase; color: var(--text-primary); margin-bottom: 1.25rem; word-break: break-word; }
.hero-headline .accent { color: var(--cyan); }
.hero-sub { font-size: clamp(0.85rem,2.5vw,1.05rem); color: var(--text-secondary); max-width: min(640px,100%); margin: 0 auto 1.75rem; line-height: 1.7; font-weight: 300; }
.hero-actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }
.hero-phase-label { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase; opacity: 0; z-index: 2; transition: opacity 0.5s; white-space: nowrap; }
.scanline { position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.03) 2px,rgba(0,0,0,.03) 4px); pointer-events: none; z-index: 1; }
.hero-corner { position: absolute; width: 20px; height: 20px; z-index: 2; opacity: 0.4; }
.hero-corner--tl { top: calc(var(--nav-h) + 12px); left: 14px; border-top: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hero-corner--tr { top: calc(var(--nav-h) + 12px); right: 14px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.hero-corner--bl { bottom: 14px; left: 14px; border-bottom: 1px solid var(--cyan); border-left: 1px solid var(--cyan); }
.hero-corner--br { bottom: 14px; right: 14px; border-bottom: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }

/* Hero modules */
.hero-modules { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 0.5rem; padding: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s; }
.hero-content.visible .hero-modules { opacity: 1; transform: translateY(0); }
.hero-module-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; cursor: default; }
.hero-module-icon { width: 46px; height: 46px; border: 1px solid rgba(1,158,220,0.25); background: rgba(1,158,220,0.06); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s; }
.hero-module-item:hover .hero-module-icon { border-color: var(--cyan); background: rgba(1,158,220,0.14); color: var(--cyan); box-shadow: 0 0 16px rgba(1,197,255,0.2); }
.hero-module-label { font-family: var(--font-mono); font-size: 0.46rem; letter-spacing: 0.18em; color: var(--text-dim); text-transform: uppercase; white-space: nowrap; }
.hero-module-item:hover .hero-module-label { color: var(--cyan); }
.hero-module-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); width: 260px; padding: 0.85rem 1rem; background: rgba(19,21,26,0.98); border: 1px solid var(--cyan-border2); font-family: var(--font-mono); font-size: 0.56rem; line-height: 1.6; color: var(--text-secondary); pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 400; text-align: left; box-shadow: 0 8px 32px rgba(0,0,0,0.6); white-space: normal; }
.hero-module-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--cyan-border2); }
.hero-module-item:hover .hero-module-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero-module-item:nth-child(1) .hero-module-tooltip,.hero-module-item:nth-child(2) .hero-module-tooltip{left:0;transform:translateX(0) translateY(4px);}
.hero-module-item:nth-child(1):hover .hero-module-tooltip,.hero-module-item:nth-child(2):hover .hero-module-tooltip{transform:translateX(0) translateY(0);}
.hero-module-item:nth-child(8) .hero-module-tooltip,.hero-module-item:nth-child(9) .hero-module-tooltip{left:auto;right:0;transform:translateX(0) translateY(4px);}
.hero-module-item:nth-child(8):hover .hero-module-tooltip,.hero-module-item:nth-child(9):hover .hero-module-tooltip{transform:translateX(0) translateY(0);}

/* ══════════════════════════════════════════════════════════════
   COMPONENTS
══════════════════════════════════════════════════════════════ */

/* Ticker */
.ticker { background: var(--bg-panel); border-top: 1px solid var(--border-panel); border-bottom: 1px solid var(--border-panel); padding: 0.5rem 0; overflow: hidden; white-space: nowrap; width: 100%; }
.ticker-inner { display: inline-flex; gap: 4rem; animation: ticker-scroll 40s linear infinite; }
.ticker-item { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.15em; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.ticker-item .cyan{color:var(--cyan);} .ticker-item .ok{color:var(--ok);} .ticker-item .warn{color:var(--warn);}
@keyframes ticker-scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Buttons */
.btn { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.8rem 1.5rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn-primary  { background: var(--cyan); color: var(--bg-void); border-color: var(--cyan); }
.btn-primary:hover { background: var(--cyan-bright); box-shadow: 0 0 20px rgba(1,197,255,.35); }
.btn-outline  { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-outline:hover { background: rgba(1,158,220,.1); }
.btn-ghost    { background: transparent; color: var(--text-secondary); border-color: var(--border-panel); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* Sections */
.section { padding: clamp(3rem,6vw,7rem) clamp(1rem,4vw,2.5rem); position: relative; }
.section-alt { background: var(--bg-primary); }
.section-inner { max-width: min(1280px,100%); margin: 0 auto; }
.section-label { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.35em; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--cyan); flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.3rem,4vw,2.4rem); font-weight: 700; letter-spacing: 0.06em; line-height: 1.12; text-transform: uppercase; color: var(--text-primary); margin-bottom: 1rem; word-break: break-word; }
.section-sub { font-size: clamp(0.85rem,2vw,1rem); color: var(--text-secondary); max-width: min(720px,100%); line-height: 1.75; margin-bottom: 2.5rem; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border-panel); border: 1px solid var(--border-panel); }
.kpi-item { background: var(--bg-panel); padding: 1.75rem 1.25rem; text-align: center; }
.kpi-value { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.4rem); letter-spacing: 0.05em; color: var(--cyan); display: block; line-height: 1; margin-bottom: 0.5rem; }
.kpi-label { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; }

/* Tags */
.tag { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.25rem 0.6rem; border: 1px solid; display: inline-block; }
.tag-cyan   { color: var(--cyan);   background: var(--cyan-dim);   border-color: var(--cyan-border); }
.tag-violet { color: var(--violet); background: var(--violet-dim); border-color: var(--violet-border); }
.tag-ok     { color: var(--ok);     background: var(--ok-dim);     border-color: rgba(74,222,128,.25); }
.tag-warn   { color: var(--warn);   background: var(--warn-dim);   border-color: rgba(251,191,36,.25); }
.tag-threat { color: var(--threat); background: var(--threat-dim); border-color: var(--threat-border); }

/* Capability cards */
.cap-card { background: var(--bg-panel); border: 1px solid var(--border-panel); padding: clamp(1.25rem,3vw,2rem); position: relative; overflow: hidden; transition: border-color 0.2s, transform 0.3s var(--ease-out); }
.cap-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,transparent,var(--cyan),transparent); opacity: 0; transition: opacity 0.2s; }
.cap-card:hover { border-color: var(--cyan-border2); transform: translateY(-2px); }
.cap-card:hover::before { opacity: 1; }
.cap-card-num { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.3em; color: var(--text-dim); margin-bottom: 1rem; }
.cap-card-icon { width: 36px; height: 36px; border: 1px solid var(--cyan-border); background: var(--cyan-dim); display: flex; align-items: center; justify-content: center; color: var(--cyan); margin-bottom: 1rem; }
.cap-card-title { font-family: var(--font-display); font-size: clamp(0.8rem,2vw,0.95rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 0.75rem; line-height: 1.3; }
.cap-card-body { font-size: clamp(0.78rem,2vw,0.88rem); color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.cap-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Panels */
.panel { background: var(--bg-panel); border: 1px solid var(--border-panel); padding: clamp(1.25rem,3vw,2rem); position: relative; }
.panel-accent { border-left: 2px solid var(--cyan); }
.panel-violet { border-left: 2px solid var(--violet); }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--border-subtle); gap: 1rem; flex-wrap: wrap; }
.panel-title { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--text-primary); text-transform: uppercase; }

/* Entity cards */
.entity-card { background: var(--bg-panel); border: 1px solid var(--border-panel); padding: clamp(1.5rem,3vw,2rem); display: flex; flex-direction: column; position: relative; transition: border-color 0.2s, transform 0.3s var(--ease-out); text-decoration: none; color: inherit; overflow: hidden; }
.entity-card:hover { border-color: var(--cyan-border2); transform: translateY(-3px); }
.entity-index { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.75rem; }
.entity-name { font-family: var(--font-display); font-size: clamp(1.2rem,3vw,1.6rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 0.75rem; }
.entity-divider { width: 40px; height: 2px; background: var(--cyan); margin-bottom: 1rem; }
.entity-body { font-size: clamp(0.82rem,2vw,0.9rem); color: var(--text-secondary); line-height: 1.75; flex: 1; margin-bottom: 1.25rem; }
.entity-link { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; margin-top: auto; }

/* Terminal */
.terminal { background: var(--bg-void); border: 1px solid var(--cyan-border2); font-family: var(--font-mono); overflow: hidden; }
.terminal-bar { background: var(--bg-panel); border-bottom: 1px solid var(--border-panel); padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.5rem; }
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.terminal-dot-r{background:var(--threat);} .terminal-dot-y{background:var(--warn);} .terminal-dot-g{background:var(--ok);}
.terminal-title { margin-left: auto; font-size: 0.52rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; }
.terminal-body { padding: 1.25rem; font-size: 0.7rem; line-height: 1.8; color: var(--text-secondary); min-height: 180px; overflow-y: auto; }
.terminal-line { display: block; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.5rem; }
.form-input, .form-textarea, select.form-input { width: 100%; background: var(--bg-void); border: 1px solid var(--border-panel); color: var(--text-primary); font-family: var(--font-mono); font-size: 16px; padding: 0.75rem 1rem; min-height: 44px; transition: border-color 0.15s; -webkit-appearance: none; appearance: none; border-radius: 0; }
.form-input:focus,.form-textarea:focus { outline: none; border-color: var(--cyan); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }

/* Footer */
.footer { background: var(--bg-void); border-top: 1px solid var(--border-panel); padding: clamp(2rem,4vw,3rem) clamp(1rem,4vw,2.5rem); }
.footer-inner { max-width: min(1280px,100%); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--text-primary); text-transform: uppercase; margin-bottom: 0.25rem; }
.footer-brand-sub { font-family: var(--font-mono); font-size: 0.48rem; letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase; }
.footer-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; margin-top: 1rem; }
.footer-col-title { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.25em; color: var(--cyan); text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-bottom { max-width: min(1280px,100%); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-copy { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.15em; color: var(--text-dim); }
.footer-pqc  { font-family: var(--font-mono); font-size: 0.5rem;  letter-spacing: 0.14em; color: var(--text-dim); }

/* Tech section grid */
.tech-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 6rem; }
.tech-section-grid.reverse { direction: rtl; }
.tech-section-grid.reverse > * { direction: ltr; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Mobile-first: base = phone. Rules expand for larger screens.
══════════════════════════════════════════════════════════════ */

/* ── ≤ 959px — MOBILE + TABLET ─────────────────────────────── */
@media (max-width: 959px) {
  .nav-links  { display: none !important; }
  .nav-status { display: none !important; }
  .nav-cta    { display: none !important; }
  .nav-toggle { display: flex !important; }
  .page-body  { margin-left: 0 !important; }
  .sidenav    { display: none !important; }
  .breadcrumb { display: none !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .kpi-grid { grid-template-columns: repeat(2,1fr) !important; }
  .footer-inner { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
  .tech-section-grid { grid-template-columns: 1fr !important; direction: ltr !important; gap: 2rem !important; margin-bottom: 3rem !important; }
  .tech-section-grid.reverse { direction: ltr !important; }
  .hero-modules { display: grid !important; grid-template-columns: repeat(5,1fr) !important; gap: 0.5rem !important; width: 100% !important; padding: 0 !important; }
  .hero-module-item { align-items: center; }
  .hero-module-icon { width: 100% !important; height: 40px !important; max-width: 60px !important; margin: 0 auto !important; }
  .hero-module-tooltip { display: none !important; }
  .eyebrow-sigbars { display: none !important; }
  .eyebrow-coords { font-size: 0.4rem !important; }
}

/* ── ≤ 639px — PHONES ───────────────────────────────────────── */
@media (max-width: 639px) {
  .nav-logo-img { height: 30px !important; }
  .nav-brand { font-size: 0.45rem !important; letter-spacing: 0.1em !important; }
  .nav-brand span { display: none !important; }
  .hero-actions { flex-direction: column !important; align-items: stretch !important; gap: 0.6rem !important; }
  .hero-actions .btn { width: 100% !important; padding: 0.85rem 1rem !important; font-size: 0.6rem !important; }
  .kpi-grid { grid-template-columns: repeat(2,1fr) !important; }
  .kpi-item { padding: 1.1rem 0.75rem !important; }
  .kpi-value { font-size: 1.7rem !important; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 1.75rem !important; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; }
  .hero-module-icon { height: 36px !important; }
  .hero-module-label { font-size: 0.38rem !important; }
}

/* ── ≥ 960px — DESKTOP: restore sidebar layout ──────────────── */
@media (min-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-links  { display: flex !important; }
  .nav-status { display: flex !important; }
  .nav-cta    { display: inline-flex !important; }
  .nav-toggle { display: none !important; }
  .nav-logo-img { height: 48px; }
  .nav-brand { font-size: 0.62rem; }
  .nav-brand span { display: block !important; }
  .sidenav    { display: flex !important; }
  .breadcrumb { display: flex !important; }
  .page-body  { margin-left: 52px !important; }
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(4,1fr); }
  .kpi-grid { grid-template-columns: repeat(4,1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .hero-modules { display: flex !important; }
  .hero-module-tooltip { display: block; }
  .eyebrow-sigbars { display: flex !important; }
}
