/* ─── HOW IT WORKS ──────────────────────────────────────── */
#how {
  padding: 8rem 2rem;
  background: var(--bg2);
  overflow: hidden;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* ─── Steps ─────────────────────────────────────────────── */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--orange-glow);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Stat Card ──────────────────────────────────────────── */
.how-stat-card {
  background: #1a1c24;
  border: 1px solid rgba(255, 207, 82, 0.15);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 207, 82, 0.05);
  animation: statCardFloat 5s ease-in-out infinite;
}

@keyframes statCardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.how-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.how-stat-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}

.how-stat-menu {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  cursor: pointer;
  padding: 4px;
}

.how-stat-menu span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* ─── Donut + Legend ─────────────────────────────────────── */
.how-stat-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.how-stat-donut {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut-center-val {
  font-size: 1.55rem;
  font-weight: 800;
  fill: #fff;
  font-family: var(--font-main);
}

.donut-center-lbl {
  font-size: 0.68rem;
  fill: rgba(255, 255, 255, 0.45);
  font-family: var(--font-alt);
}

.how-stat-legend {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.how-stat-legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.how-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.how-stat-legend-label {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
  font-family: var(--font-alt);
}

.how-stat-legend-val {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-main);
}

/* ─── Line Chart ─────────────────────────────────────────── */
.how-stat-linechart-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.how-stat-linechart-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-alt);
}

.how-stat-linechart {
  width: 100%;
  height: 58px;
  display: block;
}

/* ─── Bottom metrics row ─────────────────────────────────── */
.how-stat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.how-stat-big-val {
  font-size: 2rem;
  font-weight: 800;
  color: #FFCF52;
  font-family: var(--font-main);
  letter-spacing: -0.02em;
}

.how-stat-trend {
  font-size: 1rem;
  font-weight: 700;
  color: #52D4A4;
  font-family: var(--font-main);
}
