/* qrypto.cash /v2: presentation-led launch page.
   One continuous dark stage. The hero wallet and the two-key diagram are
   masked into the background instead of boxed. Type is one IBM Plex system:
   Plex Sans Condensed for display headlines, Plex Sans for body and UI,
   Plex Mono for addresses, hashes, and metadata. Chartreuse is reserved
   for actions, red for the single boundary. */

:root {
  --bg: #0a0c08;
  --panel: #14170f;
  --paper: #eae4d3;
  --paper-ink: #211f17;
  --ink: #f4f2e9;
  --body: #d8d6c9;
  --muted: #b2b8a5;
  --acid: #c8ff38;
  --acid-hover: #d9ff70;
  --acid-ink: #131608;
  --amber: #f0c87e;
  --danger: #ff7a68;
  --signal: #ff5a4e;
  --line: rgba(233, 227, 210, 0.13);
  --line-soft: rgba(233, 227, 210, 0.08);

  --r-lg: 32px;
  --r-md: 18px;
  --r-pill: 999px;

  --shell-max: 1216px;
  --shell-pad: 24px;

  --display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, figcaption { margin: 0; }

a { color: inherit; }
a:hover { color: var(--acid); }

code {
  font: 400 0.9em var(--mono);
  overflow-wrap: anywhere;
}

em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(200, 255, 56, 0.6);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--acid); color: var(--acid-ink); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 24px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--acid);
  color: var(--acid-ink);
  font: 600 14px/1.4 var(--sans);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--acid-ink); }

.shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.arrow { margin-left: 0.4em; }
.nb { white-space: nowrap; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.top-row > .wordmark { margin-inline-start: -8px; }
.wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 700 17px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark-mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
.wordmark a::after { content: "_"; color: var(--acid); }

.top-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.top-nav a {
  color: var(--muted);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--ink); }
.top-nav .nav-cta {
  color: var(--acid-ink);
  background: var(--acid);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: background-color 140ms ease;
}
.top-nav .nav-cta:hover { background: var(--acid-hover); color: var(--acid-ink); }

/* ---------- hero: type left, wallet masked into the dark on the right ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100svh - 64px), 920px);
  overflow: clip;
  /* the whole first viewport is tone-matched to the wallet art's black
     field (its edges measure #000-#040403), so the artwork has no
     visible boundary; ::after returns the stage to --bg at the bottom */
  background: #020302;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: clamp(120px, 18vh, 200px);
  background: linear-gradient(to bottom, rgba(10, 12, 8, 0), var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy {
  max-width: 620px;
  padding-block: clamp(48px, 8vh, 96px);
}

.hero-title {
  font: 600 clamp(46px, 6.2vw, 88px)/1.03 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  text-decoration: none;
  /* never break at the hyphen: "A post-quantum" / "wallet." */
  white-space: nowrap;
}

.hero-lede {
  margin-top: 28px;
  max-width: 30em;
  color: var(--body);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.62;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease, transform 140ms ease;
}
.btn-primary {
  background: var(--acid);
  color: var(--acid-ink);
}
a.btn-primary:hover {
  background: var(--acid-hover);
  color: var(--acid-ink);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn-pending {
  border: 1px dashed rgba(233, 227, 210, 0.3);
  color: var(--muted);
  cursor: default;
}
.btn-pending[data-tone="building"] { border-color: var(--amber); color: var(--amber); }
.btn-pending[data-tone="blocked"] { border-color: var(--danger); color: var(--danger); }

.nojs-note {
  margin: 18px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 15px;
}

.no-js #cta-pending,
.no-js #zip-pending,
.no-js .copy { display: none; }

.hero-stage {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(520px, 60vw, 960px);
  pointer-events: none;
}
.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  -webkit-mask-image: radial-gradient(110% 96% at 66% 46%, #000 52%, transparent 88%);
  mask-image: radial-gradient(110% 96% at 66% 46%, #000 52%, transparent 88%);
}

/* gentle entrance, disabled for reduced motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}
.hero-title, .hero-lede, .cta-row {
  animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero-lede { animation-delay: 90ms; }
.cta-row { animation-delay: 180ms; }
.hero-art { animation: settle 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards 100ms; }

/* ---------- shared section type ---------- */

.section-h {
  font: 600 clamp(35px, 3.9vw, 56px)/1.06 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 14em;
}

.section-lede {
  margin-top: 20px;
  max-width: 36em;
  color: var(--body);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- two keys: centered statement, diagram floating on the stage ---------- */

.keys {
  margin-top: clamp(80px, 10vh, 136px);
  text-align: center;
}

.keys-h {
  margin-inline: auto;
  font-size: clamp(37px, 4.5vw, 64px);
}

.keys-lede {
  margin-inline: auto;
  max-width: 40em;
}

.diagram {
  max-width: 1000px;
  margin: clamp(28px, 4vw, 46px) auto 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  /* exact background of the baked diagram art, so its padding merges */
  background: #10130f;
}
.diagram img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.6 / 1;
  object-fit: cover;
  object-position: 50% 52%;
}
/* the square mobile diagram variant takes over below 600px */
@media (max-width: 600px) {
  .diagram img {
    aspect-ratio: 1.2 / 1;
    object-position: 50% 45%;
  }
}

.fine-line {
  margin: 20px auto 0;
  max-width: 52em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.fine-line a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(200, 255, 56, 0.5);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.fine-line a:hover { color: var(--acid); }

.gas-line {
  margin: 18px auto 0;
  max-width: 52em;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- panels: rounded product surfaces ---------- */

.stack {
  display: grid;
  gap: 24px;
  margin-top: clamp(88px, 12vh, 152px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4.6vw, 68px);
}

.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.handoff { margin-top: 26px; }
.handoff a {
  display: inline-block;
  color: var(--ink);
  font: 600 16px/1.4 var(--sans);
  text-decoration: none;
  border-bottom: 1px solid var(--acid);
  padding-bottom: 3px;
}
.handoff a:hover { color: var(--acid); }

/* familiar wallet */

.capture {
  justify-self: center;
  width: min(100%, 372px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #101208;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.capture-crop {
  display: block;
  overflow: hidden;
  border-radius: 17px;
}
.capture-crop img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- story: the codebreaking scene on the open dark stage ---------- */

/* no card, no frame: the scene is masked into the page black exactly like
   the hero wallet, so the lamp and blackboard read as one lit moment in
   the dark; the copy sits beside it in the subject's line of sight */
.story {
  margin-top: clamp(96px, 13vh, 168px);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(40px, 5.5vw, 80px);
}

.story-scene {
  min-width: 0;
}
/* feathered rectangle: every edge of the scene dissolves into the page
   black; browsers without mask-composite fall back to the plain frame */
.story-scene img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 9%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 9%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 10%, #000 86%, transparent);
  mask-composite: intersect;
}
/* ---------- install ---------- */

.install {
  margin-top: clamp(88px, 12vh, 152px);
  padding-bottom: clamp(80px, 10vh, 130px);
}

.install-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 40px;
}
.install-head .section-h { flex: 0 1 auto; }

.copy {
  appearance: none;
  cursor: pointer;
  padding: 3px 12px;
  border: 1px solid rgba(233, 227, 210, 0.28);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 140ms ease, color 140ms ease;
}
.copy:hover { border-color: var(--acid); color: var(--acid); }
.copy.copied { border-color: var(--acid); color: var(--acid); background: rgba(200, 255, 56, 0.08); }

.install-grid {
  --install-region-height: 400px;
  --install-summary-height: 48px;
  --install-body-height: 252px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 100px);
  margin-top: clamp(30px, 3.6vw, 48px);
}

.install-get { align-self: start; }
.install-details {
  display: grid;
  align-content: start;
  overflow: hidden;
}
.install-get,
.install-details { height: var(--install-region-height); }

.dl {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 24px;
  font-family: var(--sans);
  text-align: left;
  text-decoration: none;
}
.dl + .dl { margin-top: 10px; }
.dl strong {
  display: block;
  font: 700 18px/1.35 var(--sans);
}
.dl small {
  display: block;
  margin-top: 3px;
  font: 400 13px/1.5 var(--mono);
}
.dl-ready {
  background: var(--acid);
  color: var(--acid-ink);
  transition: background-color 140ms ease, transform 140ms ease;
}
.dl-ready small { color: rgba(19, 22, 8, 0.72); }
.dl-ready:hover {
  background: var(--acid-hover);
  color: var(--acid-ink);
  transform: translateY(-1px);
}
.dl-arrow { font: 500 28px/1 var(--mono); }
.dl-pending {
  border: 1px dashed rgba(233, 227, 210, 0.3);
  color: var(--muted);
}
.dl-pending strong { color: var(--ink); font-weight: 600; }
.dl-pending small { color: var(--muted); }
.dl-pending[data-tone="building"] { border-color: var(--amber); }
.dl-pending[data-tone="building"] strong { color: var(--amber); }
.dl-pending[data-tone="blocked"] { border-color: var(--danger); }
.dl-pending[data-tone="blocked"] strong { color: var(--danger); }

.dl-store {
  appearance: none;
  cursor: not-allowed;
  border: 1px dashed rgba(233, 227, 210, 0.24);
  background: transparent;
  color: var(--muted);
}
.dl-store strong {
  color: var(--ink);
  font-weight: 600;
}

.install-get .nojs-note { margin: 14px 0 0; }

.disclosure {
  margin-top: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 0 18px;
}
.disclosure summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: var(--install-summary-height);
  padding: 0;
  font: 600 14px/1.5 var(--sans);
  color: var(--muted);
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before {
  content: "+";
  display: inline-block;
  min-width: 1ch;
  margin-right: 8px;
  color: var(--acid);
  flex: none;
}
.disclosure[open] summary::before { content: "−"; }
.disclosure summary:hover { color: var(--ink); }
.disclosure p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.disclosure code { color: var(--body); }
.install-details .disclosure { margin-top: 0; }
.install-details .disclosure + .disclosure { border-top: 0; }
.disclosure-body {
  height: var(--install-body-height);
  overflow-y: auto;
  padding: 10px 2px 12px;
  scrollbar-gutter: stable;
}
.disclosure-body > * + * { margin-top: 10px; }

.disclosure-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.disclosure-links a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.disclosure-links a:hover { color: var(--acid); }

.spec-list { display: grid; }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-list dt {
  color: var(--muted);
  font: 500 11px/1.7 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spec-list dd {
  font: 400 13px/1.6 var(--mono);
  overflow-wrap: anywhere;
}

.preview-boundary {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--signal);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 34em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.steps > li:first-child { border-top: 0; }
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 4px;
  font: 500 14px/1 var(--mono);
  color: rgba(233, 227, 210, 0.46);
}
.steps h3, .steps p { grid-column: 2; }
.steps h3 {
  font: 600 17px/1.35 var(--sans);
  letter-spacing: -0.01em;
}
.steps p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.steps p code {
  color: var(--body);
  background: rgba(233, 227, 210, 0.07);
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 4px;
}
.steps .copy { vertical-align: 2px; }

.browser-addresses {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.browser-addresses li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font: 500 13px/1.55 var(--mono);
}
.browser-addresses code { overflow-wrap: anywhere; }

/* ---------- privacy notice ---------- */

.privacy-page {
  background:
    radial-gradient(circle at 84% 8%, rgba(200, 255, 56, 0.08), transparent 30rem),
    var(--bg);
}

.privacy-page .top { background: rgba(10, 12, 8, 0.9); }

.privacy-hero {
  padding-block: clamp(72px, 11vw, 144px) clamp(54px, 8vw, 96px);
}

.privacy-kicker,
.privacy-date,
.privacy-section-no,
.privacy-nav > p,
.privacy-index {
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--acid);
}

.privacy-hero h1 {
  max-width: 9em;
  margin-top: 22px;
  font: 600 clamp(58px, 9vw, 116px)/0.92 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.privacy-deck {
  max-width: 42em;
  margin-top: 32px;
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.62;
  text-wrap: pretty;
}

.privacy-date { margin-top: 30px; }
.privacy-date span { color: var(--acid); }

.privacy-summary {
  border-block: 1px solid var(--line-soft);
  background: rgba(20, 23, 15, 0.54);
}

.privacy-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-summary article {
  min-width: 0;
  padding: 30px clamp(20px, 3vw, 42px) 34px;
  border-left: 1px solid var(--line-soft);
}

.privacy-summary article:first-child {
  padding-left: 0;
  border-left: 0;
}

.privacy-index { color: var(--acid); }
.privacy-summary h2 {
  margin-top: 14px;
  font: 600 22px/1.2 var(--display);
}
.privacy-summary article > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(56px, 10vw, 140px);
  padding-block: clamp(64px, 9vw, 120px);
}

.privacy-nav {
  position: sticky;
  top: 96px;
  align-self: start;
}
.privacy-nav ol {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.privacy-nav a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.privacy-nav a:hover { color: var(--acid); }

.privacy-copy > section {
  scroll-margin-top: 94px;
  padding-block: 56px;
  border-top: 1px solid var(--line-soft);
}
.privacy-copy > section:first-child {
  padding-top: 0;
  border-top: 0;
}
.privacy-section-no { color: var(--acid); }
.privacy-copy h2 {
  max-width: 16em;
  margin-top: 12px;
  font: 600 clamp(31px, 4vw, 46px)/1.05 var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.privacy-copy section > p:not(.privacy-section-no),
.privacy-copy li,
.privacy-definitions dd {
  color: var(--body);
  font-size: 17px;
  line-height: 1.72;
}
.privacy-copy section > p:not(.privacy-section-no) { margin-top: 22px; }
.privacy-copy ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 1.25em;
}
.privacy-copy li::marker { color: var(--acid); }
.privacy-copy a {
  color: var(--ink);
  text-decoration-color: rgba(200, 255, 56, 0.58);
  text-underline-offset: 4px;
}
.privacy-definitions {
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.privacy-definitions > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.privacy-definitions dt {
  color: var(--ink);
  font: 600 16px/1.45 var(--sans);
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line-soft); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  padding-block: 34px;
}
.footer-brand { font: 700 15px/1.4 var(--sans); }
.footer-brand::after { content: "_"; color: var(--acid); }
.footer-links {
  margin-left: auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-links a {
  color: var(--muted);
  font: 500 14px/1.5 var(--sans);
  text-decoration: none;
}
.footer-links a:hover { color: var(--acid); }

/* ---------- crack challenge: one public proof board ---------- */

.challenge-page {
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 255, 56, 0.09), transparent 24rem),
    radial-gradient(circle at 18% 42%, rgba(255, 90, 78, 0.055), transparent 30rem),
    var(--bg);
}

.challenge-page .top { background: rgba(10, 12, 8, 0.9); }

.challenge-hero {
  position: relative;
  min-height: min(850px, calc(100svh - 64px));
  display: flex;
  align-items: center;
  overflow: clip;
  border-bottom: 1px solid var(--line-soft);
}
.challenge-hero::before {
  content: "CLAIM()";
  position: absolute;
  right: -0.05em;
  bottom: -0.16em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 227, 210, 0.075);
  font: 600 clamp(150px, 27vw, 410px)/0.78 var(--display);
  letter-spacing: -0.065em;
  pointer-events: none;
}

.challenge-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
  padding-block: clamp(72px, 11vh, 132px);
}

.challenge-kicker,
.challenge-index {
  color: var(--muted);
  font: 500 12px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.challenge-kicker span {
  display: inline-block;
  margin-right: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--signal);
  color: var(--danger);
}

.challenge-hero h1 {
  max-width: 11em;
  margin-top: 24px;
  font: 600 clamp(56px, 7.2vw, 106px)/0.92 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.challenge-page .challenge-hero h1 em {
  color: var(--acid);
  font-style: normal;
  text-decoration: none;
}

.challenge-lede {
  max-width: 39em;
  margin-top: 30px;
  color: var(--body);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.62;
  text-wrap: pretty;
}
.challenge-plain {
  margin-top: 22px;
  color: var(--muted);
  font: 500 13px/1.5 var(--mono);
  letter-spacing: 0.025em;
}

.challenge-prize {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 68px);
  border: 1px solid rgba(200, 255, 56, 0.28);
  border-radius: 48% 52% 46% 54% / 43% 40% 60% 57%;
  background: rgba(12, 15, 8, 0.76);
  box-shadow: inset 0 0 90px rgba(200, 255, 56, 0.035), 0 40px 110px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}
.challenge-prize::before,
.challenge-prize::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(233, 227, 210, 0.12);
  border-radius: inherit;
  inset: -13px 10px 9px -12px;
  transform: rotate(-4deg);
  pointer-events: none;
}
.challenge-prize::after {
  inset: 12px -14px -10px 16px;
  border-color: rgba(255, 90, 78, 0.18);
  transform: rotate(4deg);
}
.challenge-prize-overline,
.challenge-prize-caption {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font: 500 12px/1.55 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.challenge-prize strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font: 600 clamp(104px, 13vw, 184px)/0.82 var(--display);
  letter-spacing: -0.065em;
}
.challenge-prize strong span {
  color: var(--acid);
  font-size: 0.42em;
  vertical-align: top;
}
.challenge-prize-caption {
  max-width: 25em;
  margin-top: 24px;
  color: var(--body);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.65;
}

.challenge-boundary {
  background: var(--signal);
  color: #170704;
}
.challenge-boundary-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding-block: 20px;
}
.challenge-boundary strong {
  font: 700 15px/1.45 var(--sans);
  white-space: nowrap;
}
.challenge-boundary p {
  max-width: 70em;
  font-size: 14px;
  line-height: 1.55;
}

.challenge-facts { padding-block: 26px; }
.challenge-facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line-soft);
}
.challenge-facts dl > div {
  min-width: 0;
  padding: 18px 22px;
  border-left: 1px solid var(--line-soft);
}
.challenge-facts dl > div:first-child { border-left: 0; }
.challenge-facts dt {
  color: var(--muted);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.challenge-facts dd {
  margin-top: 7px;
  color: var(--ink);
  font: 600 17px/1.35 var(--sans);
}

.challenge-section {
  padding-block: clamp(88px, 12vh, 150px);
}
.challenge-section-head { max-width: 760px; }
.challenge-section-head-wide { max-width: 880px; }
.challenge-section-head h2 {
  margin-top: 18px;
  font: 600 clamp(42px, 5.6vw, 78px)/0.98 var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.challenge-section-head > p:last-child {
  max-width: 42em;
  margin-top: 24px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.65;
}

.challenge-call {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  max-width: 980px;
  margin-top: clamp(46px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(200, 255, 56, 0.24);
  border-radius: var(--r-lg);
  background: #080a07;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
}
.challenge-call::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), var(--acid) 64%, transparent);
}
.challenge-call-rail {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-block: 24px;
  border-right: 1px solid var(--line-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
}
.challenge-call pre {
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  overflow-x: auto;
  color: var(--ink);
  font: 400 clamp(13px, 1.4vw, 16px)/1.9 var(--mono);
  tab-size: 2;
}
.challenge-call code { font: inherit; }
.challenge-code-muted { color: var(--muted); }
.challenge-code-acid { color: var(--acid); }

.challenge-steps {
  max-width: 980px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.challenge-steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.challenge-steps > li > span {
  color: var(--acid);
  font: 500 15px/1.5 var(--mono);
}
.challenge-steps h3 {
  font: 600 19px/1.35 var(--sans);
}
.challenge-steps p {
  max-width: 58em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.challenge-bounties {
  position: relative;
  padding-block: clamp(88px, 12vh, 150px);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--panel);
}
.challenge-bounties::after {
  content: "$5,000";
  position: absolute;
  right: -0.04em;
  top: 0.12em;
  color: rgba(233, 227, 210, 0.025);
  font: 600 clamp(120px, 23vw, 330px)/1 var(--display);
  letter-spacing: -0.07em;
  pointer-events: none;
}
.challenge-bounties .shell { position: relative; z-index: 1; }
.challenge-bounty-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 78px);
  background: var(--line);
  border: 1px solid var(--line);
}
.challenge-bounty {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 46px);
  background: #0e110b;
}
.challenge-bounty-primary {
  background: var(--acid);
  color: var(--acid-ink);
}
.challenge-bounty > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.challenge-track {
  font: 500 13px/1.5 var(--mono);
}
.challenge-bounty > div p {
  color: var(--muted);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.challenge-bounty-primary > div p { color: rgba(19, 22, 8, 0.68); }
.challenge-bounty h3 {
  margin-top: 42px;
  font: 600 clamp(28px, 3vw, 40px)/1.02 var(--display);
  letter-spacing: -0.015em;
}
.challenge-bounty > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}
.challenge-bounty-primary > p { color: rgba(19, 22, 8, 0.76); }
.challenge-bounty > strong {
  margin-top: auto;
  padding-top: 36px;
  font: 600 clamp(30px, 3.7vw, 52px)/1 var(--display);
  letter-spacing: -0.025em;
}

.challenge-proof-grid,
.challenge-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-top: clamp(46px, 6vw, 76px);
  background: var(--line);
  border: 1px solid var(--line);
}
.challenge-proof-grid article,
.challenge-rules-grid > div {
  min-height: 250px;
  padding: clamp(28px, 4vw, 48px);
  background: #0e110b;
}
.challenge-proof-grid article:first-child { border-top: 3px solid var(--acid); }
.challenge-proof-grid article:last-child { border-top: 3px solid var(--signal); }
.challenge-proof-grid h3,
.challenge-rules-grid h3 {
  font: 600 23px/1.2 var(--display);
}
.challenge-proof-grid p {
  margin-top: 18px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.68;
}

.challenge-rules { padding-top: 0; }
.challenge-rules-grid > div { min-height: 0; }
.challenge-rules-grid ul,
.challenge-launch-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.challenge-rules-grid li,
.challenge-launch-card li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}
.challenge-rules-grid li::before,
.challenge-launch-card li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--acid);
  font-family: var(--mono);
}
.challenge-rules-grid > div:last-child li::before { color: var(--signal); }

.challenge-launch-card {
  max-width: 980px;
  margin-top: 24px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(255, 90, 78, 0.34);
  border-left: 3px solid var(--signal);
  background: rgba(255, 90, 78, 0.035);
}
.challenge-launch-card ul { margin-top: 20px; }
.challenge-launch-card > p:last-child {
  max-width: 54em;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (prefers-reduced-motion: no-preference) {
  .challenge-hero-copy > *,
  .challenge-prize {
    animation: rise 680ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  .challenge-hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .challenge-hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .challenge-hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .challenge-hero-copy > :nth-child(5) { animation-delay: 280ms; }
  .challenge-prize { animation-delay: 160ms; }
}

@media (max-width: 900px) {
  .challenge-hero { min-height: 0; }
  .challenge-hero-grid {
    grid-template-columns: 1fr;
    padding-block: 64px 88px;
  }
  .challenge-prize {
    min-height: 330px;
    max-width: 560px;
  }
  .challenge-boundary-inner { grid-template-columns: 1fr; gap: 6px; }
  .challenge-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .challenge-facts dl > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .challenge-facts dl > div:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .challenge-bounty-list { grid-template-columns: 1fr; }
  .challenge-bounty { min-height: 320px; }
}

@media (max-width: 640px) {
  .challenge-page .top-nav a:first-child { display: none; }
  .challenge-hero h1 { font-size: clamp(50px, 17vw, 76px); }
  .challenge-kicker,
  .challenge-index,
  .challenge-prize-overline,
  .challenge-prize-caption,
  .challenge-call-rail,
  .challenge-track,
  .challenge-boundary strong,
  .challenge-steps > li > span,
  .challenge-lede,
  .challenge-plain,
  .challenge-boundary p,
  .challenge-facts dt,
  .challenge-facts dd,
  .challenge-section-head > p:last-child,
  .challenge-steps p,
  .challenge-bounty > div p,
  .challenge-bounty > p,
  .challenge-proof-grid p,
  .challenge-rules-grid li,
  .challenge-launch-card li,
  .challenge-launch-card > p:last-child { font-size: 16px; }
  .challenge-prize { border-radius: 36px; transform: none; }
  .challenge-prize::before,
  .challenge-prize::after { display: none; }
  .challenge-prize strong { font-size: clamp(98px, 35vw, 142px); }
  .challenge-facts dl { grid-template-columns: 1fr; }
  .challenge-facts dl > div,
  .challenge-facts dl > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .challenge-facts dl > div:first-child { border-top: 0; }
  .challenge-call { grid-template-columns: 1fr; border-radius: 20px; }
  .challenge-call-rail {
    flex-direction: row;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    writing-mode: horizontal-tb;
    transform: none;
  }
  .challenge-call pre { padding: 24px 18px; font-size: 16px; }
  .challenge-steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .challenge-proof-grid,
  .challenge-rules-grid { grid-template-columns: 1fr; }
}

/* ---------- scroll-linked reveals: modern browsers only, small elements only ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .keys-h, .keys-lede, .diagram, .gas-line, .fine-line,
    .split-copy, .capture, .story-scene, .story-copy,
    .install-head, .install-get, .install-details {
      animation: rise 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .hero-copy { max-width: 540px; }
  .hero-stage { width: clamp(440px, 55vw, 720px); }
}

@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .hero-copy {
    max-width: 100%;
    padding-block: clamp(40px, 7vh, 64px) 0;
  }
  .hero-stage {
    position: static;
    width: 100%;
    margin-top: clamp(8px, 3vh, 24px);
  }
  .hero-art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-position: 62% 45%;
    -webkit-mask-image: radial-gradient(102% 102% at 50% 48%, #000 55%, transparent 94%);
    mask-image: radial-gradient(102% 102% at 50% 48%, #000 55%, transparent 94%);
  }

  .keys { text-align: left; }
  .keys-h, .keys-lede, .gas-line, .fine-line { margin-inline: 0; }
  .diagram { max-width: none; margin-inline: 0; }

  .panel-split { grid-template-columns: 1fr; }
  .panel-split .capture { justify-self: start; }

  .story-grid { grid-template-columns: 1fr; gap: 28px; }

  .install-head { display: block; }
  .install-grid { display: flex; flex-direction: column; }
  .install-get,
  .install-details {
    height: auto;
    overflow: visible;
  }
  .disclosure-body {
    height: auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .privacy-nav {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
  }
  .privacy-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shell { padding-inline: 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-art { aspect-ratio: 4 / 5; }
  .panel { border-radius: 24px; }
  .steps > li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .steps > li::before { font-size: 16px; line-height: 1.2; }

  .privacy-hero { padding-block: 64px 52px; }
  .privacy-summary-grid { grid-template-columns: 1fr; }
  .privacy-summary article,
  .privacy-summary article:first-child {
    padding: 24px 0 26px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
  .privacy-summary article:first-child { border-top: 0; }
  .privacy-layout { padding-block: 56px 72px; }
  .privacy-nav ol { grid-template-columns: 1fr; }
  .privacy-copy > section { padding-block: 44px; }
  .privacy-definitions > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* visitor-facing mobile floor: 16px */
  .top-nav { gap: 14px; }
  .top-nav a { font-size: 16px; }
  .top-nav .nav-cta { padding: 8px 14px; }
  .skip-link,
  .nojs-note,
  .gas-line,
  .fine-line,
  .disclosure p,
  .disclosure summary,
  .disclosure-links a,
  .browser-addresses li,
  .spec-list dt,
  .spec-list dd,
  .copy,
  .dl small,
  .preview-boundary,
  .steps p,
  .privacy-kicker,
  .privacy-date,
  .privacy-section-no,
  .privacy-nav > p,
  .privacy-nav a,
  .privacy-index,
  .privacy-summary article > p:last-child,
  .privacy-copy section > p:not(.privacy-section-no),
  .privacy-copy li,
  .privacy-definitions dt,
  .privacy-definitions dd,
  .footer-brand,
  .footer-links a { font-size: 16px; line-height: 1.55; }
}

@media (max-width: 420px) {
  body:not(.challenge-page) .top-row { gap: 12px; }
  body:not(.challenge-page) .top-nav { gap: 10px; }
  body:not(.challenge-page) .top-nav a[href="#about"] { display: none; }
  body:not(.challenge-page) .top-nav .nav-cta { padding-inline: 12px; }
}
@media (max-width: 400px) {
  .top-row { gap: 12px; }
  .top-nav a:not(.nav-cta) { display: none; }
}

/* ---------- motion discipline ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  a.btn-primary:hover, .dl-ready:hover { transform: none; }
}
