/* =============================================
   RESPONSIVE STYLES
   All media queries consolidated
   ============================================= */

/* ==================== 1024px ==================== */
@media (max-width: 1024px) {

    /* -- V1 Dark Theme -- */
    body.theme-dark .solution-grid,
    body.theme-dark .software-grid,
    body.theme-dark .edge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.theme-dark .team-grid,
    body.theme-dark .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.theme-dark .datacenter-content,
    body.theme-dark .market-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    body.theme-dark .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    body.theme-dark .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.theme-dark .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* -- V4 Light Theme -- */
    body.theme-light .tour-row,
    body.theme-light .tour-row:nth-of-type(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.theme-light .tour-row:nth-of-type(even) .tour-image {
        order: 0;
    }

    body.theme-light .tour-text {
        padding: 2rem 0;
    }

    body.theme-light .proof-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 4rem 3rem;
    }

    /* -- V5 Cinematic Theme -- */
    body.theme-cinematic .tour-row {
        flex-direction: column;
        min-height: auto;
        padding: 0 4%;
        margin-bottom: 5rem;
    }

    body.theme-cinematic .tour-image-wrap {
        position: relative;
        width: 100%;
    }

    body.theme-cinematic .tour-row:nth-of-type(odd) .tour-card,
    body.theme-cinematic .tour-row:nth-of-type(even) .tour-card {
        margin: -2rem auto 0;
        max-width: 90%;
    }

    body.theme-cinematic .tour-connector {
        display: none;
    }

    body.theme-cinematic .proof-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    body.theme-cinematic .cta-split {
        grid-template-columns: 1fr;
    }

    body.theme-cinematic .cta-image {
        max-height: 50vh;
    }

    body.theme-cinematic .cta-content {
        padding: 4rem 6%;
    }

    body.theme-cinematic .dc-showcase {
        height: 60vh;
    }

    body.theme-cinematic .diff-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* -- About Page -- */
    body.page-about .about-facility-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 768px ==================== */
@media (max-width: 768px) {

    /* -- V1 Dark Theme -- */
    body.theme-dark .solution-grid,
    body.theme-dark .software-grid,
    body.theme-dark .edge-grid,
    body.theme-dark .model-grid {
        grid-template-columns: 1fr;
    }

    body.theme-dark .team-grid,
    body.theme-dark .roadmap-grid {
        grid-template-columns: 1fr;
    }

    body.theme-dark .stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    body.theme-dark .gallery-grid {
        grid-template-columns: 1fr;
    }

    body.theme-dark .hero-ctas {
        flex-direction: column;
    }

    body.theme-dark .cta-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* -- V4 Light Theme -- */
    body.theme-light .hero h1 {
        font-size: 2.2rem;
    }

    body.theme-light .hero-content {
        bottom: 8%;
        left: 5%;
        right: 5%;
        max-width: none;
    }

    body.theme-light .hero-subtitle {
        font-size: 1rem;
    }

    body.theme-light .hero-buttons {
        flex-direction: column;
    }

    body.theme-light .hero-buttons a {
        justify-content: center;
    }

    body.theme-light .solutions-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Inset cards: tighter on mobile */
    body.theme-light .video-inset {
        padding: 1.5rem;
        border-radius: 16px;
    }

    body.theme-light .proof-inner {
        padding: 3rem 2rem;
        border-radius: 16px;
        gap: 3rem;
    }

    /* Reduce hero overlap on mobile */
    body.theme-light .facility-tour {
        margin-top: -3rem;
    }

    body.theme-light .tour-intro {
        border-radius: 12px;
        padding: 2rem 5%;
    }

    body.theme-light .proof-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    body.theme-light .proof-stat {
        flex: 1 1 45%;
    }

    body.theme-light .proof-people {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* -- V5 Cinematic Theme -- */
    body.theme-cinematic .hero-word {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    body.theme-cinematic .hero-content {
        left: 5%;
        right: 5%;
    }

    body.theme-cinematic .hero-buttons {
        flex-direction: column;
    }

    body.theme-cinematic .solution-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    body.theme-cinematic .solution-ghost {
        display: none;
    }

    body.theme-cinematic .proof-stat .number {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    body.theme-cinematic .proof-grid {
        gap: 0.5rem;
    }

    body.theme-cinematic::after {
        display: none;
    }

    /* -- Shared Footer -- */
    .footer-dark .footer-content,
    .footer-light .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-dark .footer-left {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-light .footer-center {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    body.theme-cinematic .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    body.theme-cinematic .footer-center {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* -- About Page -- */
    body.page-about .about-team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 480px ==================== */
@media (max-width: 480px) {

    /* V4 Light Theme: minimal inset frame */
    body.theme-light .video-inset {
        padding: 0.75rem;
        border-radius: 12px;
    }

    body.theme-light .proof {
        padding-left: 2%;
        padding-right: 2%;
    }

    body.theme-light .proof-inner {
        padding: 2.5rem 1.5rem;
        border-radius: 12px;
    }

    body.theme-cinematic .hero-word {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    body.theme-cinematic .tour-card {
        padding: 2rem;
    }

    body.theme-cinematic .cta-inner {
        padding: 0 1rem;
    }
}
