/* ========================================
   БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-shadow: none !important;
}

:root {
  --primary: #06b6d4;
  --primary-dark: #0ea5e9;
  --secondary: #0ea5e9;
  --accent: #f97316;
  --bg-dark: #080d1a;
  --bg-darker: #050810;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.09);
  --glass-blur: blur(18px) saturate(160%);
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-darker);
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

/* Глобальная чёткость шрифтов */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, button, input, label {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0a0e1a 0%, #050810 50%, #0d1117 100%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Neural Background Canvas */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  display: block;
  filter: blur(1px);
}

@media (max-width: 768px) {
  #neuralCanvas {
    opacity: 0.45;
  }
}

/* Container */
.container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px);
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

/* Typography */
h1, h2, h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.5px !important;
}

p {
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 6s ease-in-out infinite;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

@keyframes rainbowShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: white;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-chat {
  position: relative;
  background: rgba(14, 165, 233, 0.15);
  color: white;
  border: 1px solid rgba(14, 165, 233, 0.4);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}

.btn-chat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-chat:hover::before {
  left: 100%;
}

.btn-chat:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 800;
}

.arrow {
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.chat-icon {
  display: inline-block;
  font-size: 1.2em;
  animation: chatBounce 2s ease-in-out infinite;
}

@keyframes chatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.chat-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.3);
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Line */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,.6) 30%, rgba(249,115,22,.5) 70%, transparent);
  margin: 0 auto;
  max-width: 1200px;
  opacity: 0.8;
}
