:root {
  --background: #f6f8fc;
  --panel: #ffffff;
  --text: #17202e;
  --muted: #5b6577;
  --accent: #2a63d6;
  --accent-text: #ffffff;
  --line: #dde3ee;
  --terminal: #111827;
  --terminal-text: #e5e9f0;
  --terminal-muted: #8b95a7;
  --notice: #fff6e0;
  --notice-line: #f0d68a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1521;
    --panel: #171f2e;
    --text: #eef2f8;
    --muted: #9aa5b8;
    --accent: #4d86ee;
    --line: #263042;
    --terminal: #0a0f18;
    --notice: #2a2414;
    --notice-line: #5c4a1c;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 16px 48px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero { text-align: center; }
img.icon { width: 160px; height: 160px; display: block; margin: 0 auto 8px; }
h1 { font-size: 40px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
p.lead { font-size: 21px; color: var(--muted); margin: 8px 0 32px; }
a.download {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
}
a.download:hover { filter: brightness(1.08); }
.hero .command { text-align: left; }
p.small { color: var(--muted); font-size: 15px; margin: 12px 0 48px; }

.notice {
  background: var(--notice);
  border: 1px solid var(--notice-line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.feature h3 { font-size: 16px; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
section > * { margin: 0 0 12px; }
section > :last-child { margin-bottom: 0; }
h2 { font-size: 19px; margin: 0 0 12px; }
section > h3 { font-size: 16px; margin: 20px 0 4px; }
section > h2 + h3 { margin-top: 0; }
ol, ul { padding-left: 22px; }
li { margin-bottom: 6px; }
li:last-child { margin-bottom: 0; }

code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; }
pre {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--terminal);
  color: var(--terminal-text);
  overflow-x: auto;
  line-height: 1.6;
}
pre .comment { color: var(--terminal-muted); }
.command { position: relative; }
.command pre { padding-right: 76px; }
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 7px 10px;
  border: 1px solid #334055;
  border-radius: 6px;
  background: #1c2536;
  color: var(--terminal-text);
  cursor: pointer;
}
.copy:hover { background: #26324a; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 600; padding: 6px 0; }
td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
th:first-child, td:first-child { padding-right: 16px; white-space: nowrap; }

footer { color: var(--muted); font-size: 14px; margin-top: 32px; text-align: center; }

@media (max-width: 520px) {
  main { padding-top: 40px; }
  h1 { font-size: 36px; }
  p.lead { font-size: 18px; }
  section { padding: 20px 18px; }
  td:first-child { white-space: normal; }
}

.software { list-style: none; padding: 0; margin: 0; }
.software li { margin-bottom: 16px; }
.software a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}
.software a:hover { text-decoration: none; border-color: var(--accent); }
.software img { width: 64px; height: 64px; flex: none; }
.software strong { display: block; font-size: 19px; }
.software span span { color: var(--muted); font-size: 15px; }
