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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #7ee8a2;
  --accent-dim: #2a4a35;
  --code-bg: #1a1a1a;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

section { padding: 64px 0; border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }

h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

p { color: var(--muted); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* Hero */
#hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

#hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

#hero .subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

/* How it works */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step:first-child { padding-top: 0; }

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body p { margin-bottom: 0; }

/* Install */
.install-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.install-block .block-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-header .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }

.install-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.install-block .comment { color: var(--muted); }
.install-block .cmd { color: var(--text); }
.install-block .arg { color: var(--accent); }

/* Config */
.config-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
}

.config-block .key { color: #79b8ff; }
.config-block .val { color: #f97583; }
.config-block .str { color: #9ecbff; }
.config-block .comment { color: var(--muted); }

/* Changelog */
.changelog { display: flex; flex-direction: column; gap: 32px; }

.release-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.release-version {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.release-date {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.release-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.release-notes li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.release-notes li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--border);
}

/* Footer */
footer {
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
}

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

/* Responsive */
@media (max-width: 480px) {
  #hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
  .step { gap: 16px; }
}
