/* ============================ HOW IT WORKS ============================ */
.how {
  background: var(--bg-primary);
  margin-top: clamp(40px, 5vw, 55px);
  margin-bottom: clamp(40px, 5vw, 55px);
  position: relative;
  overflow: hidden;
}

.how__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.how__glow {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 90vw);
  height: min(620px, 90vw);
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.16) 0%,
    rgba(34, 197, 94, 0.05) 40%,
    transparent 70%
  );
  filter: blur(clamp(10px, 2vw, 20px));
  z-index: 1;
  pointer-events: none;
}

.how .container {
  position: relative;
  z-index: 2;
}

.how__head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.how__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  margin-inline: auto;
}

/* Linha vertical contínua */
.how__timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--brand) 0%,
    rgba(34, 197, 94, 0.25) 100%
  );
}

.how__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(16px, 2vw, 22px) 0;
}

.how__step-link {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 28px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.how__step-link:hover {
  opacity: 0.85;
}

.how__step-marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.how__step:hover .how__step-marker {
  border-color: var(--brand);
  color: var(--brand);
}

.how__step--final .how__step-marker {
  background: var(--brand);
  color: #062b13;
  border-color: var(--brand);
  box-shadow: 0 0 32px var(--brand-glow);
}

.how__step-body {
  padding-top: 6px;
}

.how__step-body h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.how__step--final .how__step-body h3 {
  color: var(--brand);
}

.how__step-body p {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .how__step {
    gap: 16px;
  }
  .how__step-marker {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
  .how__timeline::before {
    left: 19px;
  }
}

@media (max-width: 400px) {
  .how__step-marker {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
  }
  .how__timeline::before {
    left: 16px;
  }
}

@media (min-width: 1440px) {
  .how {
    margin-top: 72px;
    margin-bottom: 72px;
  }
  .how__timeline {
    max-width: 860px;
  }
  .how__step {
    gap: 36px;
    padding: 26px 0;
  }
  .how__step-marker {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
  }
}

@media (min-width: 1920px) {
  .how__timeline {
    max-width: 960px;
  }
}
