/* =========================================
   FlexTrade – style.css
   ========================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0a1628;
    --navy-mid: #0d1f3c;
    --navy-light: #122548;
    --blue: #1a3a6b;
    --accent: #e8a020;
    --accent-hover: #f0b030;
    --teal: #00a8c8;
    --white: #ffffff;
    --off-white: #f4f6f9;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6ec;
    --gray-400: #9ba8bc;
    --gray-600: #5a6678;
    --gray-800: #2c3344;
    --text: #1e2535;
    --text-muted: #5a6678;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(10,22,40,.08);
    --shadow-md: 0 6px 24px rgba(10,22,40,.14);
    --shadow-lg: 0 16px 48px rgba(10,22,40,.18);
    --transition: 0.22s ease;
    --nav-h: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Utilities ---------- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: 96px 0;
}

.bg-dark {
    background: var(--navy);
    color: var(--white);
}

.bg-light-gray {
    background: var(--gray-100);
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

    .section-eyebrow.light {
        color: var(--accent);
    }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 20px;
}

    .section-title.light {
        color: var(--white);
    }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 56px;
}

    .section-sub.light {
        color: var(--gray-400);
    }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 4px;
    transition: background var(--transition), transform var(--transition);
    letter-spacing: 0.01em;
}

    .btn-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
    }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--navy);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 26px;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
    margin-top: 20px;
}

    .btn-outline:hover {
        background: var(--navy);
        color: var(--white);
    }

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--teal);
    transition: color var(--transition);
    display: inline-block;
    margin-top: 12px;
}

    .card-link:hover {
        color: var(--accent);
    }

    .card-link.light {
        color: var(--teal);
    }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

    .logo-text span {
        color: var(--accent);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    padding: 8px 14px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav-item:hover {
        color: var(--white);
        background: rgba(255,255,255,.07);
    }

    .nav-item .arrow {
        font-size: 1.1rem;
        line-height: 1;
        opacity: 0.6;
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-search {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

    .btn-search:hover {
        color: var(--white);
    }

.btn-demo {
    background: var(--accent);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background var(--transition);
}

    .btn-demo:hover {
        background: var(--accent-hover);
    }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fallback gradient if image not loaded */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(8,16,34,.92) 0%, rgba(10,22,54,.80) 50%, rgba(8,30,60,.65) 100% );
}

/* Placeholder gradient when hero-bg-img is missing */
.hero-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #070e20 0%, #0d1f4a 40%, #0a2a5e 70%, #061530 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-h);
    padding-bottom: 80px;
    max-width: 780px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .hero-eyebrow::before {
        content: '';
        display: inline-block;
        width: 32px;
        height: 2px;
        background: var(--accent);
    }

.hero-headline {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

    .hero-headline br {
        display: block;
    }

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,.72);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

    .hero-scroll-indicator span {
        display: block;
        width: 24px;
        height: 40px;
        border: 2px solid rgba(255,255,255,.3);
        border-radius: 12px;
        position: relative;
    }

        .hero-scroll-indicator span::after {
            content: '';
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 8px;
            background: var(--accent);
            border-radius: 2px;
            animation: scrollBounce 1.6s ease-in-out infinite;
        }

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.2;
    }
}

/* =========================================
   FEATURED PLATFORMS
   ========================================= */
.featured-platforms {
    background: var(--white);
}

    .featured-platforms .section-eyebrow {
        text-align: center;
        margin-bottom: 48px;
    }

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.platform-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}

    .platform-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }

.platform-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--blue) 100%);
    position: relative;
}

    .platform-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.85;
    }

    /* Placeholder pattern for missing images */
    .platform-card-img::after {
        content: attr(data-label);
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: repeating-linear-gradient( 45deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 20px );
    }

.platform-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .platform-card-body h3 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 10px;
    }

    .platform-card-body p {
        font-size: 0.875rem;
        color: var(--text-muted);
        line-height: 1.65;
        flex: 1;
    }

/* =========================================
   THE FLEXTRADE DIFFERENCE
   ========================================= */
.difference-section .section-title.light,
.difference-section .section-sub {
    max-width: 800px;
}

.difference-section .section-sub {
    color: rgba(255,255,255,.6);
    margin-bottom: 48px;
}

.difference-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
}

.diff-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,.06);
}

.diff-col-label {
    padding: 16px 28px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.challenge-label {
    color: #e05a5a;
    border-right: 1px solid rgba(255,255,255,.08);
}

.solution-label {
    color: #4caf7d;
}

.diff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,.07);
    transition: background var(--transition);
}

    .diff-row:hover {
        background: rgba(255,255,255,.03);
    }

.diff-challenge,
.diff-solution {
    padding: 28px 28px;
}

.diff-challenge {
    border-right: 1px solid rgba(255,255,255,.07);
}

.diff-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.challenge-tag {
    background: rgba(224,90,90,.15);
    color: #e88080;
}

.solution-tag {
    background: rgba(76,175,125,.15);
    color: #6dd4a0;
}

.diff-challenge h4,
.diff-solution h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.diff-challenge p,
.diff-solution p {
    font-size: 0.875rem;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
}

/* =========================================
   WHY FLEXTRADE
   ========================================= */
.why-section {
    background: var(--white);
}

    .why-section .section-title,
    .why-section .section-sub {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .why-section .section-sub {
        margin-bottom: 56px;
    }

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .why-card:hover {
        box-shadow: var(--shadow-md);
    }

.why-card-media {
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    position: relative;
    flex-shrink: 0;
}

    .why-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }

    .why-card-media.video-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 260px;
    }

.why-card-video {
    min-height: 360px;
}

    .why-card-video .why-card-media {
        height: 100%;
        flex: 1;
    }

.play-btn {
    position: absolute;
    width: 68px;
    height: 68px;
    background: rgba(232,160,32,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--navy);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

    .play-btn:hover {
        transform: scale(1.08);
        background: var(--accent-hover);
    }

.why-card-body {
    padding: 32px;
    flex: 1;
}

    .why-card-body h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 14px;
        line-height: 1.35;
    }

    .why-card-body p {
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.7;
    }

/* =========================================
   BUY SIDE / SELL SIDE
   ========================================= */
.sides-section .section-pad {
    padding: 80px 0;
}

.sides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.side-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.side-media {
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, #1a4580 100%);
    position: relative;
}

.sell-side .side-media {
    background: linear-gradient(135deg, #0f2a45 0%, #1a3a5e 100%);
}

.side-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.side-content {
    padding: 36px;
    flex: 1;
}

.side-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

    .side-badge.sell {
        background: var(--teal);
        color: var(--white);
    }

.side-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.25;
}

.side-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.65;
}

.side-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .side-list li a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--navy);
        display: flex;
        align-items: center;
        gap: 8px;
        transition: color var(--transition);
    }

        .side-list li a::before {
            content: '›';
            color: var(--accent);
            font-weight: 700;
            font-size: 1.1rem;
        }

        .side-list li a:hover {
            color: var(--teal);
        }

/* =========================================
   ABOUT FLEXTRADE
   ========================================= */
.about-section .section-title.light {
    max-width: 860px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.about-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: background var(--transition), transform var(--transition);
}

    .about-card:hover {
        background: rgba(255,255,255,.08);
        transform: translateY(-4px);
    }

.about-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(232,160,32,.15);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .about-card-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.7;
    }

.about-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,.62);
    line-height: 1.7;
}

/* =========================================
   MARKET PRESENCE
   ========================================= */
.market-section {
    background: var(--white);
}

    .market-section .section-title {
        max-width: 820px;
    }

.market-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.stat-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.market-map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 420px;
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

    .market-map-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.4;
    }

.map-overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

    .map-overlay-text p {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--white);
        letter-spacing: 0.02em;
    }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--navy);
    color: var(--white);
}

.footer-top {
    padding: 72px 0 56px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr 1.4fr 1.2fr;
    gap: 40px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,.5);
    margin-top: 14px;
    max-width: 260px;
    line-height: 1.65;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-col ul li a {
        font-size: 0.875rem;
        color: rgba(255,255,255,.55);
        transition: color var(--transition);
    }

        .footer-col ul li a:hover {
            color: var(--white);
        }

.footer-bottom {
    padding: 24px 0;
}

    .footer-bottom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        color: rgba(255,255,255,.35);
    }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

    .footer-legal a {
        font-size: 0.78rem;
        color: rgba(255,255,255,.35);
        transition: color var(--transition);
    }

        .footer-legal a:hover {
            color: rgba(255,255,255,.7);
        }

/* =========================================
   IMAGE PLACEHOLDERS
   (shows a styled box when images are missing)
   ========================================= */
/* img[src$=".jpg"],
img[src$=".png"] {
  background: linear-gradient(135deg, #1a2f54 0%, #1d3a6b 100%);
} */

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .section-pad {
        padding: 72px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .sides-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .market-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-header {
        display: none;
    }

    .diff-row {
        grid-template-columns: 1fr;
    }

    .diff-challenge {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .hero-headline {
        font-size: 2.4rem;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        gap: 12px;
    }

    .market-stats {
        grid-template-columns: 1fr 1fr;
    }

    .market-map-placeholder {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.9rem;
    }

    .market-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
