/* Service page motion: card spotlight,
   icon draw-in, process-line travel and metric count-up. Shared by all service pages. */

/* 2. Card spotlight that follows the cursor */
.sm-spot{--sx:50%;--sy:50%;position:relative}
.sm-spot::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .4s;background:radial-gradient(320px circle at var(--sx) var(--sy),rgba(185,255,69,.09),transparent 65%)}
.sm-spot:hover::after{opacity:1}
.sm-spot>*{position:relative;z-index:1}

/* 3. Icon strokes draw in when the card is revealed */
.sm-draw svg path,.sm-draw svg circle,.sm-draw svg rect,.sm-draw svg line,.sm-draw svg polyline{stroke-dasharray:var(--len,120);stroke-dashoffset:var(--len,120);transition:stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) .25s}
.sm-draw.vis svg path,.sm-draw.vis svg circle,.sm-draw.vis svg rect,.sm-draw.vis svg line,.sm-draw.vis svg polyline{stroke-dashoffset:0}

/* 4. Process: light travels along the line, steps light up in turn */
.process-steps .sm-track{position:absolute;top:40px;left:12.5%;right:12.5%;height:1px;overflow:hidden;pointer-events:none;z-index:0}
.process-steps .sm-track::after{content:'';position:absolute;top:-1px;left:-20%;width:20%;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,#B9FF45,transparent);box-shadow:0 0 12px #B9FF45;animation:sm-travel 4.8s cubic-bezier(.45,0,.55,1) infinite}
@keyframes sm-travel{0%{left:-20%}100%{left:100%}}
.process-step-num{position:relative}
.process-steps.sm-on .process-step-num{animation:sm-step 4.8s ease-in-out infinite}
.process-steps.sm-on .process-step:nth-child(3) .process-step-num{animation-delay:1.1s}
.process-steps.sm-on .process-step:nth-child(4) .process-step-num{animation-delay:2.2s}
.process-steps.sm-on .process-step:nth-child(5) .process-step-num{animation-delay:3.3s}
@keyframes sm-step{0%,30%,100%{border-color:rgba(185,255,69,.2);box-shadow:none}12%{border-color:rgba(185,255,69,.85);box-shadow:0 0 0 6px rgba(185,255,69,.06),0 0 40px rgba(185,255,69,.25)}}
@media(max-width:900px){.process-steps .sm-track{display:none}}

@media(prefers-reduced-motion:reduce){
  .process-steps .sm-track::after,.process-steps.sm-on .process-step-num{animation:none}
  .sm-draw svg *{stroke-dashoffset:0!important;transition:none}
}
