.hero {
  padding: 76px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: var(--step-3);
  max-width: 12ch;
}
.hero .lede {
  color: var(--text-1);
  font-size: 1.08rem;
  max-width: 34ch;
  margin: 18px 0 28px;
}
.hero .cta-row { display: flex; gap: 12px; align-items: center; }
.hero .cta-row .note { color: var(--text-2); font-size: 0.82rem; }

/* the "live demo" panel: a tiny code file actually rendering */
.demo-frame {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.demo-frame .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}
.demo-frame .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.demo-frame .dot.live { background: var(--good); }
.demo-frame .split { display: grid; grid-template-columns: 1fr 1fr; }
.demo-frame .code {
  margin: 0;
  padding: 16px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-1);
  border-right: 1px solid var(--line);
  overflow: hidden;
  white-space: pre;
}
.demo-frame .code .tag { color: var(--wire); }
.demo-frame .code .str { color: var(--amber); }
.demo-frame iframe {
  width: 100%; height: 100%; border: 0;
  background: #fff;
  min-height: 220px;
}

.section-head { max-width: 46ch; margin-bottom: 34px; }
.section-head h2 { font-size: var(--step-2); }
.section-head p { color: var(--text-1); margin-top: 10px; }

/* ---------- stat bar ---------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { background: var(--ink-2); padding: 22px 24px; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-0);
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 4px;
}

.features {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--ink-1);
  padding: 26px 24px;
}
.feature h3 {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--text-0);
  margin-bottom: 10px;
}
.feature p { color: var(--text-1); font-size: 0.92rem; }
.feature-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-2);
}
.feature-meta span {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--text-1);
}

/* ---------- runtime / audit preview ---------- */
.runtime {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.runtime-copy h2 { font-size: var(--step-2); max-width: 20ch; }
.runtime-copy p { color: var(--text-1); margin-top: 14px; max-width: 46ch; }
.runtime-chips { display: grid; gap: 10px; margin-top: 22px; }
.runtime-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--ink-2);
}
.runtime-chip .chip-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--amber);
  font-weight: 600;
}
.runtime-chip p { margin: 6px 0 0; font-size: 0.85rem; color: var(--text-1); max-width: none; }

.runtime-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.runtime-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--text-0);
  margin-bottom: 18px;
}
.runtime-card-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.badge-pass {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--good);
  border: 1px solid var(--good);
  border-radius: 999px;
  padding: 2px 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.audit-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--text-1);
  margin-bottom: 6px;
}
.audit-track { height: 6px; border-radius: 999px; background: var(--ink-3); overflow: hidden; margin-bottom: 16px; }
.audit-fill { height: 100%; background: var(--good); border-radius: 999px; }
.runtime-card-foot {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  margin: 4px 0 0;
}

.steps {
  padding: 64px 0 80px;
  border-top: 1px solid var(--line);
}
.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  border-left: 2px solid var(--amber);
  padding-left: 18px;
}
.step .num {
  font-family: var(--f-mono);
  color: var(--amber);
  font-size: 0.85rem;
}
.step h4 { margin: 6px 0 8px; font-size: 1.05rem; }
.step p { color: var(--text-1); font-size: 0.9rem; }

.cta-band {
  padding: 48px 40px;
  margin: 0 0 64px;
  border-radius: var(--radius-lg);
  background: var(--ink-3);
  border: 1px solid var(--line);
  text-align: left;
}
.cta-band h2 { font-size: var(--step-2); margin-top: 8px; }
.cta-band p { color: var(--text-1); margin: 10px 0 20px; max-width: 50ch; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-row { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .runtime { grid-template-columns: 1fr; }
  .demo-frame .split { grid-template-columns: 1fr; }
  .demo-frame .code { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: 1fr; }
}
