/* --- CSSN COMBAT: ELITE TACTICAL HUB v5.5 --- */

:root {
  --combat-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --color-indigo: #6366f1;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-violet: #8b5cf6;
  --color-rose: #f43f5e;
  
  --glass-stroke: rgba(255, 255, 255, 0.08);
  --glass-surface: rgba(15, 23, 42, 0.45);
}

/* Restore system cursor */
* {
    cursor: auto !important;
}

a, button, [role="button"], .hub-route-card {
    cursor: pointer !important;
}

/* --- HERO: 100x CINEMATIC ENGINE --- */

#hero-sector {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #020617;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  pointer-events: none !important; /* Strictly ensure this layer doesn't block clicks */
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-mask {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Unified Media Container: Visibility Upgrade */
.hero-media-container {
  position: absolute;
  inset: 0;
  opacity: 1; /* Increased from 0.36 to allow full visual control via children */
  transition: opacity 1.5s var(--combat-ease);
  background: #020617;
  pointer-events: none;
}

.hero-image-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%) scale(1.15);
  object-fit: cover;
  z-index: 5; /* Higher than video until fade */
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-poster-fade {
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; 
  min-height: 100vh;
  min-width: 177.77vh; 
  transform: translate(-50%, -50%) scale(1.15); 
  z-index: 2;
  background: #020617;
  pointer-events: none;
  opacity: 0.45; /* Background video transparency standard */
}

/* ATMOSPHERICS - All set to pointer-events: none to avoid click blocking */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: radial-gradient(circle, transparent 30%, rgba(2, 6, 23, 0.6) 70%, #020617 100%);
  pointer-events: none !important;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none !important;
}

.hero-bottom-shroud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 12;
  background: linear-gradient(to top, #020617 0%, transparent 100%);
  pointer-events: none !important;
}

/* SHEEN SWEEP SYSTEM */
.hero-sheen-sweep {
  position: absolute;
  inset: 0;
  z-index: 15;
  overflow: hidden;
  pointer-events: none !important;
}

.hero-sheen-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: -200%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 100%
  );
  transform: skewX(-30deg);
  transition: none;
  pointer-events: none;
}

.sheen-pulse .hero-sheen-sweep::after {
  animation: sweep-action 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sweep-action {
  from { left: -200%; }
  to { left: 200%; }
}

/* TYPOGRAPHY GLISTEN */
.combat-home .combat-heading span.glisten-text {
  position: relative;
  background: linear-gradient(to bottom, #818cf8, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- NETWORK HIERARCHY CARDS --- */

.combat-home #hub-grid .hub-route-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, var(--glass-surface) 0%, rgba(2, 6, 23, 0.8) 100%) !important;
  border: 1px solid var(--glass-stroke) !important;
  border-radius: 2.25rem;
  padding: 3.5rem 2.75rem;
  transition: all 0.8s var(--combat-ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  backdrop-filter: blur(20px) saturate(1.4);
  z-index: 1;
  box-shadow: 
    0 20px 60px -20px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.combat-home #hub-grid .hub-route-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)%23noise'%3E%3C/rect%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
}

/* Description Text Clamping */
.hub-route-card .desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Aligned CTA Indicator */
.hub-route-card .cta-align-bottom {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    opacity: 0.5;
    transition: all 0.3s var(--combat-ease);
}

.hub-route-card:hover .cta-align-bottom {
    opacity: 1;
    transform: translateX(5px);
}