/* ==========================================
   WrenchUp — How It Works Page
   ========================================== */

/* ---- TOPBAR NAV ---- */
.topbar-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.topbar-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--text-primary);
}

.topbar-book {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0c0c14;
  background: var(--amber);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.topbar-book:hover { opacity: 0.85; }

/* ---- HERO ---- */
.hiw-hero {
  background: var(--bg-dark);
  padding: 160px 40px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hiw-hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hiw-hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  width: fit-content;
  letter-spacing: 0.02em;
}

.hiw-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.05;
}

.hiw-hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
}

/* ---- STEPS ---- */
.hiw-steps-section {
  background: var(--bg-section);
  padding: 100px 40px;
}

.hiw-steps-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hiw-steps-header {
  text-align: center;
  margin-bottom: 72px;
}

.hiw-steps-header .section-label { color: var(--amber); }

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: rgba(0,0,0,0.08);
}

.step-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 32px;
  align-items: start;
  padding: 0 0 64px;
  position: relative;
}

.step-card:last-child { padding-bottom: 0; }

.step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 4px;
}

.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0c0c14;
  border: 2px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-number-num {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.03em;
}

.step-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-content p {
  font-size: 16px;
  color: #6b6b7a;
  line-height: 1.7;
  max-width: 500px;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
  padding: 5px 12px;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ---- DETAIL CARDS ---- */
.hiw-detail {
  background: var(--bg-dark);
  padding: 100px 40px;
}

.hiw-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,158,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.detail-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.detail-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CTA ---- */
.hiw-cta {
  background: var(--bg-section);
  padding: 100px 40px;
  text-align: center;
}

.hiw-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.hiw-cta h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hiw-cta p {
  font-size: 17px;
  color: #6b6b7a;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hiw-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .topbar { padding: 14px 20px; }
  .topbar-nav { display: none; }

  .hiw-hero { padding: 120px 20px 64px; }

  .hiw-steps-section { padding: 64px 20px; }
  .hiw-steps-header { margin-bottom: 48px; }

  .step-card {
    grid-template-columns: 72px 1fr;
    gap: 20px;
    padding-bottom: 48px;
  }

  .step-circle { width: 52px; height: 52px; }
  .step-number-num { font-size: 16px; }

  .steps-list::before { left: 36px; }

  .hiw-detail { padding: 64px 20px; }
  .detail-grid { grid-template-columns: 1fr; }

  .hiw-cta { padding: 64px 20px; }
}