:root {
  --bg: #05080b;
  --panel: #0b1218;
  --line: #14303a;
  --text: #d8e6ea;
  --muted: #8aa4ad;
  --cyan: #29d3f0;
  --green: #3ee08f;
  --link: #5fdcff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--green); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); background: rgba(5, 8, 11, .92); }
header.site .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; }
header.site .brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
header.site .brand img { width: 40px; height: 40px; border-radius: 8px; }
header.site .brand span { font-weight: 650; letter-spacing: .02em; font-size: 18px; }
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--cyan); }

.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.hero img { width: 220px; height: 220px; border-radius: 22px; box-shadow: 0 0 48px rgba(41, 211, 240, .18); }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0; }
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero img { margin: 0 auto; width: 160px; height: 160px; }
  .hero h1 { font-size: 30px; }
}

section { padding: 18px 0; }
h2 { font-size: 24px; margin: 26px 0 10px; color: #f0f7f9; }
h3 { font-size: 18px; margin: 20px 0 6px; color: var(--green); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.note { border-left: 3px solid var(--cyan); background: var(--panel); padding: 14px 18px; border-radius: 0 10px 10px 0; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--cyan); font-weight: 600; }
code { background: #0f1c23; padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.doc { padding: 28px 0 10px; }
.doc h1 { font-size: 32px; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 18px; }
.doc li { margin: 4px 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 34px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* AI Wallet's pages: the shield's blue and green */
body.theme-ai-wallet { --cyan: #4aa3ff; --green: #3ee08f; --link: #7cc0ff; --line: #16304a; }
body.theme-ai-wallet .hero img { box-shadow: 0 0 48px rgba(74, 163, 255, .2); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.button { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--cyan);
  color: var(--bg); background: var(--cyan); font-weight: 600; text-decoration: none; }
.button.secondary { background: transparent; color: var(--cyan); }
.button:hover { filter: brightness(1.1); color: var(--bg); }
.button.secondary:hover { color: var(--green); border-color: var(--green); }
pre { background: #0f1c23; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  overflow-x: auto; font-size: 14px; line-height: 1.5; }
