/* HOW WE WORK — interactive four-step section (navy, aqua and lime from the XPFORTE theme) */
.refined-site .hw-section{position:relative;overflow:hidden;padding:110px 0 100px;color:#fff;background:radial-gradient(90% 80% at 50% 0%,#14224a 0%,#0b1230 60%,#070b1f 100%)}
.hw-ribbon{position:absolute;pointer-events:none;border-radius:50%;filter:blur(2px);opacity:.9}
.hw-ribbon-a{left:-14%;top:-6%;width:46%;aspect-ratio:1/1.5;transform:rotate(-28deg);background:linear-gradient(200deg,rgba(100,216,210,.55) 0%,rgba(21,141,158,.22) 45%,transparent 72%);animation:hwDriftA 18s ease-in-out infinite alternate}
.hw-ribbon-b{right:-12%;bottom:-18%;width:42%;aspect-ratio:1/1.4;transform:rotate(24deg);background:linear-gradient(20deg,rgba(225,238,99,.42) 0%,rgba(100,216,210,.2) 45%,transparent 72%);animation:hwDriftB 22s ease-in-out infinite alternate}
@keyframes hwDriftA{to{transform:rotate(-22deg) translate(2%,4%)}}
@keyframes hwDriftB{to{transform:rotate(30deg) translate(-3%,-4%)}}
.hw-section .container{position:relative}
.hw-head{max-width:760px;margin:0 auto 64px;text-align:center}
.hw-kicker{margin:0 0 18px;font-size:.72rem;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#64d8d2}
.refined-site .hw-head h2{margin:0 0 22px;color:#fff;font-size:clamp(2.3rem,4.6vw,4.2rem);line-height:1.06;letter-spacing:-.055em;font-weight:650}
.refined-site .hw-head h2 span{color:#e1ee63}
.hw-head>p:last-child{margin:0 auto;max-width:620px;font-size:1.02rem;line-height:1.7;color:#bfcde0}

.hw-steps{list-style:none;margin:0;padding:18px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.hw-step{position:relative;margin:0;padding:0;opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.22,.8,.24,1),transform .7s cubic-bezier(.22,.8,.24,1)}
.hw-ready .hw-step.is-in{opacity:1;transform:none}
.hw-step:not(.is-in){opacity:1;transform:none}
.hw-ready .hw-step:not(.is-in){opacity:0;transform:translateY(26px)}
.hw-card{height:100%;min-height:286px;padding:34px 28px 30px;border-radius:22px;background:linear-gradient(165deg,#18224a 0%,#0f1735 100%);border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(2,5,18,.35);cursor:pointer;transition:transform .45s cubic-bezier(.22,.8,.24,1),border-color .35s,box-shadow .45s,background .45s}
.hw-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:34px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);transition:background .35s,border-color .35s,box-shadow .35s}
.hw-icon svg{width:26px;height:26px;fill:none;stroke:#cfe6ee;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .35s}
.refined-site .hw-card h3{margin:0 0 12px;font-size:1.3rem;letter-spacing:-.03em;color:#fff;font-weight:700}
.hw-card p{margin:0;font-size:.95rem;line-height:1.68;color:#aebbd0}
.hw-badge{position:absolute;z-index:3;right:-8px;top:-18px;width:52px;height:52px;border-radius:50%;border:2px solid rgba(255,255,255,.35);cursor:pointer;font:inherit;font-size:1.45rem;font-weight:800;color:#0b1230;background:radial-gradient(circle at 32% 28%,#f4f7d6,#b9d9d6 70%);box-shadow:0 10px 22px rgba(2,5,18,.5);transition:transform .35s cubic-bezier(.22,.8,.24,1),background .35s,box-shadow .35s}
.hw-badge:hover{transform:scale(1.1)}
.hw-badge:focus-visible{outline:3px solid #e1ee63;outline-offset:3px}
.hw-step:hover .hw-card{transform:translateY(-6px);border-color:rgba(100,216,210,.45)}
.hw-step.is-active .hw-card{transform:translateY(-10px);border-color:#64d8d2;background:linear-gradient(165deg,#1d2f60 0%,#112046 100%);box-shadow:0 26px 54px rgba(21,141,158,.32),0 0 0 1px rgba(100,216,210,.35)}
.hw-step.is-active .hw-icon{background:rgba(100,216,210,.16);border-color:#64d8d2;box-shadow:0 0 24px rgba(100,216,210,.45)}
.hw-step.is-active .hw-icon svg{stroke:#e1ee63}
.hw-step.is-active .hw-badge{transform:scale(1.14);background:radial-gradient(circle at 32% 28%,#f6fbb0,#e1ee63 70%);box-shadow:0 0 0 7px rgba(225,238,99,.2),0 12px 26px rgba(2,5,18,.5)}

.hw-rail{position:relative;height:4px;margin:46px 4px 0;border-radius:4px;background:rgba(255,255,255,.12);overflow:hidden}
.hw-rail-fill{position:absolute;left:0;top:0;bottom:0;width:25%;border-radius:4px;background:linear-gradient(90deg,#64d8d2,#e1ee63);transition:width .7s cubic-bezier(.22,.8,.24,1)}
.hw-hint{margin:16px 0 0;text-align:center;font-size:.8rem;color:#8ea0b8}
.hw-foot{margin-top:26px;text-align:center}
.refined-site .hw-foot a{color:#e1ee63}

@media(max-width:1030px){
  .hw-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 20px}
  .hw-rail{display:none}
}
@media(max-width:620px){
  .refined-site .hw-section{padding:78px 0 72px}
  .hw-steps{grid-template-columns:1fr}
  .hw-card{min-height:0}
  .hw-badge{right:10px}
}
@media(prefers-reduced-motion:reduce){
  .hw-ribbon,.hw-step,.hw-card,.hw-badge,.hw-icon,.hw-rail-fill{animation:none!important;transition:none!important}
  .hw-ready .hw-step:not(.is-in){opacity:1;transform:none}
}
