html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 76px;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: #f0f2f5;
  overflow-x: clip;
  width: 100%;
}

#site-header {
  background: linear-gradient(145deg, #1a73e8 0%, #0d47a1 100%);
}

.gradient-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 9999px;
  z-index: 0;
  pointer-events: none;
}

header.scrolled {
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.2s ease;
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.mobile-menu {
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a.active {
  color: #2563eb;
  background: #eff6ff;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    animation: fadeInUp 1.15s ease forwards;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chart animations: paused by default, released once a .chart-anim ancestor
   picks up .in-view (added by JS on load/scroll-into-view). Keeping these as
   plain DOM/CSS animations - rather than baked into a cached <img>-loaded
   SVG - means they replay on every real page load instead of only on a
   hard refresh. */
@media (prefers-reduced-motion: no-preference) {
  .chart-bar {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: growBar 0.9s ease-out both paused;
  }

  .chart-fill {
    transform-box: fill-box;
    transform-origin: left;
    animation: growFill 0.9s ease-out both paused;
  }

  .chart-line {
    stroke-dasharray: var(--len, 700);
    stroke-dashoffset: var(--len, 700);
    animation: drawLine 1.3s ease-out both paused;
  }

  .chart-arc {
    animation: drawArc 1s ease-out both paused;
  }

  .chart-anim.in-view .chart-bar,
  .chart-anim.in-view .chart-fill,
  .chart-anim.in-view .chart-line,
  .chart-anim.in-view .chart-arc {
    animation-play-state: running;
  }
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes growFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawArc {
  from {
    stroke-dasharray: 0 var(--circ, 400);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }

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

  .reveal-group>.reveal:nth-child(2) {
    transition-delay: 0.12s;
  }

  .reveal-group>.reveal:nth-child(3) {
    transition-delay: 0.24s;
  }

  .reveal-group>.reveal:nth-child(4) {
    transition-delay: 0.36s;
  }

  .reveal-group>.reveal:nth-child(5) {
    transition-delay: 0.48s;
  }

  .reveal-group>.reveal:nth-child(6) {
    transition-delay: 0.6s;
  }

  .reveal-group>.reveal:nth-child(7) {
    transition-delay: 0.72s;
  }

  .reveal-group>.reveal:nth-child(8) {
    transition-delay: 0.84s;
  }

  .blob-drift-1 {
    animation: blobDrift1 14s ease-in-out infinite;
  }

  .blob-drift-2 {
    animation: blobDrift2 18s ease-in-out infinite;
  }

  .blob-drift-3 {
    animation: blobDrift3 12s ease-in-out infinite;
  }
}

@keyframes blobDrift1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -20px);
  }
}

@keyframes blobDrift2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-24px, 18px);
  }
}

@keyframes blobDrift3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(16px, 14px) scale(1.06);
  }
}

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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