/* 
 * 🕵️‍♂️ QUANTUM FIX DESIGN SYSTEM v3.0 - CINEMATIC PRECISION 🕵️‍♂️🎯
 * Universal Tokens & High-Performance Foundations
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* 🎨 CORE PALETTE - DEEP AURORA */
  --primary: #6366f1;           /* Indigo-500 */
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #06b6d4;         /* Cyan-500 */
  --accent: #10b981;            /* Emerald-500 */
  
  /* 🌑 ATMOSPHERE - ABYSSAL DARK */
  --bg-deep: #030305;           /* True Black (Deeper) */
  --bg-dark: #07070a;           /* Industrial Dark */
  --bg-card: #0a0a0f;           /* Premium Surface */
  --bg-card-glass: rgba(10, 10, 15, 0.85);
  
  /* 💎 BORDERS & GLASS */
  --border-dim: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-pro: rgba(99, 102, 241, 0.5);

  /* 🖋️ TYPOGRAPHY */
  --text-main: #f8fafc;         /* Slate-50 */
  --text-dim: #94a3b8;          /* Slate-400 */
  --text-muted: #64748b;        /* Slate-500 */
  --font-main: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
  --font-heading: 'Be Vietnam Pro', 'Outfit', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;

  /* 📏 SPACING & RADIUS */
  --radius-pro: 24px;
  --radius-pill: 9999px;
  --blur-pro: 24px;
}

/* 🧬 BASE SYSTEM */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep) !important;
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: white;
}

h1, h2, h3, h4, .text-heading {
  font-family: var(--font-heading);
}

/* 🕵️‍♂️ ULTRA STEALTH SCROLLBAR v5.0 */
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.05) transparent !important;
}

::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.08) !important; 
  border-radius: 9999px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background-color: var(--primary) !important;
  border-width: 0 !important;
  box-shadow: inset 0 0 10px var(--primary-glow) !important;
}

/* 🎭 MOTION & ENTRANCE */
.animate-pro-fade-in {
  animation: quantumFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes quantumFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(15px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.glow-btn {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glow-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
  filter: brightness(1.2);
}

.glow-btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* 🏔️ SURFACES */
.glass {
  background: var(--bg-card-glass);
  backdrop-filter: blur(var(--blur-pro));
  -webkit-backdrop-filter: blur(var(--blur-pro));
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255,255,255,0.02);
}

/* 📟 TECH VARIANTS */
.tech-text {
  font-family: var(--font-tech);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7, var(--primary), var(--secondary));
  background-size: 200% auto;
  animation: shine 4s linear infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* 🦾 UTILITIES */
.scanline {
  position: relative;
}
.scanline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.03));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.1;
}
