:root {
    /* Brand Colors - Professional & Trustworthy */
    --primary-color: #312E81; /* Darker Indigo for authority */
    --primary-light: #4338ca;
    --accent-color: #F97316; /* Vibrant Orange for high-contrast actions */
    --accent-hover: #ea580c;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --border: #e2e8f0;

    /* Hero Text Colors (MUST be light for dark video overlay) */
    --hero-text: var(--white);
    --hero-accent: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2); /* Light background for contrast */
    color: var(--hero-accent);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color); /* Use accent for primary action */
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--hero-text); /* Light text for secondary on dark video */
    border: 2px solid var(--hero-text);
}

.btn-secondary:hover {
    border-color: var(--hero-accent);
    background-color: rgba(255, 255, 255, 0.1);
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Ensure H1 in Hero uses light text */
.hero h1 {
    color: var(--hero-text);
}

/* Header (Navbar) remains the same */
header {
    padding: 20px 0;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary-color); text-decoration: none; letter-spacing: -0.03em; }
.nav-links { display: none; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; margin-left: 30px; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-color); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.login-link { font-weight: 600; text-decoration: none; color: var(--text-dark); font-size: 0.95rem; }
@media (min-width: 768px) { .nav-links { display: block; } }

/* --- Hero Section with Video Background --- */
.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback color */
}

/* Video Styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Optional: blur or desaturate video for background effect */
    filter: brightness(0.7); /* Slightly dim video */
}

/* Dark Overlay Gradient */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Dark gradient from bottom to top, making the content pop */
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.6) 0%, /* Darker at the top */
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100% /* Darkest at the bottom for contrast */
    );
}

/* Content Positioning */
.hero-content {
    position: relative; /* Brings content above the video and overlay */
    z-index: 3; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--hero-text);
    max-width: 650px;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* The rest of the CSS remains the same... */

@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
}

/* Comparison Section */
.comparison { padding: 80px 0; background-color: var(--white); }
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 40px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.comparison-table th, .comparison-table td { padding: 20px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background-color: #f8fafc; font-weight: 700; color: var(--text-dark); }
.brand-col { width: 40%; font-weight: 700; color: var(--primary-color); }
.comp-header { font-size: 1.1rem; }
.check { color: var(--success); font-weight: bold; }
.cross { color: #ef4444; font-weight: bold; }

/* Features Grid */
.features { padding: 80px 0; background: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
.feature-card { background: var(--white); padding: 30px; border-radius: 8px; border: 1px solid var(--border); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* Pricing Section */
.pricing-section { padding: 80px 0; background-color: var(--primary-color); color: var(--white); text-align: center; }
.pricing-section h2 { color: var(--white); margin-bottom: 15px; }
.pricing-section p { opacity: 0.9; max-width: 600px; margin: 0 auto 50px auto; }
.pricing-grid { 
    display: grid; 
    grid-template-columns: 1fr; /* <-- ADDED: Forces stacking on small screens */
    gap: 30px; 
    max-width: 900px; 
    margin: 0 auto; 
}
.price-card { background: var(--white); color: var(--text-dark); padding: 40px; border-radius: 12px; text-align: left; position: relative; }
.price-card.featured { border: 4px solid var(--accent-color); }
.card-tag { background: var(--accent-color); color: white; padding: 5px 15px; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); border-radius: 20px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.price-big { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); margin: 10px 0; }
.price-sub { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.price-list { list-style: none; margin: 25px 0; border-top: 1px solid var(--border); padding-top: 25px; }
.price-list li { margin-bottom: 12px; display: flex; align-items: start; gap: 10px; font-size: 0.95rem; }
.price-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--success); }
.free-banner { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 20px; border-radius: 8px; margin-top: 50px; display: inline-block; max-width: 700px; }
.free-banner strong { color: var(--accent-color); }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

/* Footer */
footer { background-color: #0f172a; color: #94a3b8; padding: 60px 0 30px 0; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ========================================================================= */
/* --- MOBILE NAVIGATION STYLES (Burger Menu) --- */
/* ========================================================================= */

/* 1. Hide desktop elements on small screens */
.desktop-nav, .desktop-actions {
    display: none;
}

/* 2. Style the Burger Button (menu-toggle) */
.menu-toggle {
    display: block; /* Always visible on mobile */
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 110; /* Above everything else */
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 3. Style the Off-Canvas Mobile Menu */
.mobile-nav-container {
    /* Initially off-screen, full height */
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 80%; /* Takes up 80% of the screen width */
    max-width: 300px;
    height: 100%;
    background-color: var(--primary-color); 
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: right 0.3s ease-in-out;
    padding: 80px 30px 30px; /* Padding for the top (to clear the header) */
    overflow-y: auto;
}

/* State: Menu is Open (when JS toggles the 'is-open' class) */
.mobile-nav-container.is-open {
    right: 0;
}

/* --- Mobile Menu Icon Color Change and Animation --- */

/* Change the color of the bars when the menu is open */
.menu-toggle.is-open .icon-bar {
    background-color: var(--white); /* Change to white for contrast */
}

/* Optional: Morph the burger icon into an 'X' for a cleaner close button */
.menu-toggle.is-open .icon-bar:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.menu-toggle.is-open .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Rotate top bar */
}

.menu-toggle.is-open .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Rotate bottom bar */
}

/* 4. Style the Links inside the Mobile Menu */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-links a:last-of-type {
    border-bottom: none;
}

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

/* Style for the Log in link inside mobile menu */
.mobile-login-link {
    font-weight: 600 !important;
    padding-top: 10px !important;
}

/* Full-width primary button for Contact Sales */
.btn-primary-full {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 15px !important;
    font-size: 1.1rem !important;
}


/* 5. Desktop Overrides (Min-width 768px - should match your existing media query) */
@media (min-width: 768px) {
    /* Show desktop elements */
    .desktop-nav, .desktop-actions {
        display: flex;
        align-items: center;
    }
    .nav-links {
        display: block; /* Already defined, but keeping clear */
    }
    
    /* Hide mobile elements */
    .menu-toggle {
        display: none;
    }
    .mobile-nav-container {
        display: none;
    }
}