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

body {
  background: #0a0a1a;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a1a;
}
::-webkit-scrollbar-thumb {
  background: #9333ea;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 40px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 0 60px rgba(34, 197, 94, 0.3); }
}

@keyframes pulse-purple {
  0%, 100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.3); }
  50% { box-shadow: 0 0 40px rgba(147, 51, 234, 0.6); }
}

@keyframes typing-cursor {
  0%, 100% { border-color: #a855f7; }
  50% { border-color: transparent; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glitch {
  0% { text-shadow: 2px 0 #ff0000, -2px 0 #00ff00; }
  25% { text-shadow: -2px 0 #ff0000, 2px 0 #00ff00; }
  50% { text-shadow: 2px 2px #ff0000, -2px -2px #00ff00; }
  75% { text-shadow: -2px 2px #ff0000, 2px -2px #00ff00; }
  100% { text-shadow: 0 0 #ff0000, 0 0 #00ff00; }
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

@keyframes particle-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

.animate-in {
  animation: fadeInUp 0.7s ease-out forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }
.animate-in-delay-5 { animation-delay: 0.5s; }

.section-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.glass {
  background: rgba(26, 16, 48, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(147, 51, 234, 0.15);
}

.glass-nav {
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.card-glow {
  transition: all 0.3s ease;
  border: 1px solid rgba(147, 51, 234, 0.2);
}

.card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.2), 0 0 0 1px rgba(147, 51, 234, 0.1);
}

.btn-neon {
  animation: pulse-glow 2s ease-in-out infinite;
  transition: all 0.2s ease;
}

.btn-neon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.5), 0 0 80px rgba(34, 197, 94, 0.2);
}

.recommended-card {
  border: 2px solid #22c55e;
  animation: pulse-purple 3s ease-in-out infinite;
  position: relative;
}

.text-gradient {
  background: linear-gradient(135deg, #c084fc, #9333ea, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-fire {
  background: linear-gradient(135deg, #f97316, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: radial-gradient(ellipse at 50% 30%, rgba(147, 51, 234, 0.15) 0%, rgba(10, 10, 26, 0) 70%),
              radial-gradient(ellipse at 80% 80%, rgba(88, 28, 135, 0.1) 0%, rgba(10, 10, 26, 0) 50%),
              linear-gradient(180deg, #0a0a1a 0%, #0d0b1e 50%, #0a0a1a 100%);
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #9333ea, #7c3aed, #9333ea);
}

.stability-most { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stability-stable { background: linear-gradient(135deg, #eab308, #ca8a04); }
.stability-extreme { background: linear-gradient(135deg, #ef4444, #dc2626); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
  margin: 0 auto;
  max-width: 600px;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(147, 51, 234, 0.6);
  border-radius: 1px;
  animation: particle-drift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.code-block {
  background: #0d0b1e;
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #c4b5fd;
  overflow-x: auto;
  position: relative;
}

.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(147, 51, 234, 0.3);
  border: 1px solid rgba(147, 51, 234, 0.5);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-block .copy-btn:hover {
  background: rgba(147, 51, 234, 0.5);
}

.category-pill {
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-pill:hover {
  transform: scale(1.05);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem !important;
  }
}