/* =========================================================
   CYBERFORT SENTINEL AGENCY — STYLESHEET
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --black:     #000000;
  --dark-1:    #050a14;
  --dark-2:    #080e1c;
  --dark-3:    #0d1527;
  --dark-4:    #111d33;
  --navy:      #0a1628;
  --blue:      #0d2045;
  --cyan:      #00f5ff;
  --cyan-dim:  #00c4cc;
  --cyan-dark: #007780;
  --cyan-glow: rgba(0,245,255,0.15);
  --cyan-glow2:rgba(0,245,255,0.06);
  --gray-1:    #1a2540;
  --gray-2:    #223055;
  --gray-3:    #4a6080;
  --gray-4:    #8899aa;
  --white:     #e8f4ff;
  --white-dim: #a0b8cc;
  --red:       #ff2244;
  --red-glow:  rgba(255,34,68,0.18);
  --green:     #00ff88;
  --yellow:    #ffcc00;
  --font-display: 'Orbitron', monospace;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --transition:   all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark-1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,245,255,0.12);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(5,10,20,0.97);
  border-bottom-color: rgba(0,245,255,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-shield {
  width: 34px; height: 34px;
  background: var(--cyan);
  color: var(--dark-1);
  clip-path: polygon(50% 0%,100% 22%,100% 68%,50% 100%,0% 68%,0% 22%);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
  text-shadow: 0 0 6px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--white);
  display: block;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--cyan-dim);
  letter-spacing: 0.25em;
  display: block;
  margin-top: 0.1rem;
}
.logo-bracket { color: var(--cyan); }
.logo-text { color: var(--white); margin: 0 0.3em; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gray-4);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a::before {
  content: attr(data-num) '.';
  margin-right: 0.3em;
  color: rgba(0,245,255,0.35);
  font-size: 0.6rem;
}
.nav-links a:hover {
  color: var(--cyan);
  border-color: rgba(0,245,255,0.35);
  background: var(--cyan-glow2);
  text-shadow: 0 0 8px var(--cyan);
}
.nav-divider-v {
  width: 1px; height: 18px;
  background: rgba(0,245,255,0.2);
  margin: 0 0.3rem;
}
.nav-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan-dim);
  letter-spacing: 0.08em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.1em;
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { opacity:1; box-shadow: 0 0 6px var(--green); }
  50%      { opacity:0.4; box-shadow: 0 0 2px var(--green); }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-1);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0.5;
  animation: scan 6s linear infinite;
  z-index: 1;
}
@keyframes scan {
  0%  { top: 0; }
  100%{ top: 100%; }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-corner {
  position: absolute;
  width: 40px; height: 40px;
  z-index: 2;
}
.hero-corner.tl { top:24px; left:24px; border-top:2px solid var(--cyan); border-left:2px solid var(--cyan); }
.hero-corner.tr { top:24px; right:24px; border-top:2px solid var(--cyan); border-right:2px solid var(--cyan); }
.hero-corner.bl { bottom:24px; left:24px; border-bottom:2px solid var(--cyan); border-left:2px solid var(--cyan); }
.hero-corner.br { bottom:24px; right:24px; border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: hero-fade-in 1.2s ease-out forwards;
}
@keyframes hero-fade-in {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.4);
  padding: 0.35rem 1.2rem;
  margin-bottom: 2rem;
  background: rgba(0,245,255,0.05);
  animation: flicker 4s infinite;
}
@keyframes flicker {
  0%,95%,100% { opacity:1; }
  96%         { opacity:0.4; }
  97%         { opacity:1; }
  98%         { opacity:0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.glitch {
  position: relative;
  display: inline-block;
  color: var(--white);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch::after {
  color: #ff00aa;
  animation: glitch2 3s infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
.glitch.accent {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,245,255,0.5), 0 0 60px rgba(0,245,255,0.25);
}
.glitch.accent::before { color: var(--white); }
.glitch.accent::after  { color: #ff00aa; }

@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); opacity:0; }
  91% { transform: translate(-3px,0); opacity:0.8; }
  93% { transform: translate(3px,0); opacity:0.6; }
  95% { transform: translate(0); opacity:0; }
}
@keyframes glitch2 {
  0%,90%,100% { transform: translate(0); opacity:0; }
  92% { transform: translate(4px,0); opacity:0.8; }
  94% { transform: translate(-2px,0); opacity:0.6; }
  96% { transform: translate(0); opacity:0; }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,245,255,0.5);
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gray-4);
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--cyan-dark), transparent);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--black);
  background: var(--cyan);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: var(--transition);
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.cta-btn:hover::before { transform: translateX(100%); }
.cta-btn:hover { box-shadow: 0 0 30px rgba(0,245,255,0.6), 0 0 60px rgba(0,245,255,0.3); }
.btn-arrow { transition: transform 0.3s; }
.cta-btn:hover .btn-arrow { transform: translateX(6px); }

/* =========================================================
   SECTION COMMONS
   ========================================================= */
section {
  padding: 7rem 2rem;
  position: relative;
}
section:nth-child(even) { background: var(--dark-2); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 30px rgba(0,245,255,0.2);
}
.section-desc {
  font-size: 1rem;
  color: var(--white-dim);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.04em;
}

/* =========================================================
   BUILDING SECTION
   ========================================================= */
#building { background: var(--dark-1); }

/* =========================================================
   3D FACILITY MAP
   ========================================================= */

.facility-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ── 3D Scene ── */
.facility-scene {
  flex: 1;
  perspective: 1400px;
  perspective-origin: 50% 15%;
}

.facility-building {
  transform: rotateX(14deg) rotateY(-4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7));
}
.facility-building:hover {
  transform: rotateX(8deg) rotateY(-4deg);
}

/* ── Roof ── */
.facility-roof {
  background: linear-gradient(135deg, var(--gray-1), var(--dark-4));
  border: 1px solid rgba(0,245,255,0.35);
  border-bottom: none;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  position: relative;
  clip-path: polygon(18px 0%, calc(100% - 18px) 0%, 100% 100%, 0% 100%);
}
.roof-antenna {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 22px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.roof-signal {
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: signal-pulse 1.5s infinite;
}
@keyframes signal-pulse {
  0%,100% { box-shadow: 0 0 6px var(--cyan); }
  50%      { box-shadow: 0 0 22px var(--cyan), 0 0 44px rgba(0,245,255,0.5); }
}

/* ── Floor panels ── */
.b3d-floor {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(0,245,255,0.14);
  border-top: none;
  position: relative;
  transition: all 0.3s ease;
  background: var(--dark-3);
  min-height: 96px;
}
.b3d-floor-ground {
  min-height: 106px;
  border-color: rgba(0,245,255,0.22);
}
.b3d-floor:hover {
  border-color: rgba(0,245,255,0.3);
  background: rgba(13,21,39,0.9);
}
.b3d-floor.drop-over {
  border-color: var(--cyan) !important;
  background: rgba(0,245,255,0.06) !important;
  box-shadow: 0 0 24px rgba(0,245,255,0.25), inset 0 0 20px rgba(0,245,255,0.05);
}

/* 3D thickness strip at bottom of each floor */
.b3d-depth-strip {
  position: absolute;
  bottom: -10px; left: 0; right: 0;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0,245,255,0.12), rgba(0,0,0,0.6));
  border-left: 1px solid rgba(0,245,255,0.1);
  border-right: 1px solid rgba(0,245,255,0.1);
  z-index: 1;
}

/* Left status bar */
.b3d-floor-bar {
  width: 58px;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(0,245,255,0.1);
  padding: 0.5rem 0;
}
.b3d-floor-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.b3d-floor-status {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  color: var(--gray-3);
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transition: color 0.3s;
}
.b3d-floor-status.active {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

/* Floor body */
.b3d-floor-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
}
.b3d-room-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}
.b3d-room-icon { font-size: 1.6rem; flex-shrink: 0; }
.b3d-room-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.b3d-room-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cyan-dim);
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* Agent drop zone */
.b3d-agents-zone {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 52px;
}
.b3d-drop-zone {
  border: 1px dashed rgba(0,245,255,0.25);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 46px;
  transition: all 0.25s;
  cursor: default;
}
.drop-hint {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(0,245,255,0.3);
  letter-spacing: 0.08em;
  transition: color 0.25s;
}
.b3d-drop-zone.drag-active {
  border-color: var(--cyan);
  background: rgba(0,245,255,0.08);
}
.b3d-drop-zone.drag-active .drop-hint { color: var(--cyan); }

/* Deployed agent badge on floor */
.deployed-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.35);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: all 0.25s;
  animation: deploy-pop 0.35s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.deployed-badge:hover {
  background: rgba(0,245,255,0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0,245,255,0.3);
  transform: translateY(-2px);
}
.deployed-badge .db-emoji { font-size: 1.3rem; line-height: 1; }
.deployed-badge .db-name {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.deployed-badge .db-recall {
  font-size: 0.65rem;
  color: rgba(0,245,255,0.4);
  margin-left: 0.2rem;
  transition: color 0.2s;
}
.deployed-badge:hover .db-recall { color: var(--red); }
@keyframes deploy-pop {
  from { transform: scale(0.5) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}

/* Base strip */
.facility-base {
  background: linear-gradient(to bottom, var(--dark-4), var(--dark-2));
  border: 1px solid rgba(0,245,255,0.12);
  border-top: none;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.base-light {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  animation: base-blink 2s infinite;
}
.base-light:nth-child(2) { animation-delay: 0.6s; }
.base-light:nth-child(3) { animation-delay: 1.2s; }
@keyframes base-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ── Barracks Panel ── */
.barracks-panel {
  width: 210px;
  min-width: 210px;
  background: var(--dark-3);
  border: 1px solid rgba(0,245,255,0.14);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 90px;
}
.barracks-header {
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(0,245,255,0.1);
  text-align: center;
}
.barracks-title {
  font-family: var(--font-display);
  font-size: 0.62rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
}
.barracks-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-4);
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
}
.deploy-counter {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}
.deploy-counter span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
}

.barracks-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Agent token in barracks */
.agent-token {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(0,245,255,0.1);
  border-radius: 3px;
  margin-bottom: 0.3rem;
  cursor: grab;
  background: var(--dark-4);
  transition: all 0.2s;
  user-select: none;
}
.agent-token:hover {
  border-color: rgba(0,245,255,0.4);
  background: rgba(0,245,255,0.06);
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--cyan);
}
.agent-token:active { cursor: grabbing; }
.agent-token.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}
.agent-token.deployed {
  opacity: 0.35;
  border-style: dashed;
  cursor: not-allowed;
  pointer-events: none;
}
.token-emoji { font-size: 1.4rem; flex-shrink: 0; }
.token-info { flex: 1; }
.token-name {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--white);
  letter-spacing: 0.06em;
}
.token-role {
  font-size: 0.52rem;
  color: var(--gray-4);
  margin-top: 0.1rem;
}
.token-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.agent-token.deployed .token-dot {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.recall-btn {
  margin: 0.6rem;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid rgba(255,34,68,0.3);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  width: calc(100% - 1.2rem);
}
.recall-btn:hover {
  background: rgba(255,34,68,0.1);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(255,34,68,0.2);
}

/* =========================================================
   HIRING SECTION
   ========================================================= */
#hiring { background: var(--dark-2); }

.hiring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hire-card {
  background: var(--dark-3);
  border: 1px solid rgba(0,245,255,0.1);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.hire-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.hire-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyan), var(--cyan-dark));
}
.hire-card:hover {
  border-color: rgba(0,245,255,0.3);
  box-shadow: 0 4px 30px rgba(0,245,255,0.1);
  transform: translateY(-4px);
}

.hire-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.hire-icon { font-size: 2rem; }
.hire-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
}
.hire-role {
  font-size: 0.75rem;
  color: var(--gray-4);
  letter-spacing: 0.05em;
}
.hire-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}
.hire-status.pass {
  color: var(--green);
  border: 1px solid var(--green);
  background: rgba(0,255,136,0.07);
}

.hire-tests {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.test-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.test-check { color: var(--cyan); flex-shrink: 0; }

.hire-score {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-4);
  letter-spacing: 0.08em;
}
.score-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-1);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  width: var(--score, 0%);
  background: linear-gradient(90deg, var(--cyan-dark), var(--cyan));
  border-radius: 2px;
  animation: bar-grow 1.5s ease-out forwards;
  transform-origin: left;
  box-shadow: 0 0 6px var(--cyan);
}
@keyframes bar-grow {
  from { width: 0; }
  to   { width: var(--score); }
}
.score-val { color: var(--cyan); font-weight: bold; }

/* =========================================================
   HR REMEDIES SECTION — REDESIGNED
   ========================================================= */
#remedies { background: var(--dark-1); }

/* ── Scrolling ticker ── */
.rem-ticker-wrap {
  max-width: 1200px;
  margin: 0 auto 3rem;
  overflow: hidden;
  border-top: 1px solid rgba(255,170,0,0.2);
  border-bottom: 1px solid rgba(255,170,0,0.2);
  background: rgba(255,170,0,0.03);
  padding: 0.55rem 0;
  position: relative;
}
.rem-ticker-wrap::before,
.rem-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.rem-ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--dark-1), transparent); }
.rem-ticker-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--dark-1), transparent); }

.rem-ticker {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: rem-scroll 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.rem-ticker span:nth-child(odd)  { color: #ffaa00; }
.rem-ticker span:nth-child(even) { color: var(--cyan); }
@keyframes rem-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Main grid ── */
.rem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── File card ── */
.rem-file {
  background: var(--dark-3);
  border: 1px solid rgba(0,245,255,0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.rem-file.revealed {
  opacity: 1;
  transform: translateY(0);
}
.rem-file:hover {
  transform: translateY(-5px);
  border-color: rgba(0,245,255,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,245,255,0.07);
}
/* animated left glow stripe */
.rem-file::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #ffaa00, var(--cyan), #ffaa00);
  background-size: 100% 200%;
  animation: rem-stripe 3s linear infinite;
}
@keyframes rem-stripe {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}

/* ── File header bar ── */
.rem-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(0,245,255,0.08);
}
.rem-file-id {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gray-3);
  letter-spacing: 0.18em;
}
.rem-resolved-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.35);
  background: rgba(0,255,136,0.06);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

/* ── Agent info row ── */
.rem-agent-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(0,245,255,0.06);
}
.rem-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,255,0.1), rgba(0,0,0,0.5));
  border: 2px solid rgba(0,245,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,245,255,0.15);
  transition: box-shadow 0.3s;
}
.rem-file:hover .rem-icon-wrap {
  box-shadow: 0 0 28px rgba(0,245,255,0.35);
  border-color: var(--cyan);
}
.rem-agent-info { flex: 1; }
.rem-agent-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.12em;
}
.rem-agent-role {
  font-size: 0.7rem;
  color: var(--gray-3);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ── Threat level ── */
.rem-threat-level {
  text-align: right;
  flex-shrink: 0;
}
.rem-tl-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  color: var(--gray-3);
  letter-spacing: 0.14em;
  margin-bottom: 0.25rem;
}
.rem-tl-bar {
  width: 70px; height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.rem-tl-fill {
  height: 100%;
  width: var(--tl, 50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #ffaa00, #ff4444);
  box-shadow: 0 0 8px rgba(255,100,0,0.5);
  animation: bar-grow 1.4s ease-out forwards;
}
.rem-tl-val {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: #ffaa00;
  letter-spacing: 0.12em;
  text-align: center;
}

/* ── Incident block ── */
.rem-incident {
  padding: 0.9rem 1.2rem;
  background: rgba(255,100,0,0.04);
  border-bottom: 1px solid rgba(255,100,0,0.1);
}
.rem-incident-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #ffaa00;
  letter-spacing: 0.2em;
  margin-bottom: 0.45rem;
}
.rem-incident p {
  font-size: 0.8rem;
  color: rgba(255,200,120,0.8);
  line-height: 1.6;
}

/* ── Protocol block ── */
.rem-protocol {
  padding: 0.9rem 1.2rem;
  background: rgba(0,245,255,0.03);
  border-bottom: 1px solid rgba(0,245,255,0.08);
}
.rem-protocol-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 0.45rem;
}
.rem-protocol p {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ── Tags ── */
.rem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
}
.rem-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.7rem;
  border-radius: 2px;
}
.rem-tag.warn {
  color: #ffaa00;
  border: 1px solid rgba(255,170,0,0.35);
  background: rgba(255,170,0,0.06);
}
.rem-tag.cyan {
  color: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,0.25);
  background: rgba(0,245,255,0.04);
}

/* ── Corner decorations ── */
.rem-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}
.rem-file:hover .rem-corner { opacity: 1; }
.rem-corner.rc1 { top:0;    right:0; border-width:2px 2px 0 0; }
.rem-corner.rc2 { bottom:0; right:0; border-width:0 2px 2px 0; }

/* =========================================================
   FUTURE EXPANSION
   ========================================================= */
#future { background: var(--dark-2); }

.future-wrapper {
  display: flex;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.future-card {
  flex: 1;
  max-width: 420px;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 1px solid rgba(0,245,255,0.25);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.future-card:hover {
  border-color: rgba(0,245,255,0.6);
  box-shadow: 0 0 50px rgba(0,245,255,0.15), 0 0 100px rgba(0,245,255,0.05);
  transform: translateY(-6px);
}
.future-card:hover .future-card-glow { opacity: 1; }

.future-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0,245,255,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.future-corner {
  position: absolute;
  width: 16px; height: 16px;
}
.future-corner.c1 { top:10px;  left:10px;  border-top:2px solid var(--cyan); border-left:2px solid var(--cyan); }
.future-corner.c2 { top:10px;  right:10px; border-top:2px solid var(--cyan); border-right:2px solid var(--cyan);}
.future-corner.c3 { bottom:10px; left:10px; border-bottom:2px solid var(--cyan); border-left:2px solid var(--cyan);}
.future-corner.c4 { bottom:10px; right:10px;border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan);}

.future-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  border: 1px solid rgba(255,204,0,0.4);
  background: rgba(255,204,0,0.06);
  padding: 0.25rem 0.8rem;
  margin-bottom: 1.5rem;
  animation: flicker 3s infinite;
}
.future-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 15px rgba(0,245,255,0.4));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.future-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(0,245,255,0.4);
  margin-bottom: 0.3rem;
}
.future-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--white-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.future-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dark), transparent);
  margin-bottom: 1.5rem;
}

.future-specs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
}
.spec-item { text-align: center; }
.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-4);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.spec-val {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
}

.future-abilities {
  text-align: left;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ability-row {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.ability-bullet { color: var(--cyan); }

.future-eta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,245,255,0.1);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-4);
  letter-spacing: 0.1em;
}
.eta-date {
  color: var(--yellow);
  font-weight: bold;
}

/* Timeline */
.future-timeline {
  flex: 1;
  padding: 1rem 0;
}
.timeline-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}
.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline-steps::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan-dark), rgba(0,245,255,0.1));
}

.tstep {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-bottom: 1.8rem;
  position: relative;
}
.tstep-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-2);
  background: var(--dark-2);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 2px;
  transition: var(--transition);
}
.tstep.done .tstep-dot {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,245,255,0.5);
}
.tstep.active .tstep-dot {
  background: transparent;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,245,255,0.4);
  animation: pulse-dot 1.5s infinite;
}
.tstep.pending .tstep-dot { border-color: var(--gray-2); }

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 6px rgba(0,245,255,0.4); }
  50%      { box-shadow: 0 0 18px rgba(0,245,255,0.7); }
}
.tstep-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}
.tstep.active .tstep-title { color: var(--cyan); }
.tstep.pending .tstep-title { color: var(--gray-3); }
.tstep-desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-4);
  margin-top: 0.2rem;
}

/* =========================================================
   DO NOT HIRE
   ========================================================= */
#dnhire { background: var(--dark-1); }

.dnh-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.dnh-card {
  background: var(--dark-3);
  border: 2px solid rgba(255,34,68,0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255,34,68,0.12);
}

.dnh-warning-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0px,
    var(--red) 10px,
    var(--dark-1) 10px,
    var(--dark-1) 20px
  );
  opacity: 0.8;
}

.dnh-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(255,34,68,0.2);
  gap: 0.5rem;
}
.dnh-stamp {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--red);
  text-shadow: 0 0 20px rgba(255,34,68,0.6);
  border: 3px solid var(--red);
  padding: 0.3rem 1.5rem;
  transform: rotate(-3deg);
  box-shadow: 0 0 20px rgba(255,34,68,0.3);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1rem;
}
.dnh-icon { font-size: 3.5rem; filter: grayscale(0.3); }
.dnh-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255,34,68,0.9);
  letter-spacing: 0.2em;
}
.dnh-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-4);
  letter-spacing: 0.1em;
}

.dnh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,34,68,0.1);
  padding: 0;
}
.dnh-block {
  padding: 1.5rem;
  background: var(--dark-3);
}
.dnh-block.full {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,34,68,0.1);
}
.dnh-block-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.dnh-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--white-dim);
}
.dnh-item.fail::before {
  content: '✗';
  color: var(--red);
  flex-shrink: 0;
}

.dnh-score-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-4);
}
.dnh-score-row span:first-child { min-width: 110px; }
.dnh-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-1);
  border-radius: 2px;
  overflow: hidden;
}
.dnh-fill {
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #550011, var(--red));
  animation: bar-grow 1.5s ease-out forwards;
  box-shadow: 0 0 6px rgba(255,34,68,0.5);
}
.dnh-pct { color: var(--red); }

.dnh-verdict {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.dnh-footer-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.danger-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--red);
  border: 1px solid rgba(255,34,68,0.4);
  background: rgba(255,34,68,0.07);
  padding: 0.25rem 0.8rem;
  letter-spacing: 0.15em;
}

.dnh-clearance {
  text-align: center;
  padding: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--red);
  background: rgba(255,34,68,0.05);
  border-top: 1px solid rgba(255,34,68,0.2);
  text-shadow: 0 0 10px rgba(255,34,68,0.4);
}

/* =========================================================
   ALERT BANNER
   ========================================================= */
.alert-banner {
  background: rgba(0,245,255,0.03);
  border-top: 1px solid rgba(0,245,255,0.1);
  border-bottom: 1px solid rgba(0,245,255,0.1);
  overflow: hidden;
  padding: 0.5rem 0;
  position: relative;
}
.alert-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: alert-scroll 30s linear infinite;
}
.ab-item {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.ab-item.ab-warn { color: var(--cyan); }
.ab-item.ab-ok   { color: var(--green); }
@keyframes alert-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTION GLOW DIVIDER
   ========================================================= */
.section-glow-divider {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,245,255,0) 10%,
    rgba(0,245,255,0.5) 50%,
    rgba(0,245,255,0) 90%,
    transparent 100%);
  box-shadow: 0 0 12px rgba(0,245,255,0.25);
  position: relative;
}
.section-glow-divider::before {
  content: '⬡';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--cyan);
  font-size: 14px;
  background: var(--dark-1);
  padding: 0 12px;
  text-shadow: 0 0 10px var(--cyan);
}
.section-glow-divider.red {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,34,68,0) 10%,
    rgba(255,34,68,0.5) 50%,
    rgba(255,34,68,0) 90%,
    transparent 100%);
  box-shadow: 0 0 12px rgba(255,34,68,0.25);
}
.section-glow-divider.red::before {
  color: var(--red);
  content: '⛔';
  text-shadow: 0 0 10px var(--red);
  background: var(--dark-2);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(0,245,255,0.12);
  padding: 3.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.footer-scan {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
  animation: scan 8s linear infinite;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer-shield {
  width: 40px; height: 40px;
  background: var(--cyan);
  color: var(--dark-1);
  clip-path: polygon(50% 0%,100% 22%,100% 68%,50% 100%,0% 68%,0% 22%);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--white);
}
.footer-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--cyan-dim);
  letter-spacing: 0.25em;
  margin-top: 0.1rem;
}
.footer-stats-row {
  display: flex;
  gap: 1.2rem;
}
.fstat {
  text-align: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(0,245,255,0.1);
  background: rgba(0,245,255,0.02);
  border-radius: 2px;
}
.fstat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
}
.fstat-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  color: var(--gray-3);
  letter-spacing: 0.12em;
  margin-top: 0.1rem;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--gray-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.2), transparent);
  margin-bottom: 1.2rem;
}
.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.footer-links-row a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-3);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links-row a:hover { color: var(--cyan); text-shadow: 0 0 6px var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-3);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-clearance-badge {
  color: var(--cyan-dim);
  border: 1px solid rgba(0,245,255,0.15);
  padding: 0.2rem 0.6rem;
  background: rgba(0,245,255,0.03);
}
.footer-corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: rgba(0,245,255,0.25);
  border-style: solid;
  pointer-events: none;
}
.footer-corner.fc1 { top:10px;    left:10px;   border-width:1px 0 0 1px; }
.footer-corner.fc2 { top:10px;    right:10px;  border-width:1px 1px 0 0; }
.footer-corner.fc3 { bottom:10px; left:10px;   border-width:0 0 1px 1px; }
.footer-corner.fc4 { bottom:10px; right:10px;  border-width:0 1px 1px 0; }

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--dark-3);
  border: 1px solid rgba(0,245,255,0.3);
  max-width: 620px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,245,255,0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 4s linear infinite;
}

.modal-corner {
  position: absolute;
  width: 18px; height: 18px;
}
.modal-corner.mc1 { top:8px;    left:8px;    border-top:2px solid var(--cyan); border-left:2px solid var(--cyan); }
.modal-corner.mc2 { top:8px;    right:8px;   border-top:2px solid var(--cyan); border-right:2px solid var(--cyan);}
.modal-corner.mc3 { bottom:8px; left:8px;    border-bottom:2px solid var(--cyan); border-left:2px solid var(--cyan);}
.modal-corner.mc4 { bottom:8px; right:8px;   border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan);}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid rgba(0,245,255,0.25);
  color: var(--gray-4);
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.modal-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow2);
}

.modal-clearance-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  border: 1px solid rgba(0,245,255,0.3);
  background: rgba(0,245,255,0.05);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  margin-bottom: 1.2rem;
}
/* ── Modal agent image ── */
.modal-image-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 1rem;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,245,255,0.25), inset 0 0 20px rgba(0,245,255,0.06);
}
.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.modal-image-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,245,255,0.03) 3px, rgba(0,245,255,0.03) 4px);
}
.modal-image-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--cyan);
  border-style: solid;
}
.modal-image-corner.c1 { top:0;    left:0;  border-width: 2px 0 0 2px; }
.modal-image-corner.c2 { top:0;    right:0; border-width: 2px 2px 0 0; }
.modal-image-corner.c3 { bottom:0; left:0;  border-width: 0 0 2px 2px; }
.modal-image-corner.c4 { bottom:0; right:0; border-width: 0 2px 2px 0; }

.modal-top { text-align: center; margin-bottom: 1.5rem; }
.modal-icon { font-size: 3.5rem; margin-bottom: 0.5rem; filter: drop-shadow(0 0 12px rgba(0,245,255,0.4)); }
.modal-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(0,245,255,0.4);
  margin-bottom: 0.3rem;
}
.modal-role {
  font-size: 0.82rem;
  color: var(--white-dim);
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dark), transparent);
  margin-bottom: 1.5rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.modal-block-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 0.7rem;
}
.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.modal-list li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.modal-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.modal-solution {
  background: rgba(0,245,255,0.04);
  border: 1px solid rgba(0,245,255,0.12);
  padding: 1rem;
  margin-bottom: 1.2rem;
}
.modal-solution p {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.6;
  margin-top: 0.6rem;
}

.modal-id-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gray-3);
  letter-spacing: 0.1em;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,245,255,0.08);
}
.modal-status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

/* =========================================================
   3D TOWER SECTION
   ========================================================= */
.tower-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch;
  min-height: 680px;
}

.tower-canvas-wrap {
  flex: 1;
  position: relative;
  min-height: 650px;
  border: 1px solid rgba(0,245,255,0.12);
  background: radial-gradient(ellipse at 50% 80%, rgba(0,20,50,0.6), var(--dark-1));
  overflow: hidden;
}
.tower-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}
.tower-canvas-wrap canvas:active { cursor: grabbing; }

.tower-controls-hint {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(0,245,255,0.35);
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 5;
}

/* ── Agent Side Panel ── */
.agent-side-panel {
  width: 480px;
  min-width: 480px;
  background: var(--dark-3);
  border: 1px solid rgba(0,245,255,0.14);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* idle state */
.asp-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0.5;
}
.asp-idle-icon { font-size: 3.5rem; }
.asp-idle-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray-3);
  text-align: center;
  line-height: 1.8;
}
.asp-idle-pulse {
  width: 30px; height: 30px;
  border: 2px solid rgba(0,245,255,0.2);
  border-radius: 50%;
  animation: asp-pulse-ring 2s ease-out infinite;
}
@keyframes asp-pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* content state */
.asp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.6rem;
  position: relative;
  animation: asp-slide-in 0.5s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
  overflow: hidden;
}
@keyframes asp-slide-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.asp-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,245,255,0.2);
  color: var(--gray-4);
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}
.asp-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0,245,255,0.08);
}

.asp-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--cyan);
  letter-spacing: 0.22em;
  border: 1px solid rgba(0,245,255,0.3);
  background: rgba(0,245,255,0.04);
  padding: 0.2rem 0.9rem;
  margin-bottom: 1.2rem;
}

/* Agent image — full panel size */
.asp-image-full {
  position: relative;
  width: 100%;
  flex: 1;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(0,245,255,0.3),
    0 0 60px rgba(0,245,255,0.1),
    inset 0 0 30px rgba(0,245,255,0.05);
  animation: asp-img-glow 3s ease-in-out infinite alternate;
}
@keyframes asp-img-glow {
  0% { box-shadow: 0 0 20px rgba(0,245,255,0.2), 0 0 40px rgba(0,245,255,0.08); }
  100% { box-shadow: 0 0 35px rgba(0,245,255,0.4), 0 0 70px rgba(0,245,255,0.15); }
}
.asp-image-full img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s;
  background: var(--dark-1);
}
.asp-image-full:hover img { transform: scale(1.03); }

.asp-img-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 3px,
    rgba(0,245,255,0.03) 3px, rgba(0,245,255,0.03) 4px);
}
.asp-img-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--cyan);
  border-style: solid;
}
.asp-img-corner.c1 { top:0;    left:0;  border-width:2px 0 0 2px; }
.asp-img-corner.c2 { top:0;    right:0; border-width:2px 2px 0 0; }
.asp-img-corner.c3 { bottom:0; left:0;  border-width:0 0 2px 2px; }
.asp-img-corner.c4 { bottom:0; right:0; border-width:0 2px 2px 0; }

.asp-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-shadow: 0 0 25px rgba(0,245,255,0.5);
  margin-bottom: 0.3rem;
  text-align: center;
}
.asp-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--white-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-align: center;
}
.asp-floor-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--cyan-dim);
  letter-spacing: 0.18em;
  border: 1px solid rgba(0,245,255,0.2);
  padding: 0.2rem 0.8rem;
  margin-bottom: 1rem;
}
.asp-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dark), transparent);
  margin-bottom: 1rem;
}
.asp-desc {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 1.2rem;
  padding: 0 0.5rem;
}
.asp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.2rem;
}
.asp-stat-box {
  background: rgba(0,10,25,0.7);
  border: 1px solid rgba(0,245,255,0.1);
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-radius: 2px;
}
.asp-stat-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}
.asp-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-3);
  letter-spacing: 0.12em;
  margin-top: 0.15rem;
  display: block;
}

.asp-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  letter-spacing: 0.1em;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0,245,255,0.08);
  width: 100%;
}
.asp-status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-green 2s infinite;
}
.asp-agent-id {
  margin-left: auto;
  color: var(--gray-3);
}

/* panel corner decorations */
.asp-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  pointer-events: none;
}
.asp-corner.ac1 { top:6px;    left:6px;    border-width:2px 0 0 2px; }
.asp-corner.ac2 { top:6px;    right:6px;   border-width:2px 2px 0 0; }
.asp-corner.ac3 { bottom:6px; left:6px;    border-width:0 0 2px 2px; }
.asp-corner.ac4 { bottom:6px; right:6px;   border-width:0 2px 2px 0; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .tower-wrapper { flex-direction: column; }
  .agent-side-panel { width: 100%; min-width: unset; min-height: 400px; }
  .tower-canvas-wrap { min-height: 450px; }
  .building-wrapper { flex-direction: column; align-items: center; }
  .building-legend { width: 100%; max-width: 680px; position: static; }
  .legend-items { flex-direction: row; flex-wrap: wrap; }
  .legend-role { display: none; }
  .future-wrapper { flex-direction: column; }
  .future-card { max-width: 100%; }
  .floor-label { display: none; }
  .modal-grid { grid-template-columns: 1fr; }
  .dnh-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  #navbar { padding: 0.7rem 1rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  section { padding: 4rem 1.2rem; }
  .hiring-grid, .rem-grid { grid-template-columns: 1fr; }
  .dnh-stamp { display: none; }
}
