:root {
    --bg-deep: #06080F;
    --bg-card: #0D1117;
    --bg-card-hover: #151B25;
    --surface: #1A2130;
    --border: rgba(255,255,255,0.06);
    --text-primary: #F0F2F5;
    --text-secondary: #8B95A5;
    --text-dim: #505A6A;
    --accent: #3BF08C;
    --accent-glow: rgba(59,240,140,0.15);
    --accent-dim: #2AB86A;
    --amber: #F0A83B;
    --red: #F05A5A;
    --blue: #3BA8F0;
    --purple: #A06AF0;
    --radius: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'Space Mono', monospace; }
.accent { color: var(--accent); }

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ─── Navigation ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(6,8,15,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}
nav.scrolled { padding: 12px 0; background: rgba(6,8,15,0.92); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
    color: var(--bg-deep);
}
.nav-logo-text { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-deep) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px var(--accent-glow) !important;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── Footer ─── */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 320px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ─── Legal / Content Pages ─── */
.page-hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 30%, rgba(59,240,140,0.05), transparent),
        radial-gradient(ellipse 40% 50% at 80% 60%, rgba(59,168,240,0.03), transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.page-hero .section-tag::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--accent);
}
.page-hero h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-content {
    padding: 0 0 100px;
}
.legal-content .container {
    max-width: 800px;
}
.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text-primary);
}
.legal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
    padding-left: 24px;
    margin-bottom: 14px;
}
.legal-content li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.legal-content a:hover { opacity: 0.8; }
.legal-date {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ─── Support Page ─── */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: border-color 0.3s, transform 0.3s;
}
.support-card:hover {
    border-color: rgba(59,240,140,0.15);
    transform: translateY(-3px);
}
.support-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.sci-green { background: rgba(59,240,140,0.1); }
.sci-blue { background: rgba(59,168,240,0.1); }
.sci-purple { background: rgba(160,106,240,0.1); }
.sci-amber { background: rgba(240,168,59,0.1); }
.support-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.support-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}
.support-card a.card-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.support-card a.card-link:hover { gap: 10px; }

.faq-section { padding: 80px 0 120px; }
.faq-section h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-dim);
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in { animation: fadeInUp 0.8s ease both; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .support-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(6,8,15,0.97);
        backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .page-hero h1 { font-size: 32px; }
}
