/* Awwwards-level enhancements — scroll reveals, stats, footer, hover effects */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* --- Hero Stats Bar --- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-stats.visible {
  animation: fade-up 0.6s ease forwards;
  animation-delay: 0.8s;
}
.stat {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  margin-right: 4px;
}
.stat-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
}

/* --- Hero Entrance Animation --- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.dotted-surface-content .nav {
  opacity: 0;
  animation: fade-down 0.5s ease forwards;
  animation-delay: 0.1s;
}
.dotted-surface-content h1 {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
  animation-delay: 0.3s;
}
.dotted-surface-content > .container > p {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
  animation-delay: 0.5s;
}
.dotted-surface-content .hero-cta {
  opacity: 0;
  animation: scale-in 0.5s ease forwards;
  animation-delay: 0.7s;
}

/* --- Scroll Reveal for Sections --- */
.reveal-section {
  opacity: 1;
}

/* Protocol card stagger — hidden until section is visible */
.reveal-section .protocol-card {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-section.visible .protocol-card {
  animation: card-reveal 0.6s ease forwards;
}
.reveal-section.visible .protocol-card:nth-child(1) { animation-delay: 0.0s; }
.reveal-section.visible .protocol-card:nth-child(2) { animation-delay: 0.12s; }
.reveal-section.visible .protocol-card:nth-child(3) { animation-delay: 0.24s; }
.reveal-section.visible .protocol-card:nth-child(4) { animation-delay: 0.36s; }
.reveal-section.visible .protocol-card:nth-child(5) { animation-delay: 0.48s; }
.reveal-section.visible .protocol-card:nth-child(6) { animation-delay: 0.60s; }

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

/* --- Protocol Card Hover Depth --- */
.protocol-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.protocol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}

/* --- Enhanced Footer --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col .nav-brand {
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .stat-divider {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
