/* fullnode — docs-style dark UI.
   No web fonts, no images, no third-party requests of any kind: this site is
   served to viewers inside Iran, where a hotlinked CDN asset is a blank page. */

:root {
  --bg:        #0a0e13;
  --bg-soft:   #0e141c;
  --panel:     #111925;
  --panel-2:   #0d141d;
  --line:      #1d2836;
  --line-soft: #16202c;
  --text:      #dae3ee;
  --head:      #f2f6fb;
  --muted:     #8496aa;
  --faint:     #5d6d80;
  --accent:    #35d69b;
  --accent-dim:#1d7f5d;
  --blue:      #6aa8ff;
  --amber:     #f2b544;
  --red:       #f2766a;
  --radius:    10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
  --bg:        #ffffff;
  --bg-soft:   #f6f8fa;
  --panel:     #ffffff;
  --panel-2:   #f6f8fa;
  --line:      #d9e0e8;
  --line-soft: #e8edf2;
  --text:      #26313d;
  --head:      #10161d;
  --muted:     #5b6b7c;
  --faint:     #8496aa;
  --accent:    #12855c;
  --accent-dim:#9fe0c6;
  --blue:      #1f6feb;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--head); line-height: 1.22; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(30px, 4.6vw, 46px); }
h2 { font-size: clamp(21px, 2.6vw, 27px); }
h3 { font-size: 17px; }
p  { margin: 0 0 16px; }

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; height: 58px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--head); font-weight: 620; font-size: 16px; letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  color: #04140e; font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.logo b { color: var(--accent); font-weight: 620; }

.nav { display: flex; gap: 20px; margin-right: auto; font-size: 14.5px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--head); text-decoration: none; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.ghost-btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.ghost-btn:hover { color: var(--head); border-color: var(--faint); }

.ver {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px;
}

/* ----------------------------------------------------------------- bits */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 16px; font-size: 14.5px; font-weight: 520;
  color: var(--head); background: var(--panel);
}
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #04140e; }
.btn-accent:hover { filter: brightness(1.08); border-color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}

.lede { font-size: 17.5px; color: var(--muted); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dot.warn { background: var(--amber); }
.dot.down { background: var(--red); }

.tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}

hr.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

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

.hero { padding: 74px 0 56px; border-bottom: 1px solid var(--line-soft); }
.hero h1 { margin: 14px 0 18px; }
.hero .lede { max-width: 640px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

.stat-row { display: flex; flex-wrap: wrap; gap: 30px; }
.stat-row div { font-size: 13px; color: var(--faint); }
.stat-row b {
  display: block; color: var(--head); font-size: 21px;
  font-family: var(--mono); font-weight: 600; letter-spacing: -0.02em;
}

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

.code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.code-head .grow { margin-left: auto; }
.code pre {
  margin: 0; padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px; line-height: 1.62;
  color: var(--text);
}
.code pre::-webkit-scrollbar { height: 8px; }
.code pre::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.c-key { color: var(--blue); }
.c-str { color: var(--accent); }
.c-num { color: var(--amber); }
.c-com { color: var(--faint); }
.c-cmd { color: var(--head); }

p code, li code, td code {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 5px; font-size: 0.88em; color: var(--head);
}

/* -------------------------------------------------------------- section */

section { padding: 62px 0; border-bottom: 1px solid var(--line-soft); }
.sec-head { max-width: 660px; margin-bottom: 34px; }
.sec-head h2 { margin: 10px 0 12px; }
.sec-head p { color: var(--muted); margin: 0; }

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

.chains { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.chain {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 17px;
}
.chain-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chain-sym {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: #05100b;
  background: var(--accent);
}
.chain-sym.btc { background: #f7931a; }
.chain-sym.sol { background: #9945ff; color: #fff; }
.chain-sym.ton { background: #0098ea; color: #fff; }
.chain-sym.trx { background: #eb0029; color: #fff; }
.chain-sym.bnb { background: #f0b90b; }
.chain-name { font-weight: 560; color: var(--head); }
.chain-id { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.chain dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.chain dt { color: var(--faint); }
.chain dd { margin: 0; text-align: right; font-family: var(--mono); color: var(--text); }

/* ------------------------------------------------------------- features */

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 34px; }
.feat h3 { margin-bottom: 7px; }
.feat p { color: var(--muted); font-size: 14.5px; margin: 0; }
.feat .num {
  font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 9px;
}

/* ---------------------------------------------------------------- table */

.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--faint); font-weight: 520; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.mono, th.mono { font-family: var(--mono); font-size: 13px; }

/* --------------------------------------------------------------- docs */

.doc-layout { display: grid; grid-template-columns: 210px 1fr; gap: 46px; align-items: start; padding: 44px 0; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 26px; } }

.side { position: sticky; top: 78px; font-size: 14px; }
@media (max-width: 900px) { .side { position: static; } }
.side h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--faint); font-weight: 560; margin: 22px 0 8px;
}
.side h4:first-child { margin-top: 0; }
.side a { display: block; padding: 3px 0; color: var(--muted); }
.side a:hover { color: var(--head); text-decoration: none; }

.doc h2 { margin: 46px 0 14px; padding-top: 6px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 30px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc .code { margin: 0 0 20px; }

.ep {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel-2);
  border-radius: 8px; padding: 9px 13px; margin: 0 0 14px;
  font-family: var(--mono); font-size: 13.5px; color: var(--head);
}
.ep .m {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 4px; padding: 2px 7px; color: #05100b; background: var(--accent);
}
.ep .m.post { background: var(--blue); color: #04121f; }
.ep .m.ws   { background: var(--amber); color: #1a1204; }
.ep .path { word-break: break-all; }

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  background: var(--panel-2); border-radius: 8px;
  padding: 13px 15px; margin: 0 0 20px; font-size: 14.5px; color: var(--muted);
}
.note b { color: var(--head); }

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

footer { padding: 40px 0 52px; color: var(--faint); font-size: 14px; }
.fcols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr 1fr; } }
.fcols h5 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 560; }
.fcols a { display: block; color: var(--faint); padding: 2px 0; }
.fcols a:hover { color: var(--text); text-decoration: none; }
.fcols p { font-size: 13.5px; max-width: 300px; }
.fbot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 20px; font-size: 13px; }

/* ------------------------------------------------------------- centered */

.center-pane { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
