/* ── How I Build ─────────────────────────────────── */
#how-i-build {
  background: var(--color-bg);
  padding: var(--section-py) 0;
}

.build-intro {
  font-size: 17px;
  color: var(--color-ink-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-top: 8px;
  margin-bottom: 56px;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Card */
.build-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-md), border-color var(--transition-md);
}

.build-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent-border);
}

.build-card-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 16px;
}

.build-card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.build-card-title {
  font-size: 24px;
  color: var(--color-ink-secondary);
  margin-bottom: 4px;
}

.build-card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-muted);
  margin-bottom: 16px;
}

.build-card-desc {
  font-size: 15px;
  color: var(--color-ink-tertiary);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Voice waveform */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
  margin-bottom: 20px;
  padding: 4px 0;
}

.voice-bar {
  flex: 1;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.7;
  animation: voice-anim 1.2s ease-in-out infinite;
}

.voice-bar:nth-child(1)  { animation-delay: 0s;     height: 40%; }
.voice-bar:nth-child(2)  { animation-delay: 0.1s;   height: 65%; }
.voice-bar:nth-child(3)  { animation-delay: 0.2s;   height: 85%; }
.voice-bar:nth-child(4)  { animation-delay: 0.3s;   height: 100%;}
.voice-bar:nth-child(5)  { animation-delay: 0.4s;   height: 75%; }
.voice-bar:nth-child(6)  { animation-delay: 0.5s;   height: 55%; }
.voice-bar:nth-child(7)  { animation-delay: 0.6s;   height: 90%; }
.voice-bar:nth-child(8)  { animation-delay: 0.5s;   height: 70%; }
.voice-bar:nth-child(9)  { animation-delay: 0.4s;   height: 50%; }
.voice-bar:nth-child(10) { animation-delay: 0.3s;   height: 80%; }
.voice-bar:nth-child(11) { animation-delay: 0.2s;   height: 95%; }
.voice-bar:nth-child(12) { animation-delay: 0.1s;   height: 60%; }
.voice-bar:nth-child(13) { animation-delay: 0s;     height: 40%; }
.voice-bar:nth-child(14) { animation-delay: 0.1s;   height: 25%; }
.voice-bar:nth-child(15) { animation-delay: 0.2s;   height: 45%; }

@keyframes voice-anim {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 0.9; }
}

/* AI pipeline */
.ai-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pipeline-node {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pipeline-step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-ink-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pipeline-connector {
  flex: 1;
  height: 1px;
  background: var(--color-accent-border);
  min-width: 12px;
  margin-bottom: 22px;
  position: relative;
}

.pipeline-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 5px solid var(--color-accent-border);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* Stack badges */
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.stack-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
}

/* Dashboard mock */
.dashboard-mock {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 13px;
}

.dashboard-header {
  background: var(--color-bg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.dashboard-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink-muted);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.dashboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-row:last-child { border-bottom: none; }

.dashboard-row-name {
  flex: 1;
  font-size: 12px;
  color: var(--color-ink-tertiary);
  font-weight: 500;
}

.dashboard-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
}

.badge-active   { background: rgba(52,211,153,0.12); color: #059669; }
.badge-building { background: rgba(251,191,36,0.12);  color: #D97706; }
.badge-planned  { background: var(--color-accent-subtle); color: var(--color-accent); }

.dashboard-value {
  font-size: 11px;
  color: var(--color-ink-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* BUILD stages */
.build-stages {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.build-stage {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.build-stage.highlighted {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent-border);
}

.build-stage-letter {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink-secondary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.build-stage.highlighted .build-stage-letter { color: var(--color-accent); }

.build-stage-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-ink-muted);
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 768px) {
  .build-grid { grid-template-columns: 1fr; }
}
