/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  /* faint corner wash, kept quiet so the signature line stays the hero */
  content: "";
  position: absolute;
  inset-block-start: -180px;
  inset-inline-end: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy .eyebrow { margin-bottom: 1.1rem; }

.hero-copy h1 {
  font-family: "Parastoo", var(--font-body);
  font-size: clamp(0.85rem, 4vw - 0.15rem, 2.3rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: nowrap;
}

.hero-copy h1 mark {
  background: none;
  color: var(--red);
}

.hero-copy .lead {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 620px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

/* Signature element: pulse line morphing into a circuit trace.
   Represents the two decades (continuity) and the dual world of
   health-sector clients + technology delivery. */
.pulse-line {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  width: 100%;
  height: auto;
}

.pulse-line path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-pulse 1.8s var(--ease) 0.2s forwards;
}

.pulse-line circle {
  fill: var(--red-deep);
  opacity: 0;
  animation: node-in 0.5s var(--ease) forwards;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}
@keyframes node-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-line path { stroke-dashoffset: 0; animation: none; }
  .pulse-line circle { opacity: 1; animation: none; }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  justify-content: start;
}

.stat {
  border-inline-start: 2px solid var(--hairline-strong);
  padding-inline-start: 1rem;
}

.stat .stat-num {
  display: block;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat .stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}
