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

:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --text-bright: #f0f6fc;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --code-bg: #161b22;
  --green: #3fb950;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.15s;
}

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

/* Main */
main {
  flex: 1;
  padding: 3rem 0;
}

main h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

main h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

main h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

main p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

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

main ul, main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 0.25rem;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.highlight {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.highlight pre {
  border: none;
  margin: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

thead {
  background: var(--bg-tertiary);
}

th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: var(--text-bright);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero .subtitle {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-bright);
  text-decoration: none;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.feature h3 {
  margin-top: 0;
}

.feature p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Install Cards */
.install-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.install-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.install-card h4 {
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.install-card code {
  font-size: 0.85rem;
}

/* Use Case Grid */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.use-case {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.use-case h4 {
  color: var(--accent);
}

.use-case p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Note */
.note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

/* Code example block */
.code-example {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 2rem 0 1rem;
  }

  main h1 {
    font-size: 2rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav a {
    margin-left: 1rem;
    margin-right: 0;
  }

  .install-options {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
