/* ==========================================================================
   1. GLOBAL & SETUP
   ========================================================================== */

:root {
    --background-dark: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-green-bright: #D1FF00;
    --accent-green-map: #B8FF00;
    --card-dark: #1A1A1A;
    --card-border: #2C2C2C;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
  overflow-x: hidden;
}

body {
    background-color: #0f0f0f !important;
    background-color: var(--background-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
}


/* ==========================================================================
   2. HEADER & NAVIGATION (Corrected)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background-color: black;
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* This puts space between logo and nav */
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    /* REMOVED: font-size, font-weight, gap, color, as the logo is now just an image */
}

.logo-image {
    height: 40px; /* CHANGE THIS: Set a reasonable height for the logo */
    width: auto;  /* Allow width to adjust automatically */
    object-fit: contain;
}

/* --- Desktop Navigation --- */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px; /* Increased gap for better spacing */
}
.nav-link, .language-switcher, .login-link {
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover, .language-switcher:hover, .login-link:hover {
    color: var(--accent-green-bright);
}
.btn-signup {
    background-color: var(--accent-green-bright);
    color: #000;
    font-weight: 600;
    padding: 10px 20px; /* Slightly smaller padding */
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.btn-signup:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   MOBILE NAVIGATION & RESPONSIVE STYLES
   ========================================================================== */

/* --- Base Mobile Navigation Styles --- */
.hamburger {
    display: none; /* Hidden by default, shown in mobile media query */
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    position: absolute;
    left: 3px;
    transition: all 0.3s ease-in-out;
}
.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 14px; }
.hamburger span:nth-child(3) { top: 22px; }

/* Hide hamburger when menu is open */
body.mobile-nav-open .hamburger {
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
    z-index: 1000; /* Higher z-index for the menu */
    display: flex; /* Use flex to align items */
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: flex-start; /* Align text to the left */
    padding: 80px 24px 40px; /* Top, sides, bottom padding */
    box-sizing: border-box;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Header inside the open mobile nav */
.mobile-nav .header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 24px;
    box-sizing: border-box;
}

.mobile-nav .logo-image {
    height: 32px;
}

/* Close button 'X' styling */
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
}

/* Styling for links inside mobile nav */
.mobile-nav a:not(.btn-signup) {
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid #2C2C2C; /* Use the card border color for consistency */
}

/* Styling for the Sign Up button inside mobile nav */
.mobile-nav .btn-signup {
    background-color: var(--accent-green-bright);
    color: #000000; /* CHANGED: Black text for high contrast */
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    text-align: center;
    margin-top: auto; /* Pushes the button to the bottom */
    box-sizing: border-box;
}

/* Lock body scroll when mobile menu is open */
body.mobile-nav-open {
    overflow: hidden;
}


/* --- Mobile Media Query --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block; /* Show the hamburger button */
    }
    .logo-image {
        height: 32px; /* Make logo smaller on mobile */
    }
}
/* ==========================================================================
   3. PAGE SECTIONS
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
    min-height: 30vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-dark);
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%);
    padding-top: 100px;
}
.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}
.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0;
}
.btn-cta {
    background-color: var(--accent-green-bright);
    color: #000;
    font-weight: 600;
    font-size: 18px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    align-self: flex-start;
}
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hero-image .macbook-frame {
    background-color: #1c1c1c;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.hero-image .macbook-screen img {
    width: 100%;
    display: block;
}

/* --- Content Wrapper (for solid background on scroll) --- */
.content-section {
    position: relative;
    z-index: 2;
    background-color: #202020;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    margin-bottom: -20px;
    margin-top: -20px;

}

/* --- Geo Match Section --- */
.geo-match-section {
    position: relative;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: flex-start;
    gap: 48px;
    padding: 120px 0;
}
.geo-left-column {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.geo-left-column h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.broker-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.broker-card {
    background-color: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}
.broker-card.active, .broker-card:hover {
    background-color: #252525;
    border-color: #444;
}
.broker-card.active .description {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
}
.broker-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.broker-card .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.broker-card .logo-container .logo-text {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}
.broker-card .description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 0;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-in-out, margin-top 0.4s ease-out;
}
.geo-right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 170px;
}
.geo-map-header {
    text-align: left;
}
.geo-map-header .subtext {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 0 24px 0;
}
.btn-geo-cta {
    background-color: transparent;
    color: var(--accent-green-map);
    border: 1px solid var(--accent-green-map);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}
.geo-map-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Get Started Section --- */
.get-started-section {
    padding: 60px 24px;
    background: #000;
}
.get-started-section .section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: left !important;
}
.get-started-section .section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}
.steps-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 80px 0;
}
.step-item {
    position: relative;
    padding: 20px;
    max-width: 250px;
}
.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 180px;
    font-weight: 800;
    z-index: 1;
    line-height: 1;
    background: linear-gradient(180deg, hsla(75, 100%, 50%, 0.4) 0%, hsla(75, 100%, 50%, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.step-text {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.cta-container {
    margin-top: 40px;
        text-align: right;
}
.btn-join-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-green-bright);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
}

/* --- All Control Section --- */
.all-control-section {
    padding: 120px 24px;
    overflow: hidden;
    background-color: #202020;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-top: -20px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    margin-bottom: -20px;
}
.all-control-section .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.control-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
}
.section-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}
.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.header-info p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.6;
    margin: 0;
}
.btn-outline-green {
    background-color: transparent;
    color: var(--accent-green-bright);
    border: 1px solid var(--accent-green-bright);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
}
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    border-top: 1px solid #2c2c2c;
    border-bottom: 1px solid #2c2c2c;
    padding: 32px 0;
    margin-top: 40px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.feature-icon {
    color: var(--accent-green-bright);
}
.feature-item p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
.app-mockups-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    min-height: 500px;
    perspective: 1200px;
}
.mockup-card {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.6;
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.mockup-card img {
    width: 100%;
    display: block;
}
.mockup-card:nth-child(1) {
    transform: rotateY(-20deg) rotateZ(-8deg) translateX(30%) translateY(20px);
    z-index: 2;
}
.mockup-card:nth-child(2) {
    transform: rotateY(20deg) rotateZ(8deg) translateX(-30%) translateY(20px);
    z-index: 1;
}
.app-mockups-grid:hover .mockup-card {
    transform: rotateY(0deg) rotateZ(0deg) translateX(0) translateY(0);
    opacity: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.app-mockups-grid:hover .mockup-card:nth-child(1) {
    transform: translateX(-5%);
}
.app-mockups-grid:hover .mockup-card:nth-child(2) {
    transform: translateX(5%);
}


/* ==========================================================================
   4. FOOTER
   ========================================================================== */

.site-footer {
    background-color: #0f0f0f;
    color: #A0A0A0;
    font-size: 14px;
    padding: 60px 0;
    border-top: 1px solid #2c2c2c;
}
.site-footer h3 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.site-footer a {
    color: #A0A0A0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: #FFFFFF;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    color: #A0A0A0;
    font-size: 24px;
}
.app-badges {
    display: flex;
    gap: 16px;
}
.app-badges img {
    height: 40px;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-list svg {
    width: 20px;
    height: 20px;
}
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #2c2c2c;
}
.footer-nav-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-legal {
    padding-top: 40px;
    font-size: 12px;
    line-height: 1.6;
}
.legal-links {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.legal-links a {
    color: #FFFFFF;
    font-weight: 600;
}
.legal-text ul {
    padding-left: 20px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.risk-link {
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: underline;
}
.copyright {
    margin-top: 40px;
    border-top: 1px solid #2c2c2c;
    padding-top: 20px;
    text-align: center;
}


/* ==========================================================================
   5. RESPONSIVE DESIGN
   ========================================================================== */

/* --- Tablet & Smaller Footer Adjustments --- */
@media (max-width: 992px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile Breakpoint --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* --- General Mobile Footer --- */
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Mobile Header & Nav --- */
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-nav {
        padding: 80px 16px 24px;
    }
    .mobile-nav a {
        font-size: 18px;
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        box-sizing: border-box;
    }
    .mobile-nav .btn-signup {
        width: 100%;
        box-sizing: border-box;
        margin-top: 16px;
    }

    /* --- Mobile Font & Padding Adjustments --- */
    .hero-content h1 { font-size: 40px; }
    .geo-left-column h2, .get-started-section .section-header h2, .section-title { font-size: 32px; }
    .hero-content p, .header-info p, .geo-map-header .subtext { font-size: 16px; }
    .geo-match-section, .get-started-section, .all-control-section { padding: 80px 0; }

    /* --- Hero Section Mobile --- */
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }
    .hero-section {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .btn-cta {
      display: inline-block;
      margin: 0 auto;
      text-align: center;
    }

    /* --- Geo Match Section Mobile --- */
    .geo-match-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .geo-left-column, .geo-right-column {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .broker-cards-container {
        width: 100%;
    }
    .geo-right-column {
        margin-top: 20px;
    }
    .geo-map-container {
        display: block;
        max-width: 90%;
        margin: 20px auto 0;
    }
    .geo-map-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* --- Get Started Section Mobile --- */
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        margin-top: 60px;
    }
    .step-number { font-size: 140px; }
    .step-text { font-size: 20px; }

    /* --- All Control Section Mobile --- */
    .control-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        gap: 20px;
    }
    .header-info {
        align-items: center;
    }
    .features-list {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-mockups-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        perspective: none;
        min-height: auto;
        margin-top: 20px;
    }
    .mockup-card,
    .app-mockups-grid:hover .mockup-card {
        transform: none;
        opacity: 1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        margin: 0 auto;
    }
}