/* ═══════════════════════════════════════════════════════════════
   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;

    /* Spacing & Layout */
    --container-width: 1280px;
    --section-padding: 8rem;
    --border-radius: 24px;
    --border-radius-sm: 12px;

    /* 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: 32px;
    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: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trader-blue);
    letter-spacing: -0.02em;
}

.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: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--trader-blue);
    background: rgba(28, 63, 170, 0.06);
    border-radius: 12px;
    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);
}

/* --- 6. HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(75, 199, 125, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(28, 63, 170, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(2deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideUp 1s var(--ease-out-expo) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .section-label {
    animation: slideUp 1s var(--ease-out-expo) 0.1s forwards;
    opacity: 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, var(--text-6xl));
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--dark);
    animation: slideUp 1s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
}

.hero-content h1 span {
    position: relative;
    color: var(--trader-blue);
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--trader-green);
    opacity: 0.4;
    border-radius: 4px;
}

.hero-content p {
    font-size: var(--text-xl);
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 520px;
    animation: slideUp 1s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUp 1s var(--ease-out-expo) 0.4s forwards;
    opacity: 0;
}

.hero-image {
    position: relative;
    animation: slideUp 1s var(--ease-out-expo) 0.5s forwards;
    opacity: 0;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--trader-green);
    border-radius: var(--border-radius);
    opacity: 0.3;
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--trader-blue) 0%, var(--trader-green) 100%);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.2);
}

/* Floating Stats Badge */
.hero-stats {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 16px 48px -8px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: bounceIn 0.8s var(--ease-out-expo) 1s forwards;
    opacity: 0;
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-stats i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--trader-green) 0%, var(--trader-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.hero-stats-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--dark);
}

.hero-stats-text span {
    font-size: var(--text-sm);
    color: var(--gray);
}

/* --- 7. SERVICES GRID --- */
.services {
    padding: var(--section-padding) 0;
    background: var(--light-bg);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 63, 170, 0.1), transparent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(28, 63, 170, 0.06);
    transition: var(--transition-medium);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trader-blue), var(--trader-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(28, 63, 170, 0.08) 0%, rgba(75, 199, 125, 0.08) 100%);
    color: var(--trader-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-medium);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--trader-blue) 0%, var(--trader-green) 100%);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
}

.card h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.card > p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: var(--text-base);
    line-height: 1.7;
}

.tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-free {
    background: rgba(28, 63, 170, 0.08);
    color: var(--trader-blue);
}

.tag-premium {
    background: linear-gradient(135deg, var(--trader-green) 0%, var(--trader-green-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px -2px rgba(75, 199, 125, 0.3);
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: var(--gray);
    padding: 0.75rem 0;
    border-top: 1px solid var(--off-white);
}

.card-detail i {
    width: 20px;
    color: var(--trader-green);
}

.card-detail:last-child {
    border-top: none;
    padding-top: 0;
}

/* --- 8. ABOUT & CONTACT (Compliance Section) --- */
.compliance-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    position: relative;
}

.compliance-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(75, 199, 125, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.compliance-card {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(28, 63, 170, 0.04);
    transition: var(--transition-medium);
}

.compliance-card:hover {
    border-color: rgba(28, 63, 170, 0.1);
    box-shadow: 0 16px 48px -12px rgba(15, 23, 42, 0.08);
}

.compliance-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: 1.5rem;
    color: var(--trader-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

.compliance-card h3 i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--trader-blue) 0%, var(--trader-green) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.compliance-card p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    color: var(--dark-muted);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(75, 199, 125, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--trader-green);
    font-size: 1rem;
}

.contact-item a {
    color: var(--trader-blue);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* --- 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 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: 320px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    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);
}

/* --- 10. RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-content h1 {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image::before,
    .hero-image::after {
        display: none;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 2rem auto 0;
        width: fit-content;
    }

    .grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .section-title h2 {
        font-size: var(--text-3xl);
    }

    .card {
        padding: 2rem;
    }

    .compliance-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .card {
        padding: 1.5rem;
    }

    .tag {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
    }
}

/* --- 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;
}

.card.reveal.active:hover {
    transform: translateY(-8px) !important;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
