:root {
  /* ============================================
     PrideAIBot Design System 2025
     Tech Minimalism - Modern AI Aesthetic
     ============================================ */

  /* Core Colors */
  --color-black: #000000;
  --color-dark: #0a0a0a;
  --color-darker: #050505;
  --color-surface: #111111;
  --color-surface-elevated: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);

  /* Brand Colors */
  --brand-primary: #3D5AFE;
  --brand-secondary: #CCFF00;
  --brand-primary-rgb: 61, 90, 254;
  --brand-secondary-rgb: 204, 255, 0;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.25);

  /* Legacy Variables (для совместимости) */
  --body-color: #0a0a0a;
  --latin-color: #ffffff;
  --header-color: #0a0a0a;
  --button1-color: #3D5AFE;
  --button2-color: #CCFF00;
  --menu-color: #111111;
  --brand-color: #3D5AFE;
  --accent-lime: #CCFF00;
  --accent-blue: #3D5AFE;
  --dark-bg: #0a0a0a;
  --header-text: rgba(255, 255, 255, 0.7);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3D5AFE 0%, #536DFE 50%, #3D5AFE 100%);
  --gradient-secondary: linear-gradient(135deg, #CCFF00 0%, #E0FF4D 50%, #CCFF00 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  --gradient-glow: linear-gradient(135deg, rgba(61, 90, 254, 0.15) 0%, rgba(204, 255, 0, 0.1) 100%);
  --gradient-text: linear-gradient(90deg, #3D5AFE, #CCFF00);
  --gradient-border: linear-gradient(135deg, rgba(61, 90, 254, 0.5), rgba(204, 255, 0, 0.3), rgba(61, 90, 254, 0.5));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 30px rgba(61, 90, 254, 0.3);
  --shadow-glow-lime: 0 0 30px rgba(204, 255, 0, 0.3);
  --shadow-glow-blue-intense: 0 0 60px rgba(61, 90, 254, 0.5);
  --shadow-glow-lime-intense: 0 0 60px rgba(204, 255, 0, 0.5);

  /* Blur */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 32px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ============================================
   Base Reset & Defaults
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================
   Scroll Progress Bar
   ============================================ */

#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-text);
  width: 0%;
  z-index: var(--z-tooltip);
  box-shadow: 0 0 20px rgba(61, 90, 254, 0.6), 0 0 40px rgba(204, 255, 0, 0.3);
}

/* ============================================
   Modern Utility Classes
   ============================================ */

/* Gradient Text */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effects */
.glow-blue {
  box-shadow: var(--shadow-glow-blue);
}

.glow-lime {
  box-shadow: var(--shadow-glow-lime);
}

.glow-blue-intense {
  box-shadow: var(--shadow-glow-blue-intense);
}

/* Glass Card */
.glass {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-border);
}

.glass-dark {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border: 1px solid var(--color-border);
}

/* Gradient Border (pseudo-element based) */
.gradient-border {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ============================================
   Modern Animations
   ============================================ */

/* Fade In Up */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(61, 90, 254, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(61, 90, 254, 0.6), 0 0 60px rgba(204, 255, 0, 0.2);
  }
}

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

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Gradient Shift */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Rotate Gradient Border */
@keyframes rotate-gradient {
  0% {
    --angle: 0deg;
  }
  100% {
    --angle: 360deg;
  }
}

/* Breathing Glow for CTA - GPU-composited */
@keyframes cta-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.92;
  }
}

/* Grid Background Pattern */
.bg-grid {
  background-image:
    linear-gradient(rgba(61, 90, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 90, 254, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Dot Pattern */
.bg-dots {
  background-image: radial-gradient(rgba(61, 90, 254, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Aurora Gradient Background */
.bg-aurora {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(61, 90, 254, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(204, 255, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(61, 90, 254, 0.05) 0%, transparent 70%),
    var(--color-dark);
}

/* ============================================
   Interactive States
   ============================================ */

/* Modern Focus Ring */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Remove outline on mouse click */
:focus:not(:focus-visible) {
  outline: none;
}

/* Selection */
::selection {
  background: rgba(61, 90, 254, 0.3);
  color: var(--text-primary);
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
