/* =============================================================
   SEOBoost — assets/css/main.css
   Custom styles layered on top of Tailwind CDN utilities.
   Tailwind covers 95% of styling; this file only holds what
   utility classes can't express cleanly (animations, gradients,
   scroll-reveal helpers, custom scrollbar).
   ============================================================= */

:root {
  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Brand gradient helpers ---------- */
.gradient-text {
  background-image: linear-gradient(90deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-bg {
  background-image: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.gradient-border {
  position: relative;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Scroll reveal (paired with Alpine x-intersect or plain JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Glow / hover lift used on cards ---------- */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.25);
}

/* ---------- Marquee for "trusted by" logo strip ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ---------- Accordion chevron rotation (FAQ) ---------- */
.accordion-chevron {
  transition: transform 0.2s ease;
}

.accordion-chevron.is-open {
  transform: rotate(180deg);
}

/* ---------- Custom scrollbar (webkit) ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

.dark ::-webkit-scrollbar-thumb {
  background: #3f3f55;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link:focus {
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* ---------- Lazy image fade-in ---------- */
img[loading="lazy"] {
  transition: opacity 0.3s ease;
}

img.lazyload-pending {
  opacity: 0;
}

/* ---------- Mobile menu slide ---------- */
[x-cloak] {
  display: none !important;
}
