:root {
  --bg: #f7f8fb; --surface: #ffffff; --text: #141821; --muted: #5d6676; --line: #e3e7ee;
  --accent: #2f6df6; --accent-ink: #ffffff; --accent-soft: #e8efff;
  --ok: #1f9d55; --ok-soft: #e3f6ea; --warn: #b7791f; --warn-soft: #fdf3e1; --bad: #c53030; --bad-soft: #fde8e8;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #161a21; --text: #e8ebf1; --muted: #98a2b3; --line: #262b35;
    --accent: #4d84ff; --accent-soft: #1a2540; --ok: #4ccf7f; --ok-soft: #13291d; --warn: #f0b955; --warn-soft: #2d2412;
    --bad: #ff8080; --bad-soft: #2e1515; --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav .link { text-decoration: none; font-weight: 500; padding: 6px 8px; }
.who { color: var(--muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 15px; border-radius: 9px; padding: 10px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); padding: 7px 12px; font-size: 14px; border-color: var(--line); }
.btn-mini { padding: 3px 10px; font-size: 13px; background: var(--surface); color: var(--text); border-color: var(--line); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.hero { padding: 72px 16px 40px; max-width: 760px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hl { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-bottom: 72px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 14px; font-size: 19px; }
.card.center { text-align: center; margin-top: 64px; }
.card.center p { color: var(--muted); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 18px; }
.dash-head h1 { font-size: 28px; margin: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; overflow-wrap: anywhere; }
.pill { font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--line); color: var(--muted); text-transform: capitalize; }
.pill[data-s=running] { background: var(--ok-soft); color: var(--ok); }
.pill[data-s=degraded] { background: var(--warn-soft); color: var(--warn); }
.pill[data-s=stopped], .pill[data-s=not-installed], .pill[data-s=error] { background: var(--bad-soft); color: var(--bad); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 20px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.steps { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.steps li::marker { font-weight: 700; color: var(--accent); }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.copylist { margin: 10px 0 4px; display: grid; gap: 8px; }
.copylist > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.copylist dt { color: var(--muted); font-size: 14px; }
.copylist dd { margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; }
.copylist code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; overflow-wrap: anywhere; min-width: 0; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 9px; font-size: 14px; margin: 0; }
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; color: var(--muted); }

@media (max-width: 560px) {
  .top-nav .link { display: none; }
  .who { display: none !important; }
  .hero { padding-top: 44px; }
  .copylist > div { grid-template-columns: 1fr; gap: 4px; }
  .dash-head h1 { font-size: 23px; }
}
