/* ===== Core palette ===== */
:root {
    --core: #111827;
    --glass: #0f172a80;
    --edge: #1f2937;
    --pri: #19fb9b;
    --sec: #9945ff;
    --muted: #a1a1aa;
    --ring: #19fb9b22;
}

html {
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* ===== Layout ===== */
.bg-core {
    background: var(--core);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== Site nav ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, #0b0f1aee 0%, #0b0f1a88 60%, transparent 100%);
    border-bottom: 1px solid #1e293b80;
    transition: box-shadow .2s ease, background .2s ease;
}

.site-nav[data-scrolled="true"] {
    box-shadow: 0 6px 28px -8px #000b;
    background: #0b0f1acc;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-family: 'Monoton', cursive;
    font-weight: 400;
    letter-spacing: .12em;
    text-decoration: none;
    color: var(--pri);
    font-size: 2rem;
}

.nav-links {
    display: none;
    gap: 1.25rem;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    opacity: .9;
}

.nav-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* desktop */
@media (min-width:1024px) {
    .nav-links {
        display: flex;
    }
}

@media (max-width: 1023px) {

    .nav-play,
    .nav-cta .btn-primary {
        display: none !important;
    }
}

/* ===== Burger ===== */
.burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    display: block;
}

/* ===== Drawer (mobile menu) ===== */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 360px);
    transform: translateX(100%);
    background: linear-gradient(120deg, #0f1020 70%, #1b0f35 100%);
    border-left: 1px solid #2d2242;
    z-index: 9999;
    transition: transform .28s cubic-bezier(.33, .7, .33, 1);
    box-shadow: -24px 0 48px -20px #000a;
}

.drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
}

.drawer-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.05rem;
}

.sep {
    border: 0;
    border-top: 1px solid #2c2c3f;
    margin: 8px 0 12px;
}

@media (min-width:1024px) {
    .drawer {
        display: none !important;
    }

    .burger {
        display: none !important;
    }
}

@media (max-width:1023px) {
    .drawer {
        display: block;
    }
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--pri);
    color: #0d1117;
    font-weight: 800;
    border-radius: 12px;
    padding: .6em 1.3em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--sec);
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    padding: .6em 1.3em;
    text-decoration: none;
}

.btn-secondary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    border: 1px solid #2e2e43;
    color: #e5e7eb;
    border-radius: 12px;
    padding: .6em 1.2em;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: #4b4b70;
}

/* ===== Sections / spacing (normalized) ===== */
.sec {
    position: relative;
    padding: clamp(56px, 6vw, 96px) 0;
}

/* Remove artificial gaps between sections (padding already handles rhythm) */
.sec+.sec {
    margin-top: 0;
}

/* band: visual style only, keep same rhythm as .sec */
.band {
    margin-top: 0;
    padding: clamp(56px, 6vw, 96px) 0;
}

.sec-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pri);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
    margin-bottom: clamp(14px, 2vw, 22px);
}

.lead {
    text-align: center;
    color: #d1d5db;
    margin-bottom: clamp(14px, 2vw, 20px);
}

/* Anchor offset for sticky navbar */
.sec {
    scroll-margin-top: 72px;
}

@media (max-width: 768px) {
    .sec {
        scroll-margin-top: 88px;
    }
}

/* ===== Hero ===== */
.hero {
    padding-top: 128px;
}

.hero-inner {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    color: #80ffd1;
    border: 1px solid #2a3c34;
    background: #0a1b15;
    border-radius: 999px;
    padding: .3rem .8rem;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Marquee (JS loop) ===== */
.hero-marquee {
    position: relative;
    overflow: hidden;
    height: 48px;
    margin-top: 28px;
    display: block;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    display: inline-block;
    will-change: transform;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: .08em;
}

.marquee-track span {
    margin: 0 24px;
    opacity: .8;
}

/* ===== Grids ===== */
.grid3 {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.grid2 {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width:640px) {
    .grid2 {
        grid-template-columns: 1.1fr .9fr;
    }
}

@media (min-width:768px) {
    .grid3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Cards ===== */
.card {
    background: #121426;
    border: 1px solid #22243a;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 0 1px #000 inset;
}

.card-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.card-title.green {
    color: #86ffd1;
}

.card-title.yellow {
    color: #ffe08a;
}

.card-title.blue {
    color: #91b6ff;
}

/* ===== Tokens ===== */
.token {
    background: #0f1325;
    border: 1px solid #22243a;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.t-name {
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.t-score .t-name {
    color: #86ffd1;
}

.t-pay .t-name {
    color: #ffe08a;
}

.t-dex .t-name {
    color: #91b6ff;
}

.t-desc {
    color: #cbd5e1;
}

.conv {
    text-align: center;
    margin-top: 18px;
}

.conv-pill {
    display: inline-block;
    padding: .6rem 1rem;
    border-radius: 999px;
    border: 1px solid #2d2e44;
    background: #0c1020;
    font-family: 'Source Code Pro', monospace;
    color: #e5e7eb;
}

.conv-note {
    color: var(--muted);
    margin-top: 8px;
}

/* ===== WebGL slot ===== */
.webgl-slot {
    border: 1px dashed #2b2e49;
    border-radius: 20px;
    background: #0b1020cc;
    overflow: hidden;
}

.slot-inner {
    padding: 28px;
    display: grid;
    place-items: center;
    gap: 12px;
}

/* ===== Web3 list ===== */
.bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullets li {
    padding-left: 1.1em;
    position: relative;
    margin-bottom: .5em;
}

.bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--pri);
}

.web3-center {
    max-width: 700px;
    margin: 0 auto;
}

.centered-box {
    margin-top: 2rem;
    text-align: center;
}


/* ===== Info box ===== */
.info-box {
    background: #101324;
    border: 1px solid #22243a;
    border-radius: 16px;
    padding: 18px;
}

.muted {
    color: #9aa0b5;
}

/* ===== FAQ ===== */
.faq details {
    background: #121528;
    border: 1px solid #232643;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq details[open] {
    border-color: #2e3152;
}

/* ===== Form ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input {
    background: #0f1117;
    color: #f1f5f9;
    border: 1px solid #23243a;
    border-radius: 12px;
    padding: .7rem .9rem;
}

.input:focus {
    outline: none;
    border-color: var(--pri);
    box-shadow: 0 0 0 4px var(--ring);
}

.status {
    color: #9aa0b5;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#don-qr {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}


/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid #1f2238;
    background: #0a0e19;
}

.social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
}

.ico {
    color: #cdd3e1;
    text-decoration: none;
}

.ico:hover {
    color: #fff;
    text-decoration: underline;
}

.copy {
    color: #9aa0b5;
    font-size: .9rem;
}

/* ===== FX layers ===== */
.fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.fx-rings {
    background: radial-gradient(600px 600px at 10% 10%, #19fb9b18 0%, transparent 60%), radial-gradient(600px 600px at 90% 20%, #9945ff1a 0%, transparent 60%), radial-gradient(600px 600px at 30% 80%, #19fb9b14 0%, transparent 60%);
    mix-blend-mode: screen;
}

.fx-rays {
    background: conic-gradient(from 180deg at 50% 50%, #0000 0 10deg, #19fb9b08 10deg 12deg, #0000 12deg 24deg, #9945ff0a 24deg 26deg, #0000 26deg 36deg);
    mask-image: radial-gradient(60% 60% at 50% 50%, #000 50%, transparent 85%);
    opacity: .55;
}

.fx-grid {
    background-image: linear-gradient(#1b1f33 1px, transparent 1px), linear-gradient(90deg, #1b1f33 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .15;
}

/* ===== Utilities ===== */
.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}