html {
  scroll-behavior: smooth;
}

/* Ambient page texture: a faint dot grid plus soft colour blobs, painted as
   the document's own background. Children render in front of it as part of
   the normal box model, so any section with a solid bg-* colour (bg-white,
   bg-brand-50, bg-brand-950, ...) fully covers it -- it can only ever show
   through a section that has no background colour of its own. */
body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  background-color: #fbfdff;
  color: #153650;
  background-image:
    radial-gradient(circle at 8% 10%, rgba(53, 120, 179, 0.22), transparent 40%),
    radial-gradient(circle at 94% 6%, rgba(212, 165, 66, 0.18), transparent 36%),
    radial-gradient(circle at 85% 85%, rgba(53, 120, 179, 0.20), transparent 42%),
    radial-gradient(circle at 6% 88%, rgba(212, 165, 66, 0.14), transparent 38%),
    radial-gradient(rgba(21, 54, 80, 0.16) 1.5px, transparent 1.5px);
  background-size: auto, auto, auto, auto, 24px 24px;
  background-attachment: fixed;
}

::selection {
  background: #3578b3;
  color: #ffffff;
}

/* Headings: single professional sans-serif, bold, tight tracking */
.font-display {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
}

/* Scroll reveal (main.js staggers siblings via transition-delay) */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover lift for plain bordered cards (complexity grids, checklists, offering
   cards, etc.) so the page responds to the cursor instead of sitting static. */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -18px rgba(21, 54, 80, 0.22);
  border-color: rgba(53, 120, 179, 0.28);
}

/* Same idea, tuned for cards on dark sections (bg-white/5 on brand-950). */
.card-lift-dark {
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.card-lift-dark:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Twinkling star accents (hero backgrounds) */
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.star-twinkle {
  animation: twinkle 3.2s ease-in-out infinite;
}

/* Constellation line drift */
@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-6px, 6px); }
  100% { transform: translate(0, 0); }
}
.constellation-drift {
  animation: drift 14s ease-in-out infinite;
}

/* Details / accordion chevron rotation */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
details summary .chevron {
  transition: transform 0.25s ease;
}
details[open] summary .chevron {
  transform: rotate(180deg);
}

/* Nav underline hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #3578b3;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Emphasis text on dark hero backgrounds */
.text-gradient-gold {
  background: linear-gradient(90deg, #9cc9e8, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero chart draw-in */
#hero-chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
#hero-illustration.is-live #hero-chart-line {
  stroke-dashoffset: 0;
}

/* Live indicator ping */
.ping-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-ring 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping-ring {
  0% { transform: scale(1); opacity: 0.45; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

/* WhatsApp floating button */
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: wa-pulse 2.4s infinite;
}
