:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: #555;
  --line: #e7e7e7;
  --accent: #0a0a0a;
  --code-bg: #f6f6f6;
  --code-border: #e0e0e0;
  --cert-pending: #f59e0b;
  --cert-awaiting: #94a3b8;
  --cert-verified: #10b981;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f5;
    --fg-muted: #a0a0a0;
    --line: #1f1f1f;
    --accent: #f5f5f5;
    --code-bg: #141414;
    --code-border: #262626;
    --cert-pending: #fbbf24;
    --cert-awaiting: #6b7280;
    --cert-verified: #34d399;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
}

.logo { width: 56px; height: 56px; margin-bottom: 2.5rem; }
.logo svg { width: 100%; height: 100%; display: block; }

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin: 0 0 2.5rem;
  max-width: 36em;
}

.install {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.install code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.install .copy {
  background: transparent;
  border: 1px solid var(--code-border);
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}
.install .copy:hover { background: var(--bg); }
.install .copy.copied { color: var(--cert-verified); border-color: var(--cert-verified); }

/* Platform download cards — minimal, two columns, icon over name. */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}
@media (min-width: 600px) {
  .platforms { grid-template-columns: repeat(4, 1fr); }
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.platform:hover:not(.unavailable) {
  border-color: var(--fg);
  transform: translateY(-1px);
}
.platform.unavailable { opacity: 0.4; cursor: default; }
.os-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--fg);
}
.os-icon svg { width: 100%; height: 100%; display: block; }
.platform-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-top: 0.15rem;
}
.platform-meta {
  color: var(--fg-muted);
  font-size: 0.8rem;
  line-height: 1.3;
}
.platforms-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 0 0 3rem;
}
.platforms-note a { color: inherit; }

section {
  margin-top: 3rem;
}
section h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 0.75rem;
}
section p { margin: 0 0 1rem; max-width: 36em; }
section p.muted { color: var(--fg-muted); font-size: 0.9rem; }
section ul { margin: 0 0 1rem; padding-left: 1.25rem; }
section li { margin-bottom: 0.4rem; }
section pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
section pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: transparent;
  padding: 0;
}
code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

footer {
  margin-top: 6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
footer a { color: inherit; }
