/*
  Homepage — signature is the compile visualization in the hero: one YAML
  spec (--pa-forge/amber) fanning into five real runtime targets
  (--pa-signal/blue). Everything else on this page stays quiet so that one
  moment reads as the memorable thing, not a wall of animated pieces.
*/

.hp { max-width: 100%; }
.md-typeset .hp h1,
.md-typeset .hp h2,
.md-typeset .hp h3 { border: none; }

.hp-wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hp-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--pa-line);
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--md-code-font);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pa-forge);
  margin-bottom: 1.25rem;
}
.hp-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pa-forge);
  display: inline-block;
}

.hp-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hp-hero__lead {
  font-family: var(--md-text-font);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  max-width: 46rem;
  margin: 0 0 2rem;
}

.hp-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 3.5rem;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--md-code-font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.hp-btn:hover { transform: translateY(-1px); }
.hp .hp-btn--primary { background: var(--pa-signal); color: #05070c; }
.hp .hp-btn--primary:hover { opacity: 0.9; }
.hp .hp-btn--outline {
  border: 1px solid var(--pa-line);
  color: var(--md-default-fg-color);
}
.hp-btn--outline:hover { border-color: var(--pa-signal); }

.hp-install {
  font-family: var(--md-code-font);
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--pa-line);
  border-radius: 6px;
}
.hp-install code { background: none; }

/* ── Compile visualization (signature element) ───────────────────────── */

.hp-compile {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 0.9fr);
  align-items: center;
  gap: 1.5rem;
}

.hp-source {
  border: 1px solid var(--pa-forge);
  border-radius: 8px;
  background: var(--pa-source-tint);
  overflow: hidden;
}
.hp-source__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--pa-line);
  font-family: var(--md-code-font);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--pa-forge);
}
.hp-source__bar::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pa-forge);
}
.hp-source pre {
  margin: 0;
  padding: 1rem;
  background: transparent;
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-x: auto;
}
.hp-source code { background: none; }

.hp-compile__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--md-default-fg-color--lighter);
  font-family: var(--md-code-font);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hp-compile__arrow svg { width: 28px; height: 28px; color: var(--pa-signal); }

.hp-targets {
  display: grid;
  gap: 0.6rem;
}
.hp-target {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  border: 1px solid var(--pa-line);
  background: var(--pa-target-tint);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
}
.hp-target__name {
  font-family: var(--md-code-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pa-signal);
}
.hp-target__code {
  grid-column: 1 / -1;
  font-family: var(--md-code-font);
  font-size: 0.68rem;
  color: var(--md-default-fg-color--light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 76rem) {
  .hp-compile { grid-template-columns: 1fr; }
  .hp-compile__arrow { flex-direction: row; transform: rotate(90deg); width: fit-content; margin: 0 auto; }
}

@media (max-width: 30rem) {
  .hp-source pre { font-size: 0.68rem; padding: 0.85rem; }
}

/* ── Pipeline (four pillars, verbs not numbers) ──────────────────────── */

.hp-section { padding: 4rem 0; border-bottom: 1px solid var(--pa-line); }
.hp-section__kicker {
  font-family: var(--md-code-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--lighter);
  margin: 0 0 0.5rem;
}
.hp-section h2 {
  font-size: 1.75rem;
  margin: 0 0 2.5rem;
  max-width: 32ch;
}

.hp-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hp-pipe {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-right: 1px dashed var(--pa-line);
}
.hp-pipe:last-child { border-right: none; padding-right: 0; }
.hp-pipe__verb {
  font-family: var(--md-code-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pa-signal);
  margin-bottom: 0.5rem;
}
.hp-pipe h3 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.hp-pipe p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
  margin: 0 0 0.9rem;
}
.hp-pipe__pkg {
  font-family: var(--md-code-font);
  font-size: 0.68rem;
  color: var(--md-default-fg-color--lighter);
  display: block;
  margin-bottom: 0.7rem;
}
.hp-pipe a {
  font-family: var(--md-code-font);
  font-size: 0.78rem;
  text-decoration: none;
}

@media (max-width: 60rem) {
  .hp-pipeline { grid-template-columns: 1fr 1fr; }
  .hp-pipe:nth-child(2) { border-right: none; }
}
@media (max-width: 34rem) {
  .hp-pipeline { grid-template-columns: 1fr; }
  .hp-pipe { border-right: none !important; border-bottom: 1px dashed var(--pa-line); padding: 1.5rem 0; }
  .hp-pipe:last-child { border-bottom: none; }
}

/* ── Two-column feature list (What you get) ──────────────────────────── */

.hp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.hp-feature { padding-top: 0.9rem; border-top: 1px solid var(--pa-line); margin-bottom: 1.75rem; }
.hp-feature h4 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.hp-feature p { font-size: 0.85rem; line-height: 1.55; color: var(--md-default-fg-color--light); margin: 0; }
.hp-feature code { font-size: 0.78em; }

@media (max-width: 50rem) {
  .hp-grid2 { grid-template-columns: 1fr; }
}

/* ── Quick start ──────────────────────────────────────────────────────── */

.hp-quickstart pre {
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
}

/* ── Where to start ───────────────────────────────────────────────────── */

.hp-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.hp .hp-path {
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease;
}
.hp-path:hover { border-color: var(--pa-signal); }
.hp-path__label {
  font-family: var(--md-code-font);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pa-signal);
  margin-bottom: 0.6rem;
}
.hp-path h4 { font-size: 1rem; margin: 0 0 0.4rem; }
.hp-path p { font-size: 0.83rem; color: var(--md-default-fg-color--light); margin: 0; }

@media (max-width: 50rem) {
  .hp-paths { grid-template-columns: 1fr; }
}

/* ── Motion: one deliberate reveal, respects reduced-motion ──────────── */

.hp-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hp-reveal.hp-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hp-reveal { opacity: 1; transform: none; transition: none; }
  .hp-btn:hover { transform: none; }
}
