/* Global Styles & Variables */
:root {
    --primary-bg: #1A1A1D; /* Deep Charcoal */
    --secondary-bg: #0B0C10; /* Midnight Blue for accents or sections */
    --accent-blue: #00A8F3;
    --accent-green: #39FF14;
    --accent-gold: #FFBF00;
    --text-light: #F5F5F5;
    --text-dark: #1A1A1D;
    --text-muted: #A9A9A9;
    --font-primary: "Roboto", "Open Sans", "Arial", sans-serif;
    --font-display: "Roboto Slab", "Open Sans", "Arial", sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 20px;
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--accent-blue);
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
}

/* Header & Navigation */
header {
    background-color: rgba(11, 12, 16, 0.8); /* Semi-transparent Midnight Blue */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-light);
    text-shadow: 0 0 5px var(--accent-green);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent-blue);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 12px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-primary);
}

.language-switcher button.active,
.language-switcher button:hover {
    background-color: var(--accent-blue);
    color: var(--primary-bg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link, .user-panel-link {
    color: var(--accent-blue);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: color 0.3s, transform 0.3s;
    white-space: nowrap;
}

.nav-link:hover, .user-panel-link:hover {
    color: var(--accent-green);
    transform: translateY(-3px);
}

.youtube-link {
    position: relative;
    padding-left: 28px;
}

.youtube-link::before {
    content: '▶️';
    position: absolute;
    left: 8px;
    color: #FF0000;
    font-size: 1em;
}

.docs-link {
    position: relative;
    padding-left: 28px;
}

.docs-link::before {
    content: '📄';
    position: absolute;
    left: 8px;
    font-size: 0.9em;
}

.user-panel-link {
    position: relative;
    padding-left: 28px;
}

.user-panel-link::before {
    content: '👤';
    position: absolute;
    left: 8px;
    font-size: 1em;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('../images/modern_hero_trading.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Account for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.cta-button, .cta-button-large {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 243, 0.4);
}

.cta-button:hover, .cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.5);
}

.cta-button-large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

/* Problem/Solution Section */
.problem-solution-section {
    background-color: var(--secondary-bg);
}

.problem-solution-section p {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

.solution-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.solution-point {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 168, 243, 0.2);
}

.solution-point h3 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    /*margin-top: 40px;*/
}

.benefit-item {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: left;
    border-left: 5px solid var(--accent-green);
    transition: background-color 0.3s;
}

.benefit-item:hover {
    background-color: #12141a;
}

.benefit-item h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 10px;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--secondary-bg);
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

.step {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    width: calc(33.333% - 20px);
    min-width: 280px;
    position: relative;
    border-top: 3px solid var(--accent-blue);
}

.step .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue);
    color: var(--primary-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.step h3 {
    font-family: var(--font-primary);
    color: var(--accent-blue);
    font-size: 1.3rem;
    margin-top: 20px;
}

/* Statistics Section */
.stats-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stats-images img {
    max-width: 48%;
    min-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Feedback Section */
.testimonials-section {
    background-color: var(--secondary-bg);
}

.feedback-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.feedback-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    color: var(--text-dark);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.feedback-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.feedback-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 191, 0, 0.6);
}

.feedback-button:hover::before {
    left: 100%;
}

/* About Section */
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(rgba(11, 12, 16, 0.9), rgba(11, 12, 16, 0.9)), url('../images/modern_hero_trading.png') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 100px 20px;
}

.final-cta-section h2 {
    font-size: 3rem;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--accent-green);
}

.final-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-blue);
    transition: color 0.3s, transform 0.3s;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.footer-links a:hover {
    color: var(--accent-green);
    transform: translateY(-3px);
}

/* Responsive Design */
/* Large screens */
@media (min-width: 1921px) {
    :root {
        --container-width: 1800px;
    }

    body {
        font-size: 18px;
    }

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

    h2 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .cta-button, .cta-button-large {
        font-size: 1.3rem;
        padding: 18px 36px;
    }

    .cta-button-large {
        font-size: 1.5rem;
        padding: 22px 44px;
    }

    .solution-point h3, .benefit-item h3, .step h3 {
        font-size: 1.8rem;
    }

    .solution-point p, .benefit-item p, .step p {
        font-size: 1.2rem;
    }

    .about-section p {
        font-size: 1.5rem;
        max-width: 1200px;
        line-height: 1.8;
    }

    .final-cta-section h2 {
        font-size: 4rem;
    }

    .final-cta-section p {
        font-size: 1.5rem;
    }

    .logo a {
        font-size: 2.2rem;
    }

    .user-panel-link {
        font-size: 1.2rem;
    }

    .language-switcher button {
        font-size: 1.1rem;
        padding: 10px 16px;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    :root {
        --container-width: 1400px;
    }

    body {
        font-size: 17px;
    }

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

    h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .solution-point h3, .benefit-item h3, .step h3 {
        font-size: 1.6rem;
    }

    .about-section p {
        font-size: 1.3rem;
        max-width: 1000px;
        line-height: 1.7;
    }

    .final-cta-section h2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    h1, .hero-content h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .final-cta-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .step {
        width: calc(50% - 15px);
    }

    .stats-images img {
        max-width: 90%;
    }

    header {
        padding: 10px 0;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .logo {
        text-align: left;
        width: auto;
    }

    .logo a {
        font-size: 1.5rem;
    }

    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide nav menu by default on mobile */
    .nav-right {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        background-color: rgba(11, 12, 16, 0.95);
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    /* Show nav menu when active */
    .nav-right.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link, .user-panel-link {
        margin-bottom: 5px;
        padding: 10px 15px;
        width: 100%;
        text-align: center;
        border: 1px solid var(--accent-blue);
        border-radius: var(--border-radius);
        white-space: nowrap;
    }

    .youtube-link, .docs-link, .user-panel-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 15px;
    }

    .youtube-link::before, .docs-link::before, .user-panel-link::before {
        position: static;
        margin-right: 8px;
    }

    .language-switcher {
        margin-top: 0;
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .language-switcher button {
        flex: 1;
        max-width: 80px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    h1, .hero-content h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .final-cta-section h2 {
        font-size: 2rem;
    }

    .cta-button, .cta-button-large {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .cta-button-large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .step {
        width: 100%;
    }

    .solution-points,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Additional mobile improvements for header */
    .logo a {
        font-size: 1.3rem;
    }

    .language-switcher {
        flex-wrap: wrap;
        gap: 10px;
    }

    .language-switcher button {
        padding: 8px 15px;
        margin-left: 0;
        flex: 1;
        min-width: 70px;
    }

    .user-panel-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    /* Increase top padding for main content to account for taller header */
    .hero-section {
        padding-top: 120px;
    }
}

/* Animations */
.hero-content h1, .hero-content p, .hero-content .cta-button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .cta-button {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility for elements to fade in on scroll - to be used with JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* GDPR Consent Banner */
.gdpr-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    padding: 15px 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, shown via JS */
}

.gdpr-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gdpr-content p {
    flex: 1;
    margin: 0;
    color: var(--text-muted);
}

.gdpr-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.gdpr-button {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gdpr-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(57, 255, 20, 0.3);
}

.gdpr-link {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 5px;
}

.gdpr-link:hover {
    color: var(--accent-green);
}

@media (max-width: 768px) {
    .gdpr-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .gdpr-buttons {
        width: 100%;
        justify-content: space-between;
    }
}
