/* ============================================
   how-it-works.css — Horizontal timeline
   ============================================ */

/* --- Section Background --- */
.how-it-works {
  background: var(--bg-primary);
}

/* --- Steps Container --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Individual Step --- */
.step {
  text-align: center;
  padding: 36px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* --- Step Number --- */
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* --- Step Title --- */
.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* --- Step Text --- */
.step__text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Desktop: Horizontal Timeline (1024px+) --- */
@media (min-width: 1024px) {
  .steps {
    display: flex;
    position: relative;
    gap: 24px;
    max-width: 100%;
  }

  /* Connecting gradient line */
  .steps::before {
    content: "";
    position: absolute;
    top: 54px;
    left: calc(16.66% + 26px);
    right: calc(16.66% + 26px);
    height: 2px;
    background: var(--gradient);
    z-index: 0;
    opacity: 0.5;
  }

  .step {
    flex: 1;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0 16px;
  }

  .step:hover {
    transform: none;
    box-shadow: none;
  }
}
