/* ═══════════════════════════════════════════════════════════════
   TradersPH - Neo-Editorial Design System
   A bold, modern aesthetic with distinctive typography and motion
   ═══════════════════════════════════════════════════════════════ */

/* --- 1. COLOR PALETTE & VARIABLES --- */
:root {
    /* Brand Colors (Preserved) */
    --trader-blue: #1c3faa;
    --trader-blue-dark: #153085;
    --trader-blue-light: #2a4fc4;
    --trader-green: #4bc77d;
    --trader-green-light: #dcfce7;
    --trader-green-dark: #3ba366;

    /* Neutrals */
    --dark: #0f172a;
    --dark-muted: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light-bg: #f8fafc;
    --off-white: #f1f5f9;
    --white: #ffffff;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Spacing & Layout */
    --container-width: 80rem;
    --section-padding: 8rem;
    --border-radius: 1.5rem;
    --border-radius-sm: 0.75rem;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-medium: 0.4s var(--ease-out-expo);
    --transition-slow: 0.6s var(--ease-out-expo);
}

/* --- 2. GLOBAL RESETS & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.mono-text {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    letter-spacing: -0.01em;
}

/* --- 4. UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--trader-blue);
    color: var(--white);
    box-shadow: 0 4px 24px -4px rgba(28, 63, 170, 0.4),
                inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: var(--trader-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(28, 63, 170, 0.5),
                inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--trader-blue);
    border: 2px solid var(--trader-blue);
}

.btn-outline:hover {
    background: var(--trader-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--trader-green);
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--trader-green);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title h2 span {
    color: var(--trader-blue);
}

.section-title p {
    font-size: var(--text-lg);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* --- 5. NAVIGATION BAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-medium);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 63, 170, 0.08);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trader-blue);
    letter-spacing: -0.02em;
}

.logo__img {
    height: 2.75rem;
    width: auto;
}

.logo--lg .logo__img {
    height: 10rem;
}

.logo__img--light {
    display: none;
}

.logo i {
    font-size: 1.75rem;
    color: var(--trader-green);
    filter: drop-shadow(0 2px 8px rgba(75, 199, 125, 0.3));
}

.logo span {
    color: var(--trader-green);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--dark-muted);
    border-radius: 100px;
    transition: var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--trader-blue);
    background: rgba(28, 63, 170, 0.06);
}

.mobile-menu-btn {
    display: none;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--trader-blue);
    background: rgba(28, 63, 170, 0.06);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(28, 63, 170, 0.12);
}

header .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-xs);
}

/* --- 9. FOOTER --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trader-blue), var(--trader-green), var(--trader-blue));
    background-size: 200% 100%;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand__logo {
    height: 2.25rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand h2 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer-brand h2 span {
    color: var(--trader-green);
}

.footer-brand p {
    color: var(--gray-light);
    max-width: 20rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--trader-blue);
    border-color: var(--trader-blue);
    color: var(--white);
    transform: translateY(-4px);
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-light);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--trader-green);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: var(--text-sm);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: var(--gray);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.legal-links a:hover {
    color: var(--trader-green);
}

/* --- 11. ANIMATIONS FOR SCROLL REVEAL --- */
.reveal {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo) !important;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- 10. RESPONSIVE QUERIES (Shared Elements) --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
        border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        padding: 1rem;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    header .btn-primary {
        display: none;
    }

    .section-title h2 {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
}
