/* ===========================================
   HOW IT WORKS V2 — Compact Horizontal Cards
   Clean, tight, visually rich — not tall
   =========================================== */

.hiw-v2 {
  background: #FFFFFF;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Soft ambient glow */
.hiw-v2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(47, 128, 237, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hiw-v2-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========== HEADER — Minimal, tight ========== */

.hiw-v2-header {
  text-align: center;
  margin-bottom: 48px;
}

.hiw-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2F80ED;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hiw-v2-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2F80ED;
  animation: hiw-pulse 2s ease-in-out infinite;
}

@keyframes hiw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hiw-v2-title {
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.03em;
}

/* ========== HORIZONTAL CARDS ========== */

.hiw-v2-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 44px;
}

/* --- Card --- */

.hiw-v2-card {
  flex: 1;
  max-width: 300px;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: #FAFBFD;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.hiw-v2-card:hover {
  background: #FFFFFF;
  border-color: rgba(47, 128, 237, 0.15);
  box-shadow: 0 8px 40px rgba(47, 128, 237, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

/* Large background number */
.hiw-v2-card-num {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 110px;
  font-weight: 900;
  color: rgba(47, 128, 237, 0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -4px;
  transition: color 0.35s ease;
}

.hiw-v2-card:hover .hiw-v2-card-num {
  color: rgba(47, 128, 237, 0.07);
}

/* Icon container */
.hiw-v2-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EBF4FF 0%, #F0F7FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #2F80ED;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.hiw-v2-card:hover .hiw-v2-card-icon {
  background: linear-gradient(135deg, #2F80ED 0%, #56A0F5 100%);
  color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(47, 128, 237, 0.25);
  border-color: transparent;
}

.hiw-v2-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.hiw-v2-card-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Tags row */
.hiw-v2-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hiw-v2-card-tags span {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  background: #F3F4F6;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.hiw-v2-card:hover .hiw-v2-card-tags span {
  background: #EBF4FF;
  color: #2F80ED;
}

/* Highlight badge (steps 2 & 3) */
.hiw-v2-card-highlight {
  margin-top: 2px;
}

.hiw-v2-card-highlight span {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.1px;
}

/* --- Flow Arrow --- */

.hiw-v2-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  color: #D1D5DB;
  padding: 0 4px;
}

.hiw-v2-flow svg {
  width: 32px;
  height: 20px;
}

/* ========== BOTTOM CTA — Inline ========== */

.hiw-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hiw-v2-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2F80ED;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 12px rgba(47, 128, 237, 0.2);
  cursor: pointer;
}

.hiw-v2-cta:hover {
  background: #1A6FDB;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(47, 128, 237, 0.3);
}

.hiw-v2-cta svg {
  transition: transform 0.3s ease;
}

.hiw-v2-cta:hover svg {
  transform: translateX(3px);
}

.hiw-v2-cta-sep {
  color: #D1D5DB;
  font-size: 20px;
  font-weight: 300;
}

.hiw-v2-cta-note {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 400;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .hiw-v2 {
    padding: 56px 0 48px;
  }

  .hiw-v2-title {
    font-size: 34px;
  }

  .hiw-v2-header {
    margin-bottom: 36px;
  }

  .hiw-v2-card {
    padding: 24px 22px 22px;
  }

  .hiw-v2-card-num {
    font-size: 90px;
  }

  .hiw-v2-flow {
    width: 36px;
  }

  .hiw-v2-flow svg {
    width: 24px;
    height: 16px;
  }
}

@media (max-width: 700px) {
  .hiw-v2 {
    padding: 48px 0 40px;
  }

  .hiw-v2-title {
    font-size: 30px;
  }

  .hiw-v2-cards {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
  }

  /* Card: vertical stack, compact — gives text full width to flow */
  .hiw-v2-card {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 20px 16px;
  }

  .hiw-v2-card-num {
    display: none;
  }

  .hiw-v2-card-icon {
    margin-bottom: 12px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
  }

  .hiw-v2-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .hiw-v2-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    width: 100%;
  }

  .hiw-v2-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 10px;
    width: 100%;
  }

  .hiw-v2-card-tags,
  .hiw-v2-card-highlight {
    width: 100%;
  }

  /* Flow arrows: small, horizontal between cards */
  .hiw-v2-flow {
    transform: rotate(90deg);
    width: 28px;
    height: 18px;
    opacity: 0.5;
  }

  .hiw-v2-flow svg {
    width: 22px;
    height: 14px;
  }

  .hiw-v2-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .hiw-v2-cta-sep {
    display: none;
  }

  .hiw-v2-cta {
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 10px;
  }

  .hiw-v2-cta-note {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .hiw-v2 {
    padding: 40px 0 32px;
  }

  .hiw-v2-title {
    font-size: 26px;
  }

  .hiw-v2-card {
    padding: 16px 16px 14px;
  }

  .hiw-v2-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    margin-bottom: 10px;
  }

  .hiw-v2-card-icon svg {
    width: 19px;
    height: 19px;
  }
}
