/* ==========================================================
   COMMUNITY TEMPOVER — $CTO
   Monochrome brutalist — WOW edition
   ========================================================== */

:root {
    --bg:        #000000;
    --surface:   #0a0a0a;
    --surface-2: #111111;
    --border:    #1a1a1a;
    --border-hi: #2a2a2a;
    --text:      #e0e0e0;
    --text-mid:  #888888;
    --text-dim:  #444444;
    --white:     #ffffff;
    --glow:      rgba(255,255,255,.08);
    --glow-strong: rgba(255,255,255,.15);
    --mono:      'Space Mono', monospace;
    --sans:      'Space Grotesk', system-ui, -apple-system, sans-serif;
    --nav-h:     72px;
    --px:        clamp(24px, 5vw, 64px);
    --ease:      cubic-bezier(.16,1,.3,1);
    --ease-out:  cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: #fff; color: #000; }

html { scroll-behavior: smooth; scrollbar-color: var(--border) var(--bg); }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}
body.intro-active { overflow: hidden; }

a { color: inherit; text-decoration: none; cursor: none; }
button { border: none; background: none; color: inherit; cursor: none; font-family: inherit; }
input { cursor: none; }

/* ==== CUSTOM CURSOR ==== */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 44px; height: 44px;
    pointer-events: none;
    z-index: 100000;
    mix-blend-mode: difference;
    transition: transform .15s var(--ease-out), opacity .3s;
    will-change: transform;
}
.cursor-circle {
    width: 100%; height: 100%;
    border: 1.5px solid var(--white);
    border-radius: 50%;
    transition: width .35s var(--ease), height .35s var(--ease),
                border-color .35s, background .35s;
}
.cursor.hover .cursor-circle {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.5);
    margin: -10px 0 0 -10px;
}
.cursor.clicking .cursor-circle {
    width: 36px; height: 36px;
    margin: 4px 0 0 4px;
}

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100001;
    mix-blend-mode: difference;
    transition: transform .08s linear, opacity .3s;
    will-change: transform;
}

/* ==== SCROLL PROGRESS BAR ==== */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px; width: 0%;
    background: var(--white);
    z-index: 100002;
    transition: none;
    will-change: width;
    box-shadow: 0 0 12px 2px rgba(255,255,255,.3);
}

/* ==== PARTICLE CANVAS ==== */
#particles {
    position: fixed; inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .6;
}

/* ==== NOISE ==== */
.noise {
    position: fixed; inset: 0;
    z-index: 9998; pointer-events: none;
}
.noise::after {
    content: "";
    position: absolute; inset: -200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.04'/%3E%3C/svg%3E");
    animation: grain .5s steps(1) infinite;
}
@keyframes grain {
    0%,100% { transform: translate(0) }
    10% { transform: translate(-5%,-10%) }
    30% { transform: translate(7%,-25%) }
    50% { transform: translate(-15%,10%) }
    70% { transform: translate(0,15%) }
    90% { transform: translate(-10%,10%) }
}

/* ==== INTRO ==== */
.intro {
    position: fixed; inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: clip-path .9s var(--ease);
}
.intro.dismissed { clip-path: inset(0 0 100% 0); }
.intro.gone { display: none; }

.intro-inner {
    display: flex; flex-direction: column; align-items: center;
}

.intro-logo {
    width: clamp(120px, 28vw, 260px);
    height: auto;
    opacity: 0;
    transform: scale(.88) translateY(10px);
    transition: opacity .8s, transform .8s var(--ease);
    filter: grayscale(0) brightness(1.1);
}
.intro-logo.show {
    opacity: 1; transform: scale(1) translateY(0);
}

.intro-line {
    width: 0; height: 1px;
    background: var(--text-dim);
    margin: 22px 0 14px;
    transition: width .6s var(--ease);
}
.intro-line.expand { width: clamp(100px, 22vw, 220px); }

.intro-sub {
    font-family: var(--mono);
    font-size: clamp(.65rem, 1.4vw, .85rem);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0; transform: translateY(8px);
    transition: opacity .5s, transform .5s var(--ease);
}
.intro-sub.show { opacity: 1; transform: translateY(0); }

/* ==== NAV ==== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--px);
    z-index: 10000;
    transition: background .35s, border-color .35s, opacity .6s, transform .5s var(--ease);
    border-bottom: 1px solid transparent;
}
.intro-active .nav { opacity: 0; pointer-events: none; transform: translateY(-20px); }
.nav.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav.scrolled {
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom-color: var(--border);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
    height: 36px; width: auto;
    filter: brightness(1.2);
    transition: filter .25s, transform .4s var(--ease);
}
.nav-logo-img:hover { filter: brightness(1.5); transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: .88rem; font-weight: 500;
    color: var(--text-dim);
    transition: color .25s;
    letter-spacing: .01em;
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--white);
    transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center;
    gap: 7px; width: 30px; height: 30px;
    z-index: 10001;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--text);
    transition: transform .35s var(--ease), opacity .2s;
    transform-origin: center;
}
.nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px,3px); }
.nav-toggle.active span:last-child  { transform: rotate(-45deg) translate(3px,-3px); }

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 32px;
    font-family: var(--mono); font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    border: 1.5px solid transparent; border-radius: 4px;
    cursor: none; transition: all .3s var(--ease);
    position: relative; white-space: nowrap;
    overflow: hidden;
}
/* Magnetic pull visual — the transform is set by JS */
.btn::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,.15) 0%, transparent 60%);
    transition: opacity .4s;
}
.btn:hover::before { opacity: 1; }

.btn--primary {
    background: var(--white); color: #000;
    border-color: var(--white);
}
.btn--primary:hover {
    background: transparent; color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 40px 6px var(--glow-strong), 0 0 80px 20px var(--glow);
}
.btn--ghost {
    background: transparent; color: var(--text-mid);
    border-color: var(--border-hi);
}
.btn--ghost:hover {
    border-color: var(--white); color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 30px 4px var(--glow), 0 0 60px 12px rgba(255,255,255,.04);
}
.btn--sm { padding: 8px 20px; font-size: .75rem; border-radius: 3px; }
.btn--lg { padding: 18px 42px; font-size: .9rem; border-radius: 5px; }

/* ==== HERO — split layout ==== */
.hero {
    position: relative; z-index: 2;
    min-height: 100vh; min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--nav-h) var(--px) 0;
    gap: clamp(32px, 5vw, 80px);
}

.hero-text {
    display: flex; flex-direction: column;
    padding: 60px 0;
}

.hero-anim {
    opacity: 0; transform: translateY(26px);
}
body:not(.intro-active) .hero-anim {
    animation: heroIn .9s var(--ease) forwards;
    animation-delay: calc(var(--i,1) * .1s);
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--text-mid); margin-bottom: 24px;
}
.tag-line { display: block; width: 36px; height: 1px; background: var(--text-mid); }
.hero-tag-dot {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: var(--white);
    animation: pulse-dot 2s ease-in-out infinite;
    margin-right: -4px;
    box-shadow: 0 0 10px 2px rgba(255,255,255,.3);
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; box-shadow: 0 0 10px 2px rgba(255,255,255,.3); }
    50%     { opacity: .4; box-shadow: 0 0 20px 6px rgba(255,255,255,0); }
}

.hero-title { display: flex; flex-direction: column; margin-bottom: 24px; }
.hero-word {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 700; line-height: .92;
    letter-spacing: -.04em; color: var(--white);
    display: flex;
    overflow: hidden;
}
/* Individual letter — scramble decode */
.hero-letter {
    display: inline-block;
    opacity: 0;
    transition: opacity .3s, color .3s, text-shadow .3s;
    color: var(--text-mid);
}
.hero-letter.visible {
    opacity: .5;
}
.hero-letter.decoded {
    opacity: 1;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255,255,255,.3), 0 0 40px rgba(255,255,255,.08);
}
.hero-letter.scramble:not(.decoded) {
    font-family: var(--mono);
    font-size: .85em;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-dim); line-height: 1.6;
    margin-bottom: 36px; max-width: 460px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-ca { display: flex; flex-direction: column; gap: 6px; }
.hero-ca-label {
    font-family: var(--mono); font-size: .65rem;
    text-transform: uppercase; letter-spacing: .15em;
    color: var(--text-dim);
}
.hero-ca-box {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 4px; padding: 10px 16px;
    width: fit-content; max-width: 100%;
    transition: border-color .25s, box-shadow .4s;
}
.hero-ca-box:hover {
    border-color: var(--border-hi);
    box-shadow: 0 0 20px 4px var(--glow);
}
.hero-ca-box code {
    font-family: var(--mono); font-size: .72rem;
    color: var(--text-mid); word-break: break-all;
}

.copy-btn {
    flex-shrink: 0; opacity: .4;
    transition: opacity .2s, color .2s, transform .2s;
    color: var(--text);
}
.copy-btn:hover { opacity: 1; transform: scale(1.1); }
.copy-btn.copied { color: var(--white); opacity: 1; }

/* Hero visual — the wave */
.hero-visual {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    align-self: stretch;
    perspective: 800px;
}
.hero-wave {
    width: 100%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
    position: relative; z-index: 1;
    filter: brightness(1.05) contrast(1.08);
    transition: transform .6s var(--ease), filter .4s;
}
.hero-wave:hover {
    transform: scale(1.03);
    filter: brightness(1.2) contrast(1.15);
}

/* Wave image — smooth luminous hover (no glitch) */
.hero-wave:hover {
    transform: scale(1.04) translateY(-4px);
    filter: brightness(1.25) contrast(1.15);
    box-shadow: 0 0 60px 15px rgba(255,255,255,.06);
}

.hero-wave-glow {
    position: absolute;
    top: 10%; right: 0;
    width: 70%; height: 60%;
    background: radial-gradient(ellipse, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none; filter: blur(50px);
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { opacity: .6; transform: scale(1); }
    50%     { opacity: 1; transform: scale(1.1); }
}

/* scroll indicator */
.scroll-hint {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    grid-column: 1 / -1;
}
.scroll-hint span {
    font-family: var(--mono); font-size: .6rem;
    text-transform: uppercase; letter-spacing: .25em;
    color: var(--text-dim);
}
.scroll-line {
    width: 1px; height: 40px;
    position: relative; overflow: hidden;
    background: var(--border);
}
.scroll-line::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ==== MARQUEE ==== */
.marquee {
    position: relative; z-index: 2;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden; background: var(--surface);
    padding: 14px 0;
}
.marquee-track {
    display: flex; white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
    will-change: transform;
}
.marquee-track span {
    font-family: var(--mono); font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--text-dim); padding: 0 24px;
    transition: color .3s;
}
.marquee:hover .marquee-track span { color: var(--text-mid); }
.marquee-dot { color: var(--text-mid) !important; font-size: .55rem !important; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==== SECTION ==== */
.section {
    position: relative; z-index: 2;
    padding: clamp(80px,12vh,160px) var(--px);
    max-width: 1200px; margin: 0 auto;
}
.section-head {
    display: flex; align-items: baseline; gap: 20px;
    margin-bottom: 56px;
}
.section-num {
    font-family: var(--mono); font-size: .72rem; font-weight: 700;
    color: var(--text-mid); letter-spacing: .05em;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 700;
    letter-spacing: -.03em; line-height: 1.05; color: var(--white);
}

/* ==== SCROLL REVEAL ==== */
.reveal-left, .reveal-right, .reveal-up, .reveal-scale {
    opacity: 0;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal-left  { transform: translateX(-45px); }
.reveal-right { transform: translateX(45px); }
.reveal-up    { transform: translateY(35px); }
.reveal-scale { transform: scale(.92); }

.reveal-left.visible, .reveal-right.visible,
.reveal-up.visible, .reveal-scale.visible {
    opacity: 1; transform: translate(0) scale(1);
}

/* ==== LORE ==== */
.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.lore-card {
    position: relative;
    padding: 40px 32px 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px 10px 10px 2px;
    overflow: hidden;
    transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
    transform-style: preserve-3d;
    will-change: transform;
}
.lore-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--white) 0%, var(--text-dim) 100%);
    border-radius: 0 2px 2px 0;
    transition: width .35s var(--ease), box-shadow .35s;
}
.lore-card:hover::before {
    width: 4px;
    box-shadow: 0 0 15px 3px rgba(255,255,255,.15);
}
.lore-card:hover {
    border-color: var(--border-hi);
    box-shadow: 0 20px 60px -12px rgba(0,0,0,.7), 0 0 30px 2px var(--glow);
}
/* 3D tilt shine overlay */
.lore-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,.06) 0%, transparent 50%
    );
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.lore-card:hover::after { opacity: 1; }

.lore-card-num {
    position: absolute; top: -8px; right: 18px;
    font-family: var(--mono); font-size: 4.5rem; font-weight: 700;
    line-height: 1; color: var(--white); opacity: .05;
    pointer-events: none; user-select: none;
    transition: opacity .4s;
}
.lore-card:hover .lore-card-num { opacity: .09; }

.lore-card h3 {
    font-size: 1.15rem; font-weight: 600;
    margin-bottom: 14px; color: var(--white);
}
.lore-card p {
    font-size: .93rem; color: var(--text-dim);
    line-height: 1.7; margin-bottom: 18px;
}
.accent-text {
    font-family: var(--mono); font-size: .84rem;
    color: var(--white); display: block;
}

/* ==== TOKEN ==== */
.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
    margin-bottom: 48px;
}
.token-card {
    background: var(--bg);
    padding: 30px 28px;
    display: flex; flex-direction: column; gap: 8px;
    transition: background .3s, box-shadow .4s;
    position: relative;
}
.token-card:hover {
    background: var(--surface);
    box-shadow: inset 0 0 30px 4px var(--glow);
}
.token-label {
    font-family: var(--mono); font-size: .65rem;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--text-dim);
}
.token-value { font-size: 1.15rem; font-weight: 600; color: var(--white); }

.token-ca { margin-bottom: 40px; }
.token-ca-title {
    font-family: var(--mono); font-size: .65rem;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--text-dim); display: block; margin-bottom: 10px;
}
.token-ca-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 4px; padding: 14px 20px;
    width: fit-content; max-width: 100%;
    transition: border-color .25s, box-shadow .4s;
}
.token-ca-row:hover {
    border-color: var(--border-hi);
    box-shadow: 0 0 20px 4px var(--glow);
}
.token-ca-row code {
    font-family: var(--mono); font-size: .82rem;
    word-break: break-all; color: var(--text-mid);
}
.token-cta { display: flex; }

/* ==== TERMINAL ==== */
.terminal-desc {
    font-size: .95rem; color: var(--text-dim);
    margin-bottom: 32px; max-width: 480px;
}
.term {
    max-width: 720px;
    border: 1px solid var(--border);
    border-radius: 10px 10px 6px 6px;
    background: #050505; overflow: hidden;
    box-shadow: 0 20px 80px -15px rgba(0,0,0,.8), 0 0 40px 4px var(--glow);
    transition: box-shadow .5s;
}
.term:hover {
    box-shadow: 0 24px 90px -12px rgba(0,0,0,.9), 0 0 50px 6px var(--glow-strong);
}
.term-bar {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.term-dots { display: flex; gap: 7px; }
.term-dots span { width: 11px; height: 11px; border-radius: 50%; }
.term-dots span:nth-child(1) { background: #333; }
.term-dots span:nth-child(2) { background: #444; }
.term-dots span:nth-child(3) { background: #555; }

.term-title {
    font-family: var(--mono); font-size: .72rem; color: var(--text-dim);
}
.term-body {
    padding: 18px 20px; height: 330px;
    overflow-y: auto; font-family: var(--mono);
    font-size: .82rem; line-height: 1.85;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.in { color: var(--text); }
.term-line.in::before { content: '$CTO ~> '; color: var(--white); }
.term-line.out {
    color: var(--text-dim);
    animation: termLineIn .3s var(--ease) both;
}
@keyframes termLineIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.term-line .cmd-hl { color: var(--white); }
.term-line .dim { opacity: .4; }
.term-line a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.term-input-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-top: 1px solid var(--border);
    background: #050505; border-radius: 0 0 6px 6px;
}
.term-prompt {
    font-family: var(--mono); font-size: .82rem;
    color: var(--white); white-space: nowrap; flex-shrink: 0;
}
.term-input {
    flex: 1; font-family: var(--mono); font-size: .82rem;
    background: none; border: none; color: var(--text);
    outline: none; caret-color: var(--white);
}
.term-input::placeholder { color: var(--text-dim); opacity: .4; }

/* Blinking caret for terminal feel */
.term-input:focus {
    animation: termCaret 1s step-end infinite;
}
@keyframes termCaret {
    0%, 100% { border-right: 2px solid var(--white); }
    50%      { border-right: 2px solid transparent; }
}

/* ==== FINAL CTA ==== */
.final-cta {
    position: relative; z-index: 2;
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: clamp(80px,15vh,160px) var(--px);
    overflow: hidden;
}
.final-cta-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
    opacity: .12;
    filter: grayscale(1) brightness(.8);
    pointer-events: none;
    transition: opacity .8s, filter .8s;
}
.final-cta:hover .final-cta-bg {
    opacity: .18;
    filter: grayscale(1) brightness(.9);
}
.final-cta-content { position: relative; z-index: 1; }
.final-cta-title {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    font-weight: 700; line-height: 1.08;
    letter-spacing: -.035em; color: var(--white);
    margin-bottom: 20px;
}
.final-cta-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-dim); margin-bottom: 44px;
}
.final-cta-actions {
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}

/* ==== FOOTER ==== */
.footer {
    position: relative; z-index: 2;
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 32px var(--px);
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.footer-logo-img {
    height: 28px; width: auto;
    filter: brightness(1) grayscale(0);
    opacity: .7;
    transition: opacity .3s;
}
.footer-logo-img:hover { opacity: 1; }
.footer-msg { font-size: .78rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: .82rem; color: var(--text-dim); transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ==== MOBILE NAV OVERLAY ==== */
.nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7); z-index: 9999;
    opacity: 0; pointer-events: none; transition: opacity .35s;
    backdrop-filter: blur(6px);
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

/* ==== RESPONSIVE ==== */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: calc(var(--nav-h) + 20px);
        padding-bottom: 100px;
    }
    .hero-text { order: 1; padding: 40px 0 0; }
    .hero-visual { order: 2; justify-content: center; }
    .hero-wave { max-width: 420px; }
    .scroll-hint { display: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: 0;
        width: min(320px, 82vw); height: 100dvh;
        background: var(--surface);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 100px 36px 40px; gap: 28px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        z-index: 10000;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.05rem; color: var(--text); }
    .nav-links a::after { display: none; }

    .hero-wave { max-width: 340px; }
    .lore-grid { grid-template-columns: 1fr; }
    .token-grid { grid-template-columns: 1fr 1fr; }
    .term {
        margin: 0 calc(var(--px) * -1);
        border-left: none; border-right: none; border-radius: 0;
    }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .marquee-track span { padding: 0 16px; }

    /* Hide custom cursor on mobile */
    .cursor, .cursor-dot { display: none; }
    body, a, button, input { cursor: auto; }
}

@media (max-width: 480px) {
    .token-grid { grid-template-columns: 1fr; border-radius: 4px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .final-cta-actions { flex-direction: column; width: 100%; }
    .final-cta-actions .btn { width: 100%; }
    .hero-wave { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .intro { display: none; }
    body.intro-active { overflow: auto; }
    .hero-anim { opacity: 1; transform: none; }
    .hero-letter { opacity: 1; transform: none; }
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
}
