/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .js-scroll .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* ── Card hover ── */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(123, 79, 175, 0.12);
}

/* ── Feature card ── */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(123, 79, 175, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(123, 79, 175, 0.1);
}

/* ── Navbar active state ── */
.nav-scroller.scrolled {
  box-shadow: 0 4px 20px rgba(123, 79, 175, 0.08);
}

/* ── Mobile menu transition ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
}

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

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

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

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

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #7B4FAF;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: #d6c2ee;
  color: #3d2755;
}
