:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --footer-bg: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Stats Section */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Cards (Features, Plans) */
.feature-card,
.plan-card,
.step-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.feature-card:hover,
.plan-card:hover,
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--secondary-color);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: white;
}

/* Plan Cards Specifics */
.plan-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--secondary-color);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.plan-features li {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.plan-features i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* How It Works */
.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: #eff6ff;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 1rem;
}

.stars {
    color: var(--warning);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .plan-card.popular {
        transform: scale(1);
        margin: 2rem 0;
    }

    /* Mobile Button Adjustments */
    .mobile-menu-btn,
    .mobile-hero-btn {
        font-size: 0.9rem !important;
        /* Reduce font size */
        padding: 0.5rem 1rem !important;
        /* Reduce padding */
        height: auto;
    }

    .hero-buttons {
        gap: 0.75rem !important;
    }

    /* Mobile Menu Styles */
    .mobile-menu-container {
        padding-bottom: 0.5rem;
    }

    .mobile-nav-item {
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 0.25rem;
    }

    .mobile-nav-link {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem !important;
        background-color: #f8fafc;
        border-radius: 8px;
        color: var(--text-dark) !important;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .mobile-nav-link:hover {
        background-color: #eff6ff;
        color: var(--primary-color) !important;
    }

    .mobile-nav-link i.text-secondary {
        width: 24px;
        text-align: center;
    }
}

/* Calculator */
.calculator-container {
    background-color: var(--footer-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: white;
    margin-top: 2rem;
}

.dark-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem;
}

.dark-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: none;
}

/* Fix for select arrow in dark mode */
select.dark-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Ensure dropdown options are visible and match theme */
select.dark-input option {
    background-color: var(--footer-bg);
    color: white;
    padding: 10px;
}

.dark-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.calc-value {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 0;
}

.calc-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Partner Logos */
.partners-container {
    opacity: 0.9;
}

.partner-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

.partner-logo span {
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Specific Brand Colors on Hover */
.bingx-logo:hover span,
.bingx-logo:hover i {
    color: #0045e6 !important;
    /* BingX Blue */
}

.gateio-logo:hover span,
.gateio-logo:hover i {
    color: #0d857a !important;
    /* Gate Teal */
}


.htx-logo:hover span,
.htx-logo:hover i {
    color: #2b3990 !important;
    /* HTX Blue/Purple */
}

/* Login Page Styles */
.login-form-container {
    max-width: 450px;
    width: 100%;
}

.branding-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.branding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.circle-1,
.circle-2 {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.input-group-text {
    border-color: #dee2e6;
}

.toggle-password {
    cursor: pointer;
}

@media (max-width: 991px) {
    .branding-section {
        padding: 3rem !important;
        text-align: center;
    }

    .login-form-container {
        padding: 2rem !important;
    }
}