/* The home page (/): hero, terminal, bands, stepper, registry strip, recent list, goals. */

.cmd-xl { background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 8px 8px 8px 16px; }
.cmd-xl code { font-weight: 600; }

.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(60rem 26rem at 78% -10%, var(--glow-a), transparent 70%), radial-gradient(40rem 24rem at 8% 10%, var(--glow-b), transparent 70%), var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 44px 44px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 0.875rem; font-weight: 600; }
.eyebrow a { text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  color: var(--accent-strong); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.display { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 820; letter-spacing: -0.05em; line-height: 1; margin: 0 0 22px; }
.display em { font-style: normal; background: linear-gradient(95deg, var(--accent) 10%, var(--magenta) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-bottom: 28px; }
.hero-search { max-width: 38rem; }
.hero-search > p { margin: 12px 0 0; }
.install-hero { margin-top: 36px; max-width: 40rem; }
.install-label { margin: 0 0 10px; font-size: 0.9375rem; }
.installer-planned { margin: 10px 0 0; font-size: 0.8125rem; color: var(--fg-muted); }
.installer-planned .tag { border: 1px dashed var(--border-strong); border-radius: 999px; padding: 2px 6px; font-size: 0.6875rem; }
.note { margin: 10px 0 0; font-size: 0.8125rem; color: var(--fg-muted); }

.term {
  border-radius: 16px; overflow: hidden; background: #0f0e13; color: #e9e7ee; border: 1px solid rgb(255 255 255 / 8%);
  box-shadow: var(--shadow-lg); transform: rotate(-1deg);
}
.term-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17151d; border-bottom: 1px solid rgb(255 255 255 / 7%); font-family: var(--mono); font-size: 0.75rem; color: #b3aec0; }
.dots { width: 11px; height: 11px; border-radius: 50%; background: #f87171; box-shadow: 18px 0 #fbbf24, 36px 0 #4ade80; margin-right: 40px; }
.term pre { margin: 0; padding: 20px 22px 26px; background: none; border: 0; border-radius: 0; line-height: 1.9; color: inherit; }
.term .p { color: #fb923c; }

.band { padding: 64px 0; }
.band + .band { border-top: 1px solid var(--border); }
.band h2 { font-size: 1.75rem; letter-spacing: -0.03em; margin: 0 0 28px; }
.kicker { margin: 0 0 8px; font-size: 0.75rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-strong); }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.stepper li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stepper .num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 800; color: #ffffff; background: linear-gradient(140deg, #f97316, #db2777); box-shadow: 0 0 0 6px var(--bg);
}
.stepper h3 { margin: 0; }
.stepper p { margin: 0; color: var(--fg-2); font-size: 0.9375rem; }
.stepper .cmd { margin-top: auto; }
@media (min-width: 56rem) {
  .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .stepper::before { content: ""; position: absolute; top: 17px; left: 18px; right: 18px; height: 2px; background: linear-gradient(90deg, #f97316, #db2777 60%, var(--border)); }
}

.strip {
  color: #f6f3fb; border-top: 0 !important;
  background: radial-gradient(50rem 20rem at 85% 0%, rgb(219 39 119 / 35%), transparent 70%), radial-gradient(40rem 22rem at 5% 100%, rgb(249 115 22 / 30%), transparent 70%), #17131f;
}
.strip .kicker { color: #fdba74; }
.strip h2 { color: #ffffff; }
.strip a { color: #c7d7ff; }
.strip p { color: #ddd7e8; }
.strip code { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 14%); color: #ffffff; }
.strip-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 64rem) { .strip-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.strip-registry > p { max-width: 34rem; }
.recent-slot { min-height: 9rem; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recent li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 14px 16px;
  border-radius: 14px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%);
}
.recent .glyph { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; font-size: 0.8rem; }
.recent-head { margin: 0; min-width: 0; }
.recent-name { font-family: var(--mono); font-weight: 700; color: #ffffff !important; text-decoration: none; }
.recent-name:hover { text-decoration: underline; }
.recent-ver { font-family: var(--mono); font-size: 0.8125rem; color: #b9b2c6; margin-left: 4px; }
.recent-sum { grid-column: 2; margin: 0; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-when { grid-row: 1 / span 2; grid-column: 3; margin: 0; font-size: 0.8125rem; color: #b9b2c6; white-space: nowrap; }
.recent-note { margin: 0; padding: 18px; border-radius: 14px; border: 1px dashed rgb(255 255 255 / 22%); }

.home-wide .wrap > p, .home-wide .wrap > pre { max-width: 52rem; }
.status { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.band-planned { background: var(--bg-soft); }
.goals { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.goals li { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border-strong); }
.goals h3 { margin: 0 0 8px; }
.goals p { margin: 0; color: var(--fg-2); }

@media (max-width: 40rem) {
  .cmd-xl code { font-size: 0.8125rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .hero-grid { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .term { transform: none; }
  .band { padding: 48px 0; }
  .recent li { grid-template-columns: auto minmax(0, 1fr); }
  .recent-when { grid-row: auto; grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .term { transform: none; }
}

@media (forced-colors: active) {
  .stepper .num { forced-color-adjust: none; }
  .display em { color: CanvasText; background: none; }
}
