/* ZStrategy — gold-on-black vault aesthetic. Sharp, technical, geometric. */

:root {
    --bg:        #0b0b0c;
    --bg-2:      #101011;
    --panel:     #151517;
    --panel-2:   #1c1c1f;
    --line:      #292930;
    --line-gold: #5c4a1c;
    --gold:      #f4b728;
    --gold-dim:  #c9982a;
    --ink:       #ededee;
    --ink-soft:  #9b9ba1;
    --ink-mute:  #63636a;
    --red:       #e0654f;
    --green:     #5fb98c;
    --maxw:      1160px;
    --r:         5px;
    --disp:      "Space Grotesk", system-ui, sans-serif;
    --sans:      "Inter", system-ui, -apple-system, sans-serif;
    --mono:      "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* faint grid texture — vault/ledger feel */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(244,183,40,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244,183,40,0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 80%);
}

a { color: var(--gold); text-decoration: none; transition: opacity .15s ease; }
a:hover { opacity: .75; }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }

/* ─── top status strip (header tier 1) ────────────────────────────── */
.topbar { background: #08080a; border-bottom: 1px solid var(--line); }
.topbar-in {
    max-width: var(--maxw); margin: 0 auto; padding: 0 26px; height: 33px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--ink-mute);
}
.topbar-in .tb-l b { color: var(--gold-dim); font-weight: 500; }
.topbar-in .tb-sep { color: var(--line-gold); margin: 0 8px; }
.topbar-in a { color: var(--ink-soft); }
.topbar-in a:hover { color: var(--gold); }

/* ─── nav (header tier 2) ─────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11,11,12,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 26px;
    height: 66px; display: flex; align-items: center; gap: 30px; }
.brand {
    font-family: var(--disp); font-weight: 700; font-size: 21px;
    color: var(--ink); letter-spacing: -0.02em; white-space: nowrap;
    display: flex; align-items: center; gap: 0;
}
.brand .zmark {
    display: inline-grid; place-items: center; width: 26px; height: 26px;
    background: var(--gold); color: #0b0b0c; border-radius: 4px;
    font-weight: 700; margin-right: 8px; font-size: 18px;
}
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a {
    font-family: var(--mono); font-size: 12.5px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
    padding: 7px 12px; border-radius: 4px;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); opacity: 1; }
.nav-links a.active { color: var(--gold); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.nav-mobile-actions { display: none; }

.icon-link {
    width: 35px; height: 35px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft);
}
.icon-link:hover { color: var(--gold); border-color: var(--line-gold); opacity: 1; }
.icon-link svg { width: 16px; height: 16px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 10px 18px; border-radius: 4px; cursor: pointer;
    border: 1px solid transparent; transition: transform .12s ease, background .15s ease;
}
.btn-primary { background: var(--gold); color: #0b0b0c; }
.btn-primary:hover { opacity: 1; transform: translateY(-1px); background: #ffc945; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 14px 26px; font-size: 13.5px; }
.btn-wallet { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-wallet:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }
.btn-wallet.connected { color: var(--gold); border-color: var(--gold); }
.btn-wallet .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 7px var(--gold); display: none; }
.btn-wallet.connected .dot { display: block; }

.burger {
    display: none; margin-left: auto; width: 39px; height: 39px;
    background: none; border: 1px solid var(--line); border-radius: 4px;
    color: var(--ink); cursor: pointer; font-size: 17px;
}

/* ─── hero ────────────────────────────────────────────────────────── */
.hero { padding: 104px 0 80px; position: relative; }
.hero-tag-row {
    display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
    font-family: var(--mono); font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--gold-dim);
}
.hero-tag-row::before { content: ""; width: 34px; height: 1px; background: var(--gold-dim); }
.hero-wordmark {
    font-family: var(--disp); font-weight: 700;
    font-size: clamp(58px, 12vw, 142px); line-height: 0.92; letter-spacing: -0.04em;
    margin-bottom: 26px;
}
.hero-wordmark .z { color: var(--gold); }
.hero-tag { font-family: var(--disp); font-weight: 500;
    font-size: clamp(22px, 3.4vw, 33px); letter-spacing: -0.02em; margin-bottom: 20px; }
.lede { max-width: 580px; font-size: 17px; color: var(--ink-soft); margin-bottom: 34px; }
.lede b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }

/* hero side panel — a "ledger" card */
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.ledger {
    border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
    overflow: hidden;
}
.ledger-head {
    display: flex; justify-content: space-between; padding: 13px 18px;
    border-bottom: 1px solid var(--line); font-family: var(--mono);
    font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute);
}
.ledger-head .live { color: var(--gold); display: flex; align-items: center; gap: 6px; }
.ledger-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.ledger-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 16px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .lk { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.ledger-row .lv { font-size: 17px; color: var(--gold); }

/* ─── sections ────────────────────────────────────────────────────── */
section { padding: 70px 0; }
.sec-head { margin-bottom: 44px; max-width: 680px; }
.sec-idx {
    font-family: var(--mono); font-size: 12.5px; color: var(--gold);
    letter-spacing: 0.1em; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.sec-head p { color: var(--ink-soft); font-size: 16.5px; }

.rule { height: 1px; background: var(--line); }

/* card grids */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
    border-radius: var(--r); overflow: hidden; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--bg); padding: 30px 26px; }
.cell:hover { background: var(--panel); }
.cell .cidx { font-family: var(--mono); font-size: 12px; color: var(--gold-dim); margin-bottom: 16px; }
.cell h3 { font-size: 20px; margin-bottom: 9px; }
.cell p { color: var(--ink-soft); font-size: 14.5px; }

/* standalone cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }

/* ─── pipeline (the loop) ─────────────────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.pl-node {
    border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
    padding: 24px 20px; position: relative; margin-right: 30px;
}
.pl-node:last-child { margin-right: 0; }
.pl-node:not(:last-child)::after {
    content: ""; position: absolute; right: -30px; top: 50%; width: 30px; height: 1px;
    background: var(--line-gold);
}
.pl-node:not(:last-child)::before {
    content: ""; position: absolute; right: -30px; top: 50%;
    width: 0; height: 0; transform: translate(0,-50%);
    border-top: 5px solid transparent; border-bottom: 5px solid transparent;
    border-left: 8px solid var(--gold); z-index: 2;
}
.pl-num {
    font-family: var(--mono); font-size: 12px; color: #0b0b0c; background: var(--gold);
    display: inline-block; padding: 2px 8px; border-radius: 3px; margin-bottom: 14px;
}
.pl-node h3 { font-size: 17px; margin-bottom: 7px; }
.pl-node p { font-size: 13.5px; color: var(--ink-soft); }
.pl-loop {
    margin-top: 22px; display: flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 12.5px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ink-mute);
}
.pl-loop .ln { flex: 1; height: 1px; background: var(--line);
    background-image: repeating-linear-gradient(90deg, var(--line-gold) 0 7px, transparent 7px 14px); }

/* ─── flow (how-it-works) ─────────────────────────────────────────── */
.flow-step {
    display: grid; grid-template-columns: 86px 1fr; gap: 0;
    border: 1px solid var(--line); border-bottom: none; background: var(--panel);
}
.flow-step:last-of-type { border-bottom: 1px solid var(--line); }
.flow-step:first-of-type { border-radius: var(--r) var(--r) 0 0; }
.flow-step:last-of-type { border-radius: 0 0 var(--r) var(--r); }
.flow-n {
    background: var(--bg-2); border-right: 1px solid var(--line);
    display: grid; place-items: center; font-family: var(--disp);
    font-weight: 700; font-size: 30px; color: var(--gold);
}
.flow-b { padding: 24px 26px; }
.flow-b h3 { font-size: 19px; margin-bottom: 6px; }
.flow-b p { color: var(--ink-soft); font-size: 14.5px; }

/* ─── tokenomics ──────────────────────────────────────────────────── */
.kv { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.kv-row { display: flex; justify-content: space-between; padding: 15px 20px;
    border-bottom: 1px solid var(--line); font-family: var(--mono); }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--ink-soft); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.kv-row .v { color: var(--ink); font-size: 14px; }
.kv-row .v.gold { color: var(--gold); font-size: 15px; }

.bar { height: 14px; border-radius: 3px; background: var(--bg-2);
    overflow: hidden; display: flex; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; }
.legend { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap;
    font-family: var(--mono); font-size: 12.5px; }
.legend span { color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--dot, var(--gold)); }

.ca {
    display: flex; align-items: center; gap: 12px; background: var(--bg-2);
    border: 1px dashed var(--line-gold); border-radius: 4px; padding: 13px 16px;
    font-family: var(--mono); font-size: 13px; color: var(--ink-soft); cursor: pointer;
}
.ca .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: #0b0b0c;
    background: var(--gold); border-radius: 3px; padding: 3px 7px; }

/* ─── faq ─────────────────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--line); border-bottom: none; background: var(--panel); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px 22px; color: var(--ink); font-family: var(--disp); font-weight: 600;
    font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q .pm { color: var(--gold); font-family: var(--mono); font-size: 18px; flex: none;
    transition: transform .2s ease; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ─── CTA band (asymmetric: text left, action right) ──────────────── */
.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 38px;
    border: 1px solid var(--line-gold); border-radius: var(--r);
    background: linear-gradient(115deg, var(--panel) 40%, var(--bg-2));
    padding: 44px 42px; position: relative; overflow: hidden;
}
.cta::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--gold);
}
.cta-text { max-width: 560px; }
.cta-text h2 { font-size: clamp(24px, 3.2vw, 37px); margin-bottom: 10px; }
.cta-text p { color: var(--ink-soft); }
.cta .hero-cta { flex: none; }

/* ─── page header ─────────────────────────────────────────────────── */
.page-head { padding: 76px 0 28px; }
.page-head .sec-idx { margin-bottom: 16px; }
.page-head h1 { font-family: var(--disp); font-weight: 700;
    font-size: clamp(36px, 5.4vw, 62px); letter-spacing: -0.03em; margin-bottom: 14px; }
.page-head h1 .gold { color: var(--gold); }
.page-head p { color: var(--ink-soft); max-width: 620px; font-size: 16.5px; }

/* prose */
.prose p { color: var(--ink-soft); margin-bottom: 15px; }
.prose h3 { font-size: 22px; margin: 30px 0 12px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; margin-bottom: 15px; }
.prose li { margin-bottom: 8px; }
.prose b { color: var(--ink); }

/* ─── vault footer (big-wordmark, structural) ─────────────────────── */
.vfoot { border-top: 1px solid var(--line-gold); margin-top: 44px;
    padding: 54px 0 34px; background: var(--bg-2); }
.vfoot-mark {
    font-family: var(--disp); font-weight: 700; line-height: 0.78;
    font-size: clamp(72px, 18.5vw, 244px); letter-spacing: -0.05em;
    color: transparent; -webkit-text-stroke: 1.4px var(--line-gold);
    margin-bottom: 16px; user-select: none; white-space: nowrap;
}
.vfoot-mark .z { color: rgba(244,183,40,0.10); -webkit-text-stroke: 1.4px var(--gold-dim); }
.vfoot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px;
    border-top: 1px solid var(--line); padding-top: 34px; }
.vfoot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.vfoot-h { font-family: var(--mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.13em; color: var(--gold); margin-bottom: 6px; }
.vfoot-col > a { color: var(--ink-soft); font-size: 14px; }
.vfoot-col > a:hover { color: var(--gold); }
.vfoot-col .blurb { color: var(--ink-mute); font-size: 13.5px; max-width: 320px; line-height: 1.6; }
.vfoot-kv { display: flex; justify-content: space-between; gap: 26px; min-width: 190px;
    font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.vfoot-kv i { color: var(--ink); font-style: normal; }
.vfoot-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.vfoot-base .cr { color: var(--ink-mute); font-size: 12.5px; font-family: var(--mono); white-space: nowrap; }
.disclaimer { max-width: 640px; font-family: var(--mono); font-size: 11.5px;
    line-height: 1.7; color: var(--ink-mute); }

/* toast */
.toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(18px);
    background: var(--panel-2); border: 1px solid var(--line-gold); color: var(--ink);
    padding: 12px 20px; border-radius: 4px; font-family: var(--mono); font-size: 13px;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
    .nav-links, .nav-right .btn { display: none; }
    .burger { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 66px; left: 0; right: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 26px 16px;
    }
    .nav-links.open a { padding: 13px 0; }
    .nav-links.open .nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 4px; }
    .nav-links.open .nav-mobile-actions .btn { width: 100%; justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .g-3, .g-2 { grid-template-columns: 1fr; }
    .pipeline { grid-template-columns: 1fr; }
    .pl-node { margin-right: 0; margin-bottom: 30px; }
    .pl-node:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -30px;
        width: 1px; height: 30px; }
    .pl-node:not(:last-child)::before { right: auto; left: 50%; top: auto; bottom: -34px;
        transform: translate(-50%,0) rotate(90deg); }
    section { padding: 52px 0; }
    .hero { padding: 56px 0 52px; }
    /* asymmetric CTA stacks */
    .cta { flex-direction: column; align-items: flex-start; gap: 22px; padding: 34px 24px; }
    .cta .hero-cta { width: 100%; }
    /* vault footer collapses to one column */
    .vfoot-grid { grid-template-columns: 1fr; gap: 26px; }
    .vfoot-mark { font-size: clamp(44px, 17vw, 120px); }
    .vfoot-base { flex-direction: column; gap: 14px; }
}
@media (max-width: 560px) {
    /* keep the status strip from wrapping on small phones */
    .topbar-in { font-size: 10px; letter-spacing: 0.08em; padding: 0 18px; }
    .topbar-in .tb-dim { display: none; }
}
