/* ▲ Apex Ant — venetian blue depths + our gold. Denser, darker panels, lighter far-bg. */
:root {
  /* Venice foundations */
  --bg: #111820;            /* far background — deep blue */
  --panel: #0a0f16;         /* midnight — foreground panels */
  --panel2: #0c1219;
  --ink: #f7f5ed;           /* off white */
  --muted: #7f93a3;         /* sea gray */
  --line: rgba(247, 245, 237, 0.07);
  /* our accent */
  --acc: #ff9a3c;
  --acc2: #ffb066;
  --acc-dim: rgba(255, 154, 60, 0.35);
  --stucco: #bea989;        /* venetian stucco — warm secondary */
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --disp: "Instrument Serif", Georgia, serif;
  --sans: "General Sans", "Space Grotesk", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; zoom: 1.1; } /* 2026-09-08 (user): overall site scale +10% */
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--acc); color: #0a121a; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc2); }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── nav ── */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
  background: rgba(8, 15, 22, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navleft { display: flex; align-items: center; gap: 26px; }
.wordmark { font-family: var(--disp); font-size: 23px; letter-spacing: 0.02em; }
.wordmark .tri { color: var(--acc); font-family: var(--sans); font-size: 17px; margin-right: 7px; }
.navlinks { display: flex; gap: 2px; align-items: center; }
.navlinks a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  padding: 9px 13px; border-radius: 7px; transition: color .15s, background .15s;
}
.navlinks a:hover { color: var(--ink); background: rgba(247,245,237,0.05); }
.navlinks a.active { color: var(--acc); }
.nav-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  border: 1px solid var(--acc-dim); color: var(--acc); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; background: rgba(255,154,60,.06);
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav-cta:hover { background: rgba(255,154,60,.14); color: var(--acc2); }
.nav-cta.connected { color: var(--ink); border-color: var(--line); background: transparent; }

/* ── layout ── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 72px 0; border-bottom: 1px dashed rgba(255, 154, 60, 0.16); }
section:last-of-type { border-bottom: none; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 18px; }
h1 { font-family: var(--disp); font-weight: 400; font-size: clamp(40px, 5.8vw, 66px);
  line-height: 1.06; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; color: var(--acc); }
h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(29px, 3.8vw, 42px);
  line-height: 1.1; margin-bottom: 14px; }
h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sub { color: var(--muted); font-size: 16.5px; max-width: 640px; }
.gold { color: var(--acc); }
.mono-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; margin-bottom: 26px; background: rgba(10,18,26,.55); }
.hero-badge b { color: var(--acc); font-weight: 500; }
.arch { width: 100%; height: auto; }

/* ── stats row ── */
.stats { display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin-top: 48px; }
.stat { background: var(--panel); padding: 22px 24px; }
.stat .n { font-family: var(--mono); font-size: 27px; color: var(--ink); }
.stat .n i { color: var(--acc); font-style: normal; }
.stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── price board ── */
.board { border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel); margin-top: 32px; }
.board-head { display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em;
  flex-wrap: wrap; }
.board-head .upd b { color: var(--acc2); font-weight: 500; }
.search { background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink); font-family: var(--mono); font-size: 12.5px;
  padding: 8px 13px; width: 230px; outline: none; }
.search:focus { border-color: var(--acc-dim); }
.search::placeholder { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; }
th { text-align: right; font-weight: 500; font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); padding: 13px 16px;
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th:hover { color: var(--acc2); }
th.sorted { color: var(--acc); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: right;
  color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(247,245,237,0.03); }
td.mname { color: var(--ink); }
td.ven { color: var(--muted); }
td.pct { color: var(--acc); font-weight: 500; }
tr.nores td { text-align: center; color: var(--muted); padding: 30px; }

/* ── chart ── */
.chart-box { border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  margin-top: 32px; padding: 22px 22px 14px; }
.chart-box .chart-head { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: .06em; margin-bottom: 8px; }
.chart-box .chart-head b { color: var(--acc); font-weight: 500; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 22px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); padding: 8px 2px 6px; }
.chart-legend i { display: inline-block; width: 18px; height: 2px; vertical-align: middle;
  margin-right: 7px; }

/* ── steps / cards ── */
.cols { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin-top: 34px; }
.col { background: var(--panel); padding: 30px; }
.col .num { font-family: var(--mono); color: var(--acc); font-size: 12px;
  letter-spacing: 0.2em; margin-bottom: 14px; }
.col p { color: var(--muted); font-size: 14.5px; }
.col p code { color: var(--ink); font-size: 13px; }

/* ── terminal ── */
.term { background: #080f16; border: 1px solid var(--line); border-radius: 12px;
  margin-top: 30px; overflow: hidden; }
.term-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #16222f; }
.term pre { padding: 20px 22px; font-family: var(--mono); font-size: 13px;
  line-height: 1.8; overflow-x: auto; color: #a9b8c5; }
.term .c { color: #4d6474; }
.term .o { color: var(--acc2); }

/* ── privacy ── */
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin-top: 34px; }
.priv { background: var(--panel); padding: 30px; }
.priv .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--acc); margin-bottom: 16px; }
.priv p { color: var(--muted); font-size: 14.5px; }
.priv p b { color: var(--ink); font-weight: 500; }

/* ── faq ── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 22px 4px; font-size: 17.5px;
  font-weight: 500; list-style: none; display: flex; justify-content: space-between;
  align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--acc);
  font-size: 19px; transition: transform .18s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding: 0 4px 26px; color: var(--muted); font-size: 15.5px; max-width: 760px; }
.faq-item .ans code { color: var(--ink); font-size: 13px; }

/* ── footer ── */
footer { padding: 46px 0 58px; }
.foot { display: flex; justify-content: space-between; align-items:flex-start;
  flex-wrap: wrap; gap: 20px; }
.foot .mono-note a { color: var(--muted); }
.foot .mono-note a:hover { color: var(--acc2); }

/* ── live counter pulse ── */
.tick { color: var(--acc); transition: color .3s; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .navlinks a { padding: 8px 8px; font-size: 11px; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 52px; }
  .search { width: 100%; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}

/* ── info tooltip ── */
.info { display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border: 1px solid var(--acc-dim); border-radius: 50%;
  color: var(--acc); font-size: 9.5px; cursor: help; position: relative;
  vertical-align: super; margin-left: 4px; font-style: normal; }
.info .tip { display: none; position: absolute; bottom: 22px; left: -8px; z-index: 20;
  width: 270px; background: #131b26; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; font-size: 11.5px; line-height: 1.5; letter-spacing: 0;
  text-transform: none; color: var(--ink); text-align: left; font-weight: 400;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.info:hover .tip { display: block; }
.stat .l2 { font-family: var(--mono); font-size: 11px; color: var(--stucco); margin-top: 3px; }

@media (max-width: 980px) { .cols, .priv-grid { grid-template-columns: 1fr; } }

/* antseed green for antseed links */
a.asg, .asg { color: #10b981 !important; }

/* ── site-wide dot grid ── */
body { position: relative; }
body::before, body::after { content: ""; position: absolute; left: 0; right: 0; height: 40%;
  z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(247,245,237,0.05) 1px, transparent 1px);
  background-size: 26px 26px; }
body::before { top: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); }
body::after { bottom: 0;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%); }


/* footer: muted links, green on hover only */
.foot .mono-note { color: var(--muted); }
.foot a.asg, .foot a.asg:visited { color: var(--muted) !important; transition: color .15s; }
.foot a.asg:hover { color: #10b981 !important; }

/* ── wallet dropdown ── */
.wallet-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 290px; background: #131b26; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px 8px; display: none; box-shadow: 0 12px 40px rgba(0,0,0,.55); }
.wallet-pop.open { display: block; }
.wallet-pop .wp-head { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); }
.wallet-pop .wp-sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.wallet-pop .wp-row { display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding: 12px 0; margin-top: 10px; }
.wallet-pop .wp-addr { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.wallet-pop .wp-tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.wallet-pop .wp-copy { background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-size: 13px; padding: 6px 9px; cursor: pointer; }
.wallet-pop .wp-copy:hover { color: var(--ink); border-color: var(--acc-dim); }
.wallet-pop .wp-out { display: block; width: 100%; text-align: left; background: none;
  border: none; border-top: 1px solid var(--line); padding: 13px 0 10px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--acc); }
.wallet-pop .wp-out:hover { color: var(--acc2); }


/* ── collapsible image board ── */
.img-board { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; background: var(--panel); }
.img-board summary { cursor: pointer; display: flex; align-items: baseline; gap: 14px;
  list-style: none; user-select: none; }
.img-board summary::-webkit-details-marker { display: none; }
.img-board summary::after { content: "▸"; color: var(--acc); margin-left: auto; transition: transform .15s; }
.img-board[open] summary::after { transform: rotate(90deg); }

/* refresh spin */
#brefreshArrow.spin { animation: refresh-rot .6s ease; }
@keyframes refresh-rot { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* cabinet channels table */
.chtable { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--mono); font-size: 12px; table-layout: fixed; }
.chtable th:nth-child(1) { width: 26%; }
.chtable th:nth-child(2) { width: 14%; }
.chtable th:nth-child(3), .chtable th:nth-child(4) { width: 18%; }
.chtable td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chtable th { text-align: left; color: var(--muted); font-weight: 500; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.chtable td { padding: 7px 8px; border-bottom: 1px solid rgba(247,245,237,.05); color: var(--ink); }
.chtable td.muted-sm { color: var(--muted); font-size: 11px; }
