/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Eyebrow utility ── */
.eyebrow { letter-spacing: .25em; }

/* ── Nav transitions ── */
#nav { transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
#nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
#nav.scrolled .nav-logo-text { color: #0f172a; }
#nav.scrolled .nav-logo-sub { color: #0d9488; }
#nav.scrolled .nav-link { color: #475569; }
#nav.scrolled .nav-link:hover { color: #0d9488; }

/* ── Hero animations ── */
.hero-eyebrow { animation: fadeUp .8s .3s both; }
.hero-headline { animation: fadeUp .8s .45s both; }
.hero-subtitle { animation: fadeUp .8s .6s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Ticker ── */
.ticker-track { animation: ticker 30s linear infinite; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Product cards ── */
.product-card { cursor: default; }

/* ── Scroll-reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Mobile menu ── */
#mobileMenu { transition: max-height .35s ease, opacity .3s ease; }
#mobileMenu.open { max-height: 400px; opacity: 1; }
#mobileMenu.closed { max-height: 0; opacity: 0; overflow: hidden; }
.mobile-link { border-bottom: 1px solid #f1f5f9; padding-bottom: .75rem; }
.mobile-link:last-child { border-bottom: none; }

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .hero-headline { font-size: 3.5rem; }
  .hero-headline span:last-child { font-size: 3rem; }
}
