



@media(min-width:1370px){
   .hero-title {
        font-size: 40px;
    } 
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-console-window {
        transform: rotateY(-2deg) rotateX(1deg);
    }

    .float-top-right {
        top: -16px;
        right: -10px;
    }

    .float-bottom-left {
        bottom: -16px;
        left: -10px;
    }

    .problem-card {
        padding: 1.8rem 1.5rem;
    }

    .problem-card-title {
        font-size: 1.22rem;
    }

    .reality-card {
        padding: 1.6rem 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Tablets & Small Laptops (< 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Site Header */
    .site-header {
        box-shadow: 0 4px 20px rgba(1, 30, 77, 0.08);
    }

    .header-top-bar {
        font-size: 0.78rem;
    }

    .top-badge {
        font-size: 0.72rem;
        padding: 0.15rem 0.6rem;
    }

    .navbar-roofsol {
        padding: 0.5rem 0;
    }

    .brand-logo {
        height: 42px;
        max-width: 180px;
    }

    /* Mobile Collapsible Drawer */
    .navbar-collapse {
        background: #ffffff;
        padding: 1.25rem 1.5rem;
        border-radius: 16px;
        margin-top: 0.75rem;
        box-shadow: 0 16px 40px rgba(1, 30, 77, 0.14);
        border: 1px solid rgba(1, 30, 77, 0.08);
    }

    .navbar-roofsol .nav-link {
        padding: 0.65rem 0.5rem !important;
        border-bottom: 1px solid rgba(1, 30, 77, 0.05);
    }

    .navbar-roofsol .nav-link::after {
        display: none;
    }

    .nav-feature-dropdown {
        width: 100%;
    }

    .navbar-roofsol .nav-feature-toggle {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .feature-dropdown-menu {
        position: static;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin: 0.25rem 0 0.65rem;
        padding: 0.45rem;
        border-radius: 14px;
        background: #f8fbff;
        border-color: #e6edf5;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .nav-feature-dropdown.is-open .feature-dropdown-menu {
        display: block;
        transform: none;
    }

    .feature-dropdown-menu > li > a {
        grid-template-columns: 36px minmax(0, 1fr) 16px;
        gap: 0.6rem;
        min-height: 58px;
        padding: 0.6rem;
    }

    .feature-dropdown-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .feature-dropdown-arrow {
        opacity: 1;
        transform: none;
    }

    .feature-dropdown-menu .feature-dropdown-footer {
        grid-column: auto;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 1.1rem !important;
        gap: 0.75rem !important;
    }

    .nav-actions .btn {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    /* Hero Section Responsive Layout */
    .hero {
        padding: 8.5rem 0 4.5rem;
        text-align: center;
    }

    .hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 28px;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .hero-cta-group {
        justify-content: center;
        width: 100%;
    }

    .hero-stats-strip {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 540px;
    }

    /* Hero Visual Right Column on Tablet */
    .hero-visual-wrapper {
        perspective: none;
        max-width: 620px;
        margin: 2rem auto 0;
    }

    .hero-console-window {
        transform: none !important;
    }

    .float-top-right {
        top: -12px;
        right: 8px;
    }

    .float-bottom-left {
        bottom: -12px;
        left: 8px;
    }

    
}

/* --------------------------------------------------------------------------
   Small Tablets & Large Phones (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Hide top utility bar on phones for viewport efficiency */
    .header-top-bar {
        display: none !important;
    }

    .hero {
        padding: 6.8rem 0 3.8rem;
    }

    .hero-badge-pill {
        font-size: 0.82rem;
        padding: 0.35rem 0.95rem;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.15;
    }

    .hero-lead {
        font-size: 1.02rem;
        line-height: 1.65;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.4rem;
        font-size: 0.98rem;
    }

    /* Hero Stats 3-Column Clean Card */
    .hero-stats-strip {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.6rem;
        padding: 0.9rem 1rem;
        text-align: center;
    }

    .stat-divider {
        display: none;
    }

    .stat-num {
        font-size: 1.18rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Console Terminal Mobile Fill */
    .hero-visual-wrapper {
        margin-top: 1.5rem;
    }

    /* Re-position floating badges neatly on mobile so they don't clip */
    .float-top-right {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }

    .float-bottom-left {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }

    .hero-floating-card {
        animation: none;
    }

    .console-titlebar {
        padding: 0.65rem 0.9rem;
    }

    .console-address-bar {
        font-size: 0.68rem;
        padding: 0.15rem 0.45rem;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .console-body {
        padding: 1.1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .badge-stage-live {
        font-size: 0.72rem;
        padding: 0.2rem 0.55rem;
    }

    /* Pipeline Stepper on Mobile */
    .pipeline-stepper {
        padding: 0.65rem 0.5rem;
        margin: 1rem 0 1.2rem;
    }

    .node-circle {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
    }

    .step-node span {
        font-size: 0.65rem;
    }

    .step-line {
        margin-bottom: 0.85rem;
    }

    /* Stack Metrics Grid */
    .console-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .metric-panel {
        padding: 0.85rem;
    }

    
}

/* --------------------------------------------------------------------------
   Small Phones (< 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .brand-logo {
        height: 38px;
        max-width: 160px;
    }

    .custom-toggler {
        font-size: 1.6rem;
        padding: 0.2rem 0.45rem;
    }

    .hero {
        padding: 6.2rem 0 3rem;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-badge-pill {
        font-size: 0.76rem;
        padding: 0.3rem 0.75rem;
        margin-bottom: 1.1rem;
    }

    .hero-stats-strip {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        /* text-align: left; */
        padding: 0.85rem 1.1rem;
    }

    /* .hero-stats-strip .stat-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
    } */

    .stat-num {
        font-size: 30px;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 16px;
    }

    
}

/* ================= */
@media(max-width:480px){
    .sec-title {
        font-size: 32px;
        font-weight: 600;
        color: var(--brand-navy-dark);
        line-height: 1;
    }
}


@media(max-width:390px){
    .float-chip {
        font-size: 10px;
    }
    .float-label {
        font-size: 10px;
        font-weight: 700;
        color: #ffffff;
    }
    .console-live-pill {
        font-size: 8px;
    }
    .float-val {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.7);
    }
    .float-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
    }
    .sec-title {
        font-size: 26px;
        font-weight: 600;
        color: var(--brand-navy-dark);
        line-height: 1;
    }
}

@media(max-width:320px){
    .float-chip {
        font-size: 9px;
    }
}