:root {
  --color-bg:             #000000;
  --color-surface:        #0d0d0d;
  --color-surface-2:      #1a1a2e;
  --color-border:         #1e1e1e;
  --color-accent:         #a855f7;
  --color-accent-dim:     #7c3aed;
  --color-accent-glow:    rgba(168, 85, 247, 0.25);
  --color-grey-1:         #e2e8f0;
  --color-grey-2:         #94a3b8;
  --color-grey-3:         #475569;
  --color-grey-4:         #1e293b;
  --aq-good:              #22c55e;
  --aq-low:               #eab308;
  --aq-high:              #f97316;
  --aq-critical:          #ef4444;

  --transition-speed:     0.3s;
  --font-display:         'Orbitron', sans-serif;
  --font-ui:              'Space Grotesk', sans-serif;
  --font-body:            'Inter', sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-grey-1);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
}

.ui-font {
  font-family: var(--font-ui);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.7; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
  70% { box-shadow: 0 0 0 25px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@keyframes bg-drift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.skeleton {
  background: var(--color-grey-4);
  animation: skeleton-pulse 1.5s infinite;
  border-radius: 4px;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.reveal-active {
  animation: slideUp 0.6s ease-out forwards;
}

/* Utility */
.hidden {
  display: none !important;
}

.glass {
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
}
