:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --border: #26262b;
  --fg: #ededef;
  --muted: #9a9aa3;
  --accent: #6ea8fe;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 50% -10%, rgba(110, 168, 254, 0.08), transparent 55%);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

/* hero */
.hero {
  padding: 88px 0 56px;
  text-align: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.tagline {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}
.tagline code {
  color: var(--fg);
  background: var(--panel);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn {
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--fg);
  transition:
    border-color 0.2s,
    transform 0.1s;
}
.btn:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--accent);
  color: #06121f;
  border-color: var(--accent);
  font-weight: 600;
}

.install {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 44px;
}
.install code {
  color: var(--fg);
  white-space: pre;
}

.hero-diagram {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
}
.hero-diagram img {
  width: 100%;
  max-width: 560px;
  height: auto;
}
.caption {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* sections */
section {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}
section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.lead {
  color: var(--muted);
  margin: 0 0 28px;
}

/* source + render pair */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.pair figure,
.gallery figure,
.hero-diagram {
  margin: 0;
}
.pair figure,
.gallery figure {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  justify-content: center;
}
.pair img,
.gallery img {
  width: 100%;
  height: auto;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* code blocks */
pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0;
}
pre code {
  color: #d7d7db;
  white-space: pre;
  line-height: 1.5;
}
pre.source {
  margin: 0;
  font-size: 0.82rem;
}

/* steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.steps h3 {
  font-size: 1rem;
  margin: 4px 0 12px;
}
.steps p {
  color: var(--muted);
  margin: 12px 0;
}

/* how-it-works */
.how ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.how li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--muted);
}
.how strong {
  color: var(--fg);
  font-weight: 600;
}

footer {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.links {
  font-family: var(--mono);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .pair,
  .gallery {
    grid-template-columns: 1fr;
  }
}
