/* Mobile Optimization Overrides */
@media (max-width: 768px) {
    :root {
        --gap-section: 4rem;
        /* Reduced section gap for mobile */
    }

    /* General Layout Fixes */
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        width: 100%;
    }

    section {
        padding: var(--gap-section) 1.5rem;
        /* Reduce side padding */
        min-height: auto;
        /* Allow sections to shrink if content is small */
    }

    /* Typography Adjustments */
    h1 {
        font-size: clamp(3rem, 12vw, 5rem);
        /* Adjust hero title size */
    }

    /* Responsive Glitch for Mobile - DISABLED for legibility */
    .glitch::before,
    .glitch::after {
        display: none !important;
        content: none !important;
    }


    h2 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .body-text,
    .card p,
    .card li {
        font-size: 1rem;
        /* Slightly smaller body text for better reading on small screens */
    }

    /* Hero Section */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-logo {
        width: 60%;
        /* Smaller logo on mobile */
        max-width: 200px;
    }

    .shape {
        opacity: 0.1;
        /* Fade background shapes more on mobile to reduce distraction */
    }

    /* Social Proof Grid */
    .stat-grid {
        grid-template-columns: 1fr;
        /* Stack statistics vertically */
        gap: 2rem;
        padding: 2rem 0;
    }

    .stat-item h2 {
        font-size: 3rem;
    }

    .stat-item span {
        font-size: 2rem;
    }

    /* Methodology Section */
    .content-wrapper {
        flex-direction: column-reverse;
        /* Matrix style layout: Image top/bottom based on design, here keeping reverse as mostly standard for stacking */
        gap: 2rem;
    }

    .text-col {
        border-left: 2px solid var(--color-accent-blue);
        padding-left: 1rem;
    }

    /* Ecosystem Cards */
    .card-grid {
        grid-template-columns: 1fr;
        /* 1 column for cards */
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.8rem;
    }

    /* Services List */
    .service-item {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem 0;
    }

    .service-item .num {
        font-size: 2rem;
        width: 50px;
        margin-right: 1rem;
    }

    .service-item .text {
        font-size: 1.2rem;
    }

    /* Trust / Testimonial */
    .testimonial blockquote {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .testimonial cite {
        font-size: 1rem;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
        /* Stack form inputs */
        gap: 1rem;
    }

    .empire-form button {
        font-size: 1.5rem;
        padding: 1rem;
    }

    /* Footer */
    .simple-footer {
        padding: 1.5rem;
        font-size: 0.8rem;
    }

    /* Modal */
    .modal-overlay {
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 0;
    }

    .modal-content {
        padding: 1.5rem;
        /* Reduced padding from 3rem */
        width: 95%;
        /* Use more width */
        margin: 2rem auto;
        transform: none !important;
        position: relative;
    }

    .modal-close {
        top: 0.5rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}