:root {
  --bg: #120d14;
  --surface: #1c1520;
  --border: #2e2433;
  --text: #ece6ef;
  --muted: #a99bb0;
  --accent: #e8618c;
  --accent-2: #b678f0;
  --max: 46rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

header, main, footer { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-size: .95rem; }
nav a:hover, nav a[aria-current] { color: var(--text); }

.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero img { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface), 0 0 48px #e8618c55; }
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem); margin: 1.2rem 0 .4rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 auto 1.8rem; max-width: 34rem; }
.btn {
  display: inline-block; padding: .7rem 1.3rem; margin: .3rem; border-radius: .6rem;
  font-weight: 600; text-decoration: none; border: 1px solid var(--border);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.ghost { color: var(--text); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; padding: 1rem 0 3rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: .8rem; padding: 1.1rem 1.2rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
code { background: var(--border); padding: .1em .35em; border-radius: .3em; font-size: .9em; }

.doc { padding-bottom: 3rem; }
.doc h1 { margin-bottom: .2rem; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { margin-top: 2.2rem; font-size: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.doc li { margin: .3rem 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1rem 0; }
.doc th, .doc td { text-align: left; padding: .55rem .6rem; border: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface); }
.table-wrap { overflow-x: auto; }

footer {
  border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem;
  padding-top: 1.2rem; padding-bottom: 2rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between;
}
footer a { color: var(--muted); }

.summary { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: .6rem; padding: .9rem 1.2rem; margin: 1.5rem 0; }
.summary ul { margin: .5rem 0; padding-left: 1.2rem; }
.summary p { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; }
.toc { margin: 1.5rem 0; }
.toc ol { columns: 2 14rem; column-gap: 2rem; padding-left: 1.4rem; margin: 0; font-size: .93rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.doc h2 { scroll-margin-top: 1rem; }
