@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #21FF21;
    /* Neon Green */
    --bg-dark: #000000;
    --bg-light: #ffffff;
    --text-white: #ffffff;
    --text-dark: #1a1a1b;
    --text-gray: #7d7d7d;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
}

p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utils */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #1edb1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 255, 33, 0.4);
}

.text-primary {
    color: var(--primary-color);
}

/* Navbar */
header {
    height: 72px;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the container itself */
}

header .container {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.nav-links-pill {
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links-pill li a {
    color: #a5a5a5;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.nav-links-pill li a:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-links-pill li {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Align exactly at the bottom of the li */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
    width: 280px;
    display: none;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 1010;
}

/* Create a Bridge to prevent losing hover when moving mouse to dropdown */
.nav-links-pill li::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: none;
}

.nav-links-pill li:hover::after,
.nav-links-pill li:hover .dropdown-menu {
    display: flex;
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.dropdown-item h4 {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-item p {
    font-size: 0.75rem;
    color: #999;
}

.nav-actions {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.lang-selector {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.lang-selector:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #a0a0a0;
    transition: all 0.2s;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.lang-option img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.btn-signin {
    background-color: #2b2b2b;
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-signin:hover {
    background-color: #3d3d3d;
}

.btn-signup {
    background-color: #00E340;
    /* Updated to match target neon green precisely */
    color: #000000;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-signup:hover {
    background-color: #00f044;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background-color: var(--bg-dark);
    padding-top: 132px;
    /* 72px header + 60px padding */
    padding-bottom: 80px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 30px;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section "How to open a trade" */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.steps-list {
    list-style: none;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.step-item.active {
    background-color: #f5f5f7;
    border-left: 4px solid var(--bg-dark);
}

.step-icon {
    width: 32px;
    height: 32px;
}

.step-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Section "Easier than..." */
.easier-section {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
}

.easier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.easier-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.easier-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.easier-content p {
    margin-bottom: 20px;
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.resource-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 40px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.resource-card h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* CTA Small Section */
.cta-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
}

.cta-dark h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}

.cta-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 160px;
}

.cta-step-icon {
    width: 48px;
    height: 48px;
}

.cta-step-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Trust Section */
.trust-section {
    text-align: center;
    padding: 100px 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 60px 0;
    flex-wrap: wrap;
    /* Ensure items wrap on smaller screens */
}

.stat-item {
    text-align: left;
}

.stat-label {
    font-weight: 700;
    margin-bottom: 5px;
    color: #a0a0a0;
}

.stat-value {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    opacity: 0.6;
    flex-wrap: wrap;
    /* Ensure logos wrap on mobile */
}

@media (max-width: 1024px) {

    .hero-grid,
    .steps-grid,
    .easier-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .cta-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
}

/* Sidebar */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    margin-left: 10px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    /* Changed to handle animation more smoothly */
    max-width: 320px;
    height: 100%;
    max-height: 100%;
    /* Added by user instruction */
    background-color: #0f0f0f;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), width 0s 0.4s;
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    overflow-y: auto;
    /* Added by user instruction */
}

.sidebar.active {
    width: 320px;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), width 0s;
    padding: 40px 30px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    white-space: nowrap;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.3rem;
}

.close-sidebar {
    font-size: 2.5rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    margin-top: -5px;
}

.close-sidebar:hover {
    color: var(--text-white);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-links li a {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.sidebar-links li a:hover {
    color: var(--text-white);
    padding-left: 10px;
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    white-space: nowrap;
}

.w-100 {
    width: 100%;
}

/* Responsiveness Update */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .nav-actions .btn-signin,
    .nav-actions .btn-signup {
        display: inline-block;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .hero-visual img {
        width: 100%;
        max-width: 400px;
        /* Limit size on mobile broad views */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        /* Consistent padding for all containers on small mobile */
    }

    header .container {
        padding: 0 10px;
    }

    .trust-stats {
        gap: 30px;
        /* Much smaller gap on mobile */
        margin: 40px 0;
        flex-direction: column;
        /* Stack vertically on very small screens */
        align-items: center;
    }

    .stat-item {
        text-align: center;
        width: 100%;
    }

    .stat-value {
        font-size: 2.5rem;
        /* Slightly smaller font for values */
    }

    .footer-logos {
        gap: 20px;
        margin-top: 40px;
    }

    .footer-logos img {
        height: 30px;
        /* Smaller logos on mobile */
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .logo svg {
        width: 24px;
        height: 24px;
    }

    .nav-actions {
        gap: 8px;
    }

    .lang-current span {
        display: none;
        /* Hide 'EN' text on very small screens to save space */
    }

    .nav-actions .btn-signin {
        padding: 8px 10px;
    }

    .nav-actions .btn-signup {
        padding: 8px 10px;
    }
}

/* Language Sidebar Specifics */
.lang-sidebar {
    padding: 40px 20px;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.lang-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #a0a0a0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-card img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-card.active {
    background-color: rgba(33, 255, 33, 0.1);
    border-color: var(--primary-color);
    color: var(--text-white);
}