:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --fg: #fafafa;
  --fg-muted: #a1a1aa;
  --border: #27272a;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", Consolas, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

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

/* Layout */

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

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* Hero */

.hero {
  text-align: center;
  padding: 6rem 0 5rem;
}

.hero-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, border-color 0.15s;
  font-family: var(--font-sans);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
}

/* Docker command */

.docker-cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.docker-cmd code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docker-cmd .btn-copy {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.docker-cmd .btn-copy:hover {
  color: var(--accent);
}

/* Section headers */

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--fg-muted);
  margin-bottom: 3rem;
  font-size: 1.0625rem;
}

/* Feature grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
}

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

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Code block */

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.code-block .kw { color: #a78bfa; }
.code-block .str { color: #86efac; }
.code-block .num { color: #93c5fd; }
.code-block .cmt { color: #71717a; }
.code-block .pn { color: #a1a1aa; }

/* Quick start */

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.step-body code {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
}

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

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Responsive */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  section {
    padding: 3.5rem 0;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}
