/* How It Works (RTL) + Scroll Animation */
.hiw-rtl{
  --bg: #fbf3f0;
  --title: #E92177;
  --text: #E92177;
  --muted: #4b5563;
  --border: #a464ac;
  background: var(--bg);
  padding: 70px 16px;
  font-family: system-ui, -apple-system, "Cairo", "Segoe UI", Roboto, Arial, sans-serif;
}

.hiw-wrap{ max-width: 1200px; margin: 0 auto; }

.hiw-title{
  text-align:center;
  color: var(--title);
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.1;
  margin: 0 0 40px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hiw-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

/* Visual (LEFT) */
.hiw-visual-col{
  position: sticky;
  top: 110px;
  align-self: start;
}
.hiw-visual{
  width: min(520px, 100%);
  border-radius: 28px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.hiw-blob{
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 60% 40% 60% 40% / 55% 45% 55% 45%;
  border: 6px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,.35);
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
  transform: translateZ(0);
}
.hiw-visual-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 280ms ease, transform 520ms ease;
}
.hiw-visual.is-fading .hiw-visual-img{
  opacity: 0;
  transform: scale(1.02);
}

/* Steps (RIGHT) */
.hiw-steps{ list-style:none; padding:0; margin:0; }

.hiw-step{
  padding: 18px 10px;
  border-radius: 16px;
  transition: background 250ms ease, transform 250ms ease, opacity 250ms ease;
  opacity: .72;
  transform: translateY(10px);
}
.hiw-step + .hiw-step{ margin-top: 28px; }

.hiw-step-head{ display:flex; gap: 14px; align-items:flex-start; }

.hiw-dot{
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--border);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 14px;
  flex: 0 0 auto;
  margin-top: 4px;
}
.hiw-step-title{
  margin:0;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.hiw-step-desc{
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

.hiw-step.is-visible{ transform: translateY(0); }

.hiw-step.is-active{
  opacity: 1;
  background: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

/* CTA */
.hiw-cta{ margin-top: 46px; text-align: center; }
.hiw-btn{
  display:inline-block;
  background: var(--border);
  color:#fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  transition: transform 150ms ease, filter 150ms ease;
}
.hiw-btn:hover{ transform: translateY(-2px); filter: brightness(1.03); }

/* Responsive */
@media (max-width: 980px){
  .hiw-grid{ grid-template-columns: 1fr; }
  .hiw-visual-col{ position: relative; top: 0; order: 0; }
  .hiw-steps-col{ order: 1; }
  .hiw-visual{ margin: 0 auto 18px; }
}
