:root {
  --bg: #0c1015; --s1: #11171e; --s2: #161e27; --s3: #1d2731;
  --line: rgba(190, 215, 240, .08); --line2: rgba(190, 215, 240, .15);
  --ink: #e7edf3; --dim: #93a1b0; --faint: #627181;
  --acc: #e7edf3; --sky: #a9c6e2; --up: #48d597; --dn: #f26b77;
  --r: 16px; --pad: clamp(20px, 4.5vw, 64px); --wrap: 1280px;
  --serif: "Instrument Serif", Georgia, serif; --font: Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
em, i { font-style: normal; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: .9em; }
.up { color: var(--up); } .dn { color: var(--dn); } .dim { color: var(--dim); } .faint { color: var(--faint); }
.serif { font-family: var(--serif); font-weight: 400; }

.nav { position: absolute; inset: 0 0 auto; z-index: 20; }
.nav.solid { position: sticky; top: 0; background: rgba(12, 16, 21, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 76px; gap: 34px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 27px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand span { transform: translateY(-1px); }
.links { display: flex; gap: 28px; font-size: 14.5px; color: #b9c5d1; }
.links a:hover { color: #fff; }
.nav .sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 500; font-size: 15px; transition: background .2s, transform .2s var(--ease); white-space: nowrap; }
.btn.w { background: var(--acc); color: #0c1015; }
.btn.w:hover { background: #fff; }
.btn.g { background: rgba(231, 237, 243, .08); border: 1px solid var(--line2); color: var(--ink); backdrop-filter: blur(8px); }
.btn.g:hover { background: rgba(231, 237, 243, .14); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }

.hero { position: relative; height: min(100vh, 1000px); min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; }
.hero .bg { position: absolute; inset: 0; background: url(../img/hero.jpg) 60% center / cover no-repeat; animation: glide 30s var(--ease) infinite alternate; }
@keyframes glide { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero .wrap { position: relative; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.8vw, 108px); line-height: .94; letter-spacing: -.02em; max-width: 6.3em; }
.hero h1 span { color: #9fb3c6; }
.hero .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.hero p.sub { max-width: 31em; font-size: clamp(16.5px, 1.3vw, 19px); color: #c6d1dc; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 9px 14px; border-radius: 10px; background: rgba(12, 16, 21, .5); border: 1px solid var(--line2); backdrop-filter: blur(10px); font-size: 13.5px; cursor: pointer; }
.ca b { font-weight: 600; }

section.blk { padding: clamp(84px, 11vw, 150px) 0; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.2vw, 76px); line-height: 1; letter-spacing: -.015em; max-width: 13em; }
.h2 span { color: var(--faint); }
.lead { margin-top: 20px; color: var(--dim); font-size: 18px; max-width: 34em; }

.three { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2); }
.three > div { padding: 30px 30px 0 0; }
.three > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.three .k { font-family: var(--serif); font-size: 34px; line-height: 1.05; }
.three p { margin-top: 14px; color: var(--dim); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.code { background: #0a0e13; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.code .bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--faint); align-items: center; }
.code .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--s3); }
.code .bar span { margin-left: 10px; }
.code pre { padding: 22px 22px 24px; font: 13.5px/1.75 var(--mono); color: #c6d3df; overflow-x: auto; white-space: pre; }
.code .c { color: var(--faint); } .code .s { color: var(--sky); } .code .ok { color: var(--up); } .code .no { color: var(--dn); }

.ledger { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th { text-align: left; font-weight: 500; color: var(--faint); font-size: 13px; padding: 14px 22px; background: var(--s1); border-bottom: 1px solid var(--line); }
.ledger td { padding: 17px 22px; border-bottom: 1px solid var(--line); color: var(--dim); }
.ledger td:first-child { color: var(--ink); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .r { text-align: right; }

.rows { margin-top: 52px; border-top: 1px solid var(--line2); }
.rows details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.rows summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 24px; gap: 20px; font-size: 19px; }
.rows summary::after { content: "+"; color: var(--faint); font-size: 24px; line-height: 1; }
.rows details[open] summary::after { content: "−"; }
.rows p { margin-top: 12px; color: var(--dim); max-width: 46em; }

.tokrow { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); }
.tokrow > div { padding: 26px 24px 0 0; }
.tokrow .v { font-family: var(--serif); font-size: 46px; line-height: 1; }
.tokrow .k { margin-top: 10px; color: var(--dim); font-size: 14.5px; }

.close { display: flex; justify-content: space-between; align-items: start; gap: 40px; margin-top: 90px; }

footer { background: #000; padding: 72px 0 80px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
footer h4 { font-size: 13.5px; color: var(--faint); font-weight: 500; margin-bottom: 14px; }
footer a, footer p { display: block; color: var(--dim); font-size: 14.5px; margin-bottom: 9px; }
footer a:hover { color: var(--ink); }
footer .brand { margin-bottom: 12px; color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: var(--s3); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 12px; font-size: 14.5px; transition: .3s var(--ease); z-index: 99; max-width: 92vw; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; } .toast.bad { border-color: rgba(242, 107, 119, .5); }
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .links { display: none; }
  .three, .tokrow { grid-template-columns: 1fr 1fr; }
  .three > div + div { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .close { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero .bg { background-image: url(../img/hero-m.jpg); background-position: 12% center; }
  .hero h1 { font-size: 56px; }
  .three, .tokrow { grid-template-columns: 1fr; }
  .ledger { overflow-x: auto; } .ledger table { min-width: 600px; }
  .nav .btn.w { display: none; }
}
