/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}
:root {
    /* Light Theme (Default) */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --badge-bg: #DBEAFE;
    --badge-text: #1E40AF;
}

[data-theme="dark"] {
    --bg-main: #0F172A;
    --bg-alt: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --card-bg: #1E293B;
    --card-border: #334155;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --glass: rgba(30, 41, 59, 0.7);
    --badge-bg: #1D4ED8;
    --badge-text: #EFF6FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    user-select: none;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 600; }
p { margin-bottom: 20px; color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; text-align: center; }

.btn-icon {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--card-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Responsive Utility */
@media (max-width: 968px) {
    .btn { padding: 10px 20px; font-size: 0.9rem; }
}

/* Mobile Toggle Style */
.mobile-only { display: none; }

@media (max-width: 968px) {
    .mobile-only { display: flex; }
    
    .nav-links {
        opacity: 0;
        visibility: hidden;
        display: flex; /* Ensure it's active but hidden */
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 3005;
        gap: 40px;
        transform: translateX(30px);
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        display: flex !important;
        z-index: 3005;
        background: var(--bg-main) !important;
        pointer-events: all; /* Ensure links are clickable */
    }

    .nav-links li {
        width: 100%;
        max-width: 250px; /* Contain the CTA button width */
        text-align: center;
    }

    .mobile-cta-item {
        margin: 10px 0;
        display: block;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 10px;
    }

    /* Menu Overlay Backdrop */
    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 2500;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Prevent interaction with footer/content when menu is open */
    body.menu-open main,
    body.menu-open footer {
        pointer-events: none;
    }
}

/* Hero */
.hero {
    padding: 160px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-image .image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.hero-image:hover img { transform: scale(1.05); }

/* Problems Section */
.problems {
    padding: 100px 0;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.problem-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: box-shadow 0.3s;
}

.problem-card:hover { box-shadow: var(--shadow); }

.problem-card i {
    color: var(--primary);
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
}

/* Features */
.features { padding: 100px 0; }
.badge-alt { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; display: block; margin-bottom: 10px; }

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    transition: background 0.3s;
}

.feature-item:hover { background: var(--bg-alt); }

.feature-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Demo */
.demo { padding: 100px 0; background: var(--bg-alt); }
.demo-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.demo-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.demo-card img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    background: var(--bg-main);
    padding: 10px;
    border: 1px solid var(--card-border);
}

/* Security */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    padding: 60px;
    border-radius: 30px;
    margin: 80px auto;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.security-image img { width: 100%; }

.security-list {
    list-style: none;
    margin-top: 30px;
}

.security-list li {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.security-list i { color: #10B981; margin-top: 4px; }

/* Pricing */
.pricing { padding: 100px 0; }
.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.price-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.price { font-size: 4rem; font-weight: 700; margin: 10px 0 30px; }
.currency { font-size: 2rem; vertical-align: top; margin-right: 5px; }

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.pricing-features i { color: #10B981; }

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

/* Support */
.support { padding: 80px 0; background: var(--bg-alt); }
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tags span {
    padding: 8px 16px;
    background: var(--bg-main);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.support-badges {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.support-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* Contact */
.contact { padding: 100px 0; }
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--text-main);
    color: var(--bg-main);
    border-radius: 30px;
    overflow: hidden;
}

/* Advanced Features Styles */
.advanced { padding: 100px 0; background: var(--bg-alt); }
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.advanced-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advanced-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.advanced-icon {
    width: 60px;
    height: 60px;
    background: var(--badge-bg);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.advanced-visual {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    background: #0F172A;
    color: white;
    padding: 80px;
    border-radius: 30px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.advanced-visual .visual-content h2 { color: white; margin-bottom: 20px; }
.advanced-visual .visual-content p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

.visual-features { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.v-feature { display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 1.1rem; }
.v-feature i { color: var(--primary); }

.visual-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: var(--bg-main);
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 968px) {
    .advanced-visual { grid-template-columns: 1fr; padding: 40px; text-align: center; }
    .v-feature { justify-content: center; }
}

.contact-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
.contact-info p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }
.contact-info h2 { color: white; font-size: 3rem; margin-bottom: 30px; }

.contact-methods { margin-top: 40px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    text-decoration: none;
    color: white;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}
.contact-item i { color: var(--primary); width: 32px; height: 32px; }
.contact-item span { display: block; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; color: var(--primary); }
.contact-item p { margin: 0; font-size: 1.2rem; font-weight: 600; color: white; }

.contact-cta-visual { padding: 60px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); position: relative; }
.cta-box {
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    text-align: center;
    max-width: 350px;
    box-shadow: var(--shadow);
}
.cta-box h3 { margin-bottom: 15px; color: var(--text-main) !important; }
.cta-box p { margin-bottom: 30px; color: var(--text-muted) !important; }

/* Footer */
footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--card-border); }

/* Responsive */
@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    .hero-grid, .features-list, .demo-tabs, .security-grid, .support-grid, .contact-card {
        grid-template-columns: 1fr;
    }
    .hero-image { order: -1; }
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero-btns { justify-content: center; display: flex; gap: 10px; }
    
    .mobile-toggle { 
        display: block; 
        z-index: 3100;
        color: var(--text-main);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 3005;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 15px;
        display: block;
        color: var(--text-main);
    }
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2500;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}
