:root {
  color-scheme: dark;
  --bg: #2b3038; --panel: #343a43; --panel-2: #3c434d;
  --line: #4a515c; --tx: #f1f3f5; --tx-2: #d5dae0; --tx-3: #aab2bd;
  --ok: #6fd9a4; --ok-dim: #1f4d3a;
  --warn: #ffd27a; --warn-dim: #574216;
  --bad: #ffa59b; --bad-dim: #582629;
  --idle-dim: #474e59;
  --accent: #7fb2ff; --on-accent: #16202c;
  --sel: #4a5462;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .9em; background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--tx); }
.logo svg { width: 26px; height: 26px; color: var(--ok); }
nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav a { color: var(--tx-2); }
.btn { display: inline-block; padding: 10px 18px; border-radius: 9px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); color: var(--tx); background: transparent; }
.btn:hover { text-decoration: none; background: var(--panel-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
nav .btn { padding: 7px 14px; }
nav a[aria-current="page"] { color: var(--tx); font-weight: 600; }
nav a.btn[aria-current="page"] { background: var(--panel-2); }

/* inner pages */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font-size: 40px; margin: 0 0 12px; }
.page-head .lead { margin: 0; max-width: 760px; }
.plain { border-top: 0; padding-top: 32px; }
.dl-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.dl-box .meta { color: var(--tx-3); font-size: 14px; }
.sum { font-family: var(--mono); font-size: 12.5px; color: var(--tx-2); overflow-wrap: anywhere; }
.req { margin: 0; padding-left: 20px; color: var(--tx-2); }
.req li { margin: 6px 0; }
.band { text-align: center; }
.band .cta { justify-content: center; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 64px; }
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-text .cta { justify-content: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--ok); letter-spacing: .3px; }
h1 { font-size: 46px; line-height: 1.1; letter-spacing: -1px; margin: 12px 0 18px; }
.lead { font-size: 19px; color: var(--tx-2); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--tx-3); margin-top: 14px; }

/* real dashboard screenshots */
.shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.shot-wrap { margin-top: 44px; }
.caption { color: var(--tx-3); font-size: 14px; text-align: center; margin-top: 12px; }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 12px; }
.sub { color: var(--tx-2); font-size: 18px; max-width: 720px; margin: 0 0 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 .steps { margin-top: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--tx-2); font-size: 15px; }
.num { font-family: var(--mono); color: var(--accent); font-size: 14px; margin-bottom: 8px; }

.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.problem .card h3 { display: flex; gap: 8px; align-items: center; }
.bad-h { color: var(--bad); } .ok-h { color: var(--ok); }
.problem ul { margin: 10px 0 0; padding-left: 20px; color: var(--tx-2); font-size: 15px; }
.problem li { margin: 4px 0; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.check { display: flex; gap: 12px; padding: 10px 0; }
.check .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-dim); color: var(--ok);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.check b { display: block; }
.check span { color: var(--tx-2); font-size: 15px; }

.private > * { min-width: 0; }
.private { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.term { background: #1e2228; color: #d5dae0; border-radius: 12px; padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.term div { white-space: pre; }
.term .c { color: #7d8793; }
.term .p { color: #6fd9a4; }

/* open-source agent */
.agent { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: start; }
.agent > * { min-width: 0; }
.agent .btn { max-width: 100%; overflow-wrap: anywhere; }
.agent h3 { margin: 0 0 10px; font-size: 19px; }
.agent p { color: var(--tx-2); margin: 0 0 14px; }
.rel { width: 100%; border-collapse: collapse; font-size: 14px; }
.rel th { text-align: left; color: var(--tx-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rel td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--tx-2); }
.rel td:first-child { font-family: var(--mono); color: var(--tx); white-space: nowrap; }
.rel td:nth-child(2) { white-space: nowrap; }
.rel .dl { white-space: nowrap; }
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: st; margin: 0 0 12px; padding-left: 34px; position: relative; color: var(--tx-2); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--panel-2); color: var(--accent); font: 600 12px/22px var(--mono); text-align: center; }
.steps .term { margin-top: 8px; font-size: 12.5px; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; display: flex; flex-direction: column; }
.price.hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price h3 { margin: 0; font-size: 17px; }
.price .amt { font-size: 32px; font-weight: 700; margin: 10px 0 0; letter-spacing: -.5px; }
.price .per { color: var(--tx-3); font-size: 13px; min-height: 20px; }
.price .hosts { margin: 14px 0; font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--tx-2); flex: 1; }
.price li { padding: 3px 0; }
.price li::before { content: "✓ "; color: var(--ok); }
.price .btn { text-align: center; font-size: 14px; }
.trial { margin-top: 22px; padding: 16px 20px; border-radius: 12px; background: var(--panel); border: 1px dashed var(--line); color: var(--tx-2); }

/* faq */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--tx-2); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--tx-3); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; flex-wrap: wrap; gap: 10px 18px; }

@media (max-width: 960px) {
  .agent { grid-template-columns: 1fr; }
  .private { grid-template-columns: 1fr; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .grid3, .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  header nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
  .page-head h1 { font-size: 32px; }
  .page-head { padding-top: 32px; }
  h1 { font-size: 34px; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .problem, .checks, .prices { grid-template-columns: 1fr; }
  footer nav { margin-left: 0; }
  .rel thead { display: none; }
  .rel tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rel td { display: inline; padding: 0; border: 0; }
  .rel td:nth-child(2) { color: var(--tx-3); margin-left: 8px; }
  .rel td:nth-child(3) { display: block; margin: 4px 0; }
  .rel td.dl { display: block; }
}

/* activation page */
.act-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.drop { display: block; position: relative; border: 2px dashed var(--line); border-radius: 12px; padding: 28px 18px; text-align: center; color: var(--tx-2); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--panel-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.act-form .btn { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 600; }
.act-form .btn:disabled { opacity: .6; cursor: wait; }
.act-msg { margin: 0; font-size: 14px; min-height: 20px; color: var(--tx-2); }
.act-msg.bad { color: var(--bad); } .act-msg.ok { color: var(--ok); }

/* legal pages */
.legal > * { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--tx-2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.note { background: var(--warn-dim); color: var(--warn) !important; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.fine code { overflow-wrap: anywhere; }
