@media (max-width: 900px) {
    .hero-layout,
    .section-intro .split-layout,
    .references-panel,
    .app-layout,
    .cta-layout,
    .contact-layout,
    .portal-layout,
    .reference-map-toolbar,
    .reference-map-body {
        grid-template-columns: 1fr;
    }

    .reference-map-canvas {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .reference-map-sidebar,
    .reference-map-canvas {
        min-height: 420px;
    }

    .hero-visual {
        max-width: 620px;
    }

    .feature-grid,
    .app-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-showcase {
        min-height: 360px;
    }

    .app-screenshot {
        width: min(100%, 480px);
    }
}

@media (max-width: 768px) {
    .header-content,
    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-logo {
        width: min(220px, 62vw);
    }

    .site-nav,
    .footer-links,
    .hero-actions {
        width: 100%;
    }

    .site-nav a,
    .footer-links a {
        min-height: 2.35rem;
        display: inline-flex;
        align-items: center;
    }

    .hero,
    .page-hero,
    .section {
        padding-block: 3rem;
    }

    .feature-grid,
    .app-highlights {
        grid-template-columns: 1fr;
    }

    .feature {
        min-height: auto;
    }

    .references-panel,
    .app-showcase {
        padding: 1.25rem;
    }

    .reference-map-toolbar,
    .reference-map-filters {
        padding: 1rem;
    }

    .reference-zoom-controls {
        top: 0.75rem;
        right: 0.75rem;
    }

    .reference-map-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .reference-filter {
        flex: 0 0 auto;
    }

    .reference-port-list {
        max-height: 360px;
    }

    .cta-action {
        justify-content: flex-start;
    }

    .agent-actions .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 2.45rem;
    }

    .button {
        width: 100%;
    }

    .site-logo {
        width: min(205px, 72vw);
    }

    .cta-action {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-logo {
        width: 3.75rem;
        height: 3.75rem;
    }

    .site-nav,
    .footer-links {
        gap: 0.45rem;
    }

    .app-screenshot {
        width: 100%;
    }

    .reference-map-canvas,
    .reference-map-sidebar {
        min-height: 360px;
    }

    .reference-zoom-button {
        width: 1.9rem;
        height: 1.9rem;
    }

    .reference-zoom-value {
        min-width: 2.65rem;
        font-size: 0.8rem;
    }

    .reference-port-item {
        grid-template-columns: 1fr;
    }

    .reference-port-link {
        text-align: center;
    }
}
