/* ============================================================
   TRADE THE MECHANICS — main.css
   Global styles shared across all pages
   ============================================================ */

/* ── VARIABLES ── */
:root {
    --bg:           #060c13;
    --bg-2:         #0a1520;
    --bg-3:         #0f1f2e;
    --green:        #22c55e;
    --green-dim:    rgba(34, 197, 94, 0.10);
    --green-border: rgba(34, 197, 94, 0.22);
    --blue:         #3b82f6;
    --blue-dim:     rgba(59, 130, 246, 0.10);
    --blue-border:  rgba(59, 130, 246, 0.22);
    --text:         #f0f6fb;
    --text-muted:   #8aaabe;
    --text-faint:   #1e3347;
    --border:       rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.13);
    --nav-height:        62px;
    --disclaimer-height: 40px;
    --total-header:      98px;
}

/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    top: calc(var(--total-header) + 1rem);
}

/* ── BASE ── */
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 51, 71, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 51, 71, 0.4) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: -1;
}

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

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #16a34a;
}

ul, ol {
    list-style: none;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--text);
}

p {
    line-height: 1.7;
}

.serif {
    font-family: 'Source Serif 4', serif;
}

.section-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    display: block;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

blockquote {
    font-family: 'Source Serif 4', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
    border-left: 2px solid var(--green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.75;
}

/* ── LAYOUT ── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── DISCLAIMER BAR ── */
.disclaimer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: var(--disclaimer-height);
    background: #0a0f18;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--text);
}

.disclaimer-bar a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: .25rem;
    transition: color .2s;
    white-space: nowrap;
}

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

section,
footer,
nav {
    position: relative;
    z-index: 1;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-green {
    background: var(--green);
    color: #030a05;
}

.btn-green:hover {
    background: #16a34a;
    color: #030a05;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-blue {
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--blue-border);
}

.btn-blue:hover {
    background: var(--blue-dim);
    color: var(--blue);
}

.btn-lg {
    font-size: 1rem;
    padding: 0.85rem 2rem;
}

/* ── NAVIGATION ── */
.site-nav {
    position: fixed;
    top: var(--disclaimer-height);
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
    background: rgba(6, 12, 19, 0.95);
    backdrop-filter: blur(16px);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: var(--text);
}

.nav-logo span {
    color: var(--text);
}

.logo-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.logo-bar {
    width: 4px;
    border-radius: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

.nav-links .btn {
    padding: 0.45rem 1.1rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.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);
}

/* Page offset for fixed nav */
.page-body { 
    padding-top: var(--total-header); 
}

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    font-family: 'Source Serif 4', serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

.footer-disclaimer {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
}

/* ── UTILITY ── */
.text-green  { color: var(--green); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ── MOBILE ── */
@media (max-width: 768px) {

    .container        { padding: 0 1.25rem; }
    .container-narrow { padding: 0 1.25rem; }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(6, 12, 19, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .nav-links .btn {
        margin: 0.5rem 2rem;
        width: calc(100% - 4rem);
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links-group {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-bottom {
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-links-group {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Active nav link */
.nav-links a.active {
    color: var(--text);
}