/* ============================================================
   HRFlow — custom styles, gradients, glassmorphism, animations
   Tailwind (CDN) handles utilities; this file adds the flair.
   ============================================================ */

:root {
  --purple: #7c3aed;
  --teal: #06b6d4;
  --pink: #ec4899;
  --orange: #f97316;
  --lime: #84cc16;
  --amber: #fbbf24;
  --ink: #0f172a;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Gradient helpers ---------- */
.text-gradient {
  background: linear-gradient(100deg, var(--purple), var(--pink) 45%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-teal {
  background: linear-gradient(100deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-hero {
  background:
    radial-gradient(1000px 600px at 12% 8%, rgba(124,58,237,0.20), transparent 60%),
    radial-gradient(900px 600px at 88% 4%, rgba(6,182,212,0.18), transparent 60%),
    radial-gradient(900px 700px at 70% 90%, rgba(236,72,153,0.16), transparent 60%),
    radial-gradient(700px 600px at 20% 95%, rgba(249,115,22,0.12), transparent 60%),
    linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.grad-cta {
  background: linear-gradient(120deg, #7c3aed 0%, #06b6d4 50%, #ec4899 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.glass-dark {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(124, 58, 237, 0.6);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -10px rgba(236, 72, 153, 0.6); }
.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 2px solid #ede9fe;
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--purple); box-shadow: 0 12px 30px -12px rgba(124,58,237,0.4); }
.btn-ghost-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }

/* ripple */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255,255,255,0.5), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn:active::after { opacity: 1; transition: none; }

/* ---------- Cards ---------- */
.feature-card {
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease;
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.28);
}
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-icon { transition: transform 0.35s cubic-bezier(.2,.7,.3,1); }

/* ---------- Floating blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(12px); }
}
.floaty { animation: float 7s ease-in-out infinite; }

/* ---------- Header ---------- */
#site-header { transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; }
#site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(15,23,42,0.35);
}

/* ---------- FAQ ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 320px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ---------- Steps connector ---------- */
.step-line::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--teal), var(--pink));
  opacity: 0.35;
  z-index: 0;
}
@media (max-width: 767px) { .step-line::before { display: none; } }

/* ---------- Marquee (trusted by) ---------- */
.badge-pulse { animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Pricing highlight ---------- */
.plan-featured { transform: scale(1.04); }
@media (max-width: 767px) { .plan-featured { transform: none; } }

/* ---------- AOS fallback (in case CDN slow) ---------- */
[data-aos] { transition-property: transform, opacity; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
