/* Duskmoth design system: black canvas, glossy organic forms, chrome display type, glass panels. */
:root {
  --bg: #030303;
  --ink: #f2efe8;
  --ink-2: #c9c6be;
  --mute: #84827c;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.28);
  --amber: #e9c46a;
  --ember: #ff6b2c;
  --rose: #e2557a;
  --moss: #6f9a4a;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-2: rgba(255, 255, 255, 0.12);
  --danger: #ff6464;
  --ok: #9fd27a;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Cedarville Cursive', 'Brush Script MT', cursive;
  --radius: 22px;
  --pad: clamp(16px, 3vw, 36px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: #120c02; }
a { color: inherit; }
img, svg, canvas { display: block; }
button, input, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- micro type ---------- */
.micro {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}
.micro-strong { font-weight: 600; }
.mute { color: var(--mute); }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- organic layer ---------- */
#organic {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none;
}

/* ---------- cursor eye ---------- */
.eye {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: url("../img/cicada-head.png") center / contain no-repeat;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.7));
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
  will-change: transform;
}
.eye.is-hover { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.eye.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .eye { display: none; } }
.has-eye, .has-eye * { cursor: none !important; }
.has-eye input, .has-eye textarea { cursor: text !important; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.pill:hover { background: var(--ink); color: #050505; border-color: var(--ink); }
.pill:active { transform: scale(.97); }
.pill.solid { background: var(--ink); color: #050505; border-color: var(--ink); }
.pill.solid:hover { background: var(--amber); border-color: var(--amber); }
.pill:focus-visible, .btn:focus-visible, .chip:focus-visible, .tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wallet-disconnect[hidden] { display: none; }
@media (max-width: 520px) {
  .app-body .top .right { gap: 6px; }
  .app-body .top [data-wallet-pill], .app-body .top .wallet-disconnect { padding: 0 10px; font-size: 10px; letter-spacing: .03em; }
}
.top .left { justify-self: start; }
.top .right { justify-self: end; display: flex; gap: 10px; }
.emblem { width: 52px; height: 34px; color: var(--ink); justify-self: center; display: grid; place-items: center; }
.emblem svg, .emblem img { width: 100%; height: 100%; object-fit: contain; animation: emblem 9s linear infinite; transform-style: preserve-3d; }
@keyframes emblem { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* ---------- socials ---------- */
.socials { position: fixed; left: var(--pad); bottom: 16px; z-index: 60; display: flex; gap: 10px; }
.socials a { width: 16px; height: 16px; opacity: .8; transition: opacity .2s; }
.socials a:hover { opacity: 1; }
.socials svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: rgba(3,3,3,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.menu nav a {
  font-family: var(--sans); font-weight: 300; text-transform: uppercase; text-decoration: none;
  font-size: clamp(34px, 7vw, 82px); line-height: 1.05; letter-spacing: -0.01em;
  transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .7s, color .3s;
}
.menu.open nav a { transform: none; opacity: 1; }
.menu nav a:hover { color: var(--amber); }
.menu .close { position: absolute; top: 18px; right: var(--pad); }
.menu .foot { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; }

/* ---------- generic section ---------- */
main { position: relative; z-index: 3; }
section { position: relative; }
.wrap { width: min(1180px, 100% - 2 * var(--pad)); margin: 0 auto; }
.center { text-align: center; }
.big {
  font-family: var(--sans); font-weight: 300; text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.015em; margin: 0;
}
.big .line { display: block; overflow: hidden; padding-bottom: .04em; }
.big .line > span { display: inline-block; will-change: transform; }

/* ---------- hero ---------- */
.hero { height: 100svh; min-height: 560px; display: grid; place-items: center; }
.hero-inner { text-align: center; position: relative; z-index: 3; }
.chrome {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(76px, 15vw, 210px); line-height: .84; letter-spacing: -0.02em;
  filter: url(#liquid) drop-shadow(0 0 18px rgba(255,255,255,.12));
}
.chrome .ch {
  background: linear-gradient(180deg, #ffffff 0%, #e6e6ec 30%, #8d8d96 47%, #2f2f36 52%, #c9c9d2 66%, #ffffff 80%, #a6a6ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .02em;
}
.chrome .w { display: block; }
.chrome .ch { display: inline-block; will-change: transform, filter, opacity; }
.chrome .w:nth-child(2) { font-style: italic; letter-spacing: -0.04em; }
.hero .sub { margin-top: 22px; }
.hero .cta { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- hero mascot ---------- */
.hero-cicada { display: block; width: 330px; margin: 0 auto -6px; animation: cic-bob 3.8s ease-in-out infinite; }
.hero-cicada img { display: block; width: 100%; height: auto; transform-origin: 50% 50%; animation: cic-flap 2.6s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(233,162,59,.18)); }
@keyframes cic-bob { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-9px) rotate(1.2deg); } }
@keyframes cic-flap { 0%, 62%, 100% { transform: scaleX(1); } 70% { transform: scaleX(.8); } 78% { transform: scaleX(1); } 86% { transform: scaleX(.86); } 94% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-cicada, .hero-cicada img { animation: none; } }
@media (max-width: 520px) { .hero-cicada { width: 220px; } }

/* ---------- specimen flipbook ---------- */
.specimen { padding: 8vh var(--pad) 14vh; }
.specimen .stage {
  display: block; width: min(560px, 88vw); aspect-ratio: 1; margin: 4vh auto 0; padding: 0; border: 0; background: #000;
  border-radius: 8px; cursor: pointer; position: relative; overflow: hidden;
}
.specimen .stage canvas { width: 100%; height: 100%; }
.specimen .stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(0,0,0,.9);
}
.specimen .stage.caught { outline: 1px solid var(--line-2); outline-offset: 10px; }
.spec-label { margin: 18px 0 6vh; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.spec-label i { font-family: var(--display); font-size: 14px; text-transform: none; letter-spacing: 0; }
.specimen .lead { max-width: 440px; margin: 28px auto 14px; }
.msg .who .ava { width: 26px; height: 26px; border-radius: 50%; background: #000; border: 1px solid var(--line); object-fit: cover; }

/* ---------- whisper statement ---------- */
.statement { padding: 18vh 0 10vh; }
.statement .lead { max-width: 420px; margin: 40px auto 0; }

/* ---------- swarm burst ---------- */
.swarm { height: 230vh; }
.swarm .sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.swarm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass {
  position: relative; z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 18px;
}
.swarm .glass { width: min(520px, 86vw); padding: 22px 26px; text-align: center; opacity: 0; transform: translateY(30px) scale(.96); }

/* ---------- dusk field card ---------- */
.field { padding: 6vh 0 14vh; }
.field .card { position: relative; height: min(64vh, 560px); border-radius: var(--radius); overflow: hidden; margin-left: auto; width: min(1040px, 100%); }
.field-photo { position: absolute; inset: 0; overflow: hidden; background: #1a0d05; }
.field-photo img { position: absolute; display: block; pointer-events: none; }
.field-photo .bg { inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; object-position: 50% 40%; filter: blur(28px) saturate(1.15) brightness(.8); }
.field-photo .fg { right: 6%; top: 0; height: 100%; width: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.field-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.55)); }
.field .glass { z-index: 2; }
@media (min-width: 761px) { .field .glass { left: 30%; } }
@media (max-width: 760px) { .field-photo .fg { right: auto; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: none; mask-image: none; } .field .glass { top: auto; bottom: 18px; transform: translateX(-50%); } }
.field .glass { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, 84%); padding: 20px 24px; text-align: center; background: rgba(120, 80, 30, .28); }
.field .glass .pill { margin-top: 14px; }

/* ---------- services ---------- */
.services { padding: 12vh 0 8vh; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 460px; margin: 36px auto 0; }
.cols .col:first-child { text-align: right; }
.cols h3 { margin: 0 0 14px; font-size: 11px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; }
.ticker { height: 120px; overflow: hidden; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.ticker ul { list-style: none; margin: 0; padding: 0; animation: tick 12s linear infinite; }
.ticker li { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.cols .col:last-child .ticker ul { animation-duration: 15s; animation-direction: reverse; }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.triad { margin-top: 10vh; text-align: center; }
.triad span { opacity: .45; } .triad span.on { opacity: 1; }

/* ---------- rails list ---------- */
.rails { padding: 6vh 0 12vh; }
.rails .names { text-align: center; }
.rails .names p {
  margin: 0; font-weight: 300; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(26px, 4.6vw, 64px); line-height: 1.12;
}
.rails .names small { display: block; font-size: 11px; letter-spacing: .08em; color: var(--mute); margin: 2px 0 14px; }
.wordmarks { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; margin-top: 12vh; }
.wordmarks .wallet { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(16px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.wordmarks .wallet img { width: clamp(40px, 5vw, 56px); height: auto; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
@media (max-width: 520px) { .wordmarks { gap: 18px 26px; } }

/* ---------- postcards ---------- */
.cards { padding: 10vh 0 18vh; }
.stack { position: relative; height: min(78vh, 600px); margin: 6vh auto 0; width: min(560px, 92vw); }
.postcard {
  position: absolute; inset: 0; margin: auto; width: 100%; height: fit-content; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; color: #2a2016; background: #efe2c6;
  box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(90,60,20,.18); transform-origin: 50% 80%;
}
.postcard .art { aspect-ratio: 3 / 2; overflow: hidden; }
.postcard .art img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.postcard .cap { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 14px clamp(16px, 3vw, 24px) 18px; border-top: 1px dashed rgba(90,60,20,.35); }
.postcard .cap .micro { margin: 0; text-align: left; }
.postcard .script { font-family: var(--script); font-size: clamp(28px, 4.4vw, 42px); line-height: 1; margin: 4px 0 0; white-space: nowrap; }
.postcard .num { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.postcard .stamp { position: absolute; top: 12px; right: 12px; width: clamp(54px, 11vw, 76px); height: auto; transform: rotate(6deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); pointer-events: none; }

/* ---------- principles carousel ---------- */
.values { padding: 10vh 0 12vh; overflow: hidden; }
.values .lead { max-width: 440px; margin: 18px auto 0; }
.orbit { position: relative; height: 380px; margin-top: 7vh; touch-action: pan-y; user-select: none; }
.orbit .obj { position: absolute; left: 50%; top: 50%; width: 190px; height: 280px; margin: -140px 0 0 -95px; transition: transform .9s var(--ease), opacity .9s, filter .9s; cursor: grab; }
.orbit .obj:active { cursor: grabbing; }
.orbit .obj svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 20px 26px rgba(0,0,0,.6)); }
.orbit .obj .bob { width: 100%; height: 100%; }
.orbit .obj img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 24px 30px rgba(0,0,0,.65)); }
@media (max-width: 520px) { .orbit { height: 320px; } .orbit .obj { width: 150px; height: 220px; margin: -110px 0 0 -75px; } }
.orbit .obj .bob { animation: bob 4s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(3deg); } }
.value-name { text-align: center; margin-top: 18px; min-height: 120px; }
.value-name .script { font-family: var(--script); font-size: clamp(34px, 6vw, 58px); line-height: 1.1; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background .3s, transform .3s; }
.dots button.on { background: var(--ink); transform: scale(1.4); }

/* ---------- field guide (book) ---------- */
.guide { padding: 10vh var(--pad) 12vh; }
.guide .big { margin: 10px 0 0; }
.book-wrap { margin: 7vh auto 0; display: grid; place-items: center; }
.book {
  --paper: url("../img/f/paper.webp") center / 520px 520px repeat, #171513;
  position: relative; width: min(1120px, 94vw); aspect-ratio: 1.5; perspective: 2600px; outline: none;
  transition: transform 1.1s cubic-bezier(.3,.7,.2,1);
}
.book.closed { transform: translateX(-25%); }
.book.ended { transform: translateX(25%); }
.book::before { /* page block under the open spread */
  content: ""; position: absolute; inset: 1.2% 0 -1.6%; border-radius: 6px; background: #0c0b0a;
  box-shadow: 0 50px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04); transition: opacity .6s;
}
.book.closed::before, .book.ended::before { opacity: 0; }
.leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.3,.7,.2,1); cursor: pointer;
}
.leaf.flipped { transform: rotateY(-180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: var(--paper); color: #e9e2d2; border-radius: 0 6px 6px 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,.55);
}
.face::after { /* spine shading */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 14%; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.face.back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.face.back::after { left: auto; right: 0; background: linear-gradient(270deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.page-in { position: relative; z-index: 1; height: 100%; padding: clamp(22px, 4.2%, 46px) clamp(22px, 7%, 58px); display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: clamp(12px, 1.05vw, 14.5px); line-height: 1.55; }
.page-in p { margin: 0; }
.page-in h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(26px, 3vw, 42px); line-height: 1.05; color: #f6efe0; }
.page-in q { font-family: var(--display); font-style: italic; color: #f0c776; quotes: "\201C" "\201D"; }
.kicker { font-size: 10.5px !important; letter-spacing: .14em; text-transform: uppercase; color: #c9a25e; }
.page-art { position: absolute; right: 7%; top: 6%; width: clamp(54px, 9%, 96px); height: auto; opacity: .95; filter: drop-shadow(0 10px 16px rgba(0,0,0,.6)); z-index: -1; transform: rotate(6deg); }
.face.usecase .page-in { background: radial-gradient(ellipse at 70% 0%, rgba(233,162,59,.12), transparent 60%); }
.big-script { font-family: var(--script); font-size: clamp(30px, 3.4vw, 50px) !important; line-height: 1; color: #f0c776; margin-bottom: 6px !important; }
.note { color: #a99f8c; font-size: .92em; border-left: 2px solid rgba(201,162,94,.5); padding-left: 10px; }
.spec { margin: 8px 0 0; display: grid; gap: 6px; }
.spec div { display: flex; align-items: baseline; gap: 8px; font-size: .92em; }
.spec dt { color: #a99f8c; white-space: nowrap; }
.spec div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(233,226,210,.25); transform: translateY(-3px); }
.spec dd { order: 2; margin: 0; color: #f6efe0; text-align: right; }
.toc { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.toc li { display: flex; gap: 8px; align-items: baseline; }
.toc li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(233,226,210,.25); }
.toc i { order: 2; font-family: var(--display); color: #c9a25e; }
.signals { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; font-size: .92em; }
.signals b { display: inline-block; width: 38px; color: #f0c776; font-weight: 600; }
.never { margin: 6px 0 14px; padding-left: 18px; display: grid; gap: 6px; }
.face.end .pill { align-self: flex-start; }
.face.cover { background: radial-gradient(ellipse at 50% 35%, rgba(233,162,59,.18), transparent 60%), var(--paper); border-radius: 4px 8px 8px 4px; box-shadow: inset 0 0 0 1px rgba(201,162,94,.35), inset 0 0 0 9px #171513, inset 0 0 0 10px rgba(201,162,94,.25), inset 0 0 90px rgba(0,0,0,.6); }
.face.cover .page-in { align-items: center; text-align: center; }
.cover-art { width: 72%; height: auto; margin-bottom: 10px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.7)); }
.cover-title { font-size: clamp(30px, 3.6vw, 52px) !important; font-style: normal !important; letter-spacing: .02em; background: linear-gradient(180deg, #fff 0%, #cfcfcf 45%, #8a8a8a 55%, #f2f2f2 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.face.cover .script { font-family: var(--script); font-size: clamp(20px, 2vw, 28px); color: #f0c776; }
.face.cover .hint { margin-top: 18px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #a99f8c; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .35; } }
.folio { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: 12px; color: #8d8473; z-index: 1; }
.face.blank { background: var(--paper); }
.book-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 5vh; }
.book-nav .pill:disabled { opacity: .3; pointer-events: none; }
/* phones: one page at a time */
.book.single { width: min(440px, 92vw); aspect-ratio: .7; }
.book.single.closed, .book.single.ended { transform: none; }
.book.single::before { inset: 1.5% -1.5% -1.5% 1.5%; opacity: 1; }
.book.single .leaf { left: 0; width: 100%; }
.book.single .leaf.flipped { transform: rotateY(-100deg); opacity: 0; transition: transform 1s cubic-bezier(.3,.7,.2,1), opacity .5s .45s; }
.book.single .face { border-radius: 6px; }
.book.single .page-in { font-size: 13.5px; padding: 28px 24px 40px; }
.book.single .page-art { width: 64px; }
@media (prefers-reduced-motion: reduce) { .leaf, .book { transition: none !important; } }

/* ---------- portal ---------- */
.portal { padding: 10vh var(--pad) 8vh; }
.portal .box { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 52px); text-align: center; background: rgba(255,255,255,.02); }
.portal .script { font-family: var(--script); font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin: 0 0 26px; }
.field-row { display: flex; gap: 12px; align-items: center; }
.field-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 2px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; outline: none;
}
.field-row input:focus { border-bottom-color: var(--amber); }
.form-msg { min-height: 20px; margin-top: 12px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }

/* ---------- footer ---------- */
footer { position: relative; z-index: 3; text-align: center; padding: 6vh var(--pad) 70px; }
footer .big-emblem { width: 140px; height: 140px; margin: 0 auto 26px; color: var(--ink); perspective: 600px; }
footer .big-emblem svg, footer .big-emblem img { width: 100%; height: 100%; object-fit: contain; animation: emblem 7s linear infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(246,176,79,.18)); }

/* ---------- reveal helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* =================================================================== */
/* APP                                                                 */
/* =================================================================== */
.app-body { min-height: 100svh; }
.app {
  position: relative; z-index: 3; padding: 86px var(--pad) 70px;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; max-width: 1320px; margin: 0 auto;
}
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.badge.live i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.chat { display: flex; flex-direction: column; height: calc(100svh - 156px); min-height: 520px; }
.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.feed::-webkit-scrollbar { width: 6px; } .feed::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 16px; line-height: 1.5; animation: msgIn .5s var(--ease) both; overflow-wrap: anywhere; }
.msg.ai { align-self: flex-start; background: var(--glass); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #0a0a0a; border-top-right-radius: 4px; }
.msg.sys { align-self: center; max-width: 92%; background: none; color: var(--mute); font-size: 12px; text-align: center; padding: 4px; }
.msg .who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--ink-2); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 7px 13px; font-size: 12px; cursor: pointer; transition: background .25s, color .25s; white-space: nowrap; }
.chip:hover { background: var(--ink); color: #0a0a0a; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.composer textarea {
  flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); outline: none; line-height: 1.4;
}
.composer textarea:focus { border-color: var(--line-2); }
.send-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: #050505; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.send-btn:hover { background: var(--amber); }
.send-btn:active { transform: scale(.94); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }
.send-btn svg { width: 18px; height: 18px; }

/* preview card */
.preview { align-self: stretch; max-width: 560px; padding: 18px; border-radius: 18px; animation: msgIn .5s var(--ease) both; }
.preview h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.amount-big { font-family: var(--display); font-size: 40px; line-height: 1; margin: 2px 0 14px; }
.meter { margin: 16px 0 6px; }
.meter .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--amber), var(--ok)); transition: width .9s var(--ease); }
.meter .lab { display: flex; justify-content: space-between; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 12px; }
.check .ic { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--amber); animation: spin .8s linear infinite; }
.check.ok .ic { animation: none; border-color: var(--ok); background: var(--ok); }
.check.bad .ic { animation: none; border-color: var(--danger); background: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 12px; letter-spacing: .04em; transition: background .25s, color .25s, opacity .25s; }
.btn:hover { background: rgba(255,255,255,.08); }
.btn.primary { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.btn.primary:hover { background: var(--amber); border-color: var(--amber); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* progress timeline */
.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); transition: color .4s; }
.timeline li .node { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background .4s, border-color .4s, box-shadow .4s; }
.timeline li.active { color: var(--ink); }
.timeline li.active .node { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(233,196,106,.18); animation: pulse 1.2s infinite; }
.timeline li.done { color: var(--ink-2); }
.timeline li.done .node { background: var(--ok); border-color: var(--ok); }
.timeline li.fail { color: var(--danger); }
.timeline li.fail .node { background: var(--danger); border-color: var(--danger); }
.transfer-progress { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.transfer-progress:empty { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(233,196,106,0); } }
.receipt { margin-top: 14px; font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.receipt a { color: var(--amber); }

/* side column */
.side-col { display: grid; gap: 18px; align-content: start; }
.wallet-body, .score-body { padding: 18px; }
.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bal { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.bal b { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wallet-list { display: grid; gap: 8px; margin-top: 12px; }
.w-id { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.w-links { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 15px; height: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.stat { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; margin-top: 3px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .micro { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; }
.link-btn { background: none; border: 0; color: #f0c776; cursor: pointer; padding: 4px 0; font: inherit; }
.link-btn:disabled { color: var(--mute); cursor: default; }
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.history li { border-bottom: 1px solid var(--line); }
.history li > a, .history li > div { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; color: inherit; text-decoration: none; }
.history li > a:hover { background: rgba(255,255,255,.03); }
.h-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.05); }
.h-ic svg { width: 15px; height: 15px; }
.h-ic.t-receive, .h-ic.t-unshield { color: #9fd27a; background: rgba(159,210,122,.12); }
.h-ic.t-send { color: #ff9a6b; background: rgba(255,122,74,.12); }
.h-ic.t-shield { color: #f0c776; background: rgba(233,162,59,.14); }
.h-main { display: flex; flex-direction: column; min-width: 0; }
.h-main b { font-weight: 600; font-size: 13.5px; }
.h-main .micro { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-amt { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.h-amt .pos { color: #9fd27a; } .h-amt .neg { color: #f4f1ea; }
.fail { font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #ff7a4a; margin-left: 4px; }
.history .skel > * { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.history .skel { display: grid; grid-template-columns: 32px 1fr 70px; gap: 10px; align-items: center; padding: 12px 2px; }
.history .skel i { height: 32px; border-radius: 50%; }
@keyframes skel { to { background-position: -200% 0; } }
.src-line { margin: 8px 0 0; }
@media (max-width: 420px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b { font-size: 19px; } }
.wallet-list .btn { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }

.gauge { position: relative; width: 190px; height: 190px; margin: 4px auto 6px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .val b { display: block; font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1; }
.gauge circle.arc { transition: stroke-dashoffset 1.4s var(--ease); }
.signals { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.signals li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.signals li.hit { background: rgba(255,100,100,.08); }
.signals li.good { background: rgba(159,210,122,.08); }
.signals li span:last-child { font-variant-numeric: tabular-nums; color: var(--mute); }
.signals li.hit span:last-child { color: var(--danger); }
.signals li.good span:last-child { color: var(--ok); }
.score-summary { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.empty { text-align: center; color: var(--mute); padding: 20px 6px; font-size: 13px; }

.app-tabs { display: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); z-index: 120; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #050505; font-size: 12px; opacity: 0; transition: opacity .4s, transform .4s var(--ease); pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(0,0,0,.7); padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal .sheet { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 20px; border-radius: 20px; }
.modal img { width: 100%; height: auto; border-radius: 12px; }

/* =================================================================== */
/* RESPONSIVE                                                          */
/* =================================================================== */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; padding-top: 78px; padding-bottom: 96px; }
  .app-tabs {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 70; padding: 4px; gap: 4px;
    border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,10,10,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .app-tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .app-tabs button.on { background: var(--ink); color: #050505; }
  .app [data-pane] { display: none; }
  .app [data-pane].show { display: block; }
  .app .chat.show { display: flex; }
  .side-col { display: contents; }
  .chat { height: calc(100svh - 190px); }
  .socials { display: none; }
}
@media (max-width: 760px) {
  .postcard .cap { grid-template-columns: 1fr; gap: 6px; }
  .cols { gap: 16px; }
  .field .card { height: 62vh; }
  .top .right .pill.hide-sm { display: none; }
  .msg { max-width: 92%; }
}
@media (max-width: 420px) {
  .top { padding: 14px 14px; }
  .pill { padding: 0 13px; height: 32px; }
  .hero .cta .pill { height: 40px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* ---------- docs ---------- */
.docs-body { background: var(--bg, #030303); }
.docs { position: relative; z-index: 3; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1240px; margin: 0 auto; padding: 120px var(--pad) 80px; }
.docs-nav { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: 16px; background: rgba(14,13,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.docs-nav-title { font-family: var(--display); font-style: italic; font-size: 22px; margin: 0 0 8px; }
.docs-nav .grp { margin: 16px 0 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #c9a25e; }
.docs-nav a { display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 8px; font-size: 13.5px; color: rgba(244,241,234,.66); text-decoration: none; transition: background .2s, color .2s; }
.docs-nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.docs-nav a.on { color: var(--ink); background: rgba(233,162,59,.14); }
.docs-main { min-width: 0; font-size: 15.5px; line-height: 1.7; color: rgba(244,241,234,.86); }
.docs-hero { padding: 10px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.docs-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1; margin: 10px 0 14px; background: linear-gradient(180deg, #fff 0%, #cfcfcf 45%, #8a8a8a 55%, #f2f2f2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead-doc { font-size: clamp(16px, 1.6vw, 19px); max-width: 680px; margin: 0; }
.net-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(20,241,149,.35); background: rgba(20,241,149,.08); font-size: 13px; }
.net-badge i { width: 8px; height: 8px; border-radius: 50%; background: #14f195; box-shadow: 0 0 10px #14f195; }
.doc { padding: 34px 0 18px; scroll-margin-top: 100px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 14px; color: #f6efe0; }
.doc h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #c9a25e; margin: 28px 0 10px; font-weight: 600; }
.doc p { margin: 0 0 14px; }
.doc a { color: #f0c776; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; color: #f6efe0; word-break: break-word; }
.doc code.addr, .doc [data-copy] { cursor: pointer; }
.doc code.addr { word-break: break-all; }
.doc [data-copy]:hover { border-color: rgba(240,199,118,.6); }
.kicker { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #c9a25e; margin: 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.dcard { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.dcard p:last-child { margin: 6px 0 0; font-size: 14px; }
.callout { padding: 14px 18px; border-radius: 12px; border-left: 3px solid #c9a25e; background: rgba(233,162,59,.08); font-size: 14.5px; }
.callout.warn { border-left-color: #ff7a4a; background: rgba(255,122,74,.08); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); background: rgba(233,162,59,.15); color: #f0c776; border: 1px solid rgba(233,162,59,.4); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 8px 0 18px; }
.flow > div { position: relative; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13.5px; }
.flow span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #c9a25e; color: #120c04; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.flow b { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 20px; color: #f6efe0; margin-bottom: 4px; }
.flow p { margin: 0; line-height: 1.55; }
.tbl-wrap { overflow-x: auto; margin: 10px 0 16px; border-radius: 12px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #c9a25e; background: rgba(255,255,255,.03); }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.dl { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 8px; }
.check { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.check li { position: relative; padding-left: 30px; }
.check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #c9a25e; }
pre.code { position: relative; margin: 10px 0 16px; padding: 16px 18px; border-radius: 12px; background: #0b0a09; border: 1px solid var(--line); overflow-x: auto; font-size: 13px; line-height: 1.6; }
pre.code code { background: none; border: 0; padding: 0; white-space: pre; word-break: normal; color: #e9e2d2; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line); cursor: pointer; opacity: .7; }
.copy-btn:hover { opacity: 1; }
.endpoint { margin: 18px 0; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.endpoint .ep { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.endpoint .ep code { font-size: 14px; }
.m { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.m.get { background: rgba(20,241,149,.14); color: #5cf5b4; }
.m.post { background: rgba(233,162,59,.16); color: #f0c776; }
.endpoint pre.code { margin-bottom: 0; }
.mute-s { font-size: 13.5px; color: rgba(244,241,234,.6); }
.mute-s code { margin: 0 2px 4px 0; display: inline-block; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; color: #f6efe0; list-style: none; position: relative; padding-right: 28px; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 20px; color: #c9a25e; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; }
.docs-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; padding-top: 96px; }
  .docs-nav { position: sticky; top: 70px; z-index: 5; max-height: none; padding: 10px; border-radius: 14px; }
  .docs-nav-title, .docs-nav .grp { display: none; }
  .docs-nav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .docs-nav nav::-webkit-scrollbar { display: none; }
  .docs-nav a { flex: none; margin: 0; white-space: nowrap; }
  .flow { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .doc { scroll-margin-top: 140px; }
}
@media (max-width: 520px) { .docs-main { font-size: 15px; } .tbl { font-size: 13px; } .tbl th, .tbl td { padding: 9px 10px; } }

/* app & docs: decoration always sits behind the panels */
.app-body #organic, .docs-body #organic { z-index: 0; }
.app-body .app, .docs-body .docs { position: relative; z-index: 3; }
.cards { overflow-x: clip; }
@media (max-width: 520px) { .stack { width: min(560px, 84vw); } }
/* decoration always behind the copy, on every page and size */
#organic { z-index: 0; }
body > main, body > footer { position: relative; z-index: 3; }

/* ---------- withdraw private balance form ---------- */
.withdrawal-panel { min-width: 0; }
.withdrawal-panel summary { min-height: 44px; display: flex; align-items: center; border-radius: 10px; }
.withdrawal-panel summary::-webkit-details-marker { display: none; }
.withdrawal-panel summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.withdrawal-help { color: var(--ink-2); font-size: 13px; line-height: 1.55; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.withdrawal-form { display: grid; gap: 12px; margin-top: 14px; min-width: 0; max-width: 100%; }
.withdrawal-field {
  display: grid; gap: 6px; min-width: 0;
  font-size: 12px; font-weight: 500; letter-spacing: 0.01em; text-transform: none; color: var(--ink-2);
}
.withdrawal-control {
  color-scheme: dark;
  width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255,255,255,.05); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.3; letter-spacing: 0; text-transform: none;
  -webkit-appearance: none; appearance: none; outline: none;
  transition: border-color .2s, background .2s;
}
.withdrawal-control::placeholder { color: var(--mute); opacity: 1; }
.withdrawal-control:hover { border-color: rgba(255,255,255,.4); }
.withdrawal-control:focus-visible, .withdrawal-control:focus { border-color: var(--amber); outline: 2px solid var(--amber); outline-offset: 2px; background: rgba(255,255,255,.08); }
.withdrawal-control:disabled { opacity: .5; cursor: not-allowed; }
select.withdrawal-control {
  padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select.withdrawal-control option { background: #121110; color: var(--ink); }
.withdrawal-control:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #151413 inset; caret-color: var(--ink); }
.withdrawal-submit {
  min-height: 44px; width: 100%; max-width: 100%; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: #050505;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: normal;
  cursor: pointer; transition: background .25s, border-color .25s, transform .2s var(--ease);
}
.withdrawal-submit:hover { background: var(--amber); border-color: var(--amber); }
.withdrawal-submit:active { transform: scale(.98); }
.withdrawal-submit:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.withdrawal-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; }
@media (min-width: 521px) { .withdrawal-submit { width: auto; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .withdrawal-control, .withdrawal-submit { transition: none; } }
