/* ── Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Hero Gradient ────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 30%, #047857 60%, #059669 80%, #064e3b 100%);
}

/* ── Hero Pattern ─────────────────────────────────────── */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(254,253,248,0.3) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ── Steam animation (SVG) ────────────────────────────── */
@keyframes steam-rise {
  0%, 100% { opacity: 0.4; transform: translateY(0) scaleX(1); }
  50% { opacity: 0.8; transform: translateY(-3px) scaleX(1.1); }
}
.steam { animation: steam-rise 2.5s ease-in-out infinite; }
.steam:nth-child(2) { animation-delay: 0.4s; }
  .steam:nth-child(3) { animation-delay: 0.8s; }

/* ── Marquee ──────────────────────────────────────────── */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

/* ── Scroll Reveal ────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Card Hover ───────────────────────────────────────── */
.card-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-group[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Hero Animations ──────────────────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
#hero h1 { animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
#hero p { animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }
#hero .flex.flex-col { animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both; }

/* ── Navbar ───────────────────────────────────────────── */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

/* ── Mobile Menu ──────────────────────────────────────── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Nav Links ────────────────────────────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal[data-reveal="hidden"],
  .card-group[data-reveal="hidden"] {
    opacity: 1;
    transform: none;
  }
  .marquee-track { animation: none; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-gradient {
    background: linear-gradient(160deg, #022c22 0%, #047857 50%, #064e3b 100%);
  }
}
