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

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-highlight: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-blue: #2563eb;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: #1e293b;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

h1, h2, h3, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.font-mono-spec {
  font-family: var(--font-mono);
}

/* Tactical Light Mesh Grid Pattern */
.tactical-grid-bg {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
}

/* Dark Tactical Grid for Cinematic Hero */
.tactical-grid-dark {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Laser Scan Animation */
@keyframes laserSweep {
  0% {
    top: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.laser-scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(239, 68, 68, 0.2) 20%, rgba(239, 68, 68, 0.9) 50%, rgba(239, 68, 68, 0.2) 80%, transparent 100%);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.8), 0 0 30px rgba(239, 68, 68, 0.4);
  animation: laserSweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 15;
}

/* Subtle Floating Animation */
@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float-slow {
  animation: floatCard 6s ease-in-out infinite;
}

/* Radar Pulse / Sparks Glow */
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.animate-glow-pulse {
  animation: glowPulse 3.5s ease-in-out infinite;
}

/* Light Glass Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.glass-panel-hover {
  transition: all 0.25s ease-out;
}
.glass-panel-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.1);
}

/* Light Bento Card */
.bento-card {
  position: relative;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: all 0.25s ease;
}
.bento-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
}

/* Tactical Badges (Light High-Contrast) */
.badge-armor {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-defense {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toast Notifications */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
