/* ==========================================================================
   How It Works — 3-step horizontal flow with glowing cards
   ========================================================================== */

.how-it-works {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 50%, var(--bg-deep) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

/* Connecting line behind cards */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 72px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--blue-800) 15%,
    var(--blue-600) 50%,
    var(--blue-800) 85%,
    transparent
  );
  z-index: 0;
}

/* ── Step Card ── */
.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all var(--duration-base) var(--ease-out);
}

/* Auroral glow behind each card */
.step-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(46, 104, 233, 0.08),
    rgba(56, 189, 248, 0.04),
    rgba(124, 92, 252, 0.06)
  );
  z-index: -1;
  opacity: 0;
  filter: blur(20px);
  transition: opacity var(--duration-base) var(--ease-out);
}

.step-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-md);
}

.step-card:hover::before {
  opacity: 1;
}

/* Step number circle */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  box-shadow: var(--glow-sm);
  position: relative;
}

/* Subtle ring around number */
.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(46, 104, 233, 0.25);
}

/* Step icon */
.step-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  color: var(--blue-400);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Arrow indicators between cards (desktop) ── */
.step-arrow {
  display: none;
}
