/* =========================================================================
   SelrIQ — custom component & animation styles (plain CSS, no build step).
   Tailwind utility classes come from the CDN; this file holds the reusable
   component classes, design tokens and animations.
   ========================================================================= */

:root {
  --primary: #6c3bff;
  --secondary: #ff7a00;
  --accent: #8b5cf6;
  --ink: #0f172a;
  --muted: #64748b;
  --success: #16a34a;
  --line: #e5e7eb;
  --surface: #f8fafc;
  --lilac: #f3f0ff;
}

/* ---------------- BASE ---------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:focus-visible {
  outline: 3px solid #a98bff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------- LAYOUT ---------------- */
.container-page {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container-page { padding-inline: 2rem; }
}

/* ---------------- BUTTONS ---------------- */
.btn,
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background-image: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(108, 59, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(108, 59, 255, 0.35);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------------- CARDS ---------------- */
.card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(108, 59, 255, 0.14);
  border-color: #c2acff;
}

/* ---------------- PILLS / BADGES ---------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------------- HEADINGS ---------------- */
.h-section {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 640px) {
  .h-section { font-size: 2.25rem; }
}

/* ---------------- GRADIENT TEXT ---------------- */
.text-gradient {
  background-image: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- NAV LINK ---------------- */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }

/* ---------------- REVEAL ON SCROLL ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ---------------- FLOAT ANIMATION ---------------- */
.animate-float { animation: selriq-float 6s ease-in-out infinite; }
@keyframes selriq-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------------- FAQ ACCORDION ---------------- */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-body > div { overflow: hidden; }
.faq-item[open-state="true"] .faq-body { grid-template-rows: 1fr; }
.faq-icon { transition: transform 0.3s ease; }

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-float { animation: none !important; }
  .faq-body { transition: none; }
  .btn-primary:hover, .btn-outline:hover, .card-hover:hover { transform: none; }
}
