/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #090d16;
  --bg-surface: #0f1626;
  --bg-card: rgba(15, 22, 38, 0.75);
  --border-color: rgba(51, 65, 85, 0.5);
  --border-focus: rgba(6, 182, 212, 0.6);
  --cyan-accent: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --purple-accent: #8b5cf6;
  --emerald-accent: #10b981;
  --tg-blue: #229ED9;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: #f1f5f9;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Animations */
@keyframes pulseSlow {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.15) translate(15px, -20px);
    opacity: 0.28;
  }
}

.animate-pulse-slow {
  animation: pulseSlow 10s ease-in-out infinite;
}

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

.floating-main-btn {
  animation: floatButton 4s ease-in-out infinite;
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}

.floating-main-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px -5px rgba(6, 182, 212, 0.65), 0 0 25px rgba(59, 130, 246, 0.5);
}

.floating-tg-btn {
  box-shadow: 0 8px 20px -4px rgba(34, 158, 217, 0.5);
}

.floating-tg-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 25px -4px rgba(34, 158, 217, 0.7);
}

/* Gradients & Buttons */
.btn-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  background-size: 200% auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-gradient:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(6, 182, 212, 0.45);
}

.btn-telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 50%, #1789c4 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(34, 158, 217, 0.5);
}

.tariff-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(14px);
}

.tariff-card:hover {
  transform: translateY(-4px);
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glass-panel:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

/* FAQ accordion transition */
.faq-item {
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: rgba(6, 182, 212, 0.45);
  background-color: rgba(15, 23, 42, 0.85);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* Key Demo Box */
.key-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
}

/* Toast Notification for Copy */
#copy-toast {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
