/* ========== BASE & RESETS ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(123, 97, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(123, 97, 255, 0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

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

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

#navbar.scrolled {
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== PRODUCT CARDS ========== */
.product-card {
  transition: transform 0.3s ease, border-color 0.5s ease;
}

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

/* ========== BELIEF CARDS ========== */
.belief-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.belief-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 97, 255, 0.06);
}

/* ========== STAT CARDS ========== */
.stat-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 97, 255, 0.3);
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(123, 97, 255, 0.2);
}

.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
}

.faq-trigger:focus {
  outline: none;
}

.faq-content {
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-trigger span:first-child {
  color: #7B61FF;
}

/* ========== CODE BLOCK ========== */
pre {
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 97, 255, 0.3) transparent;
}

pre::-webkit-scrollbar {
  height: 6px;
}

pre::-webkit-scrollbar-track {
  background: transparent;
}

pre::-webkit-scrollbar-thumb {
  background: rgba(123, 97, 255, 0.3);
  border-radius: 3px;
}

/* ========== CANVAS ========== */
#bgCanvas {
  opacity: 0.4;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050810;
}

::-webkit-scrollbar-thumb {
  background: rgba(123, 97, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 97, 255, 0.5);
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(123, 97, 255, 0.3);
  color: white;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 3rem;
  }

  .product-card:hover {
    transform: none;
  }

  /* Timeline mobile adjustments */
  #roadmap .md\:text-right {
    text-align: left;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.5rem;
  }
}
