/* ============================================================
   TAGHLEEFY — How It Works  v2.0  |  D2C single-brand  |  RTL
   ============================================================ */

:root {
  --tagh-ink-900:     #0A121F;
  --tagh-ink-700:     #16283F;
  --tagh-teal:        #0E9F9A;
  --tagh-teal-dim:    rgba(14,159,154,0.14);
  --tagh-text:        #E2E8F0;
  --tagh-muted:       #94A3B8;
  --tagh-white:       #FFFFFF;
  --tagh-ease:        220ms cubic-bezier(0.2,0,0.2,1);
  --tagh-glow-teal:   0 0 32px rgba(14,159,154,0.30);
}

.tagh-hiw, .tagh-hiw * { box-sizing: border-box; }

.tagh-hiw {
  position: relative;
  overflow: hidden;
  background: #07101F;
  padding: 96px 0 88px;
  direction: rtl;
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

.tagh-hiw__bg { position: absolute; inset: 0; pointer-events: none; }
.tagh-hiw__glow {
  position: absolute; top: 50%; left: 50%;
  width: 700px; height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(14,159,154,0.09), transparent 70%);
  filter: blur(60px);
}

.tagh-hiw__container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.tagh-hiw__header { text-align: center; max-width: 640px; margin: 0 auto 64px; }

.tagh-hiw__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tagh-teal-dim);
  border: 1px solid rgba(14,159,154,0.3);
  border-radius: 100px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; color: var(--tagh-teal);
  margin-bottom: 18px;
}
.tagh-hiw__badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tagh-teal);
  animation: taghHiwPulse 2.2s ease-in-out infinite;
}
@keyframes taghHiwPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(1.6); }
}

.tagh-hiw__title { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; color: #F1F5F9; margin: 0 0 12px; line-height: 1.3; }
.tagh-hiw__title-hl {
  background: linear-gradient(130deg, var(--tagh-teal) 0%, #6FE0C9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tagh-hiw__subtitle { font-size: 15px; color: var(--tagh-muted); line-height: 1.8; margin: 0; }

/* ── Step card grid ── */
.tagh-hiw__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .tagh-hiw__track { grid-template-columns: 1fr; gap: 20px; }
}

.tagh-hiw__card {
  position: relative; z-index: 1;
  text-align: right;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(14,159,154,0.4);
  border-radius: 20px;
  padding: 32px 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease, border-color var(--tagh-ease), background var(--tagh-ease);
  transition-delay: var(--tagh-hiw-delay, 0ms);
}
.tagh-hiw__card.tagh-hiw--in { opacity: 1; transform: translateY(0); }
.tagh-hiw__card:hover { border-color: rgba(14,159,154,0.7); background: rgba(255,255,255,0.05); }

.tagh-hiw__card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}

.tagh-hiw__num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(130deg, var(--tagh-teal) 0%, #6FE0C9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.tagh-hiw__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--tagh-teal-dim);
  border: 1px solid rgba(14,159,154,0.35);
  color: var(--tagh-teal);
}
.tagh-hiw__icon svg { width: 22px; height: 22px; }

.tagh-hiw__step-title { font-size: 1.1rem; font-weight: 800; color: var(--tagh-white); margin: 0 0 10px; }
.tagh-hiw__step-desc { font-size: .9rem; color: var(--tagh-muted); line-height: 1.8; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .tagh-hiw__card { opacity: 1; transform: none; transition: none; }
}
