/* Helping Hand — a ledger, not a casino. */
:root {
  --bg: #050506;
  --panel: #0f1011;
  --alt: #0a0a0c;
  --ink: #ffffff;
  --body: #b5b9bd;
  --dim: #767a80;
  --line: #1c1e21;
  --accent: #00c805;               /* the green */
  --accent-soft: rgba(0, 200, 5, .12);
  --accent-dim: #0a3d12;
  --bad: #ff5f56;
  --bad-soft: rgba(255, 95, 86, .12);
  --warn: #f0b429;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--body); font-family: var(--sans);
  font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
a { color: var(--accent); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(5,5,6,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.mark { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.015em; }
.mark { display: inline-flex; align-items: center; }
/* The mark itself, not a stand-in dot. Transparent-background version so it
   sits on the bar's blur rather than punching a dark square into it. */
.mark::before { content: ""; display: inline-block; width: 26px; height: 26px;
  background: url("brand/mark.svg") center/contain no-repeat; margin-right: 10px;
  filter: drop-shadow(0 0 7px rgba(0,200,5,.45)); }
.chip { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
/* Without this, "How it works" breaks across two lines and shoves the bar
   out of alignment once there are enough items in it. */
.nav a { color: var(--body); text-decoration: none; font-size: .92rem; font-weight: 500;
  white-space: nowrap; }
/* Drop the least load-bearing links before the bar starts wrapping. */
@media (max-width: 1000px) { .nav a[href$="#limits"], .nav a[href$="#how"] { display: none; } }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: #04170a; text-decoration: none;
  font-weight: 700; font-size: .95rem; padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--accent); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,200,5,.22); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.sm { padding: 7px 15px; font-size: .88rem; border-radius: 7px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 104px 0 74px; border-bottom: 1px solid var(--line);
  overflow: hidden; }
.hero-in { position: relative; z-index: 1; }
/* a slow drift, so the page has a pulse without anything blinking at you */
.glowfield { position: absolute; inset: -40% -20% auto -20%; height: 190%;
  background:
    radial-gradient(620px 420px at 18% 12%, rgba(0,200,5,.16), transparent 62%),
    radial-gradient(520px 360px at 78% 4%, rgba(0,200,5,.07), transparent 66%);
  animation: drift 26s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); }
                   to   { transform: translate3d(4%, 3%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .glowfield { animation: none; } }

.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(0,200,5,.55); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(0,200,5,0); }
                  100% { box-shadow: 0 0 0 0 rgba(0,200,5,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.08; letter-spacing: -.03em;
  color: var(--ink); font-weight: 700; margin-bottom: 22px; }
.lede { font-size: 1.12rem; max-width: 620px; }
.lede em { font-style: normal; color: var(--ink); font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 44px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; }
.stat { background: var(--panel); padding: 18px 20px; transition: background .15s ease; }
.stat:hover { background: #131416; }
.stat .n { display: block; font-size: .72rem; color: var(--dim); margin-top: 2px; }
.stat .k { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.stat .v { font-size: 1.5rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.stat .v.ok { color: var(--accent); }

/* ---------- panels ---------- */
.panel { padding: 72px 0; border-bottom: 1px solid var(--line); }
.panel.alt { background: var(--alt); }
h2 { font-size: 1.85rem; letter-spacing: -.022em; color: var(--ink); font-weight: 700;
  margin-bottom: 12px; }
.sub { max-width: 640px; margin-bottom: 32px; }
.fine { font-size: .87rem; color: var(--dim); margin-top: 20px; }
h3 { font-size: 1.06rem; color: var(--ink); font-weight: 600; margin-bottom: 7px;
  letter-spacing: -.01em; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.card:hover { border-color: #2a2d31; }
.card .name { font-weight: 600; color: var(--ink); line-height: 1.35; }
.card .cid { font-family: var(--mono); font-size: .69rem; color: var(--dim);
  word-break: break-all; line-height: 1.5; }
.badge { align-self: flex-start; font-family: var(--mono); font-size: .66rem; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.badge.live { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-dim); }
.badge.wait { background: transparent; color: var(--dim); border: 1px solid var(--line); }
.badge.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(255,95,86,.28); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 20px; margin-bottom: 40px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 22px 24px 22px 66px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 24px;
  top: 22px; font-family: var(--mono); font-size: .82rem; color: var(--accent); font-weight: 500; }

/* ---------- proof table ---------- */
.proof { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 11px; padding: 26px; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .93rem; }
.tbl th { text-align: left; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--dim); font-weight: 500; padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--ink); width: 42%; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.empty { color: var(--dim); background: var(--panel); border: 1px dashed var(--line);
  border-radius: 11px; padding: 30px; text-align: center; grid-column: 1 / -1; }

/* ---------- limits ---------- */
.limit { background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 20px 22px; margin-bottom: 12px; }
.limit.warn { border-color: rgba(240,180,41,.3); background: rgba(240,180,41,.05); }
.limit.warn h3 { color: var(--warn); }
.limit p { font-size: .95rem; }
.limit p + p { margin-top: 10px; }

.soon { background: var(--panel); border: 1px dashed var(--line); border-radius: 11px;
  padding: 28px; text-align: center; }
.soon strong { color: var(--ink); }

/* ---------- launch form ---------- */
.lform { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; display: grid; gap: 16px; }
.lform .frow { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 560px) { .lform .frow { grid-template-columns: 1fr; } }
.fi { display: grid; gap: 6px; }
.fi label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); }
.fi .opt { text-transform: none; letter-spacing: 0; color: #5d6167; }
.fi input, .fi select { width: 100%; background: #0b0c0d; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px;
  font-family: var(--sans); font-size: .97rem; outline: none; transition: border-color .15s ease; }
.fi input::placeholder { color: #4d5157; }
.fi input:focus, .fi select:focus { border-color: var(--accent); }
.fi select option:disabled { color: #5d6167; }
.lnote { background: #0b0c0d; border: 1px solid var(--line); border-radius: 9px;
  padding: 14px 16px; font-size: .87rem; color: var(--body); }
.lnote p + p { margin-top: 8px; }
.lnote b { color: var(--ink); }
.lstatus { font-size: .9rem; color: var(--dim); min-height: 1.2em; }
.lstatus.bad { color: var(--bad); }
.lstatus.ok { color: var(--accent); }
.lstatus a { color: inherit; }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sub.tight { margin-bottom: 0; }

/* ---------- token chart ---------- */
.chartwrap { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 20px 22px 12px; }
.price { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.delta { font-family: var(--mono); font-size: .84rem; margin-left: 10px; }
.delta.up { color: var(--accent); } .delta.down { color: var(--bad); }
.chart-meta { display: flex; gap: 20px; font-size: .85rem; color: var(--dim); }
.chart-meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart { position: relative; height: 220px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--dim); font-size: .92rem; text-align: center;
  padding: 0 28px; }

/* ---------- donation ledger ---------- */
.ledger { border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  overflow: hidden; }
.led { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--line); }
.led:last-child { border-bottom: 0; }
.led:hover { background: #131416; }
.led-empty { padding: 34px; text-align: center; color: var(--dim); }
.led .amt { font-family: var(--mono); font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.led .who { min-width: 0; }
.led .who b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.led .who span { font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.led .when { font-family: var(--mono); font-size: .74rem; color: var(--dim); white-space: nowrap; }
.led a.tx { font-family: var(--mono); font-size: .74rem; color: var(--dim);
  text-decoration: none; border-bottom: 1px dotted #33363a; }
.led a.tx:hover { color: var(--accent); border-color: var(--accent); }
.pill { font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.pill.transit { background: rgba(240,180,41,.12); color: var(--warn);
  border: 1px solid rgba(240,180,41,.28); }
.pill.done { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-dim); }
@media (max-width: 620px) { .led { grid-template-columns: 1fr auto; }
  .led .when, .led a.tx { display: none; } }

/* ---------- flow diagram ---------- */
.flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.fnode { flex: 1 1 150px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; }
.fnode.end { border-color: var(--accent-dim); background: rgba(0,200,5,.05); }
.fnode .fk { display: block; font-family: var(--mono); font-size: .68rem; color: var(--accent);
  margin-bottom: 6px; }
.fnode b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 3px; }
.fnode span { font-size: .82rem; color: var(--dim); }
.farrow { align-self: center; color: var(--accent); font-size: 1.1rem; }
@media (max-width: 700px) { .farrow { display: none; } }

/* ---------- campaign page ---------- */
.camp-head { padding: 40px 0 34px; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 260px at 10% 0%, rgba(0,200,5,.07), transparent 70%); }
.back { font-size: .88rem; text-decoration: none; color: var(--dim); }
.back:hover { color: var(--ink); }
.camp-top { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin: 14px 0 10px; }
.camp-top h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0; }
.camp-name { color: var(--dim); font-size: 1.02rem; }
.camp-charity { text-align: right; }
.camp-charity .k { display: block; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.camp-charity .v { font-weight: 600; color: var(--accent); font-size: 1.05rem; }
.addr { font-family: var(--mono); font-size: .76rem; color: var(--dim); word-break: break-all; }
.addr a { color: var(--dim); }
.addr a:hover { color: var(--accent); }

.verdict { background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 20px 22px; margin-bottom: 16px; }
.verdict p { margin-top: 8px; color: var(--ink); font-size: 1.02rem; }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 15px 18px; }
.checks .tick { font-size: 1rem; line-height: 1.5; font-weight: 700; }
.checks li.pass { border-left: 3px solid var(--accent); }
.checks li.pass .tick { color: var(--accent); }
.checks li.fail { border-left: 3px solid var(--bad); }
.checks li.fail .tick { color: var(--bad); }
.checks strong { display: block; color: var(--ink); font-weight: 600; font-size: .97rem; }
.checks .detail { display: block; font-family: var(--mono); font-size: .72rem;
  color: var(--dim); margin-top: 3px; word-break: break-all; }

.log { list-style: none; font-family: var(--mono); font-size: .82rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.log li { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--body); }
.log li:last-child { border-bottom: 0; }
.log li.idle { color: var(--dim); }
.log .ok { color: var(--accent); font-weight: 500; }
.log .slow { color: var(--warn); font-weight: 500; }
.log .t { color: var(--dim); float: right; }

/* ---------- footer ---------- */
footer { padding: 40px 0 60px; }
.foot .fine + .fine { margin-top: 10px; }
.foot strong { color: var(--ink); }
code { font-family: var(--mono); font-size: .86em; background: #17181a;
  padding: 1px 5px; border-radius: 4px; color: var(--body); }

/* ============================================================
   Visual layer — depth, bubbles, and the mechanism diagram.
   Added on top of the original system; nothing above is restyled,
   so the type scale and spacing stay exactly as they were.
   ============================================================ */

/* ---------- the bubble field ---------- */
/* Fixed behind everything. Low opacity and a mask that fades the top so it
   never sits under the header text fighting for contrast. */
#bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; opacity: .95;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 100%); }
/* Everything real sits above it. */
body > header, body > section, body > footer { position: relative; z-index: 1; }

/* ---------- panels get depth ---------- */
/* A hairline of light along the top edge — the cheapest way to make a flat
   dark surface read as a raised one. */
.panel { position: relative; }
.panel.alt::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,5,.28), transparent); }

.stat, .card, .proof, .steps li, .chartwrap, .limit {
  background-image: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 62%); }

/* ---------- cards lift ---------- */
.card { position: relative; overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.card::after { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,5,.5), transparent);
  opacity: 0; transition: opacity .16s ease; }
.card:hover { transform: translateY(-2px); border-color: #2f3338;
  box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(0,200,5,.06); }
.card:hover::after { opacity: 1; }

.stat { position: relative; }
.stat .v { position: relative; }
.stat .v.ok { text-shadow: 0 0 22px rgba(0,200,5,.35); }

/* ---------- the mechanism diagram ---------- */
.diagram { margin: 6px 0 34px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 60%), var(--panel);
  padding: 26px 20px 18px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 660px; height: auto; }

.d-node { fill: #141618; stroke: #23262a; }
.d-node.is-vault { stroke: var(--accent); }
.d-title { fill: var(--ink); font: 600 13px var(--sans); }
.d-sub { fill: var(--dim); font: 400 10.5px var(--mono); }
.d-step { fill: var(--accent); font: 500 9.5px var(--mono); letter-spacing: .09em; }
.d-wire { stroke: #2a2d31; stroke-width: 1.6; fill: none; }
.d-wire.live { stroke: var(--accent); }
.d-dead { stroke: var(--bad); stroke-width: 1.5; fill: none; opacity: .55;
  stroke-dasharray: 4 4; }
.d-deadlabel { fill: var(--bad); font: 400 10px var(--mono); opacity: .8; }
.d-x { stroke: var(--bad); stroke-width: 1.7; opacity: .9; }

/* A bright segment travelling the live path: the fee actually moving. Done as
   a dash offset rather than SMIL, so prefers-reduced-motion can switch it off. */
.d-pulse { stroke: var(--accent); stroke-width: 2.6; fill: none; stroke-linecap: round;
  stroke-dasharray: 14 300; filter: drop-shadow(0 0 5px rgba(0,200,5,.75)); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .d-pulse { opacity: 1; animation: dashflow 4.4s linear infinite; }
}
@keyframes dashflow { from { stroke-dashoffset: 314; } to { stroke-dashoffset: 0; } }

.d-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px;
  font-family: var(--mono); font-size: .68rem; color: var(--dim); }
.d-legend span { display: inline-flex; align-items: center; gap: 7px; }
.d-legend i { width: 16px; height: 0; border-top: 2px solid var(--accent); display: inline-block; }
.d-legend i.dead { border-top: 2px dashed var(--bad); }

/* ---------- charity cards ---------- */
/* Was five near-identical blocks of monospace hash. The glyph gives each cause
   something to recognise it by at a glance, and the amount received turns the
   card from a claim into a reading. */
.card.ch { gap: 0; padding: 22px; }
.ch-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ch-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); }
.ch-icon svg { width: 21px; height: 21px; }
.card.ch .name { font-size: 1rem; margin-bottom: 12px; }

.ch-raised { padding: 11px 0 13px; margin-bottom: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ch-raised b { display: block; font-family: var(--mono); font-size: 1.02rem; color: var(--ink);
  font-variant-numeric: tabular-nums; font-weight: 500; }
.ch-raised span { font-size: .7rem; color: var(--dim); }

.card.ch .cid { margin-bottom: 4px; }
.ch-link { font-size: .86rem; margin-top: 10px; display: inline-block; }

/* ---------- donation ledger ---------- */
/* A rail down the left so the rows read as a sequence of events rather than a
   table, and the amount gets the weight it deserves. */
.ledger { position: relative; }
.led { position: relative; padding-left: 40px !important; transition: background .14s ease; }
.led::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 1px;
  background: var(--line); }
.led:first-child::before { top: 50%; }
.led:last-child::before { bottom: 50%; }
.led::after { content: ""; position: absolute; left: 17px; top: 50%; width: 9px; height: 9px;
  margin-top: -4.5px; border-radius: 50%; background: var(--panel);
  border: 2px solid var(--dim); }
.led.is-done::after { border-color: var(--accent); box-shadow: 0 0 9px rgba(0,200,5,.55); }
.led.is-transit::after { border-color: var(--warn); }
.led .amt { font-size: 1rem; }
.led:hover::after { transform: scale(1.15); }
@media (max-width: 620px) {
  .led { grid-template-columns: auto 1fr !important; row-gap: 6px; }
  .led .amt, .led a.tx { grid-column: 2; justify-self: start; }
}
