/* ============================================================
   ZEC TRADING — Design System
   Dark fintech · electric cyan · geometric sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* ---- Color ---- */
    --bg: #05070e;
    --bg-2: #070a14;
    --surface: #0b0f1d;
    --surface-2: #0f1426;
    --surface-3: #141a30;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);

    --text: #eaf0fb;
    --text-soft: #aab4cc;
    --text-mute: #6c7693;
    --text-faint: #455067;

    --accent: #2ee6ff;
    /* electric cyan */
    --accent-deep: #12b8e6;
    --accent-blue: #4d7cff;
    /* support blue   */
    --accent-glow: rgba(46, 230, 255, 0.55);
    --accent-soft: rgba(46, 230, 255, 0.10);
    --accent-line: rgba(46, 230, 255, 0.32);

    --up: #19e0a0;
    --down: #ff5d73;

    /* ---- Type ---- */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* ---- Layout ---- */
    --maxw: 1240px;
    --pad: clamp(20px, 5vw, 64px);
    --radius: 16px;
    --radius-lg: 22px;
    --radius-sm: 10px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* page-wide ambient backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 620px at 78% -8%, rgba(46, 230, 255, 0.10), transparent 60%),
        radial-gradient(900px 600px at 8% 4%, rgba(77, 124, 255, 0.09), transparent 55%),
        var(--bg);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: #04121a;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #1b2238;
    border-radius: 20px;
    border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #28324f;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--pad);
}

.section {
    padding-block: clamp(72px, 11vw, 140px);
    position: relative;
}

.section--tight {
    padding-block: clamp(54px, 8vw, 96px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--accent-line);
}

.eyebrow--center {
    justify-content: center;
}

.eyebrow--center::before {
    display: none;
}

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

.h-display {
    font-size: clamp(40px, 6.4vw, 78px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.h-1 {
    font-size: clamp(33px, 4.6vw, 56px);
    letter-spacing: -0.03em;
}

.h-2 {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.025em;
}

.h-3 {
    font-size: clamp(20px, 2vw, 25px);
}

.lead {
    font-size: clamp(17px, 1.55vw, 21px);
    color: var(--text-soft);
    line-height: 1.62;
    max-width: 60ch;
}

.muted {
    color: var(--text-mute);
}

.text-soft {
    color: var(--text-soft);
}

.accent-text {
    color: var(--accent);
}

.center {
    text-align: center;
}

.mx-auto {
    margin-inline: auto;
}

.grad-text {
    background: linear-gradient(100deg, #ffffff 18%, var(--accent) 62%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-head {
    max-width: 720px;
}

.section-head--center {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform .3s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #04131a;
    box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.4), 0 14px 40px -12px var(--accent-glow);
}

.btn-primary:hover {
    background: #5cefff;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.6), 0 20px 52px -12px var(--accent-glow);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 17px 34px;
    font-size: 16.5px;
}

.btn-block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
    font-size: 15px;
    transition: gap .25s var(--ease);
}

.link-arrow svg {
    width: 16px;
    height: 16px;
}

.link-arrow:hover {
    gap: 13px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(6, 9, 16, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(150deg, var(--accent), var(--accent-blue));
    color: #04131a;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 22px -8px var(--accent-glow);
}

.brand b {
    font-weight: 700;
}

.brand span {
    color: var(--accent);
}

.brand small {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.34em;
    color: var(--text-mute);
    display: block;
    margin-top: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    position: relative;
    padding: 9px 15px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color .2s, background .2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* mobile menu */
.mobile-menu {
    position: fixed;
    inset: 74px 0 0;
    z-index: 99;
    background: rgba(5, 7, 14, 0.97);
    backdrop-filter: blur(20px);
    padding: 28px var(--pad);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    border-top: 1px solid var(--line);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 500;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.mobile-menu a:active {
    color: var(--accent);
}

.mobile-menu .btn {
    margin-top: 22px;
}

/* ============================================================
   Pills / badges / chips
   ============================================================ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 12px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
}

.pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--up);
    box-shadow: 0 0 0 4px rgba(25, 224, 160, 0.18);
}

.pill .dot.live {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(25, 224, 160, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(25, 224, 160, 0);
    }
}

.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: inline-block;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    position: relative;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.card--glow:hover {
    border-color: var(--accent-line);
    box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.8), 0 0 50px -22px var(--accent-glow);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    margin-bottom: 22px;
}

.icon-box svg {
    width: 25px;
    height: 25px;
}

.feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* product cards (richer) */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.product-card h3 {
    font-size: 22px;
}

.product-card .feat-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
}

.feat-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--text-soft);
}

.feat-list li svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex: none;
    margin-top: 3px;
}

/* ============================================================
   Stats
   ============================================================ */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    background: var(--surface);
    padding: 30px 26px;
    transition: background .3s;
}

.stat:hover {
    background: var(--surface-2);
}

.stat .num {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
}

.stat .num .suffix {
    color: var(--accent);
}

.stat .label {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-mute);
}

/* ============================================================
   Order book widget (animated hero)
   ============================================================ */
.terminal {
    background: linear-gradient(180deg, rgba(15, 20, 38, 0.9), rgba(8, 11, 22, 0.94));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    backdrop-filter: blur(10px);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
}

.tdots {
    display: flex;
    gap: 7px;
}

.tdots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a3350;
    display: block;
}

.terminal-bar .ttitle {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
}

.terminal-bar .tstat {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--up);
    display: flex;
    align-items: center;
    gap: 7px;
}

.book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    font-family: var(--font-mono);
}

.book-col {
    padding: 14px 16px;
}

.book-col.asks {
    border-right: 1px solid var(--line);
}

.book-head {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.book-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 4px 6px;
    border-radius: 4px;
    overflow: hidden;
    z-index: 0;
}

.book-row .depth {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.13;
    transition: width .5s var(--ease);
}

.book-row.ask .price {
    color: var(--down);
}

.book-row.ask .depth {
    background: var(--down);
    right: 0;
    left: auto;
}

.book-row.bid .price {
    color: var(--up);
}

.book-row.bid .depth {
    background: var(--up);
    left: 0;
}

.book-row .size {
    color: var(--text-soft);
}

.book-spread {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: rgba(255, 255, 255, 0.012);
}

.book-spread b {
    color: #fff;
    font-weight: 600;
}

.book-spread .px {
    color: var(--accent);
}

.tape {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 132px;
    overflow: hidden;
}

.tape-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 4px 0;
    color: var(--text-mute);
    align-items: center;
    animation: tapeIn .4s var(--ease);
}

.tape-row .side {
    font-weight: 600;
}

.tape-row .side.buy {
    color: var(--up);
}

.tape-row .side.sell {
    color: var(--down);
}

.tape-row .px2 {
    color: var(--text-soft);
    text-align: right;
}

@keyframes tapeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   Logos / marquee
   ============================================================ */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--text-faint);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 11px;
    letter-spacing: -0.01em;
    transition: color .3s;
}

.marquee-item:hover {
    color: var(--text-soft);
}

.marquee-item .lm {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--surface-3);
    display: grid;
    place-items: center;
    color: var(--text-mute);
    font-size: 13px;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   Bento / split
   ============================================================ */
.bento {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(6, 1fr);
}

.bento>* {
    grid-column: span 3;
}

.bento .span-2 {
    grid-column: span 2;
}

.bento .span-4 {
    grid-column: span 4;
}

.bento .span-6 {
    grid-column: span 6;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.split--rev .split-media {
    order: -1;
}

/* ============================================================
   Steps / process
   ============================================================ */
.steps {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.step::before {
    counter-increment: step;
    content: "0"counter(step);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.step h4 {
    margin: 14px 0 8px;
    font-size: 19px;
}

.step p {
    font-size: 14.5px;
    color: var(--text-mute);
}

/* ============================================================
   Code block
   ============================================================ */
.codeblock {
    background: #070a13;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
    font-family: var(--font-mono);
}

.codeblock .cb-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.codeblock .cb-bar .fn {
    font-size: 12px;
    color: var(--text-mute);
    margin-left: 8px;
}

.codeblock pre {
    padding: 20px 20px;
    font-size: 13px;
    line-height: 1.75;
    overflow-x: auto;
    color: var(--text-soft);
}

.codeblock .k {
    color: var(--accent-blue);
}

.codeblock .s {
    color: var(--up);
}

.codeblock .c {
    color: var(--text-faint);
}

.codeblock .n {
    color: var(--accent);
}

.codeblock .p {
    color: #c98bff;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(700px 320px at 18% 0%, rgba(46, 230, 255, 0.16), transparent 60%),
        radial-gradient(600px 300px at 92% 110%, rgba(77, 124, 255, 0.16), transparent 55%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    padding: clamp(44px, 7vw, 78px);
    text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding-top: 72px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

.footer-brand p {
    color: var(--text-mute);
    font-size: 14.5px;
    margin-top: 18px;
    max-width: 32ch;
}

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 18px;
    font-weight: 500;
}

.footer-col a {
    display: block;
    padding: 7px 0;
    color: var(--text-mute);
    font-size: 14.5px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 40px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.footer-bottom .fb-legal {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-bottom .fb-legal a {
    color: var(--text-mute);
    font-size: 13.5px;
}

.footer-bottom .fb-legal a:hover {
    color: var(--text-soft);
}

.footer-bottom .copy {
    color: var(--text-faint);
    font-size: 13.5px;
    font-family: var(--font-mono);
}

.disclaimer {
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.7;
    padding: 24px 0 50px;
    border-top: 1px solid var(--line);
    max-width: 90ch;
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
    padding-top: clamp(54px, 8vw, 96px);
    padding-bottom: clamp(36px, 5vw, 60px);
    position: relative;
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-mute);
    margin-bottom: 22px;
    display: flex;
    gap: 8px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-faint);
}

/* ============================================================
   Misc utilities
   ============================================================ */
.divider {
    height: 1px;
    background: var(--line);
    border: none;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 36px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mt-s {
    margin-top: 14px;
}

.mt-m {
    margin-top: 26px;
}

.mt-l {
    margin-top: 44px;
}

.mt-xl {
    margin-top: 64px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.gap-s {
    gap: 12px;
}

.gap-m {
    gap: 20px;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* placeholder media (abstract tech viz fallbacks) */
.viz {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background:
        repeating-linear-gradient(135deg, rgba(46, 230, 255, 0.05) 0 2px, transparent 2px 12px),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    overflow: hidden;
    min-height: 320px;
}

.viz .viz-label {
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.08em;
}

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal.d1 {
    transition-delay: .08s;
}

.reveal.d2 {
    transition-delay: .16s;
}

.reveal.d3 {
    transition-delay: .24s;
}

.reveal.d4 {
    transition-delay: .32s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation: none !important;
    }
}

/* form */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
}

.field label .req {
    color: var(--accent);
}

.input,
.select,
.textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    padding: 13px 15px;
    width: 100%;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-faint);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--surface-2);
}

.textarea {
    resize: vertical;
    min-height: 130px;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c7693' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
}

/* form validation + sent state */
.field-msg {
    font-size: 12.5px;
    color: var(--down);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: sentIn .25s var(--ease);
}

.field--error .input,
.field--error .select,
.field--error .textarea {
    border-color: var(--down);
    box-shadow: 0 0 0 4px rgba(255, 93, 115, 0.12);
}

.consent-row.consent--error label {
    color: var(--down);
}

.consent-row.consent--error input {
    outline: 2px solid var(--down);
    outline-offset: 2px;
    border-radius: 3px;
}

.form-sent {
    animation: sentIn .5s var(--ease);
}

@keyframes sentIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.sent-check {
    width: 66px;
    height: 66px;
    margin: 6px auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(25, 224, 160, 0.12);
    border: 1px solid rgba(25, 224, 160, 0.45);
    color: var(--up);
    animation: sentPop .55s var(--ease) .08s both;
}

.sent-check svg {
    width: 30px;
    height: 30px;
}

@keyframes sentPop {
    0% {
        transform: scale(.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.sent-receipt {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.sent-receipt div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.sent-receipt div:last-child {
    border-bottom: none;
}

.sent-receipt span {
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: none;
}

.sent-receipt b {
    color: #fff;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: right;
    word-break: break-all;
}

.sent-mail {
    text-align: center;
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 18px;
    line-height: 1.6;
}

.sent-mail b {
    color: var(--text);
}

.sent-mail::before {
    content: "✉";
    display: block;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 6px;
}

/* legal / prose pages */
.prose {
    max-width: 760px;
}

.prose h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 52px 0 16px;
}

.prose h3 {
    font-size: 20px;
    margin: 32px 0 12px;
    color: #fff;
}

.prose p {
    color: var(--text-soft);
    margin-bottom: 16px;
    font-size: 16px;
}

.prose ul.bullets {
    margin: 0 0 18px;
    padding-left: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prose ul.bullets li {
    position: relative;
    padding-left: 24px;
    color: var(--text-soft);
    font-size: 16px;
}

.prose ul.bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

.prose a.inline {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-line);
}

.prose strong {
    color: #fff;
}

.toc {
    position: sticky;
    top: 100px;
    font-size: 14px;
}

.toc h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.toc a {
    display: block;
    padding: 7px 0;
    color: var(--text-mute);
    transition: color .2s;
    border-left: 2px solid transparent;
    padding-left: 14px;
    margin-left: -2px;
}

.toc a:hover {
    color: var(--text);
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

/* ============================================================
   Phone mockup (white-label wallet app)
   ============================================================ */
.phone {
    position: relative;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 300 / 620;
    margin-inline: auto;
    border-radius: 42px;
    padding: 12px;
    background: linear-gradient(160deg, #1a2138, #0a0e1a);
    border: 1px solid var(--line-strong);
    box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.9), 0 0 60px -30px var(--accent-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 22px;
    background: #05070e;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 31px;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% -10%, rgba(46, 230, 255, 0.14), transparent 55%), linear-gradient(180deg, #0a0f1d, #070a13);
    display: flex;
    flex-direction: column;
}

.pa-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-soft);
}

.pa-status .dots {
    display: flex;
    gap: 4px;
}

.pa-status .dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-mute);
    display: block;
}

.pa-body {
    flex: 1;
    padding: 8px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.pa-brandrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pa-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.pa-brand .m {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(150deg, var(--accent), var(--accent-blue));
    display: grid;
    place-items: center;
    color: #04131a;
    font-size: 11px;
}

.pa-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--line-strong);
}

.pa-balance-card {
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(140deg, rgba(46, 230, 255, 0.16), rgba(77, 124, 255, 0.10)), var(--surface-2);
    border: 1px solid var(--accent-line);
}

.pa-balance-card .lbl {
    font-size: 11px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.pa-balance-card .bal {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    margin-top: 4px;
    letter-spacing: -0.02em;
}

.pa-balance-card .chg {
    font-size: 12px;
    color: var(--up);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.pa-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pa-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    color: var(--text-soft);
}

.pa-action .ic {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--accent);
}

.pa-action .ic svg {
    width: 17px;
    height: 17px;
}

.pa-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pa-list .ttl {
    font-size: 11px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.pa-coin {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 6px;
    border-radius: 12px;
}

.pa-coin:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pa-coin .cm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    flex: none;
}

.pa-coin .nm {
    flex: 1;
}

.pa-coin .nm b {
    font-size: 12.5px;
    color: #fff;
    font-weight: 600;
    display: block;
}

.pa-coin .nm span {
    font-size: 10.5px;
    color: var(--text-mute);
    font-family: var(--font-mono);
}

.pa-coin .vl {
    text-align: right;
}

.pa-coin .vl b {
    font-size: 12.5px;
    color: #fff;
    font-weight: 600;
    display: block;
    font-family: var(--font-mono);
}

.pa-coin .vl span {
    font-size: 10.5px;
    font-family: var(--font-mono);
}

.pa-tabbar {
    display: flex;
    justify-content: space-around;
    padding: 12px 0 16px;
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 14, 0.5);
}

.pa-tabbar .tb {
    width: 22px;
    height: 22px;
    color: var(--text-faint);
}

.pa-tabbar .tb.on {
    color: var(--accent);
}

.up-c {
    color: var(--up);
}

.down-c {
    color: var(--down);
}

/* ============================================================
   Related solutions (detail page footer nav)
   ============================================================ */
.related-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s;
}

.related-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-3px);
    background: var(--surface-2);
}

.related-card .ri {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex: none;
}

.related-card .ri svg {
    width: 20px;
    height: 20px;
}

.related-card .rt b {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.related-card .rt span {
    font-size: 12.5px;
    color: var(--text-mute);
}

/* detail page hero accent number */
.detail-index {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.1em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .footer-top {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }
}

@media (max-width: 920px) {
    .nav-links {
        display: none;
    }

    .nav-cta .btn:not(.nav-toggle) {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split--rev .split-media {
        order: 0;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        display: none;
    }

    .bento>* {
        grid-column: span 6 !important;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .book {
        grid-template-columns: 1fr;
    }

    .book-col.asks {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .card {
        padding: 24px;
    }
}