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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Default for desktop: logo left, CTA right */
    color: white;
    position: relative; 
    min-height: 40px; /* Prevents layout shift when content swaps */
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.logo img {
    height: 40px;
    width: auto;
}

/* --- REVISED STICKY HEADER CTA LOGIC --- */
/* On desktop, make the button visible by default on non-homepages */
.header-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
    opacity: 1; /* Visible by default now */
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* On the HOMEPAGE ONLY, hide it by default */
body.is-homepage .header-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* On the HOMEPAGE ONLY, show it when scrolled */
body.is-homepage header.scrolled-past-hero .header-cta {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* --- END REVISED LOGIC --- */


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 120px 0 20px;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #666;
}

.form-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.cta-button {
    width: 100%;
    padding: 18px 10px; 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px; 
    white-space: nowrap; 
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.cta-button:disabled {
    cursor: not-allowed;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    opacity: 0.8;
}

/* Testimonial Section */
.testimonial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    border: 3px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-company {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    background: #2c3e50;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    color: white;
}

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #5a6fd8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon::after {
    content: '✓';
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

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

.section-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.3;
}

.section-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Problem-Solution Section Styling */
.problem-solution {
    background: #f8f9fa;
    padding: 100px 0;
}

.full-width-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.full-width-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    line-height: 1.3;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.problem-card,
.approach-card,
.solution-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.problem-card:hover,
.approach-card:hover,
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card h3,
.approach-card h3,
.solution-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.problem-card p,
.approach-card p,
.solution-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    text-align: left;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.section-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

.section-image {
    border-radius: 20px;
    overflow: hidden; /* Clips the image to the rounded corners */
}

.section-image img {
    width: 100%;
    height: auto;
    display: block; /* Removes small space below inline images */
}

/* Social Proof Section */
.social-proof {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.social-proof h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 280px; 
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.benefit-card p {
    color: #666;
    flex-grow: 1; 
    margin-bottom: 1.5rem; 
}

/* Process Section */
.process {
    padding: 80px 0;
}

.process h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #5a6fd8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.process-step p {
    color: #666;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: #666;
    display: none;
}

/* Final CTA Section (OLD - Kept for reference, not used in body) */
.final-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* NEW FINAL CTA SECTION STYLES */
.final-cta-new {
    background: #f8f9fa;
}

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

.final-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.3;
}

.final-cta-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.value-props-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.value-props-list li {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.final-cta-content .section-button {
    margin-bottom: 1rem;
}

.final-cta-content .reassurance-text {
    font-size: 0.85rem;
    color: #666;
    opacity: 0.9;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-style: italic;
}

.final-cta-image-placeholder {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Footer */
footer {
    background: #1a252f;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* --- MOBILE HEADER LOGIC --- */
    body.is-homepage header {
        display: none;
    }

    /* On other pages, center the logo and hide the CTA */
    body:not(.is-homepage) .header-content {
        justify-content: center;
    }

    body:not(.is-homepage) .header-cta {
        display: none; 
    }
    /* --- END MOBILE HEADER LOGIC --- */


    .hero {
        padding-top: 120px;
    }

    body.is-homepage .hero {
        padding-top: 60px; /* Adjust padding since header is gone */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        background: none; /* Remove desktop gradient from the parent H1 */
        -webkit-text-fill-color: white; /* Restore color to non-spanned text */
        color: white;
    }

    .hero-text h1 .gradient-text {
        /* Apply new gradient ONLY to the span inside the H1 */
        background: linear-gradient(135deg, #667eea 0%, #c432d8 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .form-container {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .full-width-content h2 {
        font-size: 2.2rem;
    }

    .stats-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-content h2 {
        font-size: 2rem;
    }
    
    .content-section .section-content {
        text-align: center;
    }

    .section-grid .section-image {
        order: -1; /* Make the image appear first */
    }
    
    .final-cta-new .final-cta-content {
        text-align: center;
    }

    .final-cta-new .value-props-list {
        text-align: left;
        display: inline-block;
    }

    .container {
        padding: 0 15px;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 15px;
    }

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

    .final-cta-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta-image-placeholder,
    .final-cta-new .section-image {
        grid-row: 1;
        min-height: 250px;
    }

    .final-cta-content h2 {
        font-size: 2rem;
    }
    
    .hero-benefits-list {
        display: inline-block;
        text-align: left; 
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.visible {
    opacity: 1;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Button Loader Animation */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Benefits List */
.hero-benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 2.5rem;
    color: white;
    opacity: 0.9;
}

.hero-benefits-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.hero-benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}