/* =====================================================
   COMO FUNCIONA — PRÊMIO MANIA
===================================================== */

.how-it-works {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(147, 167, 0, 0.238), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(0,255,170,0.08), transparent 45%),
    linear-gradient(180deg, #050807, #0b120e);
  overflow: hidden;
}

/* divisor visual superior */
.how-it-works::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 180px;
  height: 6px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(202,255,42,0.9),
    rgba(0,255,170,0.9),
    transparent
  );

  border-radius: 10px;
  opacity: 0.9;
}

/* =====================================================
   CONTAINER
===================================================== */

.how-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* =====================================================
   CABEÇALHO
===================================================== */

.how-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.how-header p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #cfd8a8;
  opacity: 0.95;
}

/* =====================================================
   GRID DE PASSOS
===================================================== */

.how-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

/* =====================================================
   CARD INDIVIDUAL
===================================================== */

.how-step {
  position: relative;
  background: rgba(225, 255, 55, 0.06);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 28px 22px 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);

  /* estado inicial (antes de aparecer) */
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.how-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* moldura premium */
.how-step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2.5px;

  background: linear-gradient(
    135deg,
    rgba(202, 255, 42, 0.65),
    rgba(0, 255, 170, 0.55),
    rgba(202, 255, 42, 0.65)
  );

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  pointer-events: none;
}

/* hover */
.how-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
}

/* =====================================================
   CONTEÚDO DO CARD
===================================================== */

.step-icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.how-step h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.how-step p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #d6ddb5;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

  .how-header h2 {
    font-size: 2.2rem;
  }

  .how-header p {
    font-size: 1rem;
  }

  .how-steps {
    margin-top: 50px;
  }
}
