:root {
  --gold: #D4AF37;
  --gold-soft: #E8C860;
  --bg: #0A0A0A;
  --surface: #121212;
  --surface-2: #1A1A1A;
  --border: #2A2A2A;
  --text: #F2F2F2;
  --muted: #A0A0A0;
  --max: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
nav.site a { color: var(--muted); font-size: 14px; margin-left: 18px; }
nav.site a:hover, nav.site a.active { color: var(--gold); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.hero img.logo { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.gold { color: var(--gold); }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  background: var(--gold); color: #0A0A0A; font-weight: 600; font-size: 15px;
  border: 1px solid var(--gold);
}
.btn:hover { background: var(--gold-soft); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(212,175,55,.1); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 40px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Doc pages */
main.doc { padding: 48px 0 80px; }
main.doc h1 { font-size: 34px; margin: 0 0 8px; }
main.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
main.doc h2 {
  font-size: 21px; margin: 44px 0 14px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
main.doc h3 { font-size: 17px; margin: 26px 0 8px; color: var(--gold-soft); }
main.doc p, main.doc li { color: #D8D8D8; }
main.doc ul { padding-left: 22px; }
main.doc li { margin-bottom: 8px; }
main.doc strong { color: var(--text); }

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 16px 20px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

/* Table */
.table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--gold); font-weight: 600; background: var(--surface); white-space: nowrap; }
td { color: #D8D8D8; }

/* Steps */
ol.steps { padding-left: 20px; }
ol.steps li { margin-bottom: 12px; }

footer.site {
  border-top: 1px solid var(--border); padding: 32px 0 40px;
  color: var(--muted); font-size: 14px; text-align: center;
}
footer.site a { margin: 0 10px; color: var(--muted); }
footer.site a:hover { color: var(--gold); }
footer.site .copy { margin-top: 14px; font-size: 13px; }

@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  main.doc h1 { font-size: 27px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
  header.site .wrap { justify-content: flex-start; }
}
