/* ============================================================
   Bastion — "Living System" site
   navy + electric-cyan fintech palette
   ============================================================ */
:root {
  --bg:        #060a12;
  --bg2:       #0a1120;
  --panel:     #0d1626;
  --panel2:    #101c30;
  --line:      rgba(120,165,235,.14);
  --line2:     rgba(120,165,235,.26);
  --ink:       #eaf1fb;
  --muted:     #93a6c4;
  --faint:     #5d7090;
  --cyan:      #1fd4ff;
  --blue:      #3b6bff;
  --green:     #34e0a1;
  --amber:     #ffc24b;
  --magenta:   #ff5b9a;
  --beam:      linear-gradient(90deg, #1fd4ff, #3b6bff);
  --glow-cyan: 0 0 0 1px rgba(31,212,255,.35), 0 0 28px rgba(31,212,255,.28);
  --r:         18px;
  --r-sm:      12px;
  --ff:        "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --nav-h:     64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--ff);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(31,212,255,.10), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(59,107,255,.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; border-radius: 999px;
  padding: 11px 20px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--solid { background: var(--beam); color: #04121d; box-shadow: 0 10px 30px rgba(31,212,255,.22); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(31,212,255,.34); }
.btn--ghost { background: rgba(255,255,255,.02); border-color: var(--line2); color: var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6,10,18,.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(6,10,18,.86); border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: var(--cyan); border: 1px solid var(--line2); background: rgba(31,212,255,.07);
}
.brand__name { font-size: 16px; letter-spacing: .14em; }
.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }

/* ---------- side rail dots ---------- */
.dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; z-index: 90;
}
.dots__d {
  width: 9px; height: 9px; border-radius: 50%; position: relative;
  background: rgba(120,165,235,.25); transition: background .25s ease, transform .25s ease;
}
.dots__d:hover, .dots__d.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transform: scale(1.25); }
.dots__d::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px;
  transition: opacity .2s ease;
}
.dots__d:hover::after { opacity: 1; }

/* ---------- section frame ---------- */
.stage { padding: calc(var(--nav-h) + 30px) 0 40px; }
.stage--hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.section { padding: 92px 0; position: relative; }
.section + .section { padding-top: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(31,212,255,.05);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.35} }

h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; margin: 16px 0 12px; max-width: 18ch; }
.grad {
  background: linear-gradient(100deg, #1fd4ff, #3b6bff 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { color: var(--muted); font-size: clamp(14px, 1.4vw, 16.5px); max-width: 66ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* trust / proof band */
.section--trust { padding: 60px 0 56px; }
.trust__eyebrow { text-align: center; max-width: 620px; margin: 0 auto; color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.trust__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.tstat { text-align: center; padding: 24px 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.015); }
.tstat__v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tstat__k { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.35; }
.trust__quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.quote { position: relative; margin: 0; padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); overflow: hidden; }
.quote__mark { position: absolute; top: 6px; right: 20px; font-size: 78px; line-height: 1; font-weight: 800; color: var(--cyan); opacity: .12; font-family: Georgia, "Times New Roman", serif; pointer-events: none; }
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); position: relative; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.quote__who { font-size: 13px; font-weight: 700; color: var(--ink); }
.quote__org { font-size: 12px; color: var(--faint); }

/* section heads */
.head { max-width: 760px; margin-bottom: 40px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.marker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.lead { color: var(--muted); font-size: 16px; margin-top: 14px; }
.note {
  margin-top: 26px; font-size: 12.5px; color: var(--faint);
  border-left: 2px solid var(--line2); padding-left: 12px; max-width: 80ch;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   LIVING SYSTEM
   ============================================================ */
.living {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 194px 82px minmax(0,1fr) 82px 224px;
  align-items: stretch;
}
.sources { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.node {
  position: relative;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 16px 15px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.node--stripe { border-color: rgba(31,212,255,.32); box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 40px rgba(31,212,255,.10); }
.node__top { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.node__logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(135deg, #635bff, #4b8bff); box-shadow: 0 6px 16px rgba(75,139,255,.4);
}
.node__name { font-weight: 700; font-size: 14px; }
.node__sub { font-size: 11.5px; color: var(--faint); }
.node__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.node__row span:first-child { color: var(--muted); }
.node__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dot-ok { color: var(--green); }
.warn { color: var(--amber); }

.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--green); padding: 4px 9px; border-radius: 999px; background: rgba(52,224,161,.10); border: 1px solid rgba(52,224,161,.28); }
.conn i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.channel { position: relative; align-self: stretch; min-width: 96px; display: grid; place-items: center; }
.channel__svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.channel__label {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); background: var(--bg); padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.channel__label--top { top: 36.9%; }
.channel__label--bot { top: 63.1%; }
.channel--out .channel__label--top { top: 50%; }
/* treasury beams run down the centre (y=160 = 50%) — both labels sit on the line */
.section--treasury .channel__label--top { top: 50%; }
/* treasury channel tracks are 86px; drop the global 96px min-width so the channel
   fits its track and the beam tips stop just before the cards (no overrun onto them) */
.section--treasury .channel { min-width: 0; }
/* treasury channels are narrow (86px) — shrink word + arrow so they fit and the arrow stays visible */
.section--treasury .channel__label { font-size: 8.5px; letter-spacing: .04em; padding: 2px 5px; }
.section--treasury .channel__label b { font-size: 9px; }
.channel__label b { color: var(--cyan); }
.pulseFwd { filter: drop-shadow(0 0 5px rgba(31,212,255,.85)); }
.pulseBack { filter: drop-shadow(0 0 5px rgba(52,224,161,.8)); }
.pulseOut { filter: drop-shadow(0 0 5px rgba(31,212,255,.8)); }
.comet { filter: drop-shadow(0 0 6px currentColor); }

.panel-wrap { position: relative; }
.panel {
  background:
    radial-gradient(700px 300px at 80% -10%, rgba(31,212,255,.08), transparent 60%),
    linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line2); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.panel__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.panel__dots { display: flex; gap: 7px; }
.panel__dots i { width: 11px; height: 11px; border-radius: 50%; background: #26344c; }
.panel__dots i:nth-child(1){ background:#ff5f57; } .panel__dots i:nth-child(2){ background:#febc2e; } .panel__dots i:nth-child(3){ background:#28c840; }
.panel__title { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; }
.panel__title b { color: var(--cyan); }
.panel__seg { margin-left: auto; display: flex; gap: 4px; padding: 3px; background: rgba(255,255,255,.04); border-radius: 9px; border: 1px solid var(--line); }
.panel__seg span { font-size: 11px; color: var(--muted); padding: 4px 10px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.panel__seg span.on { background: var(--beam); color: #051018; }

.panel__body { padding: 15px; display: grid; grid-template-columns: minmax(0,1.42fr) minmax(0,1fr); gap: 13px; align-items: stretch; }
.vhead { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vhead__txt { font-size: 13px; color: var(--muted); }
.vchip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13.5px; color: var(--ink);
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(31,212,255,.06); overflow: hidden; min-width: 120px;
}
.vchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); flex: none; }
.vchip__word { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.vchip.swap .vchip__word { opacity: 0; transform: translateY(-6px); }

.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.kpi__k { font-size: 10px; color: var(--faint); font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__v { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__v small { font-size: 12px; color: var(--green); font-weight: 700; margin-left: 5px; }
.kpi__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); margin-top: 9px; overflow: hidden; }
.kpi__bar span { display: block; height: 100%; border-radius: 4px; background: var(--beam); }

.feed { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 0 2px; display: flex; flex-direction: column; }
.feed__h { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 9px; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.feed__h .conn { font-size: 10px; padding: 3px 8px; }
.feed__list { list-style: none; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.feed__list li { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1 1 0; min-height: 0; padding: 7px 13px; border-bottom: 1px solid rgba(120,165,235,.07); font-size: 12.5px; animation: feedIn .5s ease both; }
.feed__list li:last-child { border-bottom: none; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.feed__ic { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#635bff,#4b8bff); }
.feed__main { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.feed__main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__main span { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__amt { margin-left: auto; padding-left: 8px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.tag { flex: none; white-space: nowrap; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: .02em; }
.tag--cap { color: var(--green); background: rgba(52,224,161,.12); }
.tag--pen { color: var(--amber); background: rgba(255,194,75,.12); }
.tag--flag{ color: var(--magenta); background: rgba(255,91,154,.12); }

.statuscard { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.statuscard__h { font-size: 12px; color: var(--muted); font-weight: 600; }
.flip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-weight: 800; font-size: 15px; }
.flip__tail { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.flip__tail b { color: var(--cyan); }
.flip__chip { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 11px; border-radius: 9px; font-size: 13px; font-weight: 700; border: 1px solid var(--line2); transition: all .4s ease; }
.flip__chip.is-proc { color: var(--amber); background: rgba(255,194,75,.10); border-color: rgba(255,194,75,.3); }
.flip__chip.is-cap  { color: var(--green); background: rgba(52,224,161,.12); border-color: rgba(52,224,161,.34); }
.flip__chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.flip__chip i.spin { animation: spin 1s linear infinite; box-shadow: none; border: 2px solid currentColor; border-right-color: transparent; background: none; border-radius: 50%; width: 11px; height: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.flip__arrow { color: var(--faint); }
.statuscard__meta { font-size: 11.5px; color: var(--faint); display: flex; justify-content: space-between; }
.statuscard__meta b { color: var(--ink); font-weight: 600; }

.rightcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.reports { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.reports__h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.reports__pdf { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--cyan); padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(31,212,255,.32); background: rgba(31,212,255,.07); }
.reports__seg { display: flex; gap: 4px; padding: 3px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 9px; }
.reports__seg span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 5px 4px; border-radius: 6px; white-space: nowrap; }
.reports__seg span.on { background: var(--beam); color: #051018; }
.reports__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.reports__row b { font-weight: 600; font-size: 11px; }
.reports__next { display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; }
.reports__next b { color: var(--ink); font-weight: 700; }
.reports__next i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); margin-top: 5px; flex: none; }

/* delivery rail + toasts */
.rail { align-self: center; display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.rail__h { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.rail__h i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.toasts { display: block; width: 100%; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  background: rgba(13,22,38,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line2); border-radius: 13px; padding: 11px 13px; margin-bottom: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  transform: translateY(8px); opacity: 0; max-height: 120px;
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1),
              max-height .55s ease .12s, margin .55s ease .12s, padding .55s ease .12s, border-color .5s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.leaving { opacity: 0; transform: translateY(-4px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-color: transparent; }
.toast__ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.toast__ic.tg   { background: linear-gradient(135deg,#2aabee,#1f8fd6); }
.toast__ic.wa   { background: linear-gradient(135deg,#36d65f,#16a34a); }
.toast__ic.mail { background: linear-gradient(135deg,#ff7847,#ff4d8d); }
.toast__ic.push { background: linear-gradient(135deg,#1fd4ff,#3b6bff); }
.toast__b { line-height: 1.32; }
.toast__t { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.toast__t small { font-size: 10px; color: var(--faint); font-weight: 600; }
.toast__m { font-size: 12px; color: var(--muted); margin-top: 1px; }

.legend { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 3px; border-radius: 3px; }
.legend i.b1 { background: var(--cyan); }
.legend i.b2 { background: var(--blue); }
.legend i.b3 { background: var(--green); }

/* ============================================================
   §01 MERGE
   ============================================================ */
/* problem: the rented stack -> one platform */
.stack { display: grid; grid-template-columns: 1fr 76px 1fr; gap: 16px; align-items: stretch; }
.stack__side { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; }
.stack__side--old { background: rgba(255,255,255,.012); }
.stack__side--new { border-color: rgba(31,212,255,.4); background: linear-gradient(180deg, rgba(31,212,255,.05), rgba(31,212,255,.012)); box-shadow: var(--glow-cyan); }
.stack__cap { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.stack__badge { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.stack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frag { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: var(--r-sm); border: 1px dashed var(--line2); background: rgba(255,255,255,.012); }
.frag__n { font-size: 13px; font-weight: 600; color: var(--muted); }
.frag__t { font-size: 11px; color: var(--faint); }
.stack__foot { margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.stack__foot--new { color: var(--muted); }
.stack__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.stack__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--ink); line-height: 1.35; }
.stack__list li i { flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 5px; background: rgba(31,212,255,.12); border: 1px solid rgba(31,212,255,.45); position: relative; }
.stack__list li i::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.stack__mid { position: relative; display: grid; place-items: center; }
.stack__beam { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack__arrow { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--cyan); border: 1px solid rgba(31,212,255,.5); background: var(--bg); box-shadow: var(--glow-cyan); }
.merge__mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--cyan); border-radius: 8px; border: 1px solid var(--line2); background: rgba(31,212,255,.08); }

/* ============================================================
   §02 BENTO MODULES
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile__el { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.tile h3 { font-size: 18px; font-weight: 700; margin: 10px 0 8px; letter-spacing: -.01em; }
.tile p { font-size: 13.5px; color: var(--muted); }
.tile__visual { margin-top: 16px; }

.record { display: flex; flex-direction: column; gap: 8px; }
.record__row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.record__row span { color: var(--faint); }
.record__row b { font-weight: 600; }

.entities { display: flex; flex-direction: column; gap: 10px; }
.ent { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; }
.ent span { color: var(--muted); }
.ent .bar { height: 7px; border-radius: 7px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; }
.ent .bar::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 7px; background: var(--beam); }
.ent b { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

.pays { display: flex; flex-direction: column; gap: 8px; }
.pay { font-size: 12.5px; padding: 8px 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.pay.ok { color: var(--green); border-color: rgba(52,224,161,.3); }
.pay.warn { color: var(--amber); border-color: rgba(255,194,75,.3); }

.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow__node { font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.flow__node.accent { color: #04121d; background: var(--beam); border-color: transparent; }
.flow__edge { width: 18px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }

.roles { display: flex; flex-direction: column; gap: 8px; }
.role { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.role b { color: var(--cyan); font-weight: 700; }

/* treasury tile summary */
.ent__div { height: 1px; background: var(--line); margin: 16px 0 13px; }
.ent__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ent__sum > div { display: flex; flex-direction: column; gap: 3px; }
.ent__sum span { font-size: 11px; color: var(--faint); }
.ent__sum b { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ent__sum b.g { color: var(--green); }
.ent__note { margin-top: 13px; font-size: 11.5px; color: var(--faint); display: flex; align-items: center; }
.ent__note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 8px; flex: none; }
/* automation tile rules */
.rules { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rule { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 9px 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); }
.rule__w { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rule__a { color: var(--faint); text-align: right; }

.analytics { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.ana-bars { display: flex; align-items: flex-end; gap: 7px; height: 90px; flex: 1; }
.ana-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: var(--beam); opacity: .85; }
.ana-meta { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.ana-meta span { font-size: 12px; color: var(--faint); }
.ana-meta b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

/* ============================================================
   §03 AUTOMATION ENGINE
   ============================================================ */
.recipe { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 20px; }
.recipe__card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: var(--r); padding: 22px; min-height: 168px; }
.recipe__tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.recipe__swap { transition: opacity .3s ease, transform .3s ease; }
.recipe__swap.swap { opacity: 0; transform: translateY(-8px); }
.recipe__line { font-size: 14px; color: var(--muted); margin-top: 14px; }
.recipe__big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; color: var(--ink); }
.recipe__meta { font-size: 12.5px; color: var(--faint); }
.recipe__op { color: var(--faint); display: grid; place-items: center; }
.recipe__core { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.core { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.core__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line2); animation: coreSpin 9s linear infinite; }
.core__ring::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(31,212,255,.25); }
@keyframes coreSpin { to { transform: rotate(360deg); } }
.core__orb {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #04121d;
  background: radial-gradient(circle at 35% 30%, #7fe6ff, #1fd4ff 45%, #3b6bff);
  box-shadow: 0 0 30px rgba(31,212,255,.5), inset 0 2px 6px rgba(255,255,255,.4);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse { 0%,100%{ box-shadow: 0 0 26px rgba(31,212,255,.42), inset 0 2px 6px rgba(255,255,255,.4);} 50%{ box-shadow: 0 0 44px rgba(31,212,255,.7), inset 0 2px 6px rgba(255,255,255,.4);} }
.recipe__corelabel { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.recipe__out { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.recipe__out li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.recipe__out i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex: none; }
.esteps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
.estep { font-family: var(--ff); font-size: 13px; font-weight: 600; color: var(--muted); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.02); cursor: pointer; transition: all .2s ease; }
.estep:hover { color: var(--ink); border-color: var(--cyan); }
.estep.is-active { color: #04121d; background: var(--beam); border-color: transparent; }

/* ============================================================
   §04 CHANNELS
   ============================================================ */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.channels__list { display: flex; flex-direction: column; gap: 12px; }
.chan { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel2), var(--panel)); transition: border-color .25s ease, transform .25s ease; }
.chan:hover { transform: translateX(4px); border-color: var(--line2); }
.chan__ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--cyan); border: 1px solid var(--line2); background: rgba(31,212,255,.06); }
.chan__ic svg { width: 20px; height: 20px; }
.chan h4 { font-size: 15px; font-weight: 700; }
.chan p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.composer { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: var(--r); padding: 20px; box-shadow: 0 24px 50px rgba(0,0,0,.45); position: sticky; top: 90px; }
.composer__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge.ok { color: var(--green); background: rgba(52,224,161,.12); border: 1px solid rgba(52,224,161,.3); }
.composer__channels { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.ccoin { font-size: 12px; font-weight: 600; color: var(--muted); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2); }
.ccoin.on { color: #04121d; background: var(--beam); border-color: transparent; }
.composer__field { margin-bottom: 14px; }
.composer__field label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.composer__input { margin-top: 6px; font-size: 14px; padding: 11px 13px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.composer__rule { margin-top: 6px; font-size: 12.5px; color: var(--muted); padding: 11px 13px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.composer__rule i { color: var(--cyan); font-style: normal; font-weight: 700; }
.composer__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.composer__reach { font-size: 13px; color: var(--muted); }
.composer__reach b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============================================================
   §05 TREASURY
   ============================================================ */
.section--treasury { background: linear-gradient(180deg, transparent, rgba(10,17,32,.5), transparent); }
.trez-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.tkpi { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.tkpi--net { border-color: rgba(52,224,161,.4); box-shadow: 0 0 30px rgba(52,224,161,.1); }
.tkpi__k { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkpi__v { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tkpi__v--muted { color: var(--muted); }
.tkpi__v--amber { color: var(--amber); }
.tkpi__v--green { color: var(--green); }

.trez { display: grid; grid-template-columns: 196px 86px minmax(0,1fr) 86px 236px; align-items: stretch; }
.trez .sources { gap: 14px; }

.ledger { padding: 14px 16px 16px; }
.ledger__h, .ledger__row { display: grid; grid-template-columns: minmax(0,1.5fr) 1fr 1fr 1fr auto; gap: 10px; align-items: center; }
.ledger__h { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.ledger__h span:nth-child(n+2) { text-align: right; }
.ledger__row { font-size: 12.5px; padding: 11px 0; border-bottom: 1px solid rgba(120,165,235,.07); font-variant-numeric: tabular-nums; }
.ledger__row > span:nth-child(2), .ledger__row > span:nth-child(3), .ledger__row > b { text-align: right; }
.ledger__row b { font-weight: 700; }
.ledger__row .muted { color: var(--faint); }
.ledger__src { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger__src .d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.d--a { background: var(--cyan); } .d--b { background: var(--blue); } .d--c { background: var(--green); }
.ledger__st { justify-self: end; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ledger__st.ok { color: var(--green); background: rgba(52,224,161,.12); }
.ledger__st.pend { color: var(--amber); background: rgba(255,194,75,.12); }
.ledger__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.ledger__auto { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.ledger__auto i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.ledger__auto b { color: var(--green); font-weight: 700; }
.ledger__net { font-size: 12.5px; color: var(--faint); }
.ledger__net b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.banks { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.bank { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.bank__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bank__ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#1fd4ff,#3b6bff); }
.bank__name { font-size: 13px; font-weight: 700; }
.bank__sub { font-size: 11px; color: var(--faint); }
.bank__bal { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bank__last { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.bank__last b { font-weight: 700; }

/* ============================================================
   §06 SECURITY
   ============================================================ */
.secgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .25s ease, border-color .25s ease; }
.sec:hover { transform: translateY(-4px); border-color: var(--line2); }
.sec__ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--cyan); border: 1px solid var(--line2); background: rgba(31,212,255,.06); margin-bottom: 14px; }
.sec__ic svg { width: 22px; height: 22px; }
.sec h4 { font-size: 16px; font-weight: 700; }
.sec p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.sec__chip { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sec__chip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--cyan); }
.sec__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.sec__bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--beam); animation: rotbar 2.4s ease-in-out infinite; }
@keyframes rotbar { 0%{ margin-left: -40%; } 100%{ margin-left: 100%; } }
.sec__line { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.sec__line .dot-ok { color: var(--green); } .sec__line .warn { color: var(--amber); }
.sec__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sec__flags span { font-size: 11px; color: var(--muted); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }

/* ============================================================
   §07 DOMAIN DEPTH / BUILT FOR HIGH-RISK
   ============================================================ */
.depth { display: flex; flex-direction: column; gap: 18px; }
.dfeat { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.dfeat--rev .dfeat__text { order: 2; }
.dfeat__tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.dfeat__text h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.dfeat__text p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.dfeat__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dfeat__list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.dfeat__list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.dfeat__visual { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg2); padding: 16px 16px 14px; }
.dvh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.dvh b { color: var(--green); font-variant-numeric: tabular-nums; }
.dvf { margin-top: 12px; font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.dvf .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex: none; }

/* sender pool (deliverability) */
.pool { display: flex; flex-direction: column; gap: 8px; }
.pool__row { display: grid; grid-template-columns: minmax(0,1fr) 70px 46px 78px; gap: 9px; align-items: center; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.018); border: 1px solid var(--line); }
.pool__id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag { font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-align: center; padding: 3px 0; border-radius: 6px; }
.ptag--wa { color: #34e0a1; background: rgba(52,224,161,.12); }
.ptag--tg { color: #1fd4ff; background: rgba(31,212,255,.12); }
.pool__bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.pool__bar i { display: block; height: 100%; border-radius: 3px; background: var(--beam); }
.pool__st { font-size: 10.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.pool__st.ok { color: var(--green); }
.pool__st.warm { color: var(--amber); }
.pool__st.cool { color: var(--faint); }

/* payment cascade (routing) */
.casc { display: flex; flex-direction: column; gap: 0; }
.casc__step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.casc__step + .casc__step { margin-top: 18px; position: relative; }
.casc__step + .casc__step::before { content: ""; position: absolute; left: 24px; top: -14px; width: 1px; height: 10px; background: var(--line2); }
.casc__step + .casc__step::after { content: ""; position: absolute; left: 21px; top: -7px; width: 7px; height: 7px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg); }
.casc__step.good { border-color: rgba(52,224,161,.4); background: linear-gradient(100deg, rgba(52,224,161,.07), rgba(255,255,255,.012)); }
.casc__p { font-size: 13px; font-weight: 700; color: var(--ink); }
.casc__r { font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.casc__r.bad b { color: var(--magenta); }
.casc__r.win b { color: var(--green); }

/* vip / retention */
.vip__tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vtier { text-align: center; padding: 11px 6px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
.vtier--vip { border-color: rgba(31,212,255,.4); background: rgba(31,212,255,.07); box-shadow: var(--glow-cyan); }
.vtier__n { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.vtier--vip .vtier__n { color: var(--cyan); }
.vtier__c { display: block; font-size: 17px; font-weight: 800; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.vip__rule { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 13px; border-radius: 9px; background: rgba(31,212,255,.05); border: 1px solid var(--line2); }
.vip__rl { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); flex: none; }
.vip__rt { font-size: 12px; color: var(--ink); }
.vip__states { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.vstate { font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.vstate.ok { color: var(--green); border-color: rgba(52,224,161,.35); }
.vstate.warn { color: var(--amber); border-color: rgba(255,194,75,.35); }

/* ============================================================
   §08 COMPLIANCE & DATA SOVEREIGNTY
   ============================================================ */
.comply { display: flex; flex-direction: column; gap: 16px; }
.sov { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; align-items: center; padding: 28px 30px; border: 1px solid rgba(31,212,255,.34); border-radius: var(--r); background: linear-gradient(110deg, rgba(31,212,255,.07), rgba(255,255,255,.012)); box-shadow: var(--glow-cyan); }
.sov__head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.sov__head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sov p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.sov__chips { display: flex; flex-direction: column; gap: 9px; }
.sov__chip { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; color: var(--ink); padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line2); }
.sov__chip i { flex: none; width: 16px; height: 16px; border-radius: 5px; background: rgba(31,212,255,.12); border: 1px solid rgba(31,212,255,.45); position: relative; }
.sov__chip i::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 7px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.comply__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cpill { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.cpill__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--cyan); background: rgba(31,212,255,.08); border: 1px solid var(--line2); margin-bottom: 16px; }
.cpill h4 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.cpill__d { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.cpill__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cpill__list li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--ink); line-height: 1.4; }
.cpill__list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* ============================================================
   §09 WHY / COMPARISON
   ============================================================ */
.compare { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.ctable { width: 100%; border-collapse: collapse; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ctable th, .ctable td { padding: 14px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
.ctable thead th { font-size: 12px; letter-spacing: .04em; color: var(--faint); font-weight: 700; }
.ctable th.ctable__us, .ctable td.ctable__us { background: rgba(31,212,255,.05); }
.ctable thead .ctable__us { color: var(--cyan); }
.ctable td:first-child { color: var(--muted); }
.ctable tr:last-child td { border-bottom: none; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--faint); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.value__no { font-size: 12px; font-weight: 800; color: var(--cyan); letter-spacing: .1em; }
.value h4 { font-size: 15px; font-weight: 700; margin: 8px 0 6px; }
.value p { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   §10 ONBOARDING / MIGRATION
   ============================================================ */
.deploy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.step { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.014); }
.step--last { border-color: rgba(31,212,255,.34); background: linear-gradient(180deg, rgba(31,212,255,.05), rgba(31,212,255,.012)); box-shadow: var(--glow-cyan); }
/* chevron connector sitting in the gap between cards */
.step:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -11px; width: 8px; height: 8px; border-top: 1.5px solid var(--cyan); border-right: 1.5px solid var(--cyan); transform: rotate(45deg); opacity: .55; z-index: 2; }
.step__n { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--cyan); background: rgba(31,212,255,.08); border: 1px solid var(--line2); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.step--last .step__n { background: rgba(31,212,255,.14); border-color: rgba(31,212,255,.45); }
.step__t { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 9px; }
.step__d { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.step__meta { margin-top: auto; padding-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.step__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; }
.step--last .step__meta { color: var(--cyan); }
.deploy__assure { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 20px 24px; border: 1px solid var(--line2); border-radius: var(--r); background: linear-gradient(100deg, rgba(31,212,255,.05), rgba(255,255,255,.012)); }
.deploy__assure .merge__mark { flex: none; }
.deploy__assure p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.deploy__assure b { color: var(--cyan); font-weight: 700; }

/* ============================================================
   §11 PRICING
   ============================================================ */
.plans { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.plan--primary { border-color: var(--line2); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 50px rgba(31,212,255,.08); position: relative; }
.plan--primary::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); padding: 1px; background: linear-gradient(135deg, rgba(31,212,255,.5), transparent 50%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__el { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.plan h3 { font-size: 22px; font-weight: 800; margin: 16px 0 4px; }
.plan__desc { font-size: 13.5px; color: var(--muted); }
.plan__price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 16px 0 2px; }
.plan__sub { font-size: 12.5px; color: var(--faint); }
.plan__feat { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.plan__feat li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--ink); }
.plan__feat li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.plan__feat--muted li { color: var(--muted); }
.plan__feat--muted li::before { border-color: var(--faint); }
.plan__div { height: 1px; background: var(--line); margin: 18px 0; }

/* ============================================================
   §12 VERTICALS
   ============================================================ */
.verticals { display: flex; flex-wrap: wrap; gap: 12px; }
.vert { font-size: 14px; font-weight: 600; color: var(--muted); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.015); transition: all .2s ease; }
.vert:hover { color: var(--ink); border-color: var(--cyan); }
.vert--on { color: #04121d; background: var(--beam); border-color: transparent; box-shadow: var(--glow-cyan); }

/* ============================================================
   §13 FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.qa { border: 1px solid var(--line); border-radius: var(--r-sm); background: linear-gradient(180deg, var(--panel2), var(--panel)); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 18px 20px; font-size: 15.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__x { position: relative; width: 16px; height: 16px; flex: none; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; background: var(--cyan); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.qa__x::before { left: 0; top: 7px; width: 16px; height: 2px; }
.qa__x::after { left: 7px; top: 0; width: 2px; height: 16px; }
.qa[open] .qa__x::after { transform: scaleY(0); opacity: 0; }
.qa p { padding: 0 20px 20px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta { padding: 110px 0; text-align: center; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 50% 30%, rgba(31,212,255,.12), transparent 70%); pointer-events: none; }
.cta__inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta__inner .marker { text-align: center; }
.cta__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; margin-bottom: 16px; }
.cta__sub { color: var(--muted); font-size: 16px; max-width: 60ch; margin: 0 auto 28px; }
.cta__form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta__form input { font-family: var(--ff); font-size: 14px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.02); color: var(--ink); min-width: 220px; }
.cta__form input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.cta__form input::placeholder { color: var(--faint); }
.cta__note { margin-top: 16px; font-size: 14px; color: var(--green); }
.cta__alt { margin-top: 22px; font-size: 13.5px; color: var(--faint); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta__alt a { color: var(--cyan); font-weight: 600; }
.cta__alt .sep { color: var(--faint); }

.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__brand p { font-size: 13px; color: var(--muted); }
.footer__cols { display: flex; gap: 50px; flex-wrap: wrap; }
.footer__cols h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer__cols a { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; transition: color .2s ease; }
.footer__cols a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .dots { display: none; }
  .bento, .secgrid { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .compare { grid-template-columns: 1fr; }
  .trez-kpis { grid-template-columns: repeat(3, 1fr); }
  .deploy { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .dfeat, .dfeat--rev { grid-template-columns: 1fr; gap: 22px; }
  .dfeat--rev .dfeat__text { order: 0; }
}
@media (max-width: 920px) {
  .living, .trez { grid-template-columns: 1fr; gap: 22px; }
  .channel { min-height: 78px; }
  .channel--out { display: none; }
  .rail, .banks { min-height: 0; }
  .toast { transform: translateY(14px); }
  .toast.show { transform: translateY(0); }
  .panel__body { grid-template-columns: 1fr; }
  .recipe { grid-template-columns: 1fr; gap: 14px; }
  .recipe__op { transform: rotate(90deg); }
  .channels { grid-template-columns: 1fr; }
  .composer { position: static; }
  .plans { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .bento, .secgrid, .values { grid-template-columns: 1fr; }
  .trust__stats { grid-template-columns: repeat(2, 1fr); }
  .trust__quotes { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .trez-kpis { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: 1fr; }
  .stack__mid { height: 46px; }
  .stack__beam { display: none; }
  .stack__arrow { transform: rotate(90deg); }
  .deploy { grid-template-columns: 1fr; }
  .dfeat { padding: 22px; }
  .sov { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .comply__grid { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .step__meta { margin-top: 14px; }
  .deploy__assure { flex-direction: column; text-align: center; gap: 12px; }
  .ctable th, .ctable td { padding: 11px 10px; font-size: 12px; }
  .section { padding: 64px 0; }
  .ledger__h, .ledger__row { grid-template-columns: minmax(0,1.4fr) 1fr 1fr auto; }
  .ledger__h span:nth-child(4), .ledger__row > span:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .toast { transform: none; opacity: 1; }
}
