:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #f4f4f5;
  --muted: #9ca3af;
  --line: #27272a;
  --accent: #f97316;
  --accent-soft: #fb923c;
  --good: #22c55e;
  --bad: #ef4444;
  --warn: #eab308;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }

.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px;
  text-align: center;
  font-size: 12.5px;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.topbar-link:hover { color: var(--accent); }
.topbar-link:hover svg { color: var(--accent); }
.topbar-link svg { vertical-align: middle; color: var(--muted); transition: color 0.15s; }
.topbar-arrow { opacity: 0.7; }
body {
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed transparent; }
a:hover { border-bottom-color: var(--accent); }

main { max-width: 880px; margin: 0 auto; padding: 20px 28px; }
section { padding: 44px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: none; }
@media (max-width: 600px) {
  main { padding: 16px 18px; }
  section { padding: 36px 0; }
}

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6vw, 60px); margin: 0 0 18px; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.6vw, 32px); margin: 0 0 14px; }
h3 { font-size: 18px; margin: 22px 0 8px; }
p.lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; color: var(--fg); }

p { color: #e4e4e7; margin: 0 0 14px; }
p.muted { color: var(--muted); }
small, .small { font-size: 14px; color: var(--muted); }

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 28px;
}
.hero .mark {
  width: 84px;
  height: 84px;
  color: var(--accent);
  margin-bottom: 22px;
}
@media (max-width: 600px) {
  .hero { padding-top: 16px; }
  .hero .mark { width: 68px; height: 68px; margin-bottom: 18px; }
}
.hero h1 .accent { color: var(--accent); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: transform 0.05s;
}
.btn:hover { border-bottom-color: var(--accent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--fg); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; }
.kpis .kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpis .kpi b { display: block; font-size: 22px; color: var(--accent); }
.kpis .kpi span { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } }

.verbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 0; }
.verbs .verb {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--fg);
}
.verbs .verb.green { border-color: rgba(34, 197, 94, 0.4); color: var(--good); }
.verbs .verb.yellow { border-color: rgba(234, 179, 8, 0.4); color: var(--warn); }
.verbs .verb.red { border-color: rgba(239, 68, 68, 0.4); color: var(--bad); }
@media (max-width: 560px) { .verbs { grid-template-columns: 1fr 1fr; } }

pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--fg);
}
code { font: 0.92em ui-monospace, monospace; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; }
pre code { background: transparent; padding: 0; }

ul { padding-left: 22px; }
ul li { margin-bottom: 6px; }

.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.deliverables .d {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 16px;
}
.deliverables .d h3 { margin: 0 0 6px; font-size: 16px; }
.deliverables .d p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.deliverables .d a { font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .deliverables { grid-template-columns: 1fr; } }

.ctas.three .btn { padding: 14px 18px; font-size: 16px; }

/* Hero action cards — the primary CTAs immediately under the headline. */
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 8px;
}
.hero-actions .action-card {
  display: block;
  padding: 22px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.05s, border-color 0.15s;
}
.hero-actions .action-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.hero-actions .action-card.primary { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.hero-actions .action-card.primary:hover { border-color: var(--fg); }
.hero-actions .action-card.ghost { background: var(--bg-2); color: var(--fg); }
.hero-actions .action-title { display: block; font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.hero-actions .action-sub { display: block; font-size: 14px; opacity: 0.9; line-height: 1.4; }
.hero-actions .action-card.primary .action-sub { color: rgba(10,10,10,0.75); }
.hero-actions .action-card.ghost .action-sub { color: var(--muted); }
@media (max-width: 640px) { .hero-actions { grid-template-columns: 1fr; } }

.tertiary-links { margin-top: 14px; font-size: 14px; color: var(--muted); }
.tertiary-links a { color: var(--muted); border-bottom: 1px dashed transparent; }
.tertiary-links a:hover { color: var(--fg); }

/* Direct-download grid — inline platform buttons that link to GitHub Release assets. */
.download-section { padding-top: 36px; padding-bottom: 36px; }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.download-btn {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s, transform 0.05s, background 0.15s;
}
.download-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.download-btn.recommended { border-color: var(--accent); background: rgba(249, 115, 22, 0.06); }
.download-btn.recommended::after {
  content: "recommended for you";
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.download-btn .download-platform { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.download-btn .download-detail { color: var(--muted); font-size: 13px; }

/* Three-step quick-start — the action-first explainer right under the hero. */
.quickstart { padding-top: 56px; padding-bottom: 56px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px 24px;
}
.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 0 0 4px var(--bg);
}
.step h3 {
  margin: 6px 0 12px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #e4e4e7;
}
.step p.muted { color: var(--muted); }
.step .btn { margin-top: 4px; }
.step-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: var(--accent);
  color: #0a0a0a;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.how-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 18px;
}
.how-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent); }
.how-card p { margin: 0; color: #e4e4e7; font-size: 15px; }
@media (max-width: 560px) { .how-grid { grid-template-columns: 1fr; } }

.mirror-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 8px; }
.mirror {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mirror.placeholder { border-style: dashed; }
.mirror .mirror-name { font-weight: 600; }
.mirror .mirror-host { font-size: 13px; }
.mirror .btn { align-self: flex-start; }
.btn.small { padding: 8px 14px; font-size: 14px; }
@media (max-width: 560px) { .mirror-list { grid-template-columns: 1fr; } }

.deploys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 8px; }
.deploy-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.05s;
}
.deploy-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.deploy-card .deploy-name { font-weight: 700; color: var(--accent); margin-bottom: 6px; font-size: 17px; }
.deploy-card .deploy-detail { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .deploys { grid-template-columns: 1fr; } }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .mark { width: 28px; height: 28px; color: var(--accent); vertical-align: middle; }

.callout {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 18px 0;
  color: #e4e4e7;
}

.skip { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 14px; }
.skip a { color: var(--muted); border-bottom-color: transparent; }
.skip a:hover { color: var(--fg); }
