:root {
  --bg: #16171a;
  --panel: #1f2125;
  --line: #2e3137;
  --text: #e9e6e1;
  --muted: #a3a09a;
  --accent: #e0b55a;
  --accent-ink: #1a1408;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; font-size: .9em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(22, 23, 26, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: 18px; overflow-x: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
nav a:hover { color: var(--text); }

.hero { padding: 56px 0 24px; text-align: center; }
.eyebrow { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 16px; }
.lede { max-width: 680px; margin: 0 auto 28px; color: var(--muted); font-size: 1.1rem; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero-img { border-radius: 12px; border: 1px solid var(--line); margin: 0 auto; }

section { padding: 40px 0; }
h2 { font-size: 1.7rem; margin: 0 0 20px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.grid p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
figcaption { padding: 10px 14px; color: var(--muted); font-size: .92rem; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { width: 30%; color: var(--muted); font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.support p { color: var(--muted); max-width: 720px; }
.foot { color: var(--muted); font-size: .9rem; padding: 32px 16px 48px; border-top: 1px solid var(--line); }

/* docs page */
.doc { padding: 32px 16px 64px; max-width: 900px; }
.doc h1 { font-size: 2rem; text-align: left; }
.doc h2 { margin-top: 36px; }
.doc table { margin: 12px 0 20px; display: block; overflow-x: auto; }
.doc th { width: auto; }
.doc pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; }
.doc li { margin: 4px 0; }

@media (max-width: 600px) {
  nav a:not([href="docs.html"]):not([href="#support"]) { display: none; }
  th { width: 38%; }
}
.btn.soon { cursor: default; opacity: .85; }
