/* InsureAgent One — product website custom styles */
/* Complements Tailwind CDN; handles animations, gradients, and layout details */

:root {
  --brand-blue: #2563eb;
  --brand-purple: #7c3aed;
  --brand-dark: #0f172a;
  --brand-gray: #64748b;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Gradient text utility ── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero gradient background ── */
.hero-bg {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
}

/* ── Animated gradient border on cards ── */
.card-border {
  position: relative;
  border-radius: 12px;
  background: white;
}
.card-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, #2563eb22, #7c3aed22);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

/* ── Step connector line ── */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  opacity: 0.3;
}
.step-connector:last-child::after { display: none; }

/* ── Nav scroll shadow ── */
.nav-scrolled {
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95) !important;
}

/* ── Lang toggle button ── */
#lang-toggle {
  transition: all 0.15s ease;
}

/* ── Fade-in on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Compliance gate tags ── */
.gate-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3730a3;
}

/* ── Timeline ── */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 2px;
  height: calc(100% + 8px);
  background: linear-gradient(180deg, #c7d2fe, transparent);
}
.timeline-item:last-child::after { display: none; }

/* ── Mobile nav ── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── Stat number counter animation ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.stat-num { animation: countUp 0.6s ease both; }

/* ── Feature card hover ── */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12);
}

/* ── CTA button pulse ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn-primary:hover::after { opacity: 0.08; }
