/* ============================================
   ZIMSAAS — MOBILE CSS
   Unique mobile navigation + layout fixes
   Desktop (>1024px) is untouched.
   ============================================ */

/* ============================================
   HAMBURGER BUTTON — "Circuit Node" Design
   3 lines, each capped with glowing blue dots
   like nodes on a circuit board.
   ============================================ */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(88, 143, 220, 0.08);
    border: 1.5px solid rgba(88, 143, 220, 0.35);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    z-index: 1050;
    position: relative;
    padding: 0;
    transition: border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

@media (max-width: 1024px) {
    .hamburger { display: flex; }

    .logo .brand-mark {
        height: 3rem;
    }

    .logo .brand-text {
        font-size: 1.3rem;
    }
}

.hamburger:hover {
    border-color: #588FDC;
    background: rgba(88, 143, 220, 0.18);
    box-shadow: 0 0 18px rgba(88, 143, 220, 0.3),
                inset 0 0 10px rgba(88, 143, 220, 0.06);
}

/* The 3 lines */
.hamburger span {
    display: block;
    position: relative;
    width: 22px;
    height: 2px;
    background: white;
    transition: transform  0.42s cubic-bezier(0.16, 1, 0.3, 1),
                opacity    0.25s ease,
                width      0.3s  ease,
                background 0.3s  ease;
}

/* Circuit node dots at each end of every line */
.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #588FDC;
    top: 50%;
    transform: translateY(-50%);
    transition: box-shadow 0.3s ease;
}
.hamburger span::before { left:  -2px; }
.hamburger span::after  { right: -2px; }

.hamburger:hover span::before,
.hamburger:hover span::after {
    box-shadow: 0 0 7px #588FDC, 0 0 14px rgba(88,143,220,0.5);
}

/* ── Open / Active state ── */
.hamburger.active {
    border-color: #588FDC;
    background: rgba(88, 143, 220, 0.18);
    box-shadow: 0 0 22px rgba(88, 143, 220, 0.4);
}
.hamburger.active span {
    background: #588FDC;
}
.hamburger.active span::before,
.hamburger.active span::after {
    box-shadow: 0 0 8px #588FDC;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ============================================
   DRAWER BACKDROP
   ============================================ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    pointer-events: none;
    transition: opacity     0.4s ease,
                background  0.4s ease,
                visibility  0.4s ease;
}
.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ============================================
   MOBILE DRAWER PANEL
   Slides in from the right
   ============================================ */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 380px);
    height: 100%;
    height: 100dvh;
    background: #0A0A0F;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    scrollbar-width: thin;
    scrollbar-color: rgba(88,143,220,0.3) transparent;
}
.mobile-drawer::-webkit-scrollbar        { width: 3px; }
.mobile-drawer::-webkit-scrollbar-track  { background: transparent; }
.mobile-drawer::-webkit-scrollbar-thumb  { background: rgba(88,143,220,0.3); border-radius: 3px; }

.mobile-drawer.active { transform: translateX(0); }

/* Animated left-edge glow line */
.mobile-drawer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent       0%,
        #588FDC          30%,
        rgba(22,44,61,.8) 70%,
        transparent      100%
    );
    animation: drawerGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes drawerGlow {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 1;    }
}

/* Subtle circuit-grid overlay */
.mobile-drawer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(88,143,220,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88,143,220,.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}


/* ============================================
   DRAWER HEADER
   ============================================ */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem 1.1rem;
    border-bottom: 1px solid rgba(88,143,220,0.18);
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.drawer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    min-width: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.drawer-logo .brand-mark {
    width: auto;
    height: 2.9rem;
    display: block;
    flex-shrink: 0;
}

.drawer-logo .brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.drawer-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88,143,220,0.08);
    border: 1px solid rgba(88,143,220,0.25);
    cursor: pointer;
    color: white;
    transition: background 0.3s ease,
                border-color 0.3s ease,
                transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.drawer-close:hover {
    background: rgba(88,143,220,0.22);
    border-color: #588FDC;
    transform: rotate(90deg);
}


/* ============================================
   DRAWER NAV — animated links
   ============================================ */
.drawer-nav {
    flex: 1;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    gap: 0.3rem;
}

/* Base state — every direct child starts invisible + shifted right */
.drawer-nav > * {
    opacity: 0;
    transform: translateX(22px);
}

/* Stagger entrance animations when drawer is active */
.mobile-drawer.active .drawer-nav > :nth-child(1) { animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.08s both; }
.mobile-drawer.active .drawer-nav > :nth-child(2) { animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.14s both; }
.mobile-drawer.active .drawer-nav > :nth-child(3) { animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.20s both; }
.mobile-drawer.active .drawer-nav > :nth-child(4) { animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.26s both; }
.mobile-drawer.active .drawer-nav > :nth-child(5) { animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.32s both; }
.mobile-drawer.active .drawer-nav > :nth-child(6) { animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.38s both; }

@keyframes drawerLinkIn {
    from { opacity: 0; transform: translateX(22px); }
    to   { opacity: 1; transform: translateX(0);    }
}

/* Individual link style */
.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,0.9);
    font-size: 1.04rem;
    font-weight: 600;
    padding: 0.95rem 0.95rem 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(88,143,220,0.02));
    appearance: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    letter-spacing: -0.01em;
    min-height: 72px;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}
.drawer-link:last-child  { border-bottom: 1px solid rgba(255,255,255,0.05); }
.drawer-link:hover,
.drawer-link.active-page {
    color: white;
    padding-left: 1.1rem;
    background: linear-gradient(135deg, rgba(88,143,220,0.14), rgba(255,255,255,0.04));
    border-color: rgba(88,143,220,0.18);
    transform: translateX(2px);
}

.drawer-link:hover .drawer-link-meta,
.drawer-link.active-page .drawer-link-meta {
    color: rgba(255,255,255,0.72);
}

.drawer-link-copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.drawer-link-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.15;
}

.drawer-link-meta {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.52);
}

/* Dropdown arrow icon */
.drawer-arrow {
    color: #588FDC;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.drawer-accordion-btn {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.drawer-accordion-btn.open .drawer-arrow { transform: rotate(180deg); }

.drawer-accordion-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.drawer-badge {
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88,143,220,0.16);
    border: 1px solid rgba(88,143,220,0.26);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}


/* ============================================
   SERVICES ACCORDION
   ============================================ */
.drawer-accordion {
    border-bottom: none;
}

.drawer-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1);
    background: rgba(88,143,220,0.05);
    border: 1px solid rgba(88,143,220,0.14);
    margin: 0.3rem 0 0.5rem;
}
.drawer-sub.open { max-height: 420px; }

.drawer-sub a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.drawer-sub a:last-child { border-bottom: none; }

.drawer-sub a:hover {
    color: white;
    background: rgba(88,143,220,0.12);
    padding-left: 1.5rem;
}

.drawer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #588FDC;
    transition: color 0.2s ease;
}

.drawer-sub a:hover .drawer-icon {
    color: white;
}


/* ============================================
   DRAWER FOOTER — CTA button
   ============================================ */
.drawer-footer {
    padding: 1.3rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(88,143,220,0.18);
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    /* entrance animation */
    opacity: 0;
}
.mobile-drawer.active .drawer-footer {
    animation: drawerLinkIn 0.42s cubic-bezier(0.16,1,0.3,1) 0.44s both;
}

.drawer-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    background: #588FDC;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease;
}
.drawer-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.drawer-cta:hover::before { left: 100%; }
.drawer-cta:hover         { background: #3a72c4; transform: translateY(-1px); }


/* ============================================
   BODY SCROLL LOCK when drawer is open
   ============================================ */
body.drawer-open {
    overflow: hidden !important;
}


/* ============================================
   MOBILE OVERFLOW BASELINE
   Keep native browser scrolling. Avoid forcing body to be the scroll container.
   ============================================ */
@media (max-width: 1024px) {
    html {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        max-width: 100%;
    }
}


/* ============================================
   LAYOUT FIXES — Mobile (<768px)
   ============================================ */
@media (max-width: 768px) {

    /* ── Navbar ── */
    .navbar {
        padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1.25rem 0.85rem !important;
    }

    /* ── Typography safety ── */
    h1, h2, h3 { word-break: break-word; }

    /* ── Section padding consistency ── */
    .hero, .services, .features, .journey, .capabilities,
    .testimonial, .cta, .matrix-section, .contact-section,
    .dashboard-section, .whatsapp-section {
        padding-left:  1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .container {
        padding-left:  1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* ── Hero — always single column ── */
    .hero {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .hero-label    { justify-content: center; }
    .hero-buttons  { justify-content: center; flex-direction: column; }
    .hero-buttons a,
    .hero-buttons button { width: 100%; text-align: center; }
    .hero-subheading { margin-left: auto; margin-right: auto; }

    /* ── Stats box ── */
    .stats-box {
        grid-template-columns: 1fr 1fr !important;
        padding: 1.5rem !important;
    }

    /* ── Services grid ── */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    .service-card-large,
    .service-card-small { grid-column: span 1 !important; }

    /* ── Service card large → match small card style on mobile ── */
    .service-card-large .service-icon {
        display: flex !important;
    }
    .service-card-large {
        background: white !important;
        border: 2px solid var(--charcoal) !important;
        padding: 2rem !important;
    }
    .service-card-large::before {
        display: none !important;
    }
    .service-card-large h3 {
        font-size: 1.4rem !important;
        color: var(--text) !important;
        font-weight: 600 !important;
    }
    .service-card-large p {
        font-size: 0.95rem !important;
        color: var(--text-light) !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    .service-card-large a {
        font-size: 0.95rem !important;
    }
    .service-card-large:hover {
        transform: translate(-5px, -5px) !important;
        box-shadow: 10px 10px 0 var(--ocean-blue) !important;
    }
    .service-card-small h3 { font-size: 1.4rem !important; }

    /* ── Home workflow section ── */
    .features {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .features .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .features-shell { padding: 1.1rem !important; }
    .workflow-step { margin-left: 0.8rem !important; }
    .workflow-step h3 { font-size: 1.35rem !important; }

    /* ── Testimonial ── */
    .testimonial blockquote p { font-size: 1.4rem !important; }

    /* ── CTA ── */
    .cta {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .cta-shell {
        padding: 0 !important;
    }
    .cta h2 {
        font-size: 2.5rem !important;
        max-width: none !important;
    }
    .cta-copy {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
        padding: 0 !important;
    }
    .cta-copy p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        grid-column: 1 !important;
    }
    .cta-eyebrow {
        gap: 0.55rem !important;
        font-size: 0.68rem !important;
        letter-spacing: 0.16em !important;
    }

    .cta-eyebrow-desktop {
        display: inline;
    }

    .cta-eyebrow-mobile {
        display: none;
    }

    .page-booking .cta-eyebrow-desktop {
        display: none;
    }

    .page-booking .cta-eyebrow-mobile {
        display: inline;
    }
    .cta .btn-demo {
        grid-column: 1 !important;
        width: 100% !important;
    }

    /* ── Footer ── */
    .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .footer      { padding: 3rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)) !important; }
    .footer-brand-link .brand-mark { height: 2.05rem !important; }
    .footer-brand-link .brand-text { font-size: 1.3rem !important; }

    /* ── Contact page ── */
    .contact-section    { padding: 7rem 1.25rem 4rem !important; }
    .contact-container  { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .form-container     { order: 1 !important; padding: 1.75rem 1.25rem !important; }
    .contact-info       { order: 2 !important; }
    .contact-info h2    { font-size: 2rem !important; }
    .contact-methods    { gap: 1.25rem !important; margin-bottom: 1.75rem !important; }
    .contact-method-value { font-size: 1.1rem !important; }
    .business-hours     { margin-top: 0 !important; padding: 1.5rem !important; }
    .business-hours li  { padding: 0.65rem 0 !important; }
    .form-group         { margin-bottom: 1.5rem !important; }
    .form-label         { margin-bottom: 0.55rem !important; }
    .form-row           { grid-template-columns: 1fr !important; }

    /* ── Booking Systems page ── */
    .hero-stats         { width: 100%; }
    .stat-card-value    { font-size: 2rem !important; }
    .journey-step       { grid-template-columns: 1fr !important; }
    .journey-step.even  { direction: ltr; }
    .dashboard-metrics  { grid-template-columns: 1fr !important; }

    /* Mobile-only "Let's See" hero button on Booking Systems
       — reuse standard CTA styling, just handle layout/visibility here */
    .page-booking .hero-letsee-btn {
        display: inline-flex;
        margin-top: 1.3rem;
        align-self: center;
        touch-action: manipulation;
    }

    /* ── WhatsApp page ── */
    .hero-stats         { grid-template-columns: 1fr !important; }
    .whatsapp-messages  { height: 380px; }
    .capability-row     { grid-template-columns: 1fr !important; }

    /* ── Custom Automation page ── */
    .page-custom-automation .hero {
        padding-top: 7rem !important;
    }
    .matrix-grid        { grid-template-columns: 1fr !important; }
    .matrix-cell        { padding: 1.5rem !important; }

    /* Mobile workflow illustration - centered via flex parent */
    .hero-image-placeholder .workflow-mobile {
        max-width: min(380px, calc(100vw - 2.5rem)) !important;
    }

    /* ── Industries page ── */
    .industries-grid    { grid-template-columns: 1fr 1fr !important; }
}

/* ── Extra small screens (< 400px) ── */
@media (max-width: 400px) {
    .stats-box    { grid-template-columns: 1fr !important; }
    .logo .brand-mark,
    .drawer-logo .brand-mark {
        height: 2.45rem;
    }
    .logo .brand-text,
    .drawer-logo .brand-text {
        font-size: 1.05rem;
    }
    .industries-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   HOMEPAGE MOBILE HERO
   Mobile-only visual upgrade for the home hero.
   Desktop remains unchanged.
   ============================================ */
.page-home .hero-mobile-break,
.page-home .hero-subheading-mobile,
.page-home .hero-mobile-services,
.page-home .hero-proof-stage {
    display: none;
}

@keyframes pageHomeHeroFlowStartPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes pageHomeHeroFlowProcessRotate {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

@keyframes pageHomeHeroFlowLinePulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pageHomeHeroFlowEndPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

@media (max-width: 768px) {
    .page-home .hero {
        min-height: auto !important;
        align-items: start !important;
        align-content: start !important;
        gap: 1rem !important;
        padding: calc(6.9rem + env(safe-area-inset-top, 0px)) 1.25rem 3.15rem !important;
        overflow: hidden;
    }

    .page-home .blob-1 {
        top: 2.75rem;
        right: -7.5rem;
        width: 18.5rem;
        height: 18.5rem;
        opacity: 0.16;
        filter: blur(8px);
    }

    .page-home .blob-2 {
        bottom: 8rem;
        left: -7rem;
        width: 14rem;
        height: 14rem;
        opacity: 0.11;
        filter: blur(10px);
    }

    .page-home .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .page-home .hero-label {
        margin-top: 0.35rem;
        margin-bottom: 0.85rem;
    }

    .page-home .hero-label::before {
        display: none;
    }

    .page-home .hero-label span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.62rem 1rem;
        border-radius: 0;
        border: 1px solid rgba(88, 143, 220, 0.28);
        background: rgba(88, 143, 220, 0.11);
        box-shadow: 0 14px 32px rgba(88, 143, 220, 0.12);
        font-size: 0.74rem;
        letter-spacing: 0.18em;
    }

    .page-home .hero h1 {
        max-width: 9ch;
        margin: 0 auto 0.82rem !important;
        font-size: clamp(3.1rem, 14vw, 4.7rem) !important;
        line-height: 0.9 !important;
        letter-spacing: -0.055em;
    }

    .page-home .hero-mobile-break {
        display: block;
    }

    .page-home .hero-subheading {
        max-width: 29ch;
        margin: 0 auto !important;
        font-size: 0.98rem !important;
        line-height: 1.47 !important;
        color: #59606b;
    }

    .page-home .hero-subheading-desktop {
        display: none;
    }

    .page-home .hero-subheading-mobile {
        display: inline;
    }

    .page-home .hero-mobile-services {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.48rem;
        width: 100%;
        max-width: 21rem;
        margin: 0.76rem auto 0;
    }

    .page-home .hero-mobile-services a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.15rem;
        padding: 0.48rem 0.78rem;
        border-radius: 0;
        border: 1px solid rgba(88, 143, 220, 0.22);
        background: rgba(255, 255, 255, 0.78);
        color: var(--ocean-blue);
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        box-shadow: 0 10px 25px rgba(22, 44, 61, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .page-home .hero-mobile-services a:active,
    .page-home .hero-mobile-services a:hover {
        transform: translateY(-2px);
        border-color: rgba(88, 143, 220, 0.42);
        box-shadow: 0 14px 28px rgba(22, 44, 61, 0.12);
    }

    .page-home .hero-buttons {
        width: 100%;
        max-width: 21rem;
        margin: 0.82rem auto -0.85rem;
        gap: 0.68rem !important;
    }

    .page-home .hero-buttons .btn-primary,
    .page-home .hero-buttons .btn-secondary {
        border-radius: 0;
        padding: 0.98rem 1.2rem;
    }

    .page-home .hero-buttons .btn-primary {
        background: linear-gradient(135deg, #162c3d 0%, #274966 50%, #588fdc 100%);
        box-shadow: 0 18px 35px rgba(35, 76, 113, 0.22);
    }

    .page-home .hero-buttons .btn-secondary {
        border-color: rgba(22, 44, 61, 0.16);
        background: rgba(255, 255, 255, 0.78);
        color: var(--deep-navy);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .page-home .stats-box {
        width: 100%;
        max-width: 100% !important;
        margin: 1rem auto 0 !important;
        padding: 0 !important;
        display: block !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible;
        isolation: auto;
    }

    .page-home .stats-box::before {
        content: none !important;
        display: none !important;
    }

    .page-home .stats-box::after {
        content: none !important;
        display: none !important;
    }

    .page-home .hero-proof-stage {
        position: relative;
        z-index: 1;
        width: min(100%, 21rem);
        height: 132px;
        margin: 1.2rem auto 0;
        display: block;
    }

    .page-home .hero-proof-stage .flow-node {
        position: absolute;
        z-index: 2;
        width: 80px;
        height: 80px;
        background: white;
        border: 3px solid var(--charcoal);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 700;
        text-align: center;
        padding: 0.5rem;
    }

    .page-home .hero-proof-stage .flow-node.start {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        background: var(--deep-navy);
        color: white;
        animation: pageHomeHeroFlowStartPulse 2s ease-in-out infinite;
    }

    .page-home .hero-proof-stage .flow-node.process {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: pageHomeHeroFlowProcessRotate 4s ease-in-out infinite;
    }

    .page-home .hero-proof-stage .flow-node.end {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background: var(--bright-blue);
        color: white;
        animation: pageHomeHeroFlowEndPulse 2s ease-in-out infinite 1s;
    }

    .page-home .hero-proof-stage .flow-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 3px;
        background: var(--bright-blue);
    }

    .page-home .hero-proof-stage .flow-arrow.arrow1 {
        left: 80px;
        width: calc(50% - 120px);
        animation: pageHomeHeroFlowLinePulse 2s ease-in-out infinite;
    }

    .page-home .hero-proof-stage .flow-arrow.arrow2 {
        left: calc(50% + 40px);
        width: calc(50% - 120px);
        animation: pageHomeHeroFlowLinePulse 2s ease-in-out infinite 1s;
    }

    .page-home .stat-item {
        display: none !important;
    }
}

@media (max-width: 400px) {
    .page-home .hero {
        padding-top: calc(6.35rem + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 2.9rem !important;
    }

    .page-home .hero h1 {
        font-size: clamp(2.7rem, 15vw, 3.6rem) !important;
    }

    .page-home .hero-label span {
        font-size: 0.68rem;
    }

    .page-home .hero-label {
        margin-top: 0.45rem;
    }

    .page-home .stats-box {
        margin-top: 0.8rem !important;
    }

    .page-home .hero-proof-stage {
        width: min(100%, 18rem);
        height: 118px;
    }
}
