/* 8004 — Base styles (adapted from qnt.sh) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-h: 72px;
    --green: #22c55e;
    --purple: #a78bfa;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --pink: #fb7185;
    --bg: #0a0a0a;
    --bg-alt: #121212;
    --card: #0f172a;
    --border: #1f2937;
    --text: #cbd5e1;
    --text-muted: #94a3b8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    color: #f0f0f0;
    overflow-x: hidden;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body.no-scroll { overflow: hidden; }

/* Social Bar */
.social-bar {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
}
.social-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #000;
    border: 1px solid #222;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.social-bar a:hover {
    transform: translateX(2px) scale(1.03);
    background: #0f0f0f;
    border-color: #333;
}
.social-bar svg { width: 22px; height: 22px; fill: #fff; }
.social-bar img { width: 22px; height: 22px; }

@media (max-width: 768px) {
    :root { --header-h: 88px; }
    .social-bar { display: none; }
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid #333; display: inline-block; }
h3 { font-size: 1.6rem; color: #e0e0e0; }
p { margin-bottom: 1rem; font-size: 1.05rem; color: #ccc; font-weight: 400; }

a { color: var(--green); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
}
.btn-primary {
    background-color: #fff;
    color: #0a0a0a;
    border: 2px solid #fff;
}
.btn-primary:hover {
    background-color: transparent;
    color: #fff;
}
.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: #0a0a0a;
}
.btn-solana {
    background-color: transparent;
    color: #9945FF;
    border: 2px solid #9945FF;
}
.btn-solana:hover {
    background-color: #9945FF;
    color: #fff;
}

/* Header */
header {
    background-color: rgba(10, 10, 10, 0.85);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
nav .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}
nav ul.nav-links {
    list-style: none;
    display: flex;
}
nav ul.nav-links li {
    margin-left: 25px;
    padding-left: 0;
}
nav ul.nav-links li::before { content: none; }
nav ul.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav ul.nav-links a:hover { color: #fff; }

/* Drawer */
.drawer-toggle { display: none; }
.mobile-drawer { display: none; }
.drawer-overlay { display: none; }

/* Footer */
footer {
    background-color: #000;
    color: #777;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer .footer-links a {
    color: #aaa;
    margin: 0 10px;
    font-size: 0.9rem;
}
footer .footer-links a:hover { color: #fff; }

/* CTA */
.cta-container {
    text-align: center;
    margin: 30px 0;
}

/* Code Blocks */
.code-block {
    background: #0d1117;
    border: 1px solid #1f2937;
    border-radius: 10px;
    overflow: hidden;
    max-width: 760px;
    position: relative;
}
.code-block .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    background: #161b22;
    border-bottom: 1px solid #1f2937;
}
.code-block .code-header span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}
.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e6edf3;
    white-space: pre;
}
/* Copy button */
.copy-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid #2d333b;
    border-radius: 5px;
    color: #8b949e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    z-index: 2;
}
.copy-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #c9d1d9;
    border-color: #444c56;
}
.copy-btn.copied {
    color: #22c55e;
    border-color: rgba(34,197,94,0.3);
}

/* Panel hover */
.panel:hover {
    transform: translateY(-2px);
    border-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Resource card */
.resource-card:hover h3 {
    text-decoration: underline;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(153, 69, 255, 0.12);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 999px;
    font-size: 12px;
    color: #9945FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Orbitron', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    nav ul.nav-links { display: none; }
    nav { justify-content: flex-start; }

    .drawer-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 40px;
        height: 40px;
        margin-left: 0;
        margin-right: 10px;
        background: linear-gradient(180deg, rgba(31,41,55,0.9), rgba(17,24,39,0.9));
        border: 1px solid #2a2f3a;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }
    nav .logo { order: 1; }
    nav ul.nav-links { order: 2; }
    .drawer-toggle { order: 0; }
    .drawer-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #e5e7eb;
        margin: 3px 0;
        transition: transform 0.2s ease, opacity 0.2s ease;
        border-radius: 2px;
    }
    body.drawer-open .drawer-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    body.drawer-open .drawer-toggle span:nth-child(2) { opacity: 0; }
    body.drawer-open .drawer-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 80%;
        max-width: 320px;
        background: #0b0f17;
        border-right: 1px solid #1f2937;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1200;
        padding: 16px;
        padding-top: calc(16px + var(--header-h));
        display: block;
    }
    .mobile-drawer.open { transform: translateX(0); }
    .mobile-drawer a {
        display: block;
        color: #e5e7eb;
        text-decoration: none;
        padding: 10px 6px;
        border-bottom: 1px solid #1f2937;
    }
    .mobile-drawer a:last-child { border-bottom: none; }
    .mobile-drawer .drawer-close {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #2a2f3a;
        background: linear-gradient(180deg, rgba(31,41,55,0.9), rgba(17,24,39,0.9));
        cursor: pointer;
    }
    .mobile-drawer .drawer-close .line {
        position: absolute;
        width: 20px;
        height: 2px;
        background: #e5e7eb;
        border-radius: 2px;
    }
    .mobile-drawer .drawer-close .line:nth-child(1) { transform: rotate(45deg); }
    .mobile-drawer .drawer-close .line:nth-child(2) { transform: rotate(-45deg); }
    .drawer-overlay {
        position: fixed;
        top: 0;
        bottom: 0;
        left: min(80vw, 320px);
        right: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1190;
        display: none;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .drawer-overlay.show {
        display: block;
        opacity: 1;
        transform: scaleX(1);
    }
    .container { width: 95%; }
    .features-grid { grid-template-columns: 1fr !important; }
    .resources-grid { grid-template-columns: 1fr !important; }
    .code-block { max-width: 100%; }
}
