/* ============================================================
   Signet — landing. "Terminal / Proof" identity: monospace-forward,
   hairline rules, paper-dark + one ink accent. No gradients, no glow,
   no mesh, no grain. Self-contained (does not import styles.css).
   ============================================================ */

:root {
  --bg: #0b0c0e;
  --s1: #101214;
  --s2: #15171a;
  --s3: #1b1e22;
  --bd: rgba(255, 255, 255, 0.10);
  --bd-2: rgba(255, 255, 255, 0.18);
  --tx: #e8e9ea;
  --tx-2: #9aa0a6;
  --tx-3: #61666c;
  --ink: #c6f24e;          /* single accent — electric lime, off the Sui-blue */
  --ink-2: #d8ff6a;
  --ok: #79e07a;
  --bad: #ff6b5e;
  --disp: 'Archivo', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'JetBrains Mono', monospace;
  --maxw: 1180px;
  --r: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint terminal grid instead of a gradient mesh */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
b { font-weight: 600; color: var(--tx); }
.mono { font-family: var(--mono); }
.accent { color: var(--ink); }
.muted { color: var(--tx-2); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* legacy FX hooks — neutralised (markup no longer ships them, but stay safe) */
.bg-fx, .grain { display: none; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--bd); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; text-transform: lowercase; }
.brand img { width: 22px; height: 22px; border-radius: var(--r); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--tx-2); font-size: 13px; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; color: var(--tx); cursor: pointer; padding: 8px; }

/* ---------- buttons (bracketed terminal style, flat) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 500; font-size: 13.5px;
  padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--bd-2);
  background: transparent; color: var(--tx);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn::before { content: '['; color: var(--tx-3); margin-right: 2px; }
.btn::after { content: ']'; color: var(--tx-3); margin-left: 2px; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:hover::before, .btn:hover::after { color: var(--ink); }
.btn-primary { border-color: var(--ink); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: #0a0c05; }
.btn-primary:hover::before, .btn-primary:hover::after { color: #0a0c05; }
.btn-lg { padding: 13px 20px; font-size: 14.5px; }

/* ---------- hero (left-aligned, editorial-terminal) ---------- */
.hero { padding: 84px 0 64px; position: relative; }
#heroCanvas { display: none; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-size: 12px; color: var(--tx-2); letter-spacing: .02em;
  padding: 6px 12px; border: 1px solid var(--bd); border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 2s infinite; }
.hero h1 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(38px, 6.6vw, 78px); line-height: 1.0;
  letter-spacing: -0.03em; max-width: 16ch; margin: 0 0 22px;
  color: var(--tx);
}
.hero h1 .grad { color: var(--ink); }
.hero h1::after { content: '_'; color: var(--ink); animation: blink 1.1s step-end infinite; margin-left: .06em; }
.hero .sub { font-size: clamp(15px, 1.7vw, 17.5px); color: var(--tx-2); max-width: 62ch; margin: 0 0 30px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

/* credibility badges — mono chips, hairline */
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--tx-2);
  padding: 6px 11px; border: 1px solid var(--bd); border-radius: var(--r);
}
.badge b { color: var(--tx); }
.badge .lv { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ---------- hero receipt panel (flat terminal frame) ---------- */
.hero-stage { margin-top: 44px; }
.hero-card { border: 1px solid var(--bd); border-radius: var(--r); background: var(--s1); overflow: hidden; }
.hc-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--bd); background: var(--s2); }
.hc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bd-2); }
.hc-dot.r, .hc-dot.y, .hc-dot.g { background: var(--bd-2); } /* drop the macOS traffic-lights colours — keep it neutral */
.hc-title { font-size: 12.5px; color: var(--tx-2); margin-left: 4px; }
.hc-verified { margin-left: auto; font-size: 12px; color: var(--ink); }
.hc-rows { padding: 6px 0; }
.hc-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 16px; font-size: 12.5px; color: var(--tx-2); border-top: 1px dashed var(--bd); }
.hc-row:first-child { border-top: 0; }
.hc-row .ok { color: var(--ink); }

/* provenance chain — terminal tokens */
.chain { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; padding: 18px 16px; border-bottom: 1px solid var(--bd); }
.chain-node { flex: 1 1 0; min-width: 120px; padding: 12px 14px; border: 1px solid var(--bd); border-radius: var(--r); background: var(--bg); transition: border-color .2s, background .2s; }
.chain-node .k { font-size: 10.5px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .12em; }
.chain-node .v { font-size: 13px; color: var(--tx); margin-top: 5px; }
.chain-node.on { border-color: var(--ink); background: var(--s2); }
.chain-node.on .v { color: var(--ink); }
.chain-arrow { display: flex; align-items: center; color: var(--tx-3); padding: 0 8px; }
.chain-arrow.lit { color: var(--ink); }

/* ---------- live activity ticker ---------- */
.ticker-wrap { border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 46px; }
.ticker-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink); letter-spacing: .14em; flex: none; }
.ticker-label .lv { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: pulse 2s infinite; }
.ticker { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: inline-flex; gap: 28px; white-space: nowrap; will-change: transform; animation: ticker-scroll 40s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 12px; color: var(--tx-2); display: inline-flex; align-items: center; gap: 8px; }
.ticker-item .tk-type { color: var(--ink); }
.ticker-item .tk-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--tx-3); }
.ticker-item a { color: var(--tx-2); border-bottom: 1px dashed transparent; }
.ticker-item a:hover { color: var(--ink); border-bottom-color: var(--bd-2); }

/* ---------- section scaffolding ---------- */
section { padding: 72px 0; position: relative; }
.divider { height: 1px; background: var(--bd); max-width: var(--maxw); margin: 0 auto; }
.sec-head { max-width: 64ch; margin: 0 0 40px; }
.kicker { font-size: 12px; color: var(--ink); letter-spacing: .04em; }
.kicker::before { content: '// '; color: var(--tx-3); }
.sec-head h2 { font-family: var(--disp); font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.025em; margin: 12px 0 12px; line-height: 1.08; }
.sec-head p { color: var(--tx-2); font-size: 15.5px; }

/* reveal-on-scroll (subtle) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- problem (ledger cells) ---------- */
.prob-grid, .feat-grid, .steps, .stat-grid, .aud-grid, .apps-grid { display: grid; gap: 0; }
.prob-grid { grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bd); border-radius: var(--r); }
.prob { padding: 26px; border-left: 1px solid var(--bd); }
.prob:first-child { border-left: 0; }
.prob .x { color: var(--bad); font-size: 16px; }
.prob h3 { font-family: var(--disp); font-size: 16px; margin: 12px 0 8px; font-weight: 700; }
.prob p { color: var(--tx-2); font-size: 13.5px; }

/* ---------- how it works (numbered ledger) ---------- */
.steps { grid-template-columns: repeat(5, 1fr); border: 1px solid var(--bd); border-radius: var(--r); }
.step { padding: 22px 18px; border-left: 1px solid var(--bd); }
.step:first-child { border-left: 0; }
.step .n { font-size: 12px; color: var(--ink); margin-bottom: 12px; }
.step .n::before { content: '0'; }
.step h3 { font-family: var(--disp); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--tx-2); font-size: 13px; line-height: 1.55; }

/* ---------- features (hairline cells, index numbers) ---------- */
.feat-grid { grid-template-columns: repeat(4, 1fr); border: 1px solid var(--bd); border-radius: var(--r); counter-reset: feat; }
.feat { padding: 24px; border-left: 1px solid var(--bd); border-top: 1px solid var(--bd); counter-increment: feat; position: relative; transition: background .15s; }
/* first row: no top border; first column: no left border */
.feat:nth-child(-n+2) { border-top: 0; }
.feat:nth-child(odd) { border-left: 0; }
.feat:hover { background: var(--s1); }
.feat::after { content: counter(feat, decimal-leading-zero); position: absolute; top: 18px; right: 18px; font-size: 11px; color: var(--tx-3); }
.feat .ico { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--bd-2); color: var(--ink); font-size: 18px; }
.feat h3 { font-family: var(--disp); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--tx-2); font-size: 13.5px; line-height: 1.55; }
.feat-wide { grid-column: span 2; }

/* ---------- proof / verify ---------- */
.stat-grid { grid-template-columns: repeat(4, 1fr); border: 1px solid var(--bd); border-radius: var(--r); margin-bottom: 26px; }
.stat { text-align: left; padding: 26px 22px; border-left: 1px solid var(--bd); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--disp); font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--tx); font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--tx-2); font-size: 12.5px; margin-top: 10px; }
.proof-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; }
.proof-meta .chip { display: inline-flex; gap: 6px; padding: 6px 11px; border: 1px solid var(--bd); border-radius: var(--r); color: var(--tx-2); }
.proof-meta a { color: var(--ink); border-bottom: 1px dashed var(--bd-2); }
.proof-meta a:hover { border-bottom-color: var(--ink); }

/* interactive verifier */
.verifier { margin-top: 34px; border: 1px solid var(--bd); border-radius: var(--r); background: var(--s1); overflow: hidden; }
.verifier-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; border-bottom: 1px solid var(--bd); }
.verifier-head h3 { font-family: var(--disp); font-size: 16px; font-weight: 700; margin-top: 4px; }
.verifier-ctl { display: flex; gap: 10px; flex-wrap: wrap; }
.verifier-ctl select { background: var(--bg); color: var(--tx); border: 1px solid var(--bd-2); border-radius: var(--r); padding: 9px 13px; font-family: var(--mono); font-size: 12.5px; min-width: 220px; cursor: pointer; }
.verifier-steps { padding: 16px 22px; min-height: 60px; }
.vstep { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--bd); font-size: 13.5px; }
.vstep:last-child { border-bottom: 0; }
.vstep .vmark { width: 18px; height: 18px; border-radius: var(--r); flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; border: 1px solid var(--bd-2); }
.vstep.ok .vmark { color: var(--ink); border-color: var(--ink); }
.vstep.bad .vmark { color: var(--bad); border-color: var(--bad); }
.vstep.run .vmark { color: var(--ink); animation: pulse 1s infinite; }
.vstep .vlabel { font-weight: 500; color: var(--tx); }
.vstep .vdetail { color: var(--tx-3); font-size: 11.5px; margin-top: 2px; word-break: break-all; }
.vstep .vcol { display: flex; flex-direction: column; }
.vbadge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; padding: 7px 12px; border-radius: var(--r); margin-bottom: 8px; border: 1px solid var(--bd-2); }
.vbadge.pass { color: var(--ink); border-color: var(--ink); }
.vbadge.fail { color: var(--bad); border-color: var(--bad); }

/* ---------- live apps showcase ---------- */
.apps-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; background: var(--s1); transition: border-color .2s; }
.app-card:hover { border-color: var(--ink); }
.app-frame { position: relative; aspect-ratio: 16 / 11; background: var(--s1); overflow: hidden; border: 1px solid var(--bd); border-radius: var(--r); }
.app-frame iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: top left; border: 0; background: var(--s1); pointer-events: none; }
.app-frame .app-open { position: absolute; inset: 0; display: block; z-index: 3; }
.app-frame .app-load { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; line-height: 1.6; padding: 0 14px; font-size: 12.5px; color: var(--tx-2); }
.app-frame.expired { background: var(--bg); }
.app-frame.expired .app-load { color: var(--tx-2); }
.app-frame.expired .exp-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 6px; vertical-align: middle; }
.app-frame .exp-sub { color: var(--tx-3); font-size: 11px; }
.app-frame::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.app-frame.skel { animation: shimmer 1.4s infinite linear; background: linear-gradient(90deg, var(--s1) 25%, var(--s3) 37%, var(--s1) 63%); background-size: 400% 100%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.app-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.app-meta .an { font-family: var(--disp); font-weight: 700; font-size: 14px; }
.app-meta .ac { font-size: 11px; color: var(--ink); padding: 3px 8px; border: 1px solid var(--bd); border-radius: 999px; }

/* ---------- audiences ---------- */
.aud-grid { grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bd); border-radius: var(--r); }
.aud { padding: 28px; border-left: 1px solid var(--bd); }
.aud:first-child { border-left: 0; }
.aud .tag { font-size: 11px; color: var(--tx-3); letter-spacing: .14em; }
.aud h3 { font-family: var(--disp); font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.aud p { color: var(--tx-2); font-size: 13.5px; margin-bottom: 14px; }
.aud a { color: var(--ink); font-size: 13px; border-bottom: 1px dashed var(--bd-2); }
.aud a:hover { border-bottom-color: var(--ink); }

/* ---------- tech strip ---------- */
.tech { border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); }
.tech-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; height: 60px; }
.tech-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx-2); letter-spacing: .04em; }
.tech-item .d { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* ---------- final CTA ---------- */
.cta-card { border: 1px solid var(--bd-2); border-radius: var(--r); background: var(--s1); padding: 44px; }
.cta-card h2 { font-family: var(--disp); font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.cta-card p { color: var(--tx-2); font-size: 15.5px; margin-bottom: 24px; max-width: 56ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--bd); padding: 48px 0 32px; }
.foot-inner { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--tx-2); font-size: 13px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-size: 11px; color: var(--tx-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.foot-col a { color: var(--tx-2); font-size: 13px; }
.foot-col a:hover { color: var(--ink); }
.foot-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--bd); color: var(--tx-3); font-size: 12px; }

/* ---------- keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(odd) { border-left: 0; }
  .feat:nth-child(even) { border-left: 1px solid var(--bd); }
  .feat-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-top: 1px solid var(--bd); }
  .step:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 720px) {
  .nav-links { position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--bd); flex-direction: column; gap: 0; padding: 8px 24px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--bd); }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .prob-grid, .stat-grid, .aud-grid, .apps-grid, .feat-grid, .steps { grid-template-columns: 1fr; }
  .prob, .stat, .aud { border-left: 0; border-top: 1px solid var(--bd); }
  .prob:first-child, .stat:first-child, .aud:first-child { border-top: 0; }
  .feat, .step { border-left: 0 !important; border-top: 1px solid var(--bd) !important; }
  .feat:first-child, .step:first-child { border-top: 0 !important; }
  .feat-wide { grid-column: auto; }
  .chain-arrow { display: none; }
  .cta-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   How we use Walrus (#walrus) — architecture diagram + list
   ============================================================ */
#walrus { padding: 64px 0; border-top: 1px solid var(--bd); }
#walrus .arch { width: 100%; max-width: 880px; margin: 26px auto 30px; border: 1px solid var(--bd); border-radius: 8px; background: #0b0c0e; }
.walrus-list { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.walrus-list li { position: relative; padding: 0 0 0 18px; color: var(--tx-2); font-size: 13.5px; line-height: 1.55; }
.walrus-list li::before { content: "▸"; position: absolute; left: 0; color: var(--ink); }
.walrus-foot { max-width: 880px; margin: 22px auto 0; color: var(--tx-3); font-size: 12.5px; line-height: 1.6; border-top: 1px dashed var(--bd); padding-top: 16px; }
@media (max-width: 720px) { .walrus-list { grid-template-columns: 1fr; } }

/* Phone (<=560px): shrink the hero headline + let the chain/verifier controls fit. */
@media (max-width: 560px) {
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: clamp(30px, 9vw, 52px); }
  .chain-node { min-width: 0; padding: 8px 10px; }
  .verifier-ctl { flex-wrap: wrap; }
  .verifier-ctl select { min-width: 0; flex: 1 1 140px; }
}
