/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.7rem;
  background: var(--yellow);
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: var(--border-thin);
}

.section-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  color: #000;
}

.section-sub {
  font-size: 0.98rem;
  color: #444;
  font-weight: 600;
  max-width: 500px;
  line-height: 1.7;
}

/* ── FEATURES ── */
.features {
  padding: 5rem 5%;
  max-width: 1080px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  display: none;
}

.feature-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #000;
}

.feature-card p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.7;
  font-weight: 600;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 5rem 5%;
  max-width: 1080px;
  margin: 0 auto;
}

/* Compact stepper card */
.stepper-card {
  margin-top: 2.5rem;
  background: #fff;
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Step item */
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  cursor: default;
}

/* Icon circle wrapper (for the glow ring on active) */
.stepper-icon-wrap {
  position: relative;
}

.stepper-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: #fff;
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 2;
}

.stepper-icon svg {
  width: 22px;
  height: 22px;
  color: #000;
  transition: color 0.4s;
}

.stepper-label {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #000;
  text-align: center;
  transition: color 0.4s;
  white-space: nowrap;
}

/* Active step */
.stepper-step.active .stepper-icon {
  background: var(--yellow);
  border-color: #000;
  border-width: 3px;
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}

.stepper-step.active .stepper-icon svg {
  color: #000;
}

.stepper-step.active .stepper-label {
  color: #000;
  font-weight: 900;
}

/* Completed step (before active) */
.stepper-step.completed .stepper-icon {
  background: #fff;
  border-color: #000;
}

.stepper-step.completed .stepper-icon svg {
  color: #000;
}

.stepper-step.completed .stepper-label {
  color: #444;
}

/* Connector line between steps */
.stepper-connector {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 0 4px;
  margin-bottom: 24px;
  /* offset to align with icons center */
  overflow: hidden;
  position: relative;
}

.stepper-connector-fill {
  height: 100%;
  width: 0%;
  background: #000;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animated cycling: JS drives it, but pure-CSS fallback below */
.stepper-connector.filled .stepper-connector-fill {
  width: 100%;
}

/* Sub-labels (tooltip style) for desktop */
.stepper-step .stepper-sublabel {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

@media (max-width: 520px) {
  .stepper-card {
    padding: 1.5rem 1rem;
  }

  .stepper-icon {
    width: 46px;
    height: 46px;
  }

  .stepper-icon svg {
    width: 18px;
    height: 18px;
  }

  .stepper-label {
    font-size: 0.72rem;
  }
}



/* ── CTA / REFERRAL SECTION ── */
.cta-section {
  padding: 4.5rem 5% 5.5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-card {
  background: var(--yellow);
  border: var(--border-thick);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
}

.cta-card h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  color: #000;
}

.cta-card p {
  font-size: 0.97rem;
  color: #000;
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.7;
}

.referral-code-box {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.4rem, 0.15vw, 2rem);
  font-weight: 900;
  padding: 0.75rem clamp(1.2rem, 5vw, 2.5rem);
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
}

.referral-code-box:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.referral-code-box:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000;
}

.ref-sub {
  font-size: 0.85rem;
  color: #444;
  font-weight: 600;
}

/* ── FOOTER ── */
footer {
  border-top: var(--border-thick);
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #FFF;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: #444;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.15s;
}

.footer-links a:hover {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

footer small {
  font-size: 0.78rem;
  color: #666;
  font-weight: 600;
}