* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background: #050010;
  color: #ffffff;
  overflow-x: hidden;
  cursor: default;
}

/* ===== ЧАСТИЦЫ (Particles) ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== КАСТОМНЫЙ КУРСОР ===== */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.15s ease,
    border-color 0.3s ease;
  mix-blend-mode: difference;
  backdrop-filter: invert(1);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease;
}
.cursor-hover {
  transform: scale(2);
  border-color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
}

/* ===== АНИМИРОВАННАЯ СЕТКА ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

/* ===== ГРАДИЕНТНЫЕ СФЕРЫ ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: 2s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.05);
  }
}

/* ===== СТЕКЛЯННЫЕ КАРТОЧКИ ===== */
.glass-premium {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-premium:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 16px 48px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}
.glass-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow:
    0 0 0 4px rgba(168, 85, 247, 0.08),
    0 0 20px rgba(168, 85, 247, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.glass-input::placeholder {
  color: #4a4560;
}

/* ===== ЗОЛОТОЙ ГРАДИЕНТ ===== */
.gold-text {
  background: linear-gradient(
    135deg,
    #a855f7 0%,
    #c084fc 25%,
    #6366f1 50%,
    #a855f7 75%,
    #c084fc 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
}
@keyframes goldShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ===== ПУЛЬСИРУЮЩЕЕ СИЯНИЕ ===== */
.glow-ring {
  position: relative;
}
.glow-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #a855f7, #6366f1, #ec4899, #a855f7);
  background-size: 300% 300%;
  animation: glowRotate 4s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}
.glow-ring:hover::before {
  opacity: 1;
}
@keyframes glowRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== БРИЛЛИАНТОВАЯ ПОДСВЕТКА ===== */
.diamond-shine {
  position: relative;
  overflow: hidden;
}
.diamond-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ===== ПЛАВАЮЩИЕ ИКОНКИ ===== */
@keyframes premiumFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(2deg);
  }
  66% {
    transform: translateY(-8px) rotate(-1deg);
  }
}
.premium-float {
  animation: premiumFloat 6s ease-in-out infinite;
}
.premium-float-delayed {
  animation: premiumFloat 6s ease-in-out 1.5s infinite;
}

/* ===== ТЕКСТОВЫЕ АНИМАЦИИ ===== */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ЧИСЛА-СЧЁТЧИКИ ===== */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ===== СТАТУСНЫЙ ИНДИКАТОР ===== */
.status-pulse {
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #050010;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #6366f1);
  border-radius: 2px;
}

/* ===== ФОРМА СООБЩЕНИЯ ===== */
.formspree-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 1.25rem;
  border-radius: 1rem;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.formspree-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 1.25rem;
  border-radius: 1rem;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .custom-cursor,
  .cursor-dot {
    display: none;
  }
  .orb {
    display: none;
  }
}
