/* Shared mobile layout adjustments. Page-specific styles remain unchanged. */
@media (max-width: 1024px) {
    .container {
        width: 100%;
        max-width: 100%;
    }

    .glass-nav {
        padding: 0.75rem 4%;
    }

    .glass-nav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 4% 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .glass-nav .nav-links a {
        display: block;
        padding: 0.8rem 0;
        color: var(--text-body);
    }

    .glass-nav .nav-buttons {
        display: none;
    }

    .nav--home .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 5% 1rem;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    }

    .nav--home .nav-links a {
        display: block;
        padding: 0.75rem 0;
    }

    .nav--home .nav-actions {
        display: none;
    }

    .hero-content-wrapper,
    .hero-premium .container,
    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-content-wrapper {
        padding-left: 4%;
        padding-right: 4%;
    }

    .build-grid,
    .custom-grid,
    .benefits-grid,
    .related-grid,
    .services-grid,
    .tech-grid,
    .features-grid,
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparison-grid,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .table-wrapper,
    .table-responsive,
    .comparison-table {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        min-height: 60px;
    }

    .logo-text,
    .wordmark {
        font-size: 1.45rem;
    }

    .hero-premium {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    .hero-content-wrapper {
        align-items: flex-start;
    }

    .hero-text h1,
    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        overflow-wrap: anywhere;
    }

    .hero-text p,
    .hero-content > p {
        font-size: 1rem;
    }

    .hero-buttons,
    .hero-actions,
    .closing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn,
    .hero-actions .btn,
    .closing-actions .btn {
        width: 100%;
    }

    .build-grid,
    .custom-grid,
    .benefits-grid,
    .related-grid,
    .services-grid,
    .tech-grid,
    .features-grid,
    .cards-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .section,
    section {
        scroll-margin-top: 72px;
    }

    .section-heading,
    .section-header {
        max-width: 100%;
    }

    .footer-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    form,
    .form-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    input,
    select,
    textarea {
        max-width: 100%;
        font-size: 16px;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    .btn,
    button {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .glass-nav .nav-links {
        padding-left: 5%;
        padding-right: 5%;
    }

    .container {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content-wrapper {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-text h1,
    .hero h1 {
        font-size: 2rem;
    }

    .btn,
    .btn-primary,
    .btn-outline-light,
    .btn-back,
    .btn-back-hero {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}
