html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Offset in-page anchor scrolling so the fixed navbar doesn't cover the target heading */
section[id] {
  scroll-margin-top: 90px;
}

::selection {
  background-color: #c7d2fe;
  color: #1e1b4b;
}

:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Native <details> marker cleanup for the FAQ accordion */
summary::-webkit-details-marker {
  display: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================================
   ZOINLY MODERN SAAS UI ENHANCEMENTS
   Matches Web App Aesthetic (Ambient Glow, Glass, Micro-interactions)
   ============================================================ */

/* Atmospheric Ambient Background & Mesh */
.bg-ambient-mesh {
  position: relative;
  overflow: hidden;
}

.bg-ambient-mesh::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.16) 0%,
    rgba(139, 92, 246, 0.10) 40%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.bg-ambient-mesh::after {
  content: "";
  position: absolute;
  top: 180px;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.12) 0%,
    rgba(99, 102, 241, 0.05) 50%,
    transparent 70%
  );
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Architectural Grid Pattern */
.bg-dot-pattern {
  background-image: radial-gradient(rgba(148, 163, 184, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphic Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.06);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4);
}

/* Hover Elevation & Smooth Micro-transitions */
.hover-lift {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.14);
}

/* Gradient Text Effect */
.gradient-text-brand {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Pill Badge */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #4f46e5;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
}

/* Button Glow on Primary CTA */
.btn-primary-glow {
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-glow:hover {
  box-shadow: 0 14px 30px -4px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}
