/* Ghostie — black and white, nothing else.
   Night is the hero and the closing band; paper is everything in between.
   Grey only ever means "secondary". There is no accent colour. */

:root {
  --ink: #0a0a0a;          /* text on paper, dark cards */
  --night: #060606;        /* hero ground, behind the cloth */
  --paper: #ffffff;        /* cards on the page */
  --page: #fafafa;         /* page ground */
  --soft: #f2f2f2;         /* quiet card */
  --line: #e6e6e6;         /* hairlines on paper */
  --line-strong: #d4d4d4;
  --muted: #666666;        /* secondary text on paper (5.4:1) */
  --dim-ink: #8a8a8a;      /* second line of a display headline on paper */
  --on-night: #ffffff;
  --night-muted: #9b9b9b;  /* secondary text on night (7:1) */
  --night-soft: #c9c9c9;
  --night-line: rgba(255, 255, 255, .14);

  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 32px;
  --radius: 24px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 16px; }
.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.i { width: 16px; height: 16px; flex: none; }
.center { text-align: center; }

/* Type */
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.h2 { font-size: clamp(36px, 5vw, 62px); }
.h3 { font-size: 28px; letter-spacing: -.035em; line-height: 1.02; }
.dim { color: var(--night-muted); }
.dim-ink { color: var(--dim-ink); }
.kicker {
  font: 500 11.5px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.fine { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* Marks */
.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  background: #fff; color: var(--ink);
}
.tile svg { width: 74%; height: 74%; }
.tile-ink { background: var(--ink); color: #fff; }
.tile-sm { width: 32px; height: 32px; border-radius: 9px; }
.tile-lg { width: 64px; height: 64px; border-radius: 18px; }
.wordmark { height: 26px; width: calc(26px * 661 / 216); color: currentColor; }

.coin {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
}
.coin svg { width: 60%; height: 60%; }
.coin-light { background: #fff; color: var(--ink); }
.coin-sm { width: 30px; height: 30px; }
.coin-lg { width: 64px; height: 64px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 500 14px/1 var(--text); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e9; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2a2a; }
.btn-ghost-dark { background: rgba(8, 8, 8, .55); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, .5); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn[hidden] { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.text-link .i { transition: transform .2s; }
.text-link:hover .i { transform: translateX(3px); }

/* Contract address */
.ca {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--night-line); background: rgba(8, 8, 8, .55); color: #fff;
  font: 500 12px/1 var(--mono); cursor: pointer;
}
.ca .ca-label { color: var(--night-muted); }
.ca .i { width: 13px; height: 13px; display: none; }
.ca.is-live .i { display: block; }
.ca:disabled { cursor: default; }
.ca.is-live:hover { border-color: rgba(255, 255, 255, .45); }
.show-sm { display: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding-bottom: 28px;
  background: var(--night); color: var(--on-night);
}
.hero-waves, .band-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 50% at 50% 44%, rgba(6, 6, 6, .9), rgba(6, 6, 6, .55) 55%, rgba(6, 6, 6, 0) 100%),
    linear-gradient(to bottom, rgba(6, 6, 6, .7), rgba(6, 6, 6, 0) 20%, rgba(6, 6, 6, 0) 78%, rgba(6, 6, 6, .8));
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.hero-copy { margin-top: auto; text-align: center; display: grid; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--night-soft);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.hero h1 { margin-top: 22px; font-size: clamp(46px, 7.4vw, 96px); }
.lede { margin-top: 26px; font-size: 17px; color: var(--night-soft); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.actions-left { justify-content: flex-start; }

.route { margin-top: clamp(40px, 7vh, 72px); }
.route-card {
  max-width: 760px; margin: 0 auto; padding: 20px 24px 18px;
  border: 1px solid var(--night-line); border-radius: 22px;
  background: rgba(10, 10, 10, .8);
}
.route-card .kicker { color: var(--night-muted); }
.route-flow {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center; gap: 18px; padding: 24px 6px 16px;
}
.route-end { display: flex; align-items: center; gap: 12px; }
.route-end b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.route-end small { display: block; font-size: 12px; color: var(--night-muted); }
.route-mid {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: #fff; color: var(--ink);
}
.route-mid svg { width: 72%; height: 72%; }
.track {
  position: relative; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .38) 0 4px, transparent 4px 9px);
}
.track i { position: absolute; left: 0; top: -2.5px; width: 100%; height: 6px; animation: travel 3.2s cubic-bezier(.55, 0, .45, 1) infinite; }
.track i::before { content: ""; position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.track + .route-mid + .track i { animation-delay: 1.6s; }
@keyframes travel {
  0% { transform: translateX(0); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.route-link { display: flex; width: max-content; margin-left: auto; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.route-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.scroll-cue {
  margin: auto auto 0; padding-top: 36px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--night-muted);
}
.scroll-cue:hover { color: #fff; }

/* Chains */
.chains { padding: 72px 0 60px; border-bottom: 1px solid var(--line); }
.chain-list {
  list-style: none; margin: 24px 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px;
}
.chain-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.chain-list .coin { width: 32px; height: 32px; }

/* Sections */
.section { padding-top: 120px; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.lede-ink { margin-top: 22px; font-size: 17px; color: var(--muted); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); }
.card .h3 + p { margin-top: 12px; max-width: 400px; }
.card-night { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-night .kicker { color: var(--night-muted); }
.card-night p { color: var(--night-soft); }
.card-soft { background: var(--soft); border-color: #e9e9e9; }

/* Features */
.features { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.feature-main { grid-row: span 2; display: flex; flex-direction: column; min-height: 580px; }
.xflow {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 14px;
  margin: 52px 0 26px;
}
.xflow-node { display: grid; justify-items: center; gap: 12px; }
.xflow-node small { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.xflow-line { height: 1px; margin-top: 32px; background: rgba(255, 255, 255, .24); }
.xflow-steps {
  list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--night-line);
  display: grid; grid-template-columns: repeat(3, 1fr);
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted);
}
.xflow-steps li { display: flex; align-items: center; gap: 8px; }
.xflow-steps li:nth-child(2) { justify-content: center; }
.xflow-steps li:nth-child(3) { justify-content: flex-end; }
.xflow-steps li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.feature-copy { margin-top: auto; padding-top: 56px; }
.feature-main .h3 { font-size: clamp(36px, 3.8vw, 52px); }
.feature-main .h3 + p { margin-top: 18px; }
.feature-copy .btn { margin-top: 26px; }

.quote { margin: 18px 0 26px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--page); }
.quote-pair { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.asset { display: flex; align-items: center; gap: 10px; }
.asset b { display: block; font-size: 14px; line-height: 1.2; }
.asset small { display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quote-arrow { color: var(--muted); }
.quote-rows { margin: 10px 0 0; }
.quote-rows div { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; }
.quote-rows dt { color: var(--muted); }
.quote-rows dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.quote-rows .i { width: 14px; height: 14px; }
.quote-bar { height: 4px; margin-top: 12px; border-radius: 4px; background: #e9e9e9; }
.quote-bar span { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--ink); }

.keys { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.keys-lock {
  display: grid; place-items: center; flex: none;
  width: 92px; height: 92px; border-radius: 24px;
  background: #fff; border: 1px solid var(--line-strong);
}
.keys-lock svg { width: 36px; height: 36px; }

/* Zero knowledge */
.zk { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.proof { padding: 22px 24px; }
.proof-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proof-row {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px;
  margin: 34px 0 14px;
}
.proof-secret { width: 132px; padding: 14px; border-radius: 16px; background: var(--ink); color: #fff; }
.proof-secret span { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; }
.proof-secret .i { width: 13px; height: 13px; }
.proof-secret .dots {
  display: block; height: 50px; margin-top: 12px;
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 1.6px, transparent 2.1px) 0 0 / 14px 14px;
}
.wire { height: 1px; background: repeating-linear-gradient(90deg, #b5b5b5 0 4px, transparent 4px 8px); }
.proof-doc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; }
.proof-doc svg { width: 24px; height: 24px; }
.proof-ok {
  display: grid; place-items: center; gap: 8px; width: 88px; padding: 16px 0 12px;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--soft);
}
.proof-ok svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--ink); color: #fff; }
.proof-ok small { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.proof-captions { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proof-captions span:first-child { width: 132px; text-align: center; }
.proof-captions span:last-child { width: 88px; text-align: center; }
.proof-foot { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.zk-copy .h2 { margin-top: 16px; }
.zk-copy p { margin-top: 20px; max-width: 470px; color: var(--muted); }
.zk-copy .actions { margin-top: 30px; }
.zk-copy .text-link { margin-top: 20px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.steps .num { font: 500 12px/1 var(--mono); color: var(--muted); }
.steps h3 { margin: 28px 0 10px; font: 600 23px/1.15 var(--display); letter-spacing: -.025em; }
.steps p { color: var(--muted); font-size: 15px; max-width: 320px; }

/* Economy */
.economy { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 72px; align-items: center; }
.eco-copy .kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-block; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 10.5px; color: var(--ink); }
.eco-copy .h2 { margin-top: 18px; }
.eco-copy p { margin-top: 22px; max-width: 470px; color: var(--muted); }
.eco-copy .text-link { margin-top: 24px; }
.flows { padding: 0; overflow: hidden; }
.flows-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.flows-head b { font-weight: 600; font-size: 15px; }
.flow { padding: 24px; }
.flow + .flow { border-top: 1px solid var(--line); }
.flow-big { margin: 10px 0 8px; font: 600 46px/1 var(--display); letter-spacing: -.045em; color: var(--ink) !important; }
.flow-big span { font-size: 20px; font-weight: 500; letter-spacing: -.015em; color: var(--muted); }
.flow p:not(.kicker):not(.flow-big) { font-size: 14px; }
.flow-track {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--page);
  font-size: 12.5px; font-weight: 500;
}
.flow-track i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--ink)); }
.eco-fine { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: start; }
.faq-wrap .h2 { margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }
.faq details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Closing band */
.band-wrap { padding-top: 120px; }
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; min-height: 460px;
  border-radius: 28px; background: var(--night); color: #fff; text-align: center;
}
.band-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 62% at 50% 50%, rgba(6, 6, 6, .9), rgba(6, 6, 6, .4) 70%, rgba(6, 6, 6, .1));
}
.band-copy { display: grid; justify-items: center; gap: 28px; padding: 72px 24px; }
.band .h2 { font-size: clamp(36px, 4.6vw, 58px); }

/* Inner pages (app, docs): a band of cloth at the top that fades into night */
.top-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.top-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 70% at 50% 45%, rgba(6, 6, 6, .88), rgba(6, 6, 6, .35) 70%, rgba(6, 6, 6, .1)),
    linear-gradient(to bottom, rgba(6, 6, 6, .55), rgba(6, 6, 6, 0) 30%, rgba(6, 6, 6, .2) 60%, var(--night));
}

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding: 40px 0 48px; font-size: 13px; color: var(--muted);
}
.foot-brand { color: var(--ink); }
.foot .wordmark { height: 22px; width: calc(22px * 661 / 216); }
.foot-tag { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.foot a:not(.foot-brand) { display: inline-flex; align-items: center; gap: 4px; }
.foot a:not(.foot-brand):hover { color: var(--ink); }
.foot .i { width: 13px; height: 13px; }
.foot-copy { margin-left: auto; }

/* Narrower screens */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; }
  .feature-main { grid-row: auto; min-height: 0; }
  .zk, .economy, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .zk-copy { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 22px 0 28px; }
  .steps h3 { margin-top: 14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .nav .ca { display: none; }
  .show-sm { display: inline-flex; }
  .hero-copy .ca { margin-bottom: 18px; }
  .wordmark { height: 22px; width: calc(22px * 661 / 216); }
  .lede { font-size: 16px; }
  .btn-lg { height: 50px; padding: 0 18px; }
  .route-card { padding: 16px 16px 14px; }
  .route-flow { gap: 10px; padding: 20px 0 14px; }
  .route-end { flex-direction: column; text-align: center; gap: 8px; }
  .route-end b { font-size: 13px; }
  .route-end small { font-size: 11px; }
  .route-mid { width: 48px; height: 48px; border-radius: 14px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 40px; }
  .card { padding: 22px; border-radius: 20px; }
  .coin-lg, .tile-lg { width: 52px; height: 52px; }
  .tile-lg { border-radius: 15px; }
  .xflow { margin: 36px 0 22px; gap: 8px; }
  .xflow-line { margin-top: 26px; }
  .xflow-steps { font-size: 9.5px; letter-spacing: .04em; }
  .xflow-steps li { gap: 5px; }
  .keys { flex-direction: column; align-items: flex-start; }
  .proof { padding: 18px; }
  .proof-row { gap: 8px; }
  .proof-secret { width: 104px; padding: 12px; }
  .proof-ok { width: 68px; }
  .proof-captions span:first-child { width: 104px; }
  .proof-captions span:last-child { width: 68px; }
  .flow-big { font-size: 40px; }
  .band-wrap { padding-top: 88px; }
  .band { min-height: 400px; border-radius: 22px; }
  .foot-copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .track i { animation: none; display: none; }
  .text-link .i, .faq summary .i { transition: none; }
}
