/* Mobile Responsive Fixes - 2026-02-12 */

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

img,
video,
iframe,
canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 140px !important;
        /* Fix nav overlap */
        align-items: flex-start;
        /* Align closer to top on mobile */
    }

    .features-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        /* Reduced from 2.25rem */
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .live-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .live-code {
        font-size: 2rem;
        /* Reduced from 3rem */
        letter-spacing: 4px;
        /* Reduced from 12px */
        word-break: break-all;
        padding: 0.5rem 0;
    }

    .live-code-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .phone-mockup {
        width: 200px;
        height: 420px;
        border-width: 8px;
        border-radius: 24px;
        margin: 0 auto;
    }

    .story-mode {
        border-radius: 20px;
        margin: 1rem 0;
        padding: 1.5rem;
    }

    .story-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .story-feature-item i {
        margin-bottom: 0.25rem;
    }

    .screenshot-item {
        flex: 0 0 240px;
        /* Make slightly wider for scrolling */
        border-width: 4px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}