:root {
  --bg: #08090b;
  --surface: #0e1014;
  --border: #1b1f26;
  --text: #e7e9ee;
  --muted: #8f98a6;
  --accent: #7ce7c0;
  --accent-dim: #2b6b58;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(
    60rem 30rem at 50% -10%,
    rgba(124, 231, 192, 0.07),
    transparent 70%
  );
}

a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 0.2em;
}

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

/* --- nav ------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem var(--gutter);
}

.brand {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* --- hero ------------------------------------------------------------ */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 6vw, 4rem);
  max-width: 46rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 2.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.install {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
}

.cta {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #05221a;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.fineprint {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
  margin: 1.5rem 0 0;
}

/* --- sections -------------------------------------------------------- */

section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.section-lede {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

/* --- steps ----------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 2rem 0 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
}

.num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
}

.steps h3 {
  font-size: 1rem;
  margin: 0.6rem 0 0.5rem;
  font-weight: 600;
}

.steps p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* --- code ------------------------------------------------------------ */

pre {
  margin: 2rem 0 0;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

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

pre .c {
  color: #5c6675;
}
pre .k {
  color: #b58cff;
}
pre .s {
  color: var(--accent);
}
pre .n {
  color: #ffd479;
}
pre .f {
  color: #79b8ff;
}

/* --- packages -------------------------------------------------------- */

.pkg-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pkg-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.95rem 1.25rem;
  background: var(--surface);
}

.pkg-list code {
  font-size: 0.82rem;
}

.pkg-list span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- chains ---------------------------------------------------------- */

.chain-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.75rem 0 0;
}

.chain-row li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  min-width: 9rem;
}

.chain-row strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.chain-row span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* --- footer ---------------------------------------------------------- */

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

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

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

.dot {
  margin: 0 0.5rem;
  opacity: 0.5;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .install {
    font-size: 0.78rem;
    width: 100%;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* --- documentation pages ---------------------------------------------- */

.doc {
  max-width: 46rem;
  padding-top: clamp(2rem, 6vw, 3.5rem);
}

.doc-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
}

.doc section {
  border-top: 1px solid var(--border);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.doc section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc h2 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.doc p {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc pre {
  margin: 1.25rem 0 0;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--accent-dim);
  padding-left: 0.9rem;
  margin: 1.25rem 0 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table code {
  font-size: 0.78rem;
  word-break: break-all;
}

.doc a {
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 640px) {
  .table {
    display: block;
    overflow-x: auto;
  }
}

.list {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 0 1.1rem;
  padding: 0;
}

.list li {
  margin-bottom: 0.35rem;
}
