/* ═══════════════════════════════════════════════════════════════════════
   Lutron Digital — Global Stylesheet
   Design System: Modern Dark Cinema + Bento Grid (ui-ux-pro-max v2.5)
   Typography: DM Sans (Google alternative for Satoshi/General Sans)
   Primary easing: cubic-bezier(0.16, 1, 0.3, 1)  [Expo.out]
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Cursor pointer on all interactive elements ─────────────────────── */
a, button, [role="button"], label[for], select,
[data-faq-trigger], summary { cursor: pointer; }

/* ─── Scroll-reveal base state ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.94); }

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ─── Navbar glass on scroll ─────────────────────────────────────────── */
#navbar {
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
#navbar.is-scrolled {
  background: rgba(38, 27, 55, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

/* ─── FAQ accordion ──────────────────────────────────────────────────── */
[data-faq-answer] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-faq-icon] {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Background grid utility ────────────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(95, 78, 120, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 78, 120, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Hero grain texture ──────────────────────────────────────────────── */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ─── Animated gradient orb ──────────────────────────────────────────── */
.orb {
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb-2 { animation-delay: -4s; animation-duration: 10s; }

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -16px) scale(1.08); }
}

/* ─── Scrollbar styling ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #543d7b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5f4e78; }

/* ─── Focus ring ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #5f4e78;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orb { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
