/* ===== Global ===== */
html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "cv11"; }
::selection { background: rgba(99,102,241,0.4); color: #fff; }

/* ===== Animated background blobs ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.blob-1 {
  width: 620px; height: 620px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  animation: blob 18s ease-in-out infinite;
}
.blob-2 {
  width: 520px; height: 520px;
  top: 38%; left: -160px;
  background: radial-gradient(circle, #d946ef, transparent 70%);
  animation: blob 22s ease-in-out 3s infinite;
}
.blob-3 {
  width: 720px; height: 720px;
  bottom: -220px; right: 18%;
  background: radial-gradient(circle, #10b981, transparent 70%);
  animation: blob 25s ease-in-out 6s infinite;
  opacity: 0.28;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
}

/* ===== Keyframes ===== */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -50px) scale(1.1); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes pulseRing {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 16px rgba(99,102,241,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
@keyframes growBar { from { height: 0; } }

.animate-float          { animation: float 6s ease-in-out infinite; }
.animate-float-delayed  { animation: float 6s ease-in-out 2s infinite; }
.animate-fade-up        { animation: fadeUp 0.8s ease-out forwards; }
.animate-gradient       { animation: gradientMove 8s ease infinite; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Glass card ===== */
.glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== Section eyebrow pill ===== */
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ===== Feature cards ===== */
.feature-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  margin-bottom: 1.25rem;
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-title { font-size: 1.125rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

.feature-card[data-color="amber"]    .feature-icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
.feature-card[data-color="emerald"]  .feature-icon { background: rgba(16,185,129,0.15); color: #34d399; }
.feature-card[data-color="fuchsia"]  .feature-icon { background: rgba(217,70,239,0.15); color: #e879f9; }
.feature-card[data-color="sky"]      .feature-icon { background: rgba(14,165,233,0.15); color: #38bdf8; }
.feature-card[data-color="rose"]     .feature-icon { background: rgba(244,63,94,0.15);  color: #fb7185; }
.feature-card[data-color="violet"]   .feature-icon { background: rgba(139,92,246,0.15); color: #a78bfa; }
.feature-card[data-color="teal"]     .feature-icon { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.feature-card[data-color="orange"]   .feature-icon { background: rgba(249,115,22,0.15); color: #fb923c; }
.feature-card[data-color="cyan"]     .feature-icon { background: rgba(6,182,212,0.15);  color: #22d3ee; }

/* ===== Benefit card (manager-focused, larger) ===== */
.benefit-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129,140,248,0.4);
  box-shadow: 0 30px 70px -25px rgba(99,102,241,0.5);
}
.benefit-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.04));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Stat cards (dashboard mockup) ===== */
.stat-card {
  padding: 1.1rem;
  border-radius: 0.875rem;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: -30%; right: -30%;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
  border-radius: 50%;
}

/* ===== Pricing cards ===== */
.pricing-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
}
.pricing-card-featured {
  background: linear-gradient(145deg, rgba(99,102,241,0.18), rgba(217,70,239,0.06));
  border-color: rgba(129,140,248,0.4);
  box-shadow: 0 30px 60px -20px rgba(99,102,241,0.35);
}

/* ===== Steps ===== */
.step-line { background: linear-gradient(90deg, rgba(129,140,248,0.5), rgba(217,70,239,0.2)); }

/* ===== Form ===== */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
  transition: all 0.2s ease;
}
.field-input::placeholder { color: rgba(255,255,255,0.3); }
.field-input:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(129,140,248,0.6);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
select.field-input { appearance: none; cursor: pointer; }
select.field-input option { background: #101633; color: #fff; }

/* ===== Button shine ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary > span.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn-primary:hover > span.shine { transform: translateX(100%); }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse dot */
.live-dot {
  width: 16px; height: 16px;
  background: #fbbf24;
  border-radius: 50%;
  border: 3px solid white;
  animation: pulseRing 2s infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .animate-float, .animate-float-delayed, .animate-gradient, .live-dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ===== Legal pages (privacy / terms) ===== */
.legal-hero-icon {
  width: 76px; height: 76px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(99,102,241,0.25), rgba(217,70,239,0.12));
  border: 1px solid rgba(129,140,248,0.35);
  box-shadow: 0 20px 50px -18px rgba(99,102,241,0.7);
}

/* Sticky table of contents */
.toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.toc-link {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  border-right: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.5;
}
.toc-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.toc-link.active {
  color: #c7d2fe;
  background: rgba(99,102,241,0.12);
  border-right-color: #818cf8;
  font-weight: 700;
}

/* Document section card */
.legal-section {
  scroll-margin-top: 96px;
  padding: 1.9rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.legal-section:hover {
  border-color: rgba(129,140,248,0.3);
  box-shadow: 0 30px 70px -30px rgba(99,102,241,0.4);
}
.legal-section h2 {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 1.4rem; font-weight: 900;
  margin-bottom: 1.1rem;
}
.legal-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 900;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(129,140,248,0.25);
}

/* Prose typography */
.legal-prose { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 2; }
.legal-prose p { margin-bottom: 1rem; }
.legal-prose strong { color: #fff; font-weight: 700; }
.legal-prose a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }
.legal-prose h3 {
  color: #fff; font-weight: 800; font-size: 1.05rem;
  margin: 1.4rem 0 0.6rem;
}
.legal-prose ul { margin: 0.4rem 0 1rem; padding: 0; list-style: none; }
.legal-prose ul li {
  position: relative;
  padding-right: 1.7rem;
  margin-bottom: 0.6rem;
}
.legal-prose ul li::before {
  content: "";
  position: absolute;
  right: 0; top: 0.7rem;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, #818cf8, #d946ef);
}
.legal-prose .callout {
  margin: 1.1rem 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(129,140,248,0.25);
  border-right: 3px solid #818cf8;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.85;
}
.legal-prose .callout.amber {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
  border-right-color: #fbbf24;
}
.legal-prose .callout.emerald {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.25);
  border-right-color: #34d399;
}
