/* Base & Utilities */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Hero Animations */
.hero-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.2s; }
.hero-anim:nth-child(3) { transition-delay: 0.3s; }
.hero-anim:nth-child(4) { transition-delay: 0.4s; }

/* Scroll Reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Feature Stat Hover */
.feature-stat {
  transition: transform 0.3s ease;
}

.feature-stat:hover {
  transform: translateY(-2px);
}

/* Nav Scroll State */
.nav-scrolled {
  background: rgba(255, 252, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(61, 64, 91, 0.08);
}

.nav-scrolled #nav a:not(.bg-coral-400) {
  color: #3D405B !important;
}

/* Mobile Menu Toggle */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #C96A52;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-anim,
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature-stat {
    transition: none;
  }
}
