#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

.stats-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat strong {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--text);
}

.stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero { padding: 52px 0 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1px 1.3fr;
  gap: 0 48px;
  align-items: start;
}

.hero-divider {
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  width: 1px;
  height: 100%;
  min-height: 420px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.lede {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 16px;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-pill {
  background: transparent;
  border: none;
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.page-pill:hover { color: var(--text); }

.page-pill.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.preview-browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

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

.preview-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 10px;
}

#preview-img {
  width: 100%;
  height: auto;
  display: none;
}

.preview-placeholder {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
}

.ph-icon { font-size: 1.7rem; opacity: 0.6; }
.ph-label {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--text);
}
.ph-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.rigor {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.rigor-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 32px;
}

.rigor-title span { color: var(--accent); }

.rigor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.rigor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.rigor-icon { font-size: 1.6rem; margin-bottom: 12px; }

.rigor-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.rigor-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 1000px) {
  .rigor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-divider { display: none; }
  .hero { padding: 36px 0 48px; }
}

@media (max-width: 600px) {
  .rigor-grid { grid-template-columns: 1fr; }
  .stats-strip .wrap { justify-content: flex-start; }
}

/* ── Visual stats (in-hero) ─────────────────────────────────────── */

.vstats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
}

.vstat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.vstat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.vstat-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
}

@media (max-width: 600px) {
  .vstats { gap: 18px; padding: 14px 18px; }
  .vstat-num { font-size: 1.7rem; }
}