:root {
  --bg: #0f172a;
  --bg-raised: #1e293b;
  --bg-code: #0b1120;
  --border: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-strong: #f1f5f9;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --ok: #34d399;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "PingFang TC",
               "PingFang HK", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3em 1.5em 6em;
}

header {
  text-align: center;
  margin-bottom: 2.5em;
}

header h1 {
  margin: 0;
  font-size: 2.4em;
  color: var(--text-strong);
}

header .tagline {
  color: var(--text-muted);
  margin-top: 0.25em;
  font-size: 1.05em;
}

h2 {
  color: var(--text-strong);
  margin-top: 2em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

code {
  background: var(--bg-code);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

.cta {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5em;
  margin: 2em 0;
}

.os-tabs {
  display: flex;
  gap: 0.25em;
  margin: 1em 0 1em;
  border-bottom: 2px solid var(--border);
}

.os-tab {
  background: none;
  border: 0;
  padding: 0.5em 1em;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.95em;
}

.os-tab:hover { color: var(--accent-hover); }

.os-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.cta .install-row {
  display: flex;
  align-items: stretch;
  gap: 0.5em;
  margin-top: 0.75em;
}

.install-cmd {
  flex: 1;
  background: var(--bg-code);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75em 1em;
  overflow-x: auto;
  white-space: nowrap;
}

button.copy {
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  padding: 0 1.2em;
  cursor: pointer;
  font-size: 0.95em;
}

button.copy:hover { background: var(--accent-hover); }
button.copy.copied { background: var(--ok); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  list-style: none;
  padding: 0;
}

.features li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1em 1.2em;
}

.features li strong { color: var(--text-strong); }

.muted { color: var(--text-muted); font-size: 0.9em; }

.steps {
  border-left: 3px solid var(--accent);
  padding-left: 1.2em;
}

.steps li { margin: 0.5em 0; }

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85em;
  margin-top: 3em;
}

@media (max-width: 600px) {
  main { padding: 2em 1em 4em; }
  .features { grid-template-columns: 1fr; }
  .install-row { flex-direction: column; }
  button.copy { padding: 0.6em 1em; }
}
