/* ==========================================================================
   Tech Forge KZ — Premium Dark UI Stylesheet
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-primary: #060b18;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
}

html {
  scroll-behavior: smooth;
  background-color: #060b18;
}

body {
  background-color: #060b18;
  color: #cbd5e1;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Шрифт заголовков Space Grotesk / Inter */
.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* Сетка с радиальным затуханием к краям */
.bg-grid-masked {
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 45%, transparent 100%);
}

/* Тонкая точечная матрица для секций */
.bg-dots {
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Анимированные фоновые световые сферы (Aurora) */
@keyframes floatSlow {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(25px, -20px) scale(1.06);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.75;
  }
}

.aurora-blob-1 {
  animation: floatSlow 12s ease-in-out infinite;
}

.aurora-blob-2 {
  animation: floatSlow 16s ease-in-out infinite reverse;
}

/* Интерактивные карточки с эффектом Spotlight (свечение за курсором) */
.spotlight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.13),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow:
    0 20px 40px -15px rgba(2, 6, 23, 0.75),
    0 0 25px -5px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* Премиальная кнопка с бликом */
.btn-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #0284c7 100%);
  box-shadow:
    0 0 25px -3px rgba(37, 99, 235, 0.55),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-glow:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #0369a1 100%);
  box-shadow:
    0 0 35px -2px rgba(59, 130, 246, 0.75),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-glow:active {
  transform: translateY(0);
}

/* Чипы выбора типа проекта и модулей конфигуратора */
.service-chip.active,
.module-chip.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 15px -3px rgba(59, 130, 246, 0.4);
}

/* Стеклянная панель для Hero-витрины */
.glass-panel {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 40px -10px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
}

/* Кастомный темный скроллбар */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #060b18;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Автозаполнение браузера в темной теме */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px #0b1120 inset;
  transition: background-color 5000s ease-in-out 0s;
}
