/* ============================================
   MISSION CONTROL — DESIGN SYSTEM
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;

  /* Background layers */
  --bg-body: #0a0e1a;
  --bg-surface: rgba(15, 20, 40, 0.65);
  --bg-card: rgba(20, 28, 58, 0.55);
  --bg-card-hover: rgba(28, 38, 75, 0.7);
  --bg-elevated: rgba(30, 40, 80, 0.6);
  --bg-input: rgba(12, 16, 32, 0.7);
  --bg-overlay: rgba(4, 6, 14, 0.85);

  /* Glass */
  --glass-blur: 18px;
  --glass-border: rgba(100, 120, 200, 0.12);
  --glass-border-hover: rgba(120, 140, 220, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Brand palette */
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.35);
  --accent-light: #a29bfe;
  --success: #00cec9;
  --success-glow: rgba(0, 206, 201, 0.25);
  --warning: #fdcb6e;
  --warning-glow: rgba(253, 203, 110, 0.2);
  --danger: #ff6b6b;
  --danger-glow: rgba(255, 107, 107, 0.25);
  --info: #74b9ff;
  --info-glow: rgba(116, 185, 255, 0.2);

  /* Text */
  --text-primary: #e8eaf6;
  --text-secondary: #9aa3c4;
  --text-muted: #5c6488;
  --text-inverse: #0a0e1a;

  /* Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-normal: 0.25s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 206, 201, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(116, 185, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 120, 200, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 120, 200, 0.35); }

/* ---- Selection ---- */
::selection { background: var(--accent); color: #fff; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50%      { box-shadow: 0 0 20px var(--accent-glow); }
}
@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.animate-fadeInUp   { animation: fadeInUp 0.5s var(--ease-out) both; }
.animate-fadeIn     { animation: fadeIn 0.35s var(--ease-out) both; }
.animate-slideInR   { animation: slideInRight 0.4s var(--ease-out) both; }
.animate-scaleIn    { animation: scaleIn 0.3s var(--ease-out) both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }
