:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --code-bg: #1c2128;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--border);
}

.hero img {
  width: 300px;
  height: 300px;
  margin-bottom: 24px;
  border-radius: 0%;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-dim);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Sections ── */
section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

/* ── Features grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card .icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Code blocks ── */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  position: relative;
}

.code-block pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--border);
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 10px;
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: var(--accent-dim);
  color: #fff;
}

/* syntax highlight helpers */
.kw  { color: #ff7b72; }   /* keyword */
.str { color: #a5d6ff; }   /* string  */
.cmt { color: #8b949e; }   /* comment */
.key { color: #7ee787; }   /* yaml key */
.val { color: #79c0ff; }   /* yaml value */

/* ── Install tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 8px 16px;
  transition: background 0.15s, color 0.15s;
}

.tab.active {
  background: var(--code-bg);
  border-bottom-color: var(--code-bg);
  color: var(--text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ── Commands table ── */
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cmd-table th,
.cmd-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.cmd-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
}

.cmd-table td:first-child {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

.cmd-table td:last-child {
  color: var(--text-muted);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--text-muted);
}

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 1rem; }
}
