/* --- Global Variables & Resets --- */
:root {
    --color-dark-bg: #120F1F;
    --color-light-purple-gradient-start: #6A5CFF;
    --color-dark-purple-gradient-end: #9D62FF;
    --color-white: #FFFFFF;
    --color-light-gray: #C0C0C0;
    --color-semi-transparent-dark: rgba(255, 255, 255, 0.05);
    --color-semi-transparent-badge: rgba(255, 255, 255, 0.1);
    --color-lighter-transparent-dark: rgba(255, 255, 255, 0.08);
    --font-primary: 'Inter', sans-serif;
    --max-width-desktop: 1200px;
    --spacing-section-padding: 60px;
    --border-radius-buttons: 30px;
    --border-radius-cards: 15px;
    --border-radius-banner: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width-desktop);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Updated Header Section --- */
.main-header {
    background: #1a1625; /* Solid dark background like screenshot */
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.main-header .logo {
    flex-shrink: 0;
    z-index: 1011;
}

.main-header .logo img {
    height: 40px;
    width: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.main-nav a:hover {
    color: var(--color-light-gray);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-actions .btn {
    background: var(--color-semi-transparent-dark);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: var(--border-radius-buttons);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.header-actions .btn:hover {
    background: var(--color-white);
    color: var(--color-light-purple-gradient-start);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1012;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Nav Active State */
.mobile-nav-active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.language-toggle:hover {
    color: var(--color-light-gray);
}

.language-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-toggle i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-cards);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 12px;
    color: var(--color-white);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    text-align: center;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Updated Language Option Active State --- */
.language-option.active {
    background-color: #8b5cf6; /* Updated purple */
    color: var(--color-white);
}

/* --- Updated Hero Section --- */
.hero-section {
    background: #1a1625; /* Same solid dark background as header */
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Updated Hero Badge --- */
.hero-badge {
    background: rgba(139, 92, 246, 0.15); /* Subtle purple background */
    color: #8b5cf6; /* Purple text color */
    padding: 8px 20px;
    border-radius: var(--border-radius-buttons);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
    border: 1px solid rgba(139, 92, 246, 0.3); /* Purple border */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    /* Remove the opacity and add gradient */
    background: linear-gradient(135deg, var(--color-light-purple-gradient-start) 0%, var(--color-dark-purple-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* --- Button Styles --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-light-purple-gradient-start);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--border-radius-buttons);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
/* --- Updated Button Styles --- */
.btn-primary {
    background: #8b5cf6; /* Updated to match new purple */
}

.btn-primary:hover {
    background: #7c3aed; /* Darker purple on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-light-purple-gradient-start);
}

/* --- Dashboard Section --- */
.dashboard-section {
    padding: var(--spacing-section-padding) 0;
    background: var(--color-dark-bg);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dashboard-mockup {
    text-align: center;
}

.dashboard-mockup img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-cards);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.dashboard-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.dashboard-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-light-gray);
    line-height: 1.6;
}

.dashboard-actions {
    margin-top: 30px;
}

/* --- Problem Solution Section --- */
.problem-solution-section {
    padding: var(--spacing-section-padding) 0;
    background: var(--color-lighter-transparent-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.2;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--color-semi-transparent-dark);
    border-radius: var(--border-radius-cards);
    padding: 30px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.problem-statement, .solution-statement {
    margin-bottom: 20px;
}

.problem-statement:last-child, .solution-statement:last-child {
    margin-bottom: 0;
}

.problem-icon, .solution-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.problem-icon {
    color: #ef4444;
}

.solution-icon {
    color: #10b981;
}

.problem-statement h5, .solution-statement h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-white);
}

.problem-statement p, .solution-statement p {
    color: var(--color-light-gray);
    line-height: 1.5;
}

/* --- Features Section --- */
.features-section {
    padding: var(--spacing-section-padding) 0;
    background: var(--color-dark-bg);
    text-align: center;
}

/* --- Updated Section Tagline --- */
.section-tagline {
    color: #8b5cf6; /* Updated purple */
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-light-gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-card {
    background: var(--color-semi-transparent-dark);
    padding: 30px;
    border-radius: var(--border-radius-cards);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    background: var(--color-lighter-transparent-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Updated Feature Icon Wrapper --- */
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #8b5cf6; /* Solid purple instead of gradient */
    border-radius: var(--border-radius-cards);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper i {
    color: var(--color-white);
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-white);
}

.feature-card p {
    color: var(--color-light-gray);
    line-height: 1.6;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: var(--spacing-section-padding) 0;
    background: var(--color-lighter-transparent-dark);
    text-align: center;
}

.pricing-card-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pricing-card {
    background: var(--color-semi-transparent-dark);
    border-radius: var(--border-radius-cards);
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* --- Updated Pricing Card Top Border --- */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #8b5cf6; /* Solid purple */
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-white);
}

.plan-description {
    color: var(--color-light-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.price-main-display {
    margin-bottom: 30px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
}

.price-period {
    font-size: 1.2rem;
    color: var(--color-light-gray);
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    color: var(--color-light-gray);
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 10px;
}

.subscribe-btn {
    width: 100%;
    margin-top: 20px;
}

/* --- CTA Banner Section --- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-light-purple-gradient-start) 0%, var(--color-dark-purple-gradient-end) 100%);
    padding: 60px 0;
    text-align: center;
    border-radius: var(--border-radius-banner);
    margin: var(--spacing-section-padding) 20px;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.cta-content p:last-of-type {
    margin-bottom: 30px;
}

/* --- Footer Section --- */
.main-footer {
    background: var(--color-dark-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer p {
    color: var(--color-light-gray);
    font-size: 0.9rem;
}

/* --- Updated Back to Top Button --- */
.back-to-top-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8b5cf6; /* Solid purple instead of gradient */
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 999999;
}

.back-to-top-button:hover {
    background: #7c3aed; /* Darker purple on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}


.back-to-top-button i {
    font-size: 1.2rem;
}

/* --- Responsive Design (Media Queries) --- */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .dashboard-content {
        gap: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-section h2 {
        font-size: 2.2rem;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile Styles */
    .hamburger-menu {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-light-purple-gradient-start) 0%, var(--color-dark-purple-gradient-end) 100%);
        flex-direction: column;
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        z-index: 1010;
        gap: 0;
    }

    .mobile-nav-active .nav-container {
        transform: translateX(0);
    }

    .main-nav {
        width: 100%;
        margin-bottom: 30px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 18px;
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
    }

    /* Language dropdown in mobile */
    .language-dropdown {
        width: 100%;
        margin-top: 20px;
    }

    .language-toggle {
        width: 100%;
        justify-content: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .language-menu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .language-dropdown.active .language-menu {
        max-height: 300px;
    }

    .language-option {
        padding: 15px;
        font-size: 16px;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
    }

    /* Dashboard Section Mobile */
    .dashboard-section {
        padding: 40px 0;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .dashboard-text h3 {
        font-size: 2rem;
    }

    .dashboard-text p {
        font-size: 1rem;
    }

    /* Problem Solution Section Mobile */
    .problem-solution-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problem-card {
        padding: 25px;
    }

    /* Features Section Mobile */
    .features-section {
        padding: 40px 0;
    }

    .features-section h2 {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    /* Pricing Section Mobile */
    .pricing-section {
        padding: 40px 0;
    }

    .pricing-card {
        margin: 0 15px;
        padding: 30px 25px;
    }

    .plan-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .subscribe-btn {
        padding: 15px 20px;
        font-size: 16px;
    }

    /* CTA Banner Mobile */
    .cta-banner {
        margin: 40px 15px;
        padding: 40px 20px;
        border-radius: 20px;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Back to top button mobile */
    .back-to-top-button {
        bottom: 110px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* Mobile body scroll lock */
    .mobile-nav-active {
        overflow: hidden;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-section h2 {
        font-size: 1.6rem;
    }

    .dashboard-text h3 {
        font-size: 1.6rem;
    }

    .cta-banner {
        margin: 30px 10px;
        padding: 30px 15px;
    }

    .problem-card,
    .feature-card {
        padding: 20px;
    }

    .pricing-card {
        padding: 25px 20px;
    }
}