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

:root {
  --bg: #0d0d0f;
  --bg-surface: #131316;
  --bg-elevated: #1a1a1f;
  --border: #26262e;
  --text: #e8e8ec;
  --text-dim: #6e6e80;
  --text-dimmer: #3e3e4a;
  --accent: #4f8ef7;
  --accent-dim: #2a3f6b;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --radius: 8px;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, 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;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

/* Hero */
.hero {
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.tagline {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-install {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius);
  color: var(--text);
}

.btn-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 11px 18px;
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #3e3e4e;
}

/* Terminal demo */
.terminal-demo {
  padding: 0 0 96px;
}

.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
}

.terminal-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: var(--text-dimmer);
}

.terminal-body {
  padding: 20px 24px;
}

.line {
  display: flex;
  gap: 8px;
}

.line + .line {
  margin-top: 1px;
}

.prompt {
  color: var(--accent);
  user-select: none;
  flex-shrink: 0;
}

.output { color: var(--text); }
.output.ok  { color: var(--green); }
.output.dim { color: var(--text-dim); }
.output.bold { font-weight: 500; }

/* Features */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.features h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Install */
.install {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.install h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.install-options {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.install-option h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.install-option p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

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

.install-option a:hover {
  text-decoration: underline;
}

.code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
}

.code-block pre {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre;
}

.quickstart h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 30px; }
  .tagline { font-size: 16px; }
  .features, .install { padding: 64px 0; }
  nav { gap: 20px; }
}
