:root {
    --primary: #2563EB; 
    --primary-dark: #1E40AF;
    --secondary: #10B981;
    --dark: #1F2937;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --gray: #6B7280;
    --text-color: #374151; /* Darker text for sophistication */
    --heading-color: #111827;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* General Typography */
h1, h2, h3, h4 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is always on top */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-group {
    display: flex;
    flex-direction: column; /* Stack logo text and powered by */
    align-items: flex-start; /* Align text to the left */
}

.logo-text {
    font-size: 1.8rem; /* Slightly larger */
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.8px; /* Tighter letter spacing */
    white-space: nowrap;
}

.logo-main {
    color: var(--heading-color); /* Darker for sophistication */
}

.logo-au {
    color: var(--primary);
}

.powered-by-text-simple {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.boost-logo {
    height: 18px; /* Adjust as needed */
    width: auto;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 1.5rem; /* Space out nav items */
    transition: color 0.3s ease;
}

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

.nav-demo {
    color: var(--primary); /* Highlight the demo link */
}

.nav-cta {
    background-color: var(--primary);
    color: var(--white) !important; /* Override text-color */
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    margin-left: 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px; /* Adjust as needed */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #0c121e 100%); /* Darker gradient */
    color: var(--white);
    padding: 8rem 5%; /* More vertical padding */
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack content then image */
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.small-hero {
    padding: 6rem 5% 4rem; /* Smaller hero for sub-pages */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto 3rem; /* More space below content */
    position: relative; /* Ensure text is above image */
    z-index: 10;
}

.hero h1 {
    font-size: 3.8rem; /* Larger, more impactful */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.35rem; /* More substantial subtitle */
    color: #CBD5E1; /* Lighter gray for contrast */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.5rem; /* Larger buttons */
    border-radius: 10px; /* More rounded */
    text-decoration: none;
    font-weight: 700; /* Bolder */
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.primary-cta:hover {
    background-color: #059669;
    transform: translateY(-3px);
}

.secondary-cta {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.secondary-cta:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.hero-image-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%; /* Adjust as needed */
    opacity: 0.2; /* Subtle background image */
    z-index: 5;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background-color: var(--light);
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem; /* More space below header */
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    color: var(--heading-color);
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Larger cards */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px; /* More rounded */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: left; /* Text alignment within cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.5rem; /* Larger icons */
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Advanced Features Section */
.advanced-features {
    padding: 6rem 5%;
    background-color: var(--white);
    text-align: center;
}

.advanced-features .section-header h2 {
    color: var(--primary-dark);
}

.advanced-features .feature-grid .feature-card .feature-icon {
    color: var(--secondary); /* Different icon color for distinction */
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 5%;
    background-color: var(--white);
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hiw-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hiw-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hiw-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hiw-list, .member-steps {
    list-style: none;
    padding-left: 0;
}

.hiw-list li, .member-steps li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.8rem;
}

.hiw-list li::before, .member-steps li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.hiw-list li strong, .member-steps li strong {
    color: var(--heading-color);
}

.hiw-image {
    flex: 1;
    text-align: center;
    max-width: 500px;
}

.rounded-image {
    width: 100%;
    height: auto;
    border-radius: 16px; /* Rounded corners for images */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Use Cases Grid (new section for usecases.html) */
.use-cases-grid {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

.case-study {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.case-study.reverse {
    flex-direction: row-reverse; /* Image on right */
}

.case-study-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't shrink too much */
}

.case-study-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.case-study-content {
    flex: 2;
    text-align: left;
}

.case-study-content h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.case-study-content h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.case-study-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.case-study-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.case-study-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.case-study-content ul li::before {
    content: '✔️'; /* Success checkmark */
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* Pricing Page */
.pricing-plans {
    padding: 6rem 5%;
    background-color: var(--light);
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-plan-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.pricing-plan-card h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.pricing-plan-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 2rem;
}

.pricing-plan-card .price span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray);
}

.pricing-plan-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1; /* Allow list to take up available space */
}

.pricing-plan-card ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-color);
}

.pricing-plan-card ul li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.pricing-plan-card .cta-button {
    margin-top: 1.5rem;
}

.featured-plan {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: translateY(-15px); /* Lift featured plan */
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.featured-plan h2, .featured-plan .price, .featured-plan .price span, .featured-plan ul li, .featured-plan ul li strong {
    color: var(--white);
}

.featured-plan .primary-cta {
    background-color: var(--secondary);
    color: var(--white) !important;
}

.featured-plan .primary-cta:hover {
    background-color: #059669;
}

.call-to-action-bottom {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 5%;
    text-align: center;
}

.call-to-action-bottom h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.call-to-action-bottom p {
    font-size: 1.2rem;
    color: #CBD5E1;
    margin-bottom: 2.5rem;
}

/* Demo Section */
.demo-section {
    padding: 6rem 5%;
    background-color: var(--light); /* Or a very soft blue/gray */
    display: flex;
    justify-content: center;
}

.demo-container {
    max-width: 800px;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.demo-content {
    padding: 3rem;
    text-align: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.demo-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.demo-widget-container {
    /* Style the container that holds the injected widget */
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    background-color: #FAFAFA;
}

/* Signup Form Section */
.signup-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); /* Gradient background */
    color: var(--white);
}

.form-container {
    max-width: 600px; /* Wider form */
    margin: 0 auto;
    background: var(--white);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: var(--text-color); /* Form text is dark */
}

.form-container h3 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--heading-color);
}

.form-container > p.privacy-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1.5rem;
    text-align: center;
}

.modern-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-form .form-group {
    margin-bottom: 0;
    flex: 1; /* Make form groups take equal width */
}

.modern-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--heading-color);
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="tel"],
.modern-form select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-form input:focus,
.modern-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    width: 100%;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 1.1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.submit-button:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: #9CA3AF;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: var(--white);
}

.footer-logo p {
    font-size: 0.9rem;
    color: #CBD5E1;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-boost-logo {
    height: 25px; /* Adjust as needed */
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #374151; /* Subtle separator */
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-image-container {
        width: 80%;
        position: static;
        margin-top: 3rem;
        opacity: 1;
    }
    .hero {
        flex-direction: column;
        padding: 4rem 5%;
    }
    .hero-content {
        margin-bottom: 2rem;
    }

    .how-it-works {
        flex-direction: column;
        text-align: center;
    }

    .hiw-list, .member-steps {
        text-align: left;
    }

    .hiw-image {
        margin-top: 2rem;
    }

    .case-study {
        flex-direction: column; /* Stack image and content on mobile */
        text-align: center;
    }

    .case-study.reverse {
        flex-direction: column; /* Also stack on reverse */
    }

    .case-study-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-container, nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    nav a {
        margin: 0.5rem 0;
    }
    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-button {
        width: 100%;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .hiw-content h2 {
        font-size: 2.2rem;
    }
    .demo-content {
        padding: 1.5rem;
    }
    .modern-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .modern-form .form-group.half-width {
        margin-bottom: 1.5rem;
    }
    .form-container {
        padding: 2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo, .footer-links {
        width: 100%;
        justify-content: center;
    }
    .footer-links p {
        margin-bottom: 0.5rem;
    }
}
/* --- Mobile Navigation Optimizations --- */

/* Hamburger Button */
.hamburger {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Above nav overlay */
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ensure desktop nav behaves normally */
@media (min-width: 769px) {
    .header-container nav {
        display: flex !important;
    }
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-container {
        width: auto;
    }

    /* The Mobile Menu Overlay */
    .header-container nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1050;
        transform: translateY(-100%); /* Start hidden above screen */
        transition: transform 0.4s ease-in-out;
        display: flex; /* Need flex for centering, hide via transform */
    }

    .header-container nav.nav-open {
        transform: translateY(0); /* Slide down to show */
    }

    .header-container nav a {
        margin: 0;
        font-size: 1.5rem;
    }

    .nav-cta {
        margin-top: 1rem;
        width: auto;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 6rem 5%;
    background-color: var(--light);
    text-align: center;
}

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

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Exit Intent Popup */
.exit-intent-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-intent-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.exit-intent-popup.show .popup-content {
    transform: translateY(0);
}

.popup-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 30px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}

.close-button:hover {
    color: var(--primary);
}

.popup-cta {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.popup-cta:hover {
    background-color: #059669;
}

@media (max-width: 600px) {
    .popup-content {
        margin: 20px;
        padding: 30px;
    }
    .popup-content h2 {
        font-size: 1.8rem;
    }
    .popup-content p {
        font-size: 1rem;
    }
}
