/* =======================================================
   TABLET
======================================================= */

@media (max-width: 991px) {
    .container {
        max-width: 92%;
    }

    .site-header {
        top: 10px;
    }

    .navbar {
        width: calc(100% - 20px);
    }

    .navbar-collapse {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .hero-section {
        padding-top: 150px;
    }

    .hero-title {
        max-width: 850px;
    }

    .hero-description {
        max-width: 760px;
    }

    .ecosystem-panel,
    .featured-visual,
    .contact-action-card {
        width: 100%;
        max-width: none;
    }

    .featured-product-layout,
    .philosophy-layout,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .featured-product-layout {
        gap: 70px;
    }

    .philosophy-heading {
        position: static;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}


/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    section {
        scroll-margin-top: 90px;
    }

    .site-header {
        top: 8px;
    }

    .navbar {
        width: calc(100% - 16px);
        padding: 9px 10px;
        border-radius: 15px;
    }

    .brand-symbol {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .brand-text strong {
        font-size: 0.94rem;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 15px;
    }

    .navbar-nav {
        gap: 5px;
    }

    .nav-link {
        width: 100%;
        padding: 11px 12px !important;
    }

    .navbar-action {
        width: 100%;
        margin-top: 8px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 135px;
        padding-bottom: 90px;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 4.5rem);
        line-height: 0.96;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .featured-actions .btn {
        width: 100%;
    }

    .hero-proof {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-top: 45px;
    }

    .proof-line {
        width: 80px;
        height: 1px;
    }

    .ecosystem-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .ecosystem-header {
        flex-direction: column;
    }

    .ecosystem-product {
        grid-template-columns: 42px 1fr auto;
    }

    .section-heading,
    .featured-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .section-heading h2,
    .featured-intro h2,
    .industries-heading h2,
    .why-header h2,
    .philosophy-heading h2,
    .roadmap-heading h2,
    .contact-copy h2 {
        font-size: clamp(2.7rem, 13vw, 4rem);
        line-height: 1;
    }

    .products-section,
    .featured-section,
    .industries-section,
    .why-section,
    .philosophy-section,
    .roadmap-section,
    .contact-section {
        padding-top: 95px;
        padding-bottom: 95px;
    }

    .products-grid,
    .industries-grid,
    .why-grid,
    .philosophy-principles,
    .featured-capabilities {
        grid-template-columns: 1fr;
    }

    .product-showcase-card,
    .product-showcase-featured,
    .industry-business,
    .industry-future {
        grid-column: span 1;
    }

    .product-showcase-card,
    .industry-panel,
    .why-card,
    .philosophy-principle,
    .roadmap-card {
        padding: 24px;
    }

    .products-summary,
    .industries-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-metrics {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .industry-summary-divider {
        width: 80px;
        height: 1px;
    }

    .featured-product-heading {
        align-items: flex-start;
    }

    .featured-product-icon {
        width: 58px;
        height: 58px;
    }

    .featured-actions {
        flex-direction: column;
    }

    .system-window {
        transform: none;
    }

    .system-window-body {
        grid-template-columns: 1fr;
    }

    .system-sidebar {
        display: none;
    }

    .system-stats {
        grid-template-columns: 1fr;
    }

    .system-table-header,
    .system-table-row {
        grid-template-columns: 1fr;
    }

    .system-table-header span:not(:first-child),
    .system-table-row span:not(:first-child) {
        display: none;
    }

    .floating-product-card {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .philosophy-copy .philosophy-lead {
        font-size: 1.18rem;
    }

    .roadmap-item {
        grid-template-columns: 28px 1fr;
        gap: 16px;
    }

    .roadmap-timeline::before {
        left: 13px;
    }

    .contact-panel {
        gap: 45px;
        padding: 30px 22px;
    }

    .contact-option {
        align-items: flex-start;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =======================================================
   SMALL MOBILE
======================================================= */

@media (max-width: 480px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 16vw, 3.8rem);
    }

    .product-showcase-card,
    .industry-panel,
    .why-card,
    .philosophy-principle,
    .roadmap-card,
    .contact-action-card {
        border-radius: 16px;
    }

    .contact-panel {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .technology-list {
        flex-direction: column;
        gap: 14px;
    }
}

/* =======================================================
   HOMEPAGE SECTION SPACING
======================================================= */

.products-section,
.featured-section,
.industries-section,
.why-section,
.philosophy-section,
.roadmap-section,
.contact-section {
    padding-top: 95px;
    padding-bottom: 105px;
    scroll-margin-top: 85px;
}

@media (max-width: 767px) {
    .products-section,
    .featured-section,
    .industries-section,
    .why-section,
    .philosophy-section,
    .roadmap-section,
    .contact-section {
        padding-top: 75px;
        padding-bottom: 80px;
        scroll-margin-top: 80px;
    }
}

/* =======================================================
   HOMEPAGE ANCHOR AND SECTION SPACING FIX
======================================================= */

#products,
#featured,
#industries,
#why,
#philosophy,
#roadmap,
#contact {
    /*
     * Each section already has enough top padding for the floating navbar.
     * Keeping a separate anchor offset exposed the end of the previous section.
     */
    scroll-margin-top:0 !important;
}

@media (max-width:767px){

#products,
#featured,
#industries,
#why,
#philosophy,
#roadmap,
#contact{
    scroll-margin-top:0 !important;
}

}
