@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Dark only, by choice. Neutral greys match the zebra. Yellow marks actions and approvals. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #141414;
  --raised: #1c1c1c;
  --line: #2a2a2a;
  --text: #f4f4f0;
  --muted: #a1a1a1;
  --faint: #8e8e8e;
  --accent: #f4b728;
  --accent-soft: rgba(244, 183, 40, 0.12);
  --ok: #4ccb8f;
  --bad: #ff7b72;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --s-0: 1rem;
  --s-1: 1.125rem;
  --s-4: clamp(2.6rem, 6vw, 4.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--s-0)/1.6 var(--sans);
  padding-inline: 20px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin-inline: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 18px; border-radius: 999px; font: 500 0.92rem/1 var(--sans); text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); transition: background 0.2s, border-color 0.2s; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--raised); border-color: #3a3a3a; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: #ffc94a; border-color: #ffc94a; }
.btn.lg { height: 48px; padding-inline: 22px; font-size: 1rem; }

/* Hero */
main.wrap { min-height: calc(100svh - 64px); display: grid; grid-template-rows: 1fr auto; }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; align-self: center; padding-block: 88px 80px; position: relative; isolation: isolate; }
.hero > :not(.cipherbg) { position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font: 500 0.82rem/1 var(--mono); color: var(--muted); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(76, 203, 143, 0.18); }
.hero h1 { font-size: var(--s-4); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
.hero h1 .accent { color: var(--accent); font-weight: 700; }
.lede { font-size: var(--s-1); color: var(--muted); max-width: 46ch; line-height: 1.65; }
.hl { color: var(--text); font-weight: 600; }
.trust { display: flex; gap: 10px 22px; flex-wrap: wrap; font: 400 0.85rem/1.4 var(--mono); color: var(--faint); }
.trust span::before { content: "✓ "; color: var(--ok); }
.story { max-width: 46ch; font-size: 0.92rem; color: var(--muted); }
.story b { color: var(--text); font-weight: 600; }
.fine { max-width: 46ch; font: 400 0.8rem/1.5 var(--mono); color: var(--faint); }

.cipherbg { position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; pointer-events: none; --x: 72%; --y: 42%; }
.cipherbg pre { position: absolute; inset: 0; margin: 0; padding: 12px; font: 400 12px/1.6 var(--mono); letter-spacing: 0.08em; white-space: pre-wrap; word-break: break-all; user-select: none; }
#cDim { color: #2c2c2c; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, #000 10%, transparent 75%); }
#cLit { color: var(--text); opacity: 0.3; -webkit-mask-image: radial-gradient(circle 170px at var(--x) var(--y), #000, transparent 100%); mask-image: radial-gradient(circle 170px at var(--x) var(--y), #000, transparent 100%); }

.join { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; max-width: 480px; }
.join-input { height: 48px; min-width: 0; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 400 1rem var(--sans); }
.join-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.join-msg { grid-column: 1 / -1; font: 400 0.85rem/1.4 var(--mono); color: var(--faint); }
.join-msg:empty { display: none; }
.join-msg.ok { color: var(--ok); }
.join-msg.bad { color: var(--bad); }
.join.done .join-input, .join.done button { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news { display: grid; gap: 10px; justify-items: start; width: 100%; }

/* Hero product cards */
.visual { position: relative; display: grid; padding: 24px 0 40px; }
.visual::before { content: ""; position: absolute; inset: 10% 5% 0; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent); filter: blur(10px); pointer-events: none; }
.ui { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85); }
.ui.inside { width: 88%; padding: 22px; display: grid; gap: 18px; }
.ui.outside { width: 70%; justify-self: end; margin-top: -18px; padding: 18px 20px; display: grid; gap: 12px; background: rgba(28, 28, 28, 0.96); backdrop-filter: blur(6px); }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ui-label { font: 500 0.75rem/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; }
.chip { font: 500 0.75rem/1 var(--mono); padding: 5px 9px; border-radius: 999px; background: rgba(76, 203, 143, 0.12); color: var(--ok); }
.amount { display: grid; gap: 4px; }
.amount b { font: 600 2rem/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); font-size: 0.9rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 0.88rem; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); color: var(--muted); }
.signers { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.avatars { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 0.8rem/1 var(--sans); background: var(--raised); border: 1px solid var(--line); color: var(--faint); position: relative; }
.av.on { color: var(--text); border-color: rgba(76, 203, 143, 0.6); }
.av.on::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #08130d; font-size: 0.6rem; display: grid; place-items: center; font-weight: 700; }
.avatars small { margin-left: 4px; color: var(--muted); font-size: 0.88rem; }
.bar { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #ffd36a); border-radius: inherit; transform-origin: left; animation: fill 1.6s ease-out both; }
@keyframes fill { from { transform: scaleX(0.5); } }
.redacted { display: grid; grid-template-columns: max-content 1fr; gap: 9px 16px; margin: 0; font-size: 0.88rem; align-items: center; }
.redacted dt { color: var(--faint); }
.redacted dd { margin: 0; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, #333 0 6px, #272727 6px 9px); }
.outside .foot { display: flex; align-items: center; gap: 8px; font: 500 0.85rem/1 var(--mono); color: var(--text); border-top: 1px solid var(--line); padding-top: 12px; }
.outside .foot i { width: 8px; height: 8px; border-radius: 2px; background: var(--text); }

footer { display: grid; gap: 8px; padding-block: 40px 48px; margin-top: 64px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.88rem; }
footer p { max-width: 80ch; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px; }
}
@media (max-width: 600px) {
  .ui.inside, .ui.outside { width: 100%; }
  .ui.outside { margin-top: 14px; }
  /* The moving text stays behind the headline only, away from small text. */
  .cipherbg { -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 18%); mask-image: linear-gradient(180deg, #000 0, transparent 18%); }
  #cLit { display: none; }
}
@media (max-width: 480px) { .join { grid-template-columns: 1fr; } }

/* 404 page */
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; }
