*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
}

/* NAVBAR */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(8, 15, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 195, 160, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .logo-text {
  color: #fff;
}

/* MOBILE MENU */
.mobile-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-link:hover {
  color: #4FC3A0;
}

/* BUTTONS */
.btn-mint {
  background: linear-gradient(135deg, #4FC3A0 0%, #2DA882 100%);
  color: #0D1B2A;
  font-weight: 600;
  border-radius: 1rem;
  padding: 0.875rem 2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(79, 195, 160, 0.25), 0 0 0 0 rgba(79, 195, 160, 0);
  border: none;
  cursor: pointer;
}

.btn-mint:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 195, 160, 0.35), 0 0 0 4px rgba(79, 195, 160, 0.1);
}

.btn-mint:active {
  transform: translateY(0);
}

/* STEP CARDS */
.step-card {
  position: relative;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,195,160,0.1), transparent, rgba(79,195,160,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.step-card:hover::before {
  opacity: 1;
}

/* FEATURE ITEMS */
.feature-item {
  border-radius: 1.25rem;
  padding: 0.5rem;
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: rgba(79, 195, 160, 0.03);
}

/* INFO CARDS */
.info-card {
  background: rgba(20, 33, 49, 0.6);
  backdrop-blur-sm;
  border-radius: 1.5rem;
  border: 1px solid rgba(79, 195, 160, 0.08);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(79, 195, 160, 0.2);
  background: rgba(20, 33, 49, 0.8);
  transform: translateY(-2px);
}

/* ANIMATIONS */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* SCROLL REVEAL (progressive enhancement — hidden by default, shown via JS) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Responsive */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
}

/* Selection */
::selection {
  background: rgba(79, 195, 160, 0.3);
  color: #fff;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #4FC3A0;
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0D1B2A;
}

::-webkit-scrollbar-thumb {
  background: #2D4763;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4FC3A0;
}
