/* ElyZero — palette = Kinetiq/Elysium design tokens; type = DM Sans + Geist Mono */
:root {
  --b50: #E8EEF0; --b100: #DBF2F9; --b200: #93D9EE; --b300: #6FCDE8; --b400: #34B7DD;
  --b500: #2D7388; --b600: #1E4D5A; --b650: #163B44; --b700: #0F2A30; --b800: #051D22;
  --b900: #04181C; --b950: #071317;
  --w50: #F8F7F4; --w100: #EBE6DD; --w300: #CAC0AD; --w400: #B1A690; --w500: #91887A; --w600: #6B655A;
  --bg: var(--b950);
  --text: var(--w50);
  --muted: var(--w400);
  --line: rgba(52, 183, 221, .14);
  --line-2: rgba(52, 183, 221, .28);
  --panel: rgba(15, 42, 48, .55);
  --radius: 18px;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(52, 183, 221, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(45, 115, 136, .14), transparent 60%);
  background-attachment: fixed;
}
img { display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--b400); color: var(--b900); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--b400); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(7, 19, 23, .72); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.brand b { color: var(--b400); font-weight: 700; }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.block-pill {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--b200);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4, 24, 28, .6);
  white-space: nowrap;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--b400); box-shadow: 0 0 0 0 rgba(52,183,221,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52,183,221,0); } 100% { box-shadow: 0 0 0 0 rgba(52,183,221,0); } }

/* ---------- buttons ---------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--b400); color: var(--b900); box-shadow: 0 8px 28px -10px rgba(52,183,221,.7); }
.btn-primary:hover { background: var(--b300); box-shadow: 0 10px 34px -8px rgba(52,183,221,.85); }
.btn-ghost { background: rgba(52,183,221,.06); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--b400); background: rgba(52,183,221,.12); }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
#ledger { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; touch-action: pan-y; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7,19,23,.92) 0%, rgba(7,19,23,.7) 38%, rgba(7,19,23,0) 70%); }
.hero-inner { position: relative; z-index: 2; max-width: 880px; padding: 80px clamp(20px, 6vw, 72px) 40px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.eyebrow { color: var(--b400); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 0 24px; }
.grad { background: linear-gradient(100deg, var(--b200), var(--b400) 45%, var(--b500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--w100); max-width: 640px; margin: 0 0 34px; text-shadow: 0 2px 18px var(--bg); }
.redact { position: relative; color: var(--b200); font-family: var(--mono); font-size: .92em; white-space: nowrap; pointer-events: auto; cursor: default; }
.redact::after { content: ""; position: absolute; inset: -1px -3px; background: var(--b600); border-radius: 4px; transform-origin: right; transition: transform .7s var(--ease); }
.redact.revealed::after { transform: scaleX(0); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta.center { justify-content: center; margin-top: 28px; }
.hint { margin: 26px 0 0; font-size: 12.5px; color: var(--b200); opacity: .8; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }

.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); background: rgba(4, 24, 28, .72); backdrop-filter: blur(10px); }
.stats div { padding: 20px clamp(16px, 3vw, 32px); border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stats dd { margin: 0; font-size: clamp(16px, 2vw, 22px); color: var(--text); }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(72px, 10vw, 130px) clamp(20px, 4vw, 40px) 0; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.07; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.sec-lede { color: var(--muted); font-size: 18px; margin: 0; }
.fine { font-size: 12px; color: var(--w400); }
.center { text-align: center; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--b950); padding: 28px 24px; display: flex; flex-direction: column; transition: background .3s; }
.step:hover { background: var(--b900); }
.step-n { color: var(--b400); font-size: 13px; margin-bottom: 36px; }
.step p { color: var(--muted); font-size: 15px; margin: 0 0 22px; flex: 1; }
.step code { font-size: 11.5px; color: var(--b200); background: rgba(52,183,221,.07); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; overflow-x: auto; white-space: normal; word-break: break-word; line-height: 1.5; }

/* lab */
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.lab-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .3s var(--ease), opacity .3s; }
.lab-card.locked { opacity: .5; }
.lab-card.active { border-color: var(--b400); box-shadow: 0 0 0 1px rgba(52,183,221,.25), 0 24px 60px -30px rgba(52,183,221,.5); }
.lab-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.lab-top { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--b200); background: rgba(52,183,221,.1); padding: 4px 9px; border-radius: 999px; }
.lab-n { color: var(--w600); font-size: 13px; }
.input { width: 100%; height: 44px; background: rgba(4,24,28,.8); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); padding: 0 14px; font-size: 13px; }
.input:focus { outline: none; border-color: var(--b400); }
.out { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.out label { font-size: 11px; color: var(--w500); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.field { font-size: 12px; line-height: 1.5; word-break: break-all; background: rgba(4,24,28,.85); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--w100); white-space: pre-wrap; }
.field.accent { color: var(--b300); border-color: var(--line-2); }
.field.dim { color: var(--w500); }
details summary { cursor: pointer; font-size: 12px; color: var(--w500); margin: 6px 0; }
.verdict { font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.verdict.ok { background: rgba(52,183,221,.12); color: var(--b200); border: 1px solid var(--line-2); }
.verdict.no { background: rgba(107,101,90,.18); color: var(--w300); border: 1px solid rgba(177,166,144,.25); }
.lab + .fine { margin-top: 16px; }

/* two views */
.views { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--b900); border: 1px solid var(--line-2); }
.sw { position: relative; z-index: 1; background: none; border: 0; color: var(--muted); font: 600 14px var(--sans); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.sw.on { color: var(--b900); }
.sw-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--b400); transition: transform .45s var(--ease); }
.switch.yours .sw-thumb { transform: translateX(100%); }
.tx { width: 100%; max-width: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.tx[data-view="yours"] { border-color: var(--b400); box-shadow: 0 30px 80px -40px rgba(52,183,221,.6); }
.tx-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tx-row:last-child { border-bottom: 0; }
.tx-row .k { color: var(--w500); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.tx-row .v { position: relative; min-height: 1.6em; min-width: 0; overflow-wrap: anywhere; }
.tx .you, .tx .pub { transition: opacity .35s, filter .35s, transform .35s var(--ease); display: inline-block; }
.tx .you { position: absolute; left: 0; top: 0; opacity: 0; filter: blur(6px); transform: translateY(4px); color: var(--b300); }
.tx[data-view="yours"] .you { opacity: 1; filter: none; transform: none; }
.tx[data-view="yours"] .pub { opacity: 0; filter: blur(6px); }

.ledger-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.col ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.col li { display: flex; gap: 12px; align-items: baseline; color: var(--w100); }
.col li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.sealed { background: linear-gradient(160deg, rgba(52,183,221,.12), rgba(15,42,48,.4)); border-color: var(--line-2); }
.sealed h3 { color: var(--b200); }
.sealed li::before { background: var(--b400); }
.open { background: rgba(28,26,20,.35); border-color: rgba(177,166,144,.18); }
.open h3 { color: var(--w300); }
.open li::before { background: transparent; border: 1.5px solid var(--w500); }
.open .fine { margin: 18px 0 0; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: transform .35s var(--ease), border-color .3s; }
.tool:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tool p { color: var(--muted); font-size: 15px; margin: 0; }
.status { display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .04em; }
.status.ready { background: rgba(52,183,221,.14); color: var(--b200); }
.status.build { background: rgba(45,115,136,.25); color: var(--b300); }
.status.design { background: rgba(145,136,122,.15); color: var(--w300); }

/* zely */
.zely { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(500px 300px at 20% 50%, rgba(52,183,221,.16), transparent 70%), var(--b900); }
.zely-coin { position: relative; height: 280px; display: grid; place-items: center; }
.zely-coin img { position: relative; z-index: 2; width: 120px; height: 120px; filter: drop-shadow(0 18px 40px rgba(52,183,221,.45)); }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 18s linear infinite; }
.ring::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--b400); box-shadow: 0 0 12px var(--b400); }
.r1 { width: 170px; height: 170px; }
.r2 { width: 230px; height: 230px; animation-duration: 28s; animation-direction: reverse; border-style: dashed; }
.r3 { width: 280px; height: 280px; animation-duration: 40s; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.zely h2 { font-size: clamp(56px, 8vw, 96px); letter-spacing: -.04em; margin-bottom: 12px; }
.ca { display: flex; align-items: center; gap: 14px; margin: 26px 0 12px; padding: 12px 12px 12px 18px; border-radius: 14px; background: rgba(4,24,28,.9); border: 1px solid var(--line); flex-wrap: wrap; }
.ca .k { font-size: 12px; color: var(--w500); text-transform: uppercase; letter-spacing: .06em; }
.ca .v { color: var(--b200); font-size: 14px; flex: 1; min-width: 160px; }

/* network */
.net { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.net-cell { padding: 22px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.net-cell:last-child { border-right: 0; }
.net-cell .k { font-size: 11px; color: var(--w500); text-transform: uppercase; letter-spacing: .08em; }
.net-cell .v { font-size: 18px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--text); padding: 20px 40px 20px 0; position: relative; margin: 0; font-family: var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px var(--mono); color: var(--b400); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 700px; }

/* closing CTA */
.closer { margin-top: clamp(80px, 10vw, 120px); padding: clamp(40px, 6vw, 72px); border-radius: 28px; text-align: center; border: 1px solid var(--line-2);
  background: radial-gradient(600px 260px at 50% 0%, rgba(52,183,221,.22), transparent 70%), var(--b900); }
.closer h2 { margin-bottom: 12px; }
.closer .sec-lede { max-width: 560px; margin: 0 auto; }
.closer .cta { justify-content: center; margin-top: 28px; }

/* footer */
.foot { max-width: 1180px; margin: clamp(56px, 8vw, 90px) auto 0; padding: 32px clamp(20px, 4vw, 40px) 48px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot .fine { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--b800); border: 1px solid var(--line-2); color: var(--b100); padding: 12px 18px; border-radius: 12px; font-size: 13px; transition: all .35s var(--ease); z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .net { grid-template-columns: repeat(3, 1fr); }
  .net-cell:nth-child(3) { border-right: 0; }
  .net-cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero::before { background: linear-gradient(180deg, rgba(7,19,23,.9) 0%, rgba(7,19,23,.8) 52%, rgba(7,19,23,.05) 70%); }
  .hero-inner { padding-bottom: 250px; }
  .lab, .tools { grid-template-columns: 1fr; }
  .ledger-split { grid-template-columns: 1fr; }
  .zely { grid-template-columns: 1fr; text-align: center; }
  .zely-coin { height: 220px; transform: scale(.85); }
  .ca { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav .btn { display: none; }
  .block-pill { font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .tx-row { grid-template-columns: 1fr; gap: 4px; }
  .net { grid-template-columns: repeat(2, 1fr); }
  .net-cell { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .net-cell:nth-child(2n) { border-right: 0 !important; }
  .sw { padding: 10px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
