.landing-page {
    background: var(--bg-gradient);
    /* Uses the theme gradient */
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    display: block;
    color: var(--text-main);
    /* Adapt text color */
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-sidebar);
    /* Adapts to white in light mode */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    background: var(--bg-sidebar);
    /* More solid on scroll */
    box-shadow: var(--shadow-card);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-brand i {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-nav-login {
    background: var(--primary);
    color: #003029;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav-login:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.3);
}

.hero {
    padding: 10rem 2rem 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    /* Use a simpler gradient for light mode compatibility if needed, but primary is fine */
    background: radial-gradient(circle, rgba(0, 209, 178, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 209, 178, 0.1);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary {
    background: var(--primary);
    color: #003029;
}

.btn-hero-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 209, 178, 0.4);
}

.btn-hero-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-hero-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features {
    background: var(--bg-card);
    /* This will be glass in dark, white in light */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-input);
    /* Slightly lighter/darker than body */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing {
    background: linear-gradient(135deg, rgba(0, 209, 178, 0.05) 0%, transparent 100%);
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(0, 209, 178, 0.05);
    /* Keep this subtle tint */
    transform: scale(1.05);
}

/* In Light Mode, we might want the popular card to have a white bg but with the border */
[data-theme="light"] .pricing-card.popular {
    background: #ffffff;
    border: 2px solid var(--primary);
}


.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #003029;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0.25rem;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--primary);
    font-size: 1rem;
}

.plan-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.plan-features li.disabled i {
    color: var(--text-muted);
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.btn-plan:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    border-color: var(--text-muted);
}

.btn-plan-popular {
    background: var(--primary);
    color: #003029;
    border: none;
}

.btn-plan-popular:hover {
    background: var(--primary);
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(0, 209, 178, 0.4);
}

.demo-cta {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1) 0%, rgba(72, 199, 116, 0.1) 100%);
    padding: 5rem 2rem;
}

.demo-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-cta-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
}

.demo-cta-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.demo-cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.demo-cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-demo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: #003029;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.btn-demo-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 209, 178, 0.4);
}

.demo-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.landing-footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.footer-brand i {
    color: var(--primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-brand span {
        display: none;
    }

    .nav-actions {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .btn-nav-login {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 8rem 1.5rem 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-container {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .demo-cta-content {
        padding: 3rem 1.5rem;
    }

    .demo-cta-content h2 {
        font-size: 1.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .amount {
        font-size: 2.5rem;
    }
}

/* Pricing Section Styles */
.pricing {
    background: linear-gradient(135deg, rgba(0, 209, 178, 0.05) 0%, transparent 100%);
    padding: 6rem 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(to bottom, rgba(0, 209, 178, 0.03), var(--bg-card));
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 209, 178, 0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #003029;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 209, 178, 0.3);
}

.pricing-card.enterprise {
    border: 1px solid rgba(50, 152, 220, 0.3);
}

.pricing-card.enterprise:hover {
    border-color: #3298dc;
    box-shadow: 0 15px 30px rgba(50, 152, 220, 0.15);
}

.enterprise-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3298dc;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(50, 152, 220, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.plan-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1.5rem 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    font-size: 1rem;
}

.plan-features li i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.plan-features li i.fa-check-circle {
    color: var(--primary);
}

.plan-features li i.fa-times {
    color: var(--text-muted);
    opacity: 0.5;
}

.plan-features li.disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-plan:hover {
    border-color: var(--primary);
    background: rgba(0, 209, 178, 0.1);
    color: var(--primary);
}

.btn-plan.primary {
    background: var(--primary);
    color: #003029;
    border: none;
}

.btn-plan.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.3);
}

.btn-plan.secondary {
    background: #3298dc;
    color: white;
    border: none;
}

.btn-plan.secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(50, 152, 220, 0.3);
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
        margin-bottom: 2rem;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}