/* ==========================================================================
   OptiMES Unified Modern Header Design System
   Matches Index Hero Navigation: Adventis Brand, Pill Buttons, Dark Glass
   Individual Module Color Tinting: Nexus (Cyan), Shield (Coral), Pulse (Mint),
   Stock (Lavender), Case Studies (Aqua Teal)
   ========================================================================== */

@font-face {
    font-family: 'MyDashboardItalicFont';
    src: url('../assets/fonts/InterTight-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --hdr-font-italic: 'MyDashboardItalicFont', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hdr-font-main: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --hdr-height: 52px;
    --hdr-max-width: 1400px;
    --hdr-trans: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Default Theme (Platform Hub / Dark Navy) */
    --hdr-bg: rgba(4, 18, 34, 0.82);
    --hdr-border: rgba(56, 189, 248, 0.22);
    --hdr-btn-border: rgba(255, 255, 255, 0.22);
    --hdr-btn-text: rgba(255, 255, 255, 0.88);
    --hdr-accent: #38bdf8;
    --hdr-btn-hover-bg: rgba(56, 189, 248, 0.16);
    --hdr-glow: rgba(56, 189, 248, 0.32);
    --hdr-dropdown-bg: rgba(4, 18, 34, 0.96);
    --hdr-dropdown-border: rgba(56, 189, 248, 0.28);
    --hdr-current-bg: rgba(56, 189, 248, 0.2);
    --hdr-current-border: rgba(56, 189, 248, 0.45);
    --hdr-bar-gradient: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
}

/* ==========================================================================
   Module-Specific Signature Color Tints
   ========================================================================== */

/* 1. Nexus Theme (#C2E5FF) */
.hdr-theme-nexus {
    --hdr-bg: #C2E5FF;
    --hdr-border: rgba(5, 26, 48, 0.16);
    --hdr-btn-border: rgba(5, 26, 48, 0.32);
    --hdr-btn-text: #051a30;
    --hdr-accent: #0284c7;
    --hdr-btn-hover-bg: #ffffff;
    --hdr-glow: rgba(2, 132, 199, 0.25);
    --hdr-dropdown-bg: rgba(3, 16, 32, 0.97);
    --hdr-dropdown-border: rgba(56, 189, 248, 0.32);
    --hdr-current-bg: rgba(56, 189, 248, 0.22);
    --hdr-current-border: rgba(56, 189, 248, 0.45);
    --hdr-bar-gradient: linear-gradient(90deg, #0284c7, #38bdf8, #93c5fd);
}

/* 2. Shield Theme (#FFC7C2) */
.hdr-theme-shield {
    --hdr-bg: #FFC7C2;
    --hdr-border: rgba(59, 17, 14, 0.16);
    --hdr-btn-border: rgba(59, 17, 14, 0.32);
    --hdr-btn-text: #3b110e;
    --hdr-accent: #dc2626;
    --hdr-btn-hover-bg: #ffffff;
    --hdr-glow: rgba(220, 38, 38, 0.25);
    --hdr-dropdown-bg: rgba(22, 8, 12, 0.97);
    --hdr-dropdown-border: rgba(255, 107, 107, 0.32);
    --hdr-current-bg: rgba(255, 107, 107, 0.22);
    --hdr-current-border: rgba(255, 107, 107, 0.45);
    --hdr-bar-gradient: linear-gradient(90deg, #dc2626, #ff6b6b, #fca5a5);
}

/* 3. Pulse Theme (#CDF4D3) */
.hdr-theme-pulse {
    --hdr-bg: #CDF4D3;
    --hdr-border: rgba(14, 59, 28, 0.16);
    --hdr-btn-border: rgba(14, 59, 28, 0.32);
    --hdr-btn-text: #0e3b1c;
    --hdr-accent: #059669;
    --hdr-btn-hover-bg: #ffffff;
    --hdr-glow: rgba(5, 150, 105, 0.25);
    --hdr-dropdown-bg: rgba(5, 18, 12, 0.97);
    --hdr-dropdown-border: rgba(52, 211, 153, 0.32);
    --hdr-current-bg: rgba(52, 211, 153, 0.22);
    --hdr-current-border: rgba(52, 211, 153, 0.45);
    --hdr-bar-gradient: linear-gradient(90deg, #059669, #34d399, #a7f3d0);
}

/* 4. Stock Theme (#DCCCFF) */
.hdr-theme-stock {
    --hdr-bg: #DCCCFF;
    --hdr-border: rgba(29, 22, 58, 0.16);
    --hdr-btn-border: rgba(29, 22, 58, 0.32);
    --hdr-btn-text: #1d163a;
    --hdr-accent: #7c3aed;
    --hdr-btn-hover-bg: #ffffff;
    --hdr-glow: rgba(124, 58, 237, 0.25);
    --hdr-dropdown-bg: rgba(16, 8, 26, 0.97);
    --hdr-dropdown-border: rgba(168, 85, 247, 0.32);
    --hdr-current-bg: rgba(168, 85, 247, 0.22);
    --hdr-current-border: rgba(168, 85, 247, 0.45);
    --hdr-bar-gradient: linear-gradient(90deg, #7c3aed, #a855f7, #d8b4fe);
}

/* 5. Case Studies Theme (#98E3E7) */
.hdr-theme-case-study {
    --hdr-bg: #98E3E7;
    --hdr-border: rgba(4, 33, 41, 0.16);
    --hdr-btn-border: rgba(4, 33, 41, 0.32);
    --hdr-btn-text: #042129;
    --hdr-accent: #0d9488;
    --hdr-btn-hover-bg: #ffffff;
    --hdr-glow: rgba(13, 148, 136, 0.25);
    --hdr-dropdown-bg: rgba(3, 18, 22, 0.97);
    --hdr-dropdown-border: rgba(45, 212, 191, 0.32);
    --hdr-current-bg: rgba(45, 212, 191, 0.22);
    --hdr-current-border: rgba(45, 212, 191, 0.45);
    --hdr-bar-gradient: linear-gradient(90deg, #0d9488, #2dd4bf, #99f6e4);
}

/* ==========================================================================
   Header Container & Layout
   ========================================================================== */
.optimes-unified-header,
#navbar,
#topNavbar,
.top-navbar,
.nexus-header,
.pulse-header,
.stock-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--hdr-height) !important;
    display: flex !important;
    align-items: center !important;
    background: var(--hdr-bg) !important;
    background-color: var(--hdr-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--hdr-border) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.optimes-unified-header.scrolled,
#navbar.scrolled,
#topNavbar.scrolled,
.top-navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
}

.optimes-hdr-inner,
.header-inner {
    width: 100% !important;
    max-width: var(--hdr-max-width) !important;
    margin: 0 auto !important;
    padding: 0 clamp(16px, 3.5vw, 48px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   Brand Logo (Adventis OptiMES Logo)
   ========================================================================== */
.nav-brand,
.header-left {
    display: flex !important;
    align-items: center !important;
}

.nav-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
}

.nav-brand-link:hover {
    transform: translateY(-1px) scale(1.01) !important;
    opacity: 0.92 !important;
}

.nav-brand .logo,
.logo {
    height: clamp(24px, 2.5vw, 30px) !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.nav-brand .logo-optimes-black,
.logo-optimes-black {
    height: clamp(24px, 2.5vw, 30px) !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    filter: none !important;
}

/* ==========================================================================
   Navigation Buttons & Links
   ========================================================================== */
.nav-buttons,
.optimes-nav-links,
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: clamp(8px, 1.2vw, 16px) !important;
}

.nav-btn,
.optimes-nav-pill,
.nav-pill {
    font-family: var(--hdr-font-italic) !important;
    font-style: italic !important;
    font-size: clamp(13.5px, 1.1vw, 16px) !important;
    font-weight: 600 !important;
    color: var(--hdr-btn-text) !important;
    background: transparent !important;
    border: 1px solid var(--hdr-btn-border) !important;
    border-radius: 6px !important;
    padding: 7px clamp(12px, 1.2vw, 18px) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
    white-space: nowrap !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.nav-btn:hover,
.nav-btn.active,
.optimes-nav-pill:hover,
.optimes-nav-pill.active,
.nav-pill:hover,
.nav-pill.active {
    color: var(--hdr-btn-text) !important;
    background: #ffffff !important;
    border-color: var(--hdr-accent) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px) !important;
}

.optimes-unified-header:not([class*="hdr-theme-"]) .nav-btn:hover,
.optimes-unified-header:not([class*="hdr-theme-"]) .nav-btn.active {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35) !important;
}

/* ==========================================================================
   Modules Dropdown Menu
   ========================================================================== */
.nav-dropdown,
.optimes-mod-switch-wrap,
.module-switch-wrap {
    position: relative !important;
    display: inline-block !important;
}

.dropdown-trigger,
.optimes-mod-switch-btn,
.module-switch-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dropdown-chevron,
.optimes-chevron {
    font-size: 11px !important;
    display: inline-block !important;
    transition: transform 0.25s ease !important;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron,
.optimes-mod-switch-wrap:hover .optimes-chevron,
.optimes-mod-switch-wrap.open .optimes-chevron,
.module-switch-wrap:hover .optimes-chevron,
.module-switch-wrap.open .optimes-chevron {
    transform: rotate(180deg) !important;
}

/* ==========================================================================
   Modules Dropdown Menu (Ultra-Clean Cyber Glass Design)
   Zero-Gap Hover Tunnel Bridge to Eliminate Accidental Dropout
   ========================================================================== */
.nav-dropdown,
.optimes-mod-switch-wrap,
.module-switch-wrap {
    position: relative !important;
    display: inline-block !important;
}

.dropdown-trigger,
.optimes-mod-switch-btn,
.module-switch-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dropdown-chevron,
.optimes-chevron {
    font-size: 11px !important;
    display: inline-block !important;
    transition: transform 0.25s ease !important;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron,
.optimes-mod-switch-wrap:hover .optimes-chevron,
.optimes-mod-switch-wrap.open .optimes-chevron,
.module-switch-wrap:hover .optimes-chevron,
.module-switch-wrap.open .optimes-chevron {
    transform: rotate(180deg) !important;
}

.nav-dropdown:hover .dropdown-trigger,
.nav-dropdown.open .dropdown-trigger,
.optimes-mod-switch-wrap:hover .module-switch-btn,
.optimes-mod-switch-wrap.open .module-switch-btn {
    color: var(--hdr-btn-text) !important;
    background: #ffffff !important;
    border-color: var(--hdr-accent) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.optimes-unified-header:not([class*="hdr-theme-"]) .nav-dropdown:hover .dropdown-trigger,
.optimes-unified-header:not([class*="hdr-theme-"]) .nav-dropdown.open .dropdown-trigger {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35) !important;
}

.dropdown-menu,
.optimes-mod-dropdown,
.module-switch-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(4px) !important;
    margin-top: 4px !important;
    width: 292px !important;
    background: var(--hdr-dropdown-bg) !important;
    border: 1px solid var(--hdr-dropdown-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.08), 0 0 28px -4px var(--hdr-glow) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    padding: 7px 7px 9px 7px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s !important;
    z-index: 1001 !important;
}

/* Invisible Hover Tunnel/Bridge: Overlaps 18px upward into the trigger button
   Guaranteeing the mouse never leaves the hit-area when traveling across the gap */
.dropdown-menu::before,
.optimes-mod-dropdown::before,
.module-switch-dropdown::before {
    content: '' !important;
    position: absolute !important;
    top: -16px !important;
    left: -14px !important;
    right: -14px !important;
    height: 20px !important;
    background: transparent !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 100 !important;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.optimes-mod-switch-wrap:hover .optimes-mod-dropdown,
.optimes-mod-switch-wrap.open .optimes-mod-dropdown,
.module-switch-wrap:hover .module-switch-dropdown,
.module-switch-wrap.open .module-switch-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Section Header Labels & Hairline Dividers */
.dropdown-section-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(148, 163, 184, 0.6) !important;
    padding: 6px 10px 4px !important;
    user-select: none !important;
    font-family: var(--hdr-font-main) !important;
    line-height: 1 !important;
}

.dropdown-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    margin: 4px 6px !important;
    border: none !important;
}

/* Dropdown Item Row */
.dropdown-item,
.optimes-mod-item,
.mod-switch-item {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 7px 10px !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    text-align: left !important;
    width: 100% !important;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
    box-sizing: border-box !important;
    font-style: normal !important;
    position: relative !important;
}

.dropdown-item:hover,
.optimes-mod-item:hover,
.mod-switch-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateX(2px) !important;
}

/* Clean High-Tech SVG Icon Container */
.drop-icon-box {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.2s ease !important;
}

.drop-icon-box svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 2 !important;
    display: block !important;
}

/* Shield Coloration */
.item-shield .drop-icon-box {
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: rgba(255, 107, 107, 0.25) !important;
}

.dropdown-item.item-shield:hover {
    background: rgba(255, 107, 107, 0.14) !important;
    border-color: rgba(255, 107, 107, 0.35) !important;
}

.dropdown-item.item-shield:hover .drop-icon-box {
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Nexus Coloration */
.item-nexus .drop-icon-box {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

.dropdown-item.item-nexus:hover {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.dropdown-item.item-nexus:hover .drop-icon-box {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Stock Coloration */
.item-stock .drop-icon-box {
    color: #c084fc !important;
    background: rgba(192, 132, 252, 0.1) !important;
    border-color: rgba(192, 132, 252, 0.25) !important;
}

.dropdown-item.item-stock:hover {
    background: rgba(192, 132, 252, 0.14) !important;
    border-color: rgba(192, 132, 252, 0.35) !important;
}

.dropdown-item.item-stock:hover .drop-icon-box {
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Pulse Coloration */
.item-pulse .drop-icon-box {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

.dropdown-item.item-pulse:hover {
    background: rgba(52, 211, 153, 0.14) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}

.dropdown-item.item-pulse:hover .drop-icon-box {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Case Study Coloration */
.item-case-study .drop-icon-box {
    color: #2dd4bf !important;
    background: rgba(45, 212, 191, 0.1) !important;
    border-color: rgba(45, 212, 191, 0.25) !important;
}

.dropdown-item.item-case-study:hover {
    background: rgba(45, 212, 191, 0.14) !important;
    border-color: rgba(45, 212, 191, 0.35) !important;
}

.dropdown-item.item-case-study:hover .drop-icon-box {
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Hub Coloration */
.item-hub .drop-icon-box {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

.dropdown-item.item-hub:hover {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.dropdown-item.item-hub:hover .drop-icon-box {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Current active module highlight */
.dropdown-item.current-module,
.optimes-mod-item.current-module,
.mod-switch-item.current-module {
    background: var(--hdr-current-bg) !important;
    border-color: var(--hdr-current-border) !important;
}

/* Dropdown Text Typography */
.drop-text,
.optimes-mod-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    flex: 1 !important;
    min-width: 0 !important;
    font-style: normal !important;
}

.drop-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.drop-title-row strong,
.drop-text strong,
.optimes-mod-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    font-style: normal !important;
    font-family: var(--hdr-font-main) !important;
    letter-spacing: -0.01em !important;
}

.drop-text span.drop-desc,
.drop-text span,
.optimes-mod-desc {
    font-size: 11px !important;
    color: #94a3b8 !important;
    line-height: 1.25 !important;
    font-style: normal !important;
    font-family: var(--hdr-font-main) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dropdown-item:hover .drop-text span.drop-desc,
.dropdown-item:hover .drop-text span,
.optimes-mod-item:hover .optimes-mod-desc {
    color: #cbd5e1 !important;
}

/* Active Indicator Pill Badge */
.drop-active-badge {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background: var(--hdr-accent) !important;
    color: #030c17 !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}

/* Subtle Interactive Hover Arrow */
.drop-arrow {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.25) !important;
    opacity: 0 !important;
    transform: translateX(-4px) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.dropdown-item:hover .drop-arrow {
    opacity: 1 !important;
    transform: translateX(0) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Scroll Progress Indicator
   ========================================================================== */
.scroll-progress-container,
.scroll-progress {
    position: fixed !important;
    top: var(--hdr-height) !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    z-index: 999 !important;
}

.scroll-progress-bar,
#progressBar,
#scrollProgress {
    height: 100% !important;
    background: var(--hdr-bar-gradient) !important;
    box-shadow: 0 0 8px var(--hdr-accent) !important;
}

/* ==========================================================================
   Mobile Toggle & Responsive Styles
   ========================================================================== */
.mobile-menu-btn,
.optimes-mobile-toggle,
.mobile-toggle {
    display: none !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 19px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 1002 !important;
}

.mobile-menu-btn span,
.optimes-mobile-toggle span,
.mobile-toggle span {
    display: block !important;
    width: 100% !important;
    height: 2.2px !important;
    background-color: var(--hdr-btn-text, #ffffff) !important;
    border-radius: 2px !important;
    transition: all 0.25s ease !important;
}

.mobile-menu-btn.open span:nth-child(1),
.optimes-mobile-toggle.open span:nth-child(1),
.mobile-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg) !important;
}

.mobile-menu-btn.open span:nth-child(2),
.optimes-mobile-toggle.open span:nth-child(2),
.mobile-toggle.open span:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-btn.open span:nth-child(3),
.optimes-mobile-toggle.open span:nth-child(3),
.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg) !important;
}

@media (max-width: 860px) {

    .mobile-menu-btn,
    .optimes-mobile-toggle,
    .mobile-toggle {
        display: flex !important;
    }

    /* Mobile Navigation Container: High-contrast opaque cyber-glass */
    .nav-buttons,
    .optimes-nav-links,
    .nav-links {
        position: fixed !important;
        top: var(--hdr-height) !important;
        left: 0 !important;
        width: 100% !important;
        background: #030e1d !important;
        background-color: #030e1d !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px 20px 28px !important;
        gap: 12px !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.25s ease !important;
        max-height: calc(100vh - var(--hdr-height)) !important;
        max-height: calc(100dvh - var(--hdr-height)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        z-index: 9999 !important;
    }

    .nav-buttons.open,
    .optimes-nav-links.open,
    .nav-links.open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Highly visible, high-contrast, touch-friendly menu buttons */
    .optimes-unified-header .nav-btn,
    .optimes-unified-header .dropdown-trigger,
    .optimes-unified-header .optimes-nav-pill,
    .optimes-unified-header .nav-pill,
    .nav-buttons .nav-btn,
    .optimes-nav-links .nav-btn,
    .nav-links .nav-btn,
    .nav-btn,
    .optimes-nav-pill,
    .nav-pill {
        width: 100% !important;
        justify-content: center !important;
        height: 48px !important;
        min-height: 48px !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 0.01em !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        display: flex !important;
        align-items: center !important;
        transition: all 0.2s ease !important;
    }

    .optimes-unified-header .nav-btn:hover,
    .optimes-unified-header .nav-btn:active,
    .optimes-unified-header .nav-dropdown.open .dropdown-trigger,
    .optimes-unified-header .nav-dropdown:hover .dropdown-trigger,
    .nav-buttons .nav-btn:hover,
    .nav-buttons .nav-btn:active,
    .nav-links .nav-btn:hover,
    .nav-links .nav-btn:active,
    .nav-btn:hover,
    .nav-btn:active,
    .nav-dropdown.open .dropdown-trigger,
    .optimes-mod-switch-wrap.open .module-switch-btn,
    .module-switch-wrap.open .module-switch-btn {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        border-color: var(--hdr-accent, #38bdf8) !important;
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
    }

    .dropdown-chevron,
    .optimes-chevron {
        color: var(--hdr-accent, #38bdf8) !important;
        margin-left: 8px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        transition: transform 0.25s ease !important;
    }

    .nav-dropdown .dropdown-chevron,
    .optimes-mod-switch-wrap .optimes-chevron,
    .module-switch-wrap .optimes-chevron {
        transform: rotate(0deg) !important;
    }

    .nav-dropdown.open .dropdown-chevron,
    .optimes-mod-switch-wrap.open .optimes-chevron,
    .module-switch-wrap.open .optimes-chevron {
        transform: rotate(180deg) !important;
    }

    .nav-dropdown,
    .optimes-mod-switch-wrap,
    .module-switch-wrap {
        width: 100% !important;
        display: block !important;
    }

    /* Nested Modules Accordion/Dropdown Drawer on Mobile */
    .dropdown-menu,
    .optimes-mod-dropdown,
    .module-switch-dropdown,
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu,
    .optimes-mod-switch-wrap:hover .optimes-mod-dropdown,
    .optimes-mod-switch-wrap.open .optimes-mod-dropdown,
    .module-switch-wrap:hover .module-switch-dropdown,
    .module-switch-wrap.open .module-switch-dropdown {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 12px !important;
        padding: 10px 8px !important;
        gap: 6px !important;
    }

    .dropdown-menu,
    .optimes-mod-dropdown,
    .module-switch-dropdown {
        display: none !important;
    }

    .nav-dropdown.open .dropdown-menu,
    .optimes-mod-switch-wrap.open .optimes-mod-dropdown,
    .module-switch-wrap.open .module-switch-dropdown {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .dropdown-section-label {
        color: rgba(148, 163, 184, 0.9) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        padding: 6px 10px 2px !important;
    }

    .dropdown-item,
    .optimes-mod-item,
    .mod-switch-item {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 9px !important;
        padding: 10px 12px !important;
        min-height: 48px !important;
    }

    .dropdown-item:hover,
    .dropdown-item:active,
    .optimes-mod-item:hover,
    .mod-switch-item:hover {
        background: rgba(255, 255, 255, 0.14) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
    }

    .drop-title-row strong,
    .drop-text strong {
        color: #ffffff !important;
        font-size: 14px !important;
    }

    .drop-text span.drop-desc,
    .drop-text span {
        color: #cbd5e1 !important;
        font-size: 11.5px !important;
    }

    .drop-icon-box {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        color: #ffffff !important;
    }

    .drop-arrow {
        opacity: 0.8 !important;
        color: rgba(255, 255, 255, 0.6) !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Page Layout Adjustments
   ========================================================================== */
body.case-study-page .main-wrapper,
body:has(.hdr-theme-case-study) .main-wrapper {
    padding-top: 0 !important;
}

/* ==========================================================================
   OptiMES Unified Module Hero Standard
   Guarantees all module hero section images (Nexus, Shield, Pulse, Stock)
   have the exact same size (400px height, full-bleed width) and exact same
   vertical placement below the 1200px branding bar.
   ========================================================================== */
.nexus-branding-bar,
.shield-branding-bar,
.pulse-branding-bar,
.stock-branding-bar,
.module-branding-bar {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 24px 24px 16px 24px !important;
    box-sizing: border-box !important;
    border-bottom: none !important;
}

.nexus-branding-bar .branding-inner,
.shield-branding-bar .branding-inner,
.pulse-branding-bar .branding-inner,
.stock-branding-bar .branding-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}

.nexus-branding-bar .branding-left,
.shield-branding-bar .shield-brand-container,
.shield-branding-bar .branding-left,
.pulse-branding-bar .branding-left,
.stock-branding-bar .module-identity,
.stock-branding-bar .branding-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.nexus-hero-section,
.shield-hero-section,
.pulse-hero-section,
.stock-hero-section {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 36px 0 !important;
    box-sizing: border-box !important;
}

.nexus-hero-section .hero-container,
.shield-hero-section .hero-container,
.pulse-hero-section .hero-container,
.stock-hero-section .hero-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nexus-hero-section .hero-card,
.shield-hero-section .hero-card,
.pulse-hero-section .hero-card,
.stock-hero-section .hero-card,
.stock-hero-section .hero-container {
    position: relative !important;
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.nexus-hero-section .hero-bg-image,
.shield-hero-section .hero-bg-image,
.shield-hero-section .shield-hero-image,
.pulse-hero-section .hero-bg-image,
.stock-hero-section .hero-bg-image,
.stock-hero-section .hero-bg-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center right !important;
    z-index: 1 !important;
    display: block !important;
    border-radius: 0 !important;
    max-height: 400px !important;
}

.nexus-hero-section .hero-overlay,
.shield-hero-section .hero-overlay,
.pulse-hero-section .hero-overlay,
.stock-hero-section .hero-overlay,
.stock-hero-section .hero-vignette-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg,
            rgba(3, 13, 26, 0.95) 0%,
            rgba(4, 21, 43, 0.85) 42%,
            rgba(4, 21, 43, 0.35) 72%,
            rgba(4, 21, 43, 0.1) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   HIGH-TECH MODULE IMAGE SCANNER LINES
   Restored and enhanced across all modules with respective signature colors
   Dimmed down for subtle, high-tech elegance without glare
   ========================================================================== */

.nexus-hero-section .hero-scanner-line,
.shield-hero-section .hero-scanner-line,
.pulse-hero-section .hero-scanner-line,
.stock-hero-section .hero-scanner-line,
.stock-hero-section .hero-backdrop .hero-scanner-line,
.illustration-container .hero-scanner-line,
.motor-centerpiece .hero-scanner-line,
.warehouse-3d-model-wrap .hero-scanner-line {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    opacity: 0.65 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    animation: heroScanSweep 3.5s linear infinite !important;
}

.hero-scanner-line::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: 15% !important;
    right: 15% !important;
    height: 6px !important;
    background: inherit !important;
    filter: blur(4px) !important;
    opacity: 0.35 !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

@keyframes heroScanSweep {
    0% {
        top: 0%;
        opacity: 0;
    }

    4% {
        opacity: 0.65;
    }

    94% {
        opacity: 0.65;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 1. Nexus: Signature Electric Cyan / Blue (#00c2ff / #38bdf8) */
.nexus-hero-section .hero-scanner-line,
.nexus-hero-section .hero-card .hero-scanner-line {
    background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.65) 25%, rgba(255, 255, 255, 0.6) 50%, rgba(0, 194, 255, 0.65) 75%, transparent) !important;
    box-shadow: 0 0 8px rgba(0, 194, 255, 0.55), 0 0 16px rgba(0, 194, 255, 0.3) !important;
}

/* 2. Shield: Signature Alert Coral-Red (#ff5252 / #ff6b6b) */
.shield-hero-section .hero-scanner-line,
.shield-hero-section .hero-card .hero-scanner-line,
.vision-feed-wrapper .hud-scanline {
    background: linear-gradient(90deg, transparent, rgba(255, 82, 82, 0.65) 25%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 107, 107, 0.65) 75%, transparent) !important;
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.55), 0 0 16px rgba(255, 82, 82, 0.3) !important;
}

/* 3. Pulse: Signature Telemetry Mint-Green (#22c55e / #34d399) */
.pulse-hero-section .hero-scanner-line,
.pulse-hero-section .hero-card .hero-scanner-line,
.motor-centerpiece .hero-scanner-line {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.65) 25%, rgba(255, 255, 255, 0.6) 50%, rgba(52, 211, 153, 0.65) 75%, transparent) !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.55), 0 0 16px rgba(34, 197, 94, 0.3) !important;
}

/* 4. Stock: Signature Lidar-Purple (#a855f7 / #c084fc) */
.stock-hero-section .hero-scanner-line,
.stock-hero-section .hero-backdrop .hero-scanner-line,
.warehouse-3d-model-wrap .hero-scanner-line {
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.65) 25%, rgba(255, 255, 255, 0.6) 50%, rgba(192, 132, 252, 0.65) 75%, transparent) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.55), 0 0 16px rgba(168, 85, 247, 0.3) !important;
}

/* 5. Case Studies: Signature Industrial Aqua-Teal (#2dd4bf / #06b6d4) */
.case-study-page .hero-scanner-line,
.case-study-block .hero-scanner-line,
.illustration-container .hero-scanner-line {
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.65) 25%, rgba(255, 255, 255, 0.6) 50%, rgba(6, 182, 212, 0.65) 75%, transparent) !important;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.55), 0 0 16px rgba(45, 212, 191, 0.3) !important;
}

/* Ensure backdrop in Stock fills container properly */
.stock-hero-section .hero-backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.stock-hero-section .hero-foreground {
    position: relative !important;
    z-index: 6 !important;
}

/* Ensure boundary clipping on secondary module image containers */
.motor-centerpiece {
    overflow: hidden !important;
    border-radius: 12px;
}

.warehouse-3d-model-wrap {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px;
}

.shield-main-content {
    padding-top: 0 !important;
}

.shield-hero-section.story-slide {
    padding: 0 !important;
    min-height: 400px !important;
    border-bottom: none !important;
}

.nexus-branding-bar .module-icon-wrap,
.shield-branding-bar .module-icon-wrap,
.pulse-branding-bar .module-icon-wrap,
.stock-branding-bar .module-icon-wrap {
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nexus-icon,
.shield-icon,
.pulse-icon,
.stock-icon {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
}

.nexus-branding-bar .module-title,
.shield-branding-bar .module-title,
.pulse-branding-bar .module-title,
.stock-branding-bar .module-title {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    font-style: italic !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin: 0 0 1px 0 !important;
}

.nexus-branding-bar .module-subtitle,
.shield-branding-bar .module-subtitle,
.pulse-branding-bar .module-subtitle,
.stock-branding-bar .module-subtitle {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-style: italic !important;
    color: #8fa5bd !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.nexus-hero-section .hero-content,
.shield-hero-section .hero-content,
.shield-hero-section .overlay-text,
.pulse-hero-section .hero-content,
.stock-hero-section .hero-content,
.stock-hero-section .hero-foreground {
    position: relative !important;
    z-index: 4 !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 48px 24px !important;
    box-sizing: border-box !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nexus-hero-section .hero-headline,
.shield-hero-section .hero-headline,
.pulse-hero-section .hero-headline,
.stock-hero-section .hero-headline {
    font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: clamp(28px, 3.8vw, 48px) !important;
    font-weight: 800 !important;
    font-style: italic !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.nexus-hero-section .hero-subtext,
.shield-hero-section .hero-subtext,
.pulse-hero-section .hero-subtext,
.stock-hero-section .hero-subtext,
.stock-hero-section .hero-subhead-row {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    max-width: 780px !important;
    line-height: 1.4 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
}

.stock-hero-section .hero-copy-block {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.hero-optimes-wordmark {
    display: inline-block !important;
    height: 21px !important;
    width: auto !important;
    object-fit: contain !important;
    transform: translateY(-1px) !important;
}

.nexus-hero-section .hero-actions,
.shield-hero-section .hero-actions,
.pulse-hero-section .hero-actions,
.stock-hero-section .hero-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.btn-try-demo {
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 28px !important;
    border-radius: 9999px !important;
    font-family: 'Inter Tight', 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-style: italic !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.btn-try-demo::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent) !important;
    transform: skewX(-20deg) !important;
    animation: btnTryDemoShimmer 3.5s infinite !important;
    pointer-events: none !important;
}

@keyframes btnTryDemoShimmer {

    0%,
    65% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-try-demo:hover {
    transform: translateY(-2px) !important;
}

.hdr-theme-nexus .btn-try-demo,
.nexus-hero-section .btn-try-demo {
    background: #3de8f0 !important;
    color: #030d1a !important;
    box-shadow: 0 0 20px rgba(61, 232, 240, 0.45) !important;
}

.hdr-theme-shield .btn-try-demo,
.shield-hero-section .btn-try-demo {
    background: #ff6b6b !important;
    color: #030d1a !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.45) !important;
}

.hdr-theme-pulse .btn-try-demo,
.pulse-hero-section .btn-try-demo {
    background: #34d399 !important;
    color: #030d1a !important;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.45) !important;
}

.hdr-theme-stock .btn-try-demo,
.stock-hero-section .btn-try-demo {
    background: #c084fc !important;
    color: #030d1a !important;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.45) !important;
}

.btn-explore-sub {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 24px !important;
    border-radius: 9999px !important;
    font-family: 'Inter Tight', 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-style: italic !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.btn-explore-sub:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    transform: translateY(-2px) !important;
}

.cta-note {
    font-size: 13px !important;
    font-style: italic !important;
    color: #8fa5bd !important;
}

.stock-hero-section .hero-subhead-row {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    max-width: 920px !important;
    line-height: 1.4 !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
}

.stock-hero-section .wordmark-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.stock-hero-section .wordmark-svg {
    height: 21px !important;
    width: auto !important;
    display: inline-block !important;
    transform: translateY(-1px) !important;
}

.stock-hero-section .hero-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    border-radius: 9999px !important;
    font-family: 'Inter Tight', 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-style: italic !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    background: #c084fc !important;
    color: #030d1a !important;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.45) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.stock-hero-section .hero-cta-btn:hover {
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Comprehensive Device Responsiveness (Laptops, Tablets, & Mobile Phones)
   ========================================================================== */
@media (max-width: 1024px) {

    .nexus-hero-section .hero-headline,
    .shield-hero-section .hero-headline,
    .pulse-hero-section .hero-headline,
    .stock-hero-section .hero-headline {
        font-size: clamp(28px, 4.2vw, 42px) !important;
    }

    .nexus-branding-bar,
    .shield-branding-bar,
    .pulse-branding-bar,
    .stock-branding-bar,
    .module-branding-bar {
        padding: 20px 20px 12px 20px !important;
    }
}

@media (max-width: 768px) {

    /* Balance hero slide spacing on mobile: collapse flex container so card sits flush */
    .shield-hero-section.story-slide {
        min-height: auto !important;
    }

    /* Responsive Module Hero Banner: Expand naturally, never truncate content */
    .nexus-hero-section .hero-card,
    .shield-hero-section .hero-card,
    .pulse-hero-section .hero-card,
    .stock-hero-section .hero-card,
    .stock-hero-section .hero-container,
    .stock-hero-section .hero-stage {
        height: auto !important;
        min-height: 360px !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 16px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .nexus-hero-section .hero-bg-image,
    .shield-hero-section .hero-bg-image,
    .shield-hero-section .shield-hero-image,
    .pulse-hero-section .hero-bg-image,
    .stock-hero-section .hero-bg-image,
    .stock-hero-section .hero-bg-img {
        max-height: none !important;
    }

    /* Uniform dark backdrop for crisp centered readability across bright machine photo */
    .nexus-hero-section .hero-overlay,
    .shield-hero-section .hero-overlay,
    .pulse-hero-section .hero-overlay,
    .stock-hero-section .hero-vignette-overlay {
        background: rgba(3, 13, 26, 0.84) !important;
    }

    .nexus-hero-section .hero-content,
    .shield-hero-section .hero-content,
    .shield-hero-section .overlay-text,
    .pulse-hero-section .hero-content,
    .stock-hero-section .hero-content,
    .stock-hero-section .hero-foreground,
    .stock-hero-section .hero-copy-block {
        padding: 28px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .nexus-hero-section .hero-headline,
    .shield-hero-section .hero-headline,
    .pulse-hero-section .hero-headline,
    .stock-hero-section .hero-headline,
    .shield-hero-section .overlay-text h1 {
        font-size: clamp(24px, 5.5vw, 36px) !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .nexus-hero-section .hero-subtext,
    .shield-hero-section .hero-subtext,
    .pulse-hero-section .hero-subtext,
    .stock-hero-section .hero-subtext,
    .stock-hero-section .hero-subhead-row {
        font-size: 16px !important;
        line-height: 1.45 !important;
        flex-wrap: wrap !important;
        margin-bottom: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .nexus-hero-section .hero-actions,
    .shield-hero-section .hero-actions,
    .pulse-hero-section .hero-actions,
    .stock-hero-section .hero-actions {
        gap: 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .btn-try-demo {
        display: inline-flex !important;
        width: auto !important;
        max-width: max-content !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 10px 24px !important;
        font-size: 14.5px !important;
        margin: 0 auto !important;
    }

    .motor-centerpiece {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        order: 1 !important;
    }

    .nexus-branding-bar .branding-inner,
    .shield-branding-bar .branding-inner,
    .pulse-branding-bar .branding-inner,
    .stock-branding-bar .branding-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }
}

@media (max-width: 600px) {

    .nexus-hero-section .hero-subtext,
    .shield-hero-section .hero-subtext,
    .pulse-hero-section .hero-subtext,
    .stock-hero-section .hero-subhead-row {
        font-size: 14.5px !important;
        gap: 6px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-optimes-wordmark,
    .stock-hero-section .wordmark-svg {
        height: 18px !important;
    }

    .nexus-branding-bar .module-title,
    .shield-branding-bar .module-title,
    .pulse-branding-bar .module-title,
    .stock-branding-bar .module-title {
        font-size: 22px !important;
    }

    .nexus-branding-bar .module-subtitle,
    .shield-branding-bar .module-subtitle,
    .pulse-branding-bar .module-subtitle,
    .stock-branding-bar .module-subtitle {
        font-size: 12px !important;
    }

    .nexus-branding-bar .module-icon-wrap,
    .shield-branding-bar .module-icon-wrap,
    .pulse-branding-bar .module-icon-wrap,
    .stock-branding-bar .module-icon-wrap {
        width: 44px !important;
        height: 44px !important;
    }

    .nexus-icon,
    .shield-icon,
    .pulse-icon,
    .stock-icon {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (max-width: 480px) {

    .nexus-hero-section .hero-headline,
    .shield-hero-section .hero-headline,
    .pulse-hero-section .hero-headline,
    .stock-hero-section .hero-headline,
    .shield-hero-section .overlay-text h1 {
        font-size: 24px !important;
        line-height: 1.22 !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .nexus-hero-section .hero-content,
    .shield-hero-section .hero-content,
    .shield-hero-section .overlay-text,
    .pulse-hero-section .hero-content,
    .stock-hero-section .hero-content,
    .stock-hero-section .hero-foreground {
        padding: 22px 14px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .nexus-hero-section .hero-subtext,
    .shield-hero-section .hero-subtext,
    .pulse-hero-section .hero-subtext,
    .stock-hero-section .hero-subhead-row {
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .nexus-hero-section .hero-actions,
    .shield-hero-section .hero-actions,
    .pulse-hero-section .hero-actions,
    .stock-hero-section .hero-actions {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .btn-try-demo {
        width: auto !important;
        max-width: max-content !important;
        padding: 9px 22px !important;
        font-size: 13.5px !important;
        margin: 0 auto !important;
    }
}