/* --- Root Color Palette (from your logo) --- */
:root {
    --dark-bg: #0a192f;  /* A very dark, professional navy blue */
    --primary-blue: #3a7dca; /* Logo's medium blue */
    --darker-blue: #002a5c; /* Logo's text blue */
    --accent-green: #83c341; /* Logo's AI/wrench green */
    --text-light: #f0f0f0;   /* Off-white for body text */
    --text-main: #ffffff;   /* Pure white for headlines */
}

/* --- Basic Reset & Body Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Page Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation Bar --- */
header {
    padding: 20px 0;
    /* --- STICKY HEADER --- */
    position: sticky; /* Makes the header stick */
    top: 0;           /* Sticks it to the top of the viewport */
    z-index: 1000;    /* Ensures it stays on top of other content */
    width: 100%;      /* Ensures it spans the full width */
    background-color: var(--dark-bg); /* Gives it a solid background when scrolling */
    /* Add a subtle bottom border when sticky */
    border-bottom: 1px solid rgba(58, 125, 202, 0.1); 
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Added for better mobile support */
    gap: 20px; /* Added for spacing on wrap */
}

nav .logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Added for better mobile support */
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-green);
}

/* --- Call to Action Button (Base Style) --- */
.btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background-color: var(--accent-green);
    color: var(--dark-bg);
}
.cta-primary:hover {
    background-color: var(--text-main);
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-blue);
}
.cta-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 4.5rem; /* 72px */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero .subheadline {
    font-size: 1.25rem; /* 20px */
    color: var(--text-light);
    max-width: 750px; /* Keeps the text from getting too wide */
    margin-bottom: 40px;
    opacity: 0.9;
    margin-left: auto; /* <-- ADDED THIS */
    margin-right: auto; /* <-- AND THIS */
}

.hero .button-group {
    display: flex;
    gap: 20px;
    justify-content: center; /* <-- ADDED: This centers the buttons */
}

/* --- Logo Slider Placeholder --- */
.logo-slider {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(58, 125, 202, 0.2);
    border-bottom: 1px solid rgba(58, 125, 202, 0.2);
    /* Add overflow-x-hidden to hide the scrolling logos */
    overflow-x: hidden;
    /* Add a subtle inner shadow */
    background: linear-gradient(to right, var(--dark-bg) 0%, rgba(10, 25, 47, 0.5) 10%, rgba(10, 25, 47, 0.5) 90%, var(--dark-bg) 100%);
}

/* Remove the old p rule and add the new slider rules */
.logo-slider-track {
    display: flex;
    width: fit-content; /* Make the track as wide as its content */
    /* Add the animation */
    animation: scroll 30s linear infinite;
}

.logo-slider-track img {
    height: 40px; /* Smaller height for partner logos */
    width: auto;
    margin: 0 40px; /* Space between logos */
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logo-slider-track img:hover {
    opacity: 1.0; /* Highlight on hover */
}

/* --- The Scrolling Animation --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* We move it 50% because we duplicated the logos */
        transform: translateX(-50%);
    }
}


/* --- Problem Section --- */
#problem {
    background-color: var(--darker-blue); /* Different BG to stand out */
    padding: 80px 0;
    border-top: 1px solid rgba(58, 125, 202, 0.2);
    border-bottom: 1px solid rgba(58, 125, 202, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.8;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 30px;
}

.problem-card {
    background-color: var(--dark-bg); /* Darker card background */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--primary-blue);
    text-align: left;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(58, 125, 202, 0.1);
}

.problem-card h3 {
    font-size: 1.25rem;
    color: var(--accent-green); /* Use accent color for the pain point */
    margin-bottom: 15px;
}

.problem-card p {
    font-size: 1rem;
    color: var(--text-light);
}

/* --- Solution Section --- */
#solution {
    padding: 80px 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-column grid */
    gap: 30px;
    text-align: left;
}

.solution-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 10px;
    /* Use a subtle border this time */
    border: 1px solid rgba(58, 125, 202, 0.3);
    display: flex;
    flex-direction: column;
}

.solution-card .solution-icon {
    /* Style for the SVG icon */
    width: 50px;
    height: 50px;
    color: var(--accent-green); /* Use accent color for the icon */
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.solution-card p {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.solution-card p strong {
    color: var(--text-main);
    font-weight: 700;
}

/* --- Features Section --- */
#features {
    background-color: var(--darker-blue); /* Match the problem section BG */
    padding: 80px 0;
    border-top: 1px solid rgba(58, 125, 202, 0.2);
    border-bottom: 1px solid rgba(58, 125, 202, 0.2);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px; /* Row and column gap */
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start; /* Aligns icon with first line of text */
    gap: 15px;
}

.features-list li .feature-icon {
    /* Checkmark icon */
    width: 24px;
    height: 24px;
    color: var(--accent-green);
    flex-shrink: 0; /* Prevents icon from shrinking */
}


/* --- CTA Section --- */
#demo {
    padding: 80px 40px; /* More padding */
    /* Create a striking gradient background */
    background: linear-gradient(45deg, var(--darker-blue) 0%, var(--primary-blue) 100%);
    border-radius: 15px; /* Give the whole section rounded corners */
    margin: 80px 0; /* Add space above and below */
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-content .btn {
    /* Make the button bigger for the final CTA */
    padding: 15px 40px;
    font-size: 1.15rem;
    transform: scale(1.0);
    transition: transform 0.3s ease;
}

.cta-content .btn:hover {
    transform: scale(1.05);
}

.cta-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Removed .qr-placeholder and added .cta-logo */
.cta-visuals .cta-logo {
    height: 50px; /* Match the header logo height */
    width: auto;
}

/* Replaced .website-url with .cta-slogan and adjusted style */
.cta-visuals .cta-slogan {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
    font-style: italic;
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(58, 125, 202, 0.2);
}

footer .footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

footer .footer-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}
footer .footer-links a:hover {
    color: var(--accent-green);
}

footer .footer-audience {
    font-size: 0.9rem;
    color: var(--primary-blue);
    opacity: 0.7;
    margin-bottom: 20px;
    padding: 0 20px; /* Add padding for mobile */
}

footer .footer-copyright {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.6;
}


/* --- Placeholder for Next Section --- */
.content-section {
    padding: 80px 0;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav {
        justify-content: center; /* Center nav items on mobile */
    }

    .hero h1 {
        font-size: 2.5rem; /* Smaller headline for mobile */
    }

    .hero .subheadline {
        font-size: 1rem;
    }

    .hero .button-group {
        flex-direction: column; /* Stack buttons on mobile */
        align-items: center; /* <-- ADDED: This centers them when stacked */
    }

    .problem-grid {
        grid-template-columns: 1fr; /* Stack problem cards on mobile */
    }

    .solution-grid {
        grid-template-columns: 1fr; /* Stack solution cards on mobile */
    }

    .features-list {
        grid-template-columns: 1fr; /* Stack features list on mobile */
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-visuals {
        flex-direction: column;
        gap: 20px;
    }

    footer .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* === MODAL AND FORM STYLES (THESE WERE MISSING) === */

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* On top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); /* Black with opacity */
    
    /* Flexbox to center the modal content */
    justify-content: center;
    align-items: center;

    /* Fade-in animation */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--dark-bg);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Slide-in animation */
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.modal-close-button {
    color: var(--text-light);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: var(--accent-green);
}

.modal-content h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* --- Form Group Styling --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

/* Style all text-based inputs together */
.modal-content form input[type="text"],
.modal-content form input[type="email"],
.modal-content form input[type="tel"], /* ADDED this */
.modal-content form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--primary-blue);
    background-color: var(--darker-blue);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.modal-content form input[type="text"]:focus,
.modal-content form input[type="email"]:focus,
.modal-content form input[type="tel"]:focus, /* ADDED this */
.modal-content form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(131, 195, 65, 0.3);
}

.modal-content form textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 80px;
}

.form-submit-button {
    width: 100%; /* Make submit button full-width */
    font-size: 1.1rem;
    padding: 15px;
}

/* Status message for after submission */
.form-status-message {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    display: none; /* Hidden by default */
}

.form-status-message.success {
    background-color: rgba(131, 195, 65, 0.2);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.form-status-message.error {
    background-color: rgba(255, 100, 100, 0.2);
    border: 1px solid red;
    color: #ffc2c2;
}

/* Make modal responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
}

