:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --accent-purple: #7b2ff7;
  --accent-green: #00ff88;
  --accent-orange: #ff6b35;
  --text-primary: #e0e0e0;
  --text-heading: #ffffff;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(123,47,247,0.2);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

body.light-mode {
  --bg-primary: #f0f0f5;
  --bg-secondary: #e0e0ee;
  --text-primary: #2a2a3e;
  --text-heading: #1a1a2e;
  --card-bg: rgba(0,0,0,0.05);
  --card-border: rgba(123,47,247,0.3);
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 4px; }

.font-cinzel { font-family: 'Cinzel', serif; }
.font-fira { font-family: 'Fira Code', monospace; }
.font-outfit { font-family: 'Outfit', sans-serif; }

.glow-text {
  text-shadow:
    0 0 10px rgba(123,47,247,0.8),
    0 0 20px rgba(123,47,247,0.6),
    0 0 40px rgba(123,47,247,0.4),
    0 0 80px rgba(0,255,136,0.2);
}

.glow-green {
  text-shadow:
    0 0 10px rgba(0,255,136,0.8),
    0 0 20px rgba(0,255,136,0.5),
    0 0 40px rgba(0,255,136,0.3);
}

.glow-border {
  box-shadow: 0 0 15px rgba(123,47,247,0.3), inset 0 0 15px rgba(123,47,247,0.1);
}

.glow-border-green {
  box-shadow: 0 0 15px rgba(0,255,136,0.3), inset 0 0 15px rgba(0,255,136,0.1);
}

.glass {
  background: rgba(26,26,46,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(123,47,247,0.15);
}

.light-mode .glass {
  background: rgba(240,240,245,0.85);
  border: 1px solid rgba(123,47,247,0.2);
}

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

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 5px rgba(0,255,136,0.4), 0 0 15px rgba(0,255,136,0.2); }
  50% { box-shadow: 0 0 15px rgba(0,255,136,0.8), 0 0 30px rgba(0,255,136,0.4); }
}

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

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-green); }
}

@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-green { animation: pulse-green 2s ease-in-out infinite; }
.animate-bounce-arrow { animation: bounce-arrow 2s infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-gradient {
  background: linear-gradient(180deg, #0a0a0f 0%, #16082e 40%, #1a1a2e 70%, #0a0a0f 100%);
}

.light-mode .hero-gradient {
  background: linear-gradient(180deg, #e8e8f0 0%, #d8d0ee 40%, #e0e0ee 70%, #f0f0f5 100%);
}

.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(123,47,247,0.25);
}

.recommended-ribbon {
  position: absolute;
  top: 12px;
  right: -30px;
  background: linear-gradient(90deg, var(--accent-green), #00cc6a);
  color: #0a0a0f;
  padding: 4px 40px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 2;
  letter-spacing: 1px;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-green));
}

.timeline-dot {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--accent-green);
  z-index: 1;
}

.hexagon-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(123,47,247,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

.light-mode .hexagon-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(123,47,247,0.1) 1px, transparent 0);
}

.toast {
  animation: fadeInUp 0.3s ease-out, fadeOutDown 0.3s ease-in 2.7s forwards;
}

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

.hamburger-line {
  transition: all 0.3s ease;
}

.mobile-menu-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.ram-bar {
  transition: width 1.5s ease-out;
}

.lightbox-overlay {
  animation: fadeIn 0.3s ease;
}

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