/* ▲ Apex Ant — venetian blue depths + our gold. Denser, darker panels, lighter far-bg. */

/* ── fonts (2026-09-10): General Sans = base (fontshare), Canela = the «Venice» word (local file, Fraunces fallback), ABC Diatype = phala scope (local file, /assets/fonts) ── */
/* Canela (Commercial Type, commercial — the one venice.ai uses): woff2 goes to /assets/fonts/ once licensed; Fraunces renders until then */
@font-face { font-family: 'Canela'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('Canela'), local('Canela-Regular'), url('/assets/fonts/canela-regular.woff2') format('woff2'); }
/* ABC Diatype — commercial (ABC Dinamo), licensed by phala. Our woff2 goes to /assets/fonts/ once available. */
@font-face { font-family: 'ABC Diatype'; font-style: normal; font-weight: 400; font-display: swap;
  src: local('ABC Diatype'), url('/assets/fonts/abc-diatype-regular.woff2') format('woff2'); }
@font-face { font-family: 'ABC Diatype'; font-style: normal; font-weight: 500; font-display: swap;
  src: local('ABC Diatype Medium'), url('/assets/fonts/abc-diatype-medium.woff2') format('woff2'); }

: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: "General Sans", system-ui, sans-serif;
  --sans: "General Sans", "Space Grotesk", system-ui, sans-serif;
  --phala: "ABC Diatype", "General Sans", 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-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.wordmark .tri { color: var(--acc); font-family: var(--sans); font-size: 1em; margin-right: 7px; }
.navlinks { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.nav-cta { margin-left: 10px; }
.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: 600; font-size: clamp(40px, 5.8vw, 66px);
  line-height: 1.06; letter-spacing: -0.02em; }
h1 em { font-family: 'Sansita Swashed', 'Canela', 'Fraunces', Georgia, serif; font-weight: 600; font-style: normal; font-weight: 400; color: var(--acc); letter-spacing: 0; line-height: 0.96; }
h2 em { font-style: italic; color: var(--acc); }
h2 { font-family: var(--disp); font-weight: 600; letter-spacing: -0.015em; 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: minmax(0,1fr) minmax(0,1fr); column-gap: 48px; row-gap: 34px; align-items: start; }
.hero .stats { margin-top: 0; }
.hero-right { min-width: 0; }
.stats2 { margin-top: 26px; }
.sparkline { display: block; margin-top: 9px; }
.sparkline.inline { display: inline-block; vertical-align: -2px; margin-top: 0; margin-left: 4px; height: 12px; }
.sparkline path.area { fill: rgba(16,185,129,.16); stroke: none; }
.sparkline path.line { fill: none; stroke: #34d399; stroke-width: 1.4; }
/* phala scope: everything TEE/attestation uses the phala font */
.phala-type, .phala-type h1, .phala-type h2, .phala-type h3 { font-family: var(--phala); }
.phala-type h1 em { font-family: 'Sansita Swashed', 'Canela', 'Fraunces', Georgia, serif; font-weight: 600; }
.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; }
.hero .stat { height: 131px; } /* both hero panels — pixel-identical cells */
.stats.stats2 .stat .l { font-size: 10px; letter-spacing: .12em; line-height: 1.5; } /* labels never wider than the cell (specificity above .stat .l) */
.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; }
/* vertical column separators — same stroke as the rows */
th + th, td + td { border-left: 1px solid var(--line); }
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 ── */
.footlinks { margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.footlinks a { color: var(--muted); text-decoration: none; transition: color .15s; }
.footlinks a:hover { color: var(--acc2); }
.footlinks .sep { color: rgba(247,245,237,.18); }
.footlinks .cur { color: var(--ink); }

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

/* live status dot (cabinet chip, privacy pills) */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; flex: 0 0 auto; animation: livedot-pulse 2.2s infinite; }
@keyframes livedot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.45); }
  70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

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

@media (max-width: 860px) {
  /* mobile: text → illustration → panel 1 → panel 2 (wrappers dissolve) */
  .hero-grid { display: flex; flex-direction: column; gap: 26px; }
  .hero-right { margin-top: 0; }
  .hero-grid > div:first-child, .hero-right { display: contents; }
  .hero .arch { order: 2; }
  .hero .stats { width: 100%; min-width: 0; }
  .hero .stats .stat { min-width: 0; }
  .hero .stats { order: 3; margin-top: 0; }
  .hero .stats2 { order: 4; margin-top: 0; }
  .hero .stats + .mono-note, .hero-grid .mono-note:has(.asg) { order: 5; }
  .navlinks a { padding: 8px 8px; font-size: 11px; }
  section { padding: 56px 0; }
  .hero { padding: 60px 0 52px; }
  .search { width: 100%; }
  #ptable th:nth-child(4), #ptable 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: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

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

/* mobile: inline grids (style="grid-template-columns:…") override media queries —
   force single column, panels stack one after another (2026-09-09, user) */
@media (max-width: 860px) {
  .cols, .priv-grid, .hero-grid,
  div[style*="grid-template-columns"] { grid-template-columns: minmax(0,1fr) !important; }
}

/* 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; }
@media (max-width: 860px) {
  .chtable { font-size: 10.5px; }
  .chtable th:nth-child(5), .chtable td:nth-child(5) { display: none; } /* hide the updated column */
  .chtable th:nth-child(1) { width: 34%; }
  .chtable th:nth-child(2) { width: 20%; }
  .chtable th:nth-child(3), .chtable th:nth-child(4) { width: 23%; }
  .chtable th { padding: 6px 4px; font-size: 9.5px; letter-spacing: .05em; white-space: normal; }
  .chtable td { padding: 7px 4px; }
}

/* ── mobile polish (2026-09-09) ── */
@media (max-width: 860px) {
  /* navbar: row 1 = logo + connect at the corners, row 2 = full-width links */
  nav { display: flex; flex-wrap: wrap; height: auto; min-height: 52px; padding: 6px 14px 8px; row-gap: 2px; }
  .wordmark { font-size: 19px; order: 1; }
  .nav-cta { order: 2; margin-left: auto; padding: 6px 12px; font-size: 11px; }
  .navlinks { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; gap: 0; }
  .navlinks a { padding: 6px 2px; font-size: 10px; letter-spacing: 0.06em; white-space: nowrap; }
  .wallet-pop { right: 0; left: auto; }
  .wrap { padding: 0 16px; }
  h1 { font-size: clamp(30px, 9vw, 44px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  .sub { font-size: 15px; }
  .stat { padding: 14px 16px; }
  .stat .n { font-size: 22px; }
  /* commands/code: wrap and shrink, never scroll */
  pre, code { font-size: 11px; }
  pre { white-space: pre-wrap; word-break: break-word; overflow-x: visible; }
  code { overflow-wrap: anywhere; }
  /* tables: compress to viewport, no horizontal scroll */
  table { display: table; width: 100%; font-size: 10.5px; table-layout: auto; }
  table th, table td { padding: 5px 4px; }
  table td { white-space: normal; overflow-wrap: anywhere; }
  /* nowrap only for numeric board columns — long hex/commands must wrap */
  .board td:not(:first-child) { white-space: nowrap; }
  .verify-table td:first-child { white-space: nowrap; }
  table th { letter-spacing: 0.04em; font-size: 9.5px; }
  table th:first-child, table td:first-child { padding-left: 10px; }
  table th:last-child, table td:last-child { padding-right: 10px; }
  .code { overflow-x: visible; white-space: pre-wrap; }
  .peerid { word-break: break-all; }
  .foot { flex-direction: column; gap: 14px; }
  .chart-box .chart-head { font-size: 11px; }
  /* privacy data flow: vertical, no rotated text */
  .flow-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .flow-line .hop { display: none; }
  .flow-line > span:not(.hop)::after { content: " \2193"; color: var(--acc); }
  .flow-line > span:last-child::after { content: ""; }
}

@media (max-width: 640px) {
  /* on phones hide the venice reference in the text board too — model/our prices/% remain */
  th:nth-child(5), td:nth-child(5) { display: none; }
  table { font-size: 10px; }
}
