/* Homepage 3D preview band. Uses the site tokens, not pair.css. */
.nav-links { gap: 14px; }
.nav-links a { font-size: 13.5px; white-space: nowrap; }
.home-preview {
  padding: 64px 0;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(760px 340px at 82% 0%, rgba(45, 212, 191, .16), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.home-preview::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(13, 148, 136, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(13, 148, 136, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(900px 430px at 16% 0%, #000 14%, transparent 76%);
  mask-image: radial-gradient(900px 430px at 16% 0%, #000 14%, transparent 76%);
}
.home-preview .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 38px;
  align-items: center;
}
.hp-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700);
  padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255,255,255,.72);
}
.hp-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }
.home-preview h2 { margin: 16px 0 0; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: -.025em; color: var(--ink, #042f2e); }
.home-preview p { margin: 12px 0 0; max-width: 53ch; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.hp-formats {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.hp-formats-label {
  display: block;
  font: 600 10.5px/1 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hp-format-list {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hp-format-list li {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,.8);
  font: 600 10.5px/1.25 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: var(--ink, #042f2e);
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.hp-format-list li:hover,
.hp-format-list li:focus-within {
  border-color: rgba(13,148,136,.55);
  background: #fff;
}
.hp-format-list a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hp-format-list a:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 3px;
}
.hp-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.hp-list li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.hp-list li::before { content: "✓"; color: var(--teal-600); font-weight: 700; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hp-actions .btn { min-height: 44px; padding: 0 12px; font-size: 13px; }
.hp-actions .btn-ghost { background: rgba(255,255,255,.7); }
.hp-stage {
  position: relative;
  min-height: 380px;
  height: clamp(380px, 48vh, 500px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #eef7f4;
  box-shadow: 0 24px 60px -28px rgba(6, 78, 59, .35);
}
.hp-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hp-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
  outline: none;
}
.hp-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px; border-radius: 8px;
  border: 1px solid rgba(13,148,136,.24); background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  font: 500 11px/1 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: var(--teal-700); letter-spacing: .06em; text-transform: uppercase;
}
.hp-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }
.hp-state {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 18px 18px; text-align: left; pointer-events: none;
  background: linear-gradient(180deg, rgba(238,247,244,0), rgba(6,78,59,.06));
}
.hp-state span {
  display: inline-block; padding: 11px 14px; border-radius: 11px;
  border: 1px solid rgba(13,148,136,.24); background: rgba(255,255,255,.9);
  box-shadow: 0 10px 26px -16px rgba(6,78,59,.35);
  font: 600 12.5px/1.4 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: var(--teal-700);
}
.hp-stage.is-live .hp-state, .hp-stage.is-live img { display: none; }
.hp-stage.is-live .hp-tag::before { background: #f59e0b; }

@media (max-width: 980px) {
  .home-preview .container { grid-template-columns: 1fr; gap: 26px; }
  .home-preview .hp-stage { order: 2; }
}
@media (max-width: 640px) {
  .home-preview { padding: 42px 0; }
  .hp-stage { min-height: 300px; height: 46vh; max-height: 400px; }
  .hp-actions .btn { flex: 1 1 auto; }
}
