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

/* ── Nav scroll state ── */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ── Hero orbs ── */
.hero-orb {
  animation: float 8s ease-in-out infinite;
}
.hero-orb:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.hero-orb:nth-child(3) { animation-delay: -4s; animation-duration: 12s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Staggered card reveals ── */
#products .reveal {
  transition-delay: 0s;
}
#products .reveal:nth-child(1) { transition-delay: 0.05s; }
#products .reveal:nth-child(2) { transition-delay: 0.12s; }
#products .reveal:nth-child(3) { transition-delay: 0.19s; }
#products .reveal:nth-child(4) { transition-delay: 0.26s; }
#products .reveal:nth-child(5) { transition-delay: 0.33s; }
#products .reveal:nth-child(6) { transition-delay: 0.40s; }

#values .reveal {
  transition-delay: 0s;
}
#values .reveal:nth-child(1) { transition-delay: 0.05s; }
#values .reveal:nth-child(2) { transition-delay: 0.12s; }
#values .reveal:nth-child(3) { transition-delay: 0.19s; }
#values .reveal:nth-child(4) { transition-delay: 0.26s; }

/* ── Focus styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #FF7F6B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Mobile menu transition ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Smooth section transitions ── */
section {
  scroll-margin-top: 80px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F7F8; }
::-webkit-scrollbar-thumb { background: #D6D6DC; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B0B0BC; }

/* ── Selection ── */
::selection { background: #FFD4C9; color: #1A1A24; }
