:root {
  --bg: #0b0e11;
  --bg-raised: #141920;
  --bg-code: #1a1f28;
  --border: #252c37;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --text-heading: #ecf2f8;
  --accent: #e5a00d;
  --accent-dim: rgba(229, 160, 13, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, 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(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────── */

.container {
  max-width: 900px;
  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;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  font-size: 3.5rem;
  margin-bottom: 0.25rem;
}

.hero h1 {
  font-family: "DynaPuff", var(--font-sans);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.install-box:hover {
  border-color: var(--accent);
}

.install-box .prompt {
  color: var(--accent);
  user-select: none;
}

.install-box .copy-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
  user-select: none;
  transition: color 0.2s;
}

.install-box:hover .copy-icon {
  color: var(--text);
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.hero-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Pitch ───────────────────────────────────────────── */

.pitch {
  text-align: center;
}

.pitch h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.pitch .container > p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ── Features ────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

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

/* ── Code blocks ─────────────────────────────────────── */

.code-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.code-section > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.example {
  margin-bottom: 3rem;
}

.example:last-child {
  margin-bottom: 0;
}

.example h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-block .filename {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.code-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text);
}

.code-block code {
  font-family: inherit;
}

/* ── Workflow section ────────────────────────────────── */

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.workflow-step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.workflow-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}

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

/* ── Terminal demo ───────────────────────────────────── */

.terminal {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2rem;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.terminal pre {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
}

.terminal .prompt-char {
  color: var(--accent);
}

.terminal .cmd {
  color: var(--text-heading);
  font-weight: 600;
}

.terminal .output {
  color: var(--text-muted);
}

.terminal .run-value {
  color: #6e7681;
}

.terminal .desc-value {
  color: #56d4dd;
}

/* ── Syntax highlighting (YAML) ──────────────────────── */

.hl-key { color: #7ee787; }
.hl-str { color: #a5d6ff; }
.hl-bool { color: #ff7b72; }
.hl-comment { color: #8b949e; font-style: italic; }

/* ── Footer ──────────────────────────────────────────── */

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

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ── Responsive ──────────────────────────────────────── */

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

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

  .hero-logo {
    font-size: 2.5rem;
  }

  section {
    padding: 3.5rem 0;
  }

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

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .install-box {
    font-size: 0.85rem;
  }
}
