@font-face {
    font-family: 'MyDashboardFont';
    src: url('../assets/fonts/InterTight-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@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;
}

/* ==========================================================================
   CSS Variables & Design System Tokens
   ========================================================================== */
:root {
    --font-main: 'MyDashboardFont', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-italic: 'MyDashboardItalicFont', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Palette */
    --bg-dark-1: #030a14;
    --bg-dark-2: #051a30;
    --bg-dark-3: #083460;

    --accent-cyan: #38bdf8;
    --accent-blue: #0284c7;
    --accent-glow: rgba(56, 189, 248, 0.35);

    --text-white: #ffffff;
    --text-muted: #8fa5bc;
    --text-subtle: #5f748a;

    /* Module Colors */
    --mod-nexus-header: #c2e5ff;
    --mod-nexus-text: #0b2f54;
    --mod-pulse-header: #cdf4d3;
    --mod-pulse-text: #0e3b1c;
    --mod-shield-header: #ffc7c2;
    --mod-shield-text: #4a130f;
    --mod-stock-header: #dcccff;
    --mod-stock-text: #2f1359;

    /* Elevation & Glassmorphism */
    --glass-bg: rgba(6, 20, 38, 0.72);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(56, 189, 248, 0.5);
    --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);

    --nav-height: 52px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-white);
    background-color: var(--bg-dark-1);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* Drives the virtual scroll track */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar for the page and inner containers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(3, 10, 20, 0.6);
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ==========================================================================
   Background Ambient Scene
   ========================================================================== */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, var(--bg-dark-3) 0%, var(--bg-dark-2) 50%, var(--bg-dark-1) 100%);
}

.background-image .bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(3, 10, 20, 0.8) 90%);
}

/* ==========================================================================
   Top Fixed Navigation Bar
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(4, 18, 34, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.nav-brand .logo {
    height: clamp(24px, 3vw, 30px);
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
}

.nav-btn {
    font-family: var(--font-italic);
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 7px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Top Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 99;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
    transition: width 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   Side Pagination Navigation Dots
   ========================================================================== */
.side-pagination {
    position: fixed;
    right: clamp(12px, 2.5vw, 32px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 90;
}

.dot-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot-btn:hover .dot-indicator,
.dot-btn.active .dot-indicator {
    background: var(--accent-cyan);
    border-color: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.dot-tooltip {
    position: absolute;
    right: 28px;
    white-space: nowrap;
    background: rgba(4, 18, 34, 0.9);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.dot-btn:hover .dot-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Fixed Viewport Stage & Slides Architecture
   ========================================================================== */
.viewport-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding-top: var(--nav-height);
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.story-slide {
    position: absolute;
    inset: 0;
    top: var(--nav-height);
    width: 100%;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vh, 32px) clamp(16px, 4vw, 48px);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(35px) scale(0.97);
    filter: blur(5px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.story-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 20;
}

.story-slide.prev {
    transform: translateY(-35px) scale(0.97);
    filter: blur(5px);
}

.story-slide.next {
    transform: translateY(35px) scale(0.97);
    filter: blur(5px);
}

.slide-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    max-height: calc(100vh - var(--nav-height) - 40px);
    max-height: calc(100dvh - var(--nav-height) - 40px);
}

/* ==========================================================================
   Shared Typography & Buttons
   ========================================================================== */
.slide-header {
    margin-bottom: clamp(10px, 2vh, 24px);
    text-align: center;
}

.slide-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: clamp(13px, 1.4vw, 16px);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.45;
}

.text-center {
    text-align: center;
}

.primary-btn,
.secondary-btn {
    font-family: var(--font-main);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 700;
    border-radius: 8px;
    padding: clamp(9px, 1.5vh, 12px) clamp(22px, 2.5vw, 36px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
    border: none;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.55);
    background: linear-gradient(135deg, #0369a1, #38bdf8);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

/* ==========================================================================
   Slide 0: Hero Section
   ========================================================================== */
.hero-content {
    gap: clamp(8px, 1.5vh, 18px);
}

.hero-logo-box {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-emblem-container,
.logo1 {
    position: relative;
    width: clamp(90px, 9vw, 110px);
    height: clamp(90px, 9vw, 110px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
}

.emblem-gear {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spinContinuous 10s linear infinite;
    display: block;
    transform-origin: center center;
    will-change: transform;
}

.emblem-eye {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transform: none !important;
}

@keyframes spinContinuous {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.main1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 24px);
    max-width: 95vw;
    margin: clamp(4px, 1vh, 10px) 0;
    overflow: visible;
}

.main1 .line1,
.main1 .line2 {
    width: clamp(50px, 18vw, 300px);
    height: auto;
    opacity: 0;
    border-radius: 9999px;
}

.main1 .line1 {
    position: relative;
    left: -15px;
}

.main1.animate-lines .line1 {
    animation: SlideInLeft 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.main1.animate-lines .line2 {
    animation: SlideInRight 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes SlideInLeft {
    0% {
        transform: translateX(-150px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes SlideInRight {
    0% {
        transform: translateX(150px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo2 {
    width: clamp(160px, 26vw, 340px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.oph1 {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0;
}

.oph3 {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: #b3d7f5;
    margin: 0;
}

.opp {
    font-size: clamp(13px, 1.4vw, 16px);
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.mybutt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    margin-top: clamp(6px, 1.5vh, 14px);
    flex-wrap: wrap;
}

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: clamp(10px, 2vh, 24px);
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.8;
    animation: floatUpDown 2s ease-in-out infinite;
    cursor: pointer;
}

.chevron-down {
    stroke: var(--accent-cyan);
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ==========================================================================
   Slide 1: Factory Operations & Live Beacons
   ========================================================================== */
.factory-content {
    width: 100%;
}

.slide-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.replay-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-cyan);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.replay-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.replay-btn .replay-icon {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.replay-btn:hover .replay-icon {
    transform: rotate(180deg);
}

.optimes-factory-wrapper {
    position: relative;
    width: 100%;
    max-width: 937px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.optimes-factory-image-contimer {
    position: relative;
    width: 100%;
    aspect-ratio: 937 / 532;
    max-height: 58vh;
    border-radius: 12px;
}

.optimes-factory-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Beacons Positioning (Calibrated percentage-relative to factory container) */
.beacon-item {
    position: absolute;
    cursor: default;
    pointer-events: none;
    z-index: 10;
}

.beacon-item img {
    display: block;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.75));
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-beacon-wrapper,
.nexus-beacon-wrapper,
.pulse-beacon-wrapper,
.shield-beacon-wrapper {
    height: auto;
}

.stock-beacon-wrapper img,
.nexus-beacon-wrapper img,
.pulse-beacon-wrapper img,
.shield-beacon-wrapper img {
    width: 100%;
    height: auto;
}

/* Individual Beacon Coordinates & Sizes: Well-spaced across distinct factory sectors */
.stock-beacon-wrapper {
    left: 13%;
    top: 29%;
    width: 14%;
}

.nexus-beacon-wrapper {
    left: 67%;
    top: 29%;
    width: 21.5%;
}

.pulse-beacon-wrapper {
    left: 13%;
    top: 59%;
    width: 17.5%;
}

.shield-beacon-wrapper {
    left: 68.5%;
    top: 51%;
    width: 20%;
}

/* Beacon Glowing Pulse Rings: Positioned precisely behind the head of each beacon */
.beacon-pulse-ring {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65, 244, 252, 0.8) 0%, rgba(56, 189, 248, 0.4) 40%, rgba(56, 189, 248, 0) 75%);
    box-shadow: 0 0 14px 4px var(--accent-cyan);
    animation: beaconPulse 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

@keyframes beaconPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.95;
    }

    60% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

/* Stock Beacon: Head is at right end of horizontal SVG (cx: 118 / 130 = 90.8%, cy: 12 / 24 = 50%) */
.stock-beacon-wrapper .beacon-pulse-ring {
    left: 90.8%;
    top: 50%;
}

/* Nexus Beacon: Head is at left end of horizontal SVG (cx: 12 / 200 = 6%, cy: 12 / 24 = 50%) */
.nexus-beacon-wrapper .beacon-pulse-ring {
    left: 6%;
    top: 50%;
}

/* Pulse Beacon: Head is at top-right (cx: 153 / 165 = 92.7%, cy: 12 / 140 = 8.6%) */
.pulse-beacon-wrapper .beacon-pulse-ring {
    left: 92.7%;
    top: 8.6%;
}

/* Shield Beacon: Head is at top-left (cx: 12 / 190 = 6.3%, cy: 12 / 140 = 8.6%) */
.shield-beacon-wrapper .beacon-pulse-ring {
    left: 6.3%;
    top: 8.6%;
}

/* Beacon End Icon - Hidden on desktop by default */
.beacon-end-icon {
    display: none;
    position: absolute;
    pointer-events: auto;
    z-index: 25;
    text-decoration: none;
    cursor: pointer;
    border-radius: 9px;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                filter 0.25s ease,
                opacity 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.beacon-end-icon .beacon-end-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

/* --- ANIMATED STATE: Fast, crisp, synchronized beacon and card arrivals --- */
.optimes-factory-image-contimer.animate-beacons .beacon-item img {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered beacon shoots */
.optimes-factory-image-contimer.animate-beacons .stock-beacon-wrapper img {
    transition-delay: 0.1s;
}

.optimes-factory-image-contimer.animate-beacons .nexus-beacon-wrapper img {
    transition-delay: 0.3s;
}

.optimes-factory-image-contimer.animate-beacons .pulse-beacon-wrapper img {
    transition-delay: 0.5s;
}

.optimes-factory-image-contimer.animate-beacons .shield-beacon-wrapper img {
    transition-delay: 0.7s;
}

/* Pulse rings activate immediately when each beacon lands */
.optimes-factory-image-contimer.animate-beacons .stock-beacon-wrapper .beacon-pulse-ring {
    opacity: 1;
    transition-delay: 0.2s;
}

.optimes-factory-image-contimer.animate-beacons .nexus-beacon-wrapper .beacon-pulse-ring {
    opacity: 1;
    transition-delay: 0.4s;
}

.optimes-factory-image-contimer.animate-beacons .pulse-beacon-wrapper .beacon-pulse-ring {
    opacity: 1;
    transition-delay: 0.6s;
}

.optimes-factory-image-contimer.animate-beacons .shield-beacon-wrapper .beacon-pulse-ring {
    opacity: 1;
    transition-delay: 0.8s;
}

/* --- MODULE INFO CARDS --- */
.module-info {
    position: absolute;
    background: rgba(4, 18, 34, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 12px 16px;
    width: clamp(170px, 19vw, 220px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: left;
    cursor: pointer;
    pointer-events: none;
    z-index: 15;

    /* Animation defaults: hidden & pushed down 16px */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.optimes-factory-image-contimer.animate-beacons .module-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Pure CSS Hover State: Activates smoothly ONLY on card mouseenter */
.optimes-factory-image-contimer.animate-beacons .module-info:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.4);
}

.module-info h4 {
    margin: 4px 0 3px 0;
    font-size: clamp(12px, 1.1vw, 14px);
    color: #fff;
    font-weight: 700;
}

.module-info p {
    margin: 0;
    font-size: clamp(10px, 0.9vw, 12px);
    color: var(--text-muted);
    line-height: 1.35;
}

.info-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.shield-badge {
    background: #ffc7c2;
    color: #4a130f;
}

.nexus-badge {
    background: #c2e5ff;
    color: #0b2f54;
}

.stock-badge {
    background: #dcccff;
    color: #2f1359;
}

.pulse-badge {
    background: #cdf4d3;
    color: #0e3b1c;
}

/* Coordinates for Spatial Module Info Cards - Balanced 4-corner layout */
#stock-info {
    left: -9%;
    top: 18%;
}

#nexus-info {
    left: 88%;
    top: 18%;
}

#pulse-info {
    left: -9%;
    top: 62%;
}

#shield-info {
    left: 88%;
    top: 62%;
}

/* Info cards appear rapidly in sync with their respective beacons */
.optimes-factory-image-contimer.animate-beacons #stock-info {
    transition-delay: 0.25s;
}

.optimes-factory-image-contimer.animate-beacons #nexus-info {
    transition-delay: 0.45s;
}

.optimes-factory-image-contimer.animate-beacons #pulse-info {
    transition-delay: 0.65s;
}

.optimes-factory-image-contimer.animate-beacons #shield-info {
    transition-delay: 0.85s;
}

/* Mobile Module Selector Bar */
.mobile-modules-drawer {
    display: none;
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.mod-tabs-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.mod-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mod-tab.active {
    background: var(--accent-cyan);
    color: #030a14;
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   Slide 2: Comparison Section (Why OptiMES)
   ========================================================================== */
.comparison-content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

/* Interactive OptiMES Eye Emblem with Cursor Tracking */
.comparison-emblem-container,
.comparison-emblem-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: clamp(140px, 18vw, 220px);
    height: clamp(140px, 18vw, 220px);
    margin: 0;
    filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.45));
    transform-origin: center center;
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1),
                filter 1.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, filter;
    user-select: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 25;
}

.comparison-emblem-container.is-drifted {
    transform: translate(calc(-50% + var(--drift-x, -33vw)), calc(-50% + var(--drift-y, -26vh))) scale(var(--drift-scale, 0.44));
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.35));
}

@media (max-width: 768px) {
    .comparison-emblem-container {
        width: clamp(130px, 32vw, 160px);
        height: clamp(130px, 32vw, 160px);
    }
}

.comparison-gear-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spinContinuous 10s linear infinite;
    display: block;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;
}

.comparison-eye-svg,
.tracking-emblem-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
    pointer-events: none;
}

.tracking-iris-group {
    pointer-events: none;
}

.tracking-pupil-group {
    pointer-events: none;
    will-change: transform;
    transform-box: view-box;
}

/* ==========================================================================
   Slide 2: Why OptiMES Content & Orchestrated Reveals
   ========================================================================== */
.why-optimes-section {
    width: 100%;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    padding: clamp(6px, 1.5vh, 16px) 0;
}

.why-optimes-layout-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.why-optimes-header-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 26px);
    width: 100%;
}

.why-optimes-emblem-col {
    flex-shrink: 0;
    width: clamp(68px, 6.5vw, 82px);
    display: flex;
    justify-content: center;
}

.why-optimes-emblem-anchor {
    width: clamp(68px, 6.5vw, 82px);
    height: clamp(68px, 6.5vw, 82px);
    visibility: hidden;
    pointer-events: none;
}

.why-optimes-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(68px, 6.5vw, 82px);
    text-align: left;
}

.why-optimes-body {
    width: 100%;
    padding-left: calc(clamp(68px, 6.5vw, 82px) + clamp(16px, 2vw, 26px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Header Reveal: Fades & unmasks from left to right */
.why-optimes-title {
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 clamp(12px, 1.6vh, 18px) 0;
    line-height: 1.15;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-24px);
    transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease;
    will-change: clip-path, transform, opacity;
}

.why-optimes-title.is-revealed {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    transform: translateX(0);
}

/* Subheading Reveal: Fades & unmasks from left to right after header completes */
.why-optimes-subtitle {
    font-size: clamp(15px, 1.6vw, 21px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.35;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-24px);
    transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease;
    will-change: clip-path, transform, opacity;
}

.why-optimes-subtitle.is-revealed {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
    transform: translateX(0);
}

/* Subtle Divider Line: Unrolls left to right between headers and body */
.why-optimes-divider {
    width: 100%;
    max-width: 960px;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.18) 70%, rgba(56, 189, 248, 0) 100%);
    margin: clamp(18px, 2.4vh, 26px) 0 clamp(20px, 2.6vh, 28px) 0;
    border: none;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease;
    will-change: transform, opacity;
}

.why-optimes-divider.is-revealed {
    opacity: 1;
    transform: scaleX(1);
}

/* Body Description: Smooth slide-up fade */
.why-optimes-desc {
    font-size: clamp(13px, 1.15vw, 15px);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    max-width: 780px;
    margin: 0 0 clamp(24px, 3.4vh, 36px) 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-optimes-desc.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 4 Feature Cards Grid: Staggered glassmorphic reveal with ample spacing */
.why-optimes-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.4vw, 20px);
    margin: 0 0 clamp(26px, 3.8vh, 42px) 0;
    width: 100%;
}

.why-optimes-card {
    background: rgba(4, 20, 38, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    padding: clamp(14px, 1.4vw, 18px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(4px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.why-optimes-card.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.why-optimes-card:hover {
    border-color: #38bdf8;
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.35);
}

.why-optimes-card .card-title {
    color: #38bdf8;
    font-size: clamp(12.5px, 1.05vw, 14.5px);
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.why-optimes-card .card-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(11px, 0.9vw, 12.5px);
    line-height: 1.48;
    margin: 0;
}

/* Bottom Quote: Floating centered italic accent with increased prominence */
.why-optimes-quote {
    font-size: clamp(14.5px, 1.25vw, 17px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto;
    padding: 0;
    line-height: 1.55;
    max-width: 820px;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-optimes-quote.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
    .why-optimes-body {
        padding-left: calc(clamp(56px, 6vw, 70px) + 16px);
    }
    .why-optimes-emblem-col {
        width: clamp(56px, 6vw, 70px);
    }
    .why-optimes-emblem-anchor {
        width: clamp(56px, 6vw, 70px);
        height: clamp(56px, 6vw, 70px);
    }
    .why-optimes-titles {
        min-height: clamp(56px, 6vw, 70px);
    }
}

@media (max-width: 900px) {
    .why-optimes-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    #slide-comparison {
        padding: 10px 16px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #slide-comparison .comparison-content {
        max-height: calc(100dvh - var(--nav-height) - 16px) !important;
        width: 100% !important;
        margin: auto !important;
    }

    .why-optimes-section {
        padding: 2px 0;
    }

    .why-optimes-header-row {
        gap: 12px;
        margin-bottom: 4px;
    }

    .why-optimes-emblem-col {
        width: 44px;
        flex-shrink: 0;
    }

    .why-optimes-emblem-anchor {
        width: 44px;
        height: 44px;
    }

    .why-optimes-titles {
        min-height: auto;
    }

    .why-optimes-title {
        font-size: clamp(20px, 5.5vw, 25px);
        margin: 0 0 2px 0;
        line-height: 1.15;
    }

    .why-optimes-subtitle {
        font-size: clamp(11.5px, 3.2vw, 13px);
        line-height: 1.3;
    }

    .why-optimes-body {
        padding-left: 0;
    }

    .desc-desktop-lead {
        display: none;
    }

    .why-optimes-divider {
        margin: 6px 0 8px 0;
    }

    .why-optimes-desc {
        font-size: clamp(11.5px, 3.1vw, 12.5px);
        line-height: 1.4;
        max-width: 100%;
        margin: 0 0 10px 0;
    }

    .why-optimes-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 10px;
        width: 100%;
    }

    .why-optimes-card {
        padding: 9px 10px;
        border-radius: 8px;
        background: rgba(4, 20, 38, 0.82);
        border: 1px solid rgba(56, 189, 248, 0.22);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    }

    .why-optimes-card .card-title {
        font-size: 11.5px;
        font-weight: 700;
        color: #38bdf8;
        margin: 0 0 3px 0;
        line-height: 1.25;
    }

    .why-optimes-card .card-text {
        font-size: 10px;
        line-height: 1.35;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
    }

    .why-optimes-quote {
        font-size: 11.5px;
        line-height: 1.4;
        text-align: center;
        max-width: 100%;
        margin: 4px auto 0 auto;
    }
}

@media (max-width: 380px) {
    .why-optimes-emblem-col {
        width: 38px;
    }

    .why-optimes-emblem-anchor {
        width: 38px;
        height: 38px;
    }

    .why-optimes-title {
        font-size: 19px;
    }

    .why-optimes-subtitle {
        font-size: 11px;
    }

    .why-optimes-cards-grid {
        gap: 6px !important;
    }

    .why-optimes-card {
        padding: 7px 8px;
    }

    .why-optimes-card .card-title {
        font-size: 10.5px;
    }

    .why-optimes-card .card-text {
        font-size: 9.5px;
    }

    .why-optimes-quote {
        font-size: 10px;
    }
}

.main2,
.main3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 24px);
    margin-bottom: clamp(8px, 1.4vh, 16px);
    overflow-x: hidden;
}

.main2 .line1,
.main2 .line2,
.main3 .line1,
.main3 .line2 {
    opacity: 0;
}

.main2.animate-lines .line1,
.main3.animate-lines .line1 {
    animation: SlideInLeft 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

.main2.animate-lines .line2,
.main3.animate-lines .line2 {
    animation: SlideInRight 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

.comparison-img,
.modules-heading-img {
    height: clamp(28px, 4vw, 42px);
    width: auto;
    object-fit: contain;
}

.comparison-content .slide-subtitle {
    margin-bottom: clamp(6px, 1vh, 12px);
}

.optimes-table-container {
    width: auto;
    max-width: 100%;
    margin-top: clamp(22px, 3.5vh, 38px);
    background: rgba(4, 18, 34, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: clamp(14px, 2vh, 22px) clamp(16px, 2.5vw, 28px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.optimes-table {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
}

.comparison-table-img {
    width: auto;
    max-width: min(880px, 86vw);
    max-height: min(420px, 46vh);
    height: auto;
    object-fit: contain;
    display: block;
    transform: translateY(10px);
}

.comparison-swipe-hint {
    display: none;
}

/* ==========================================================================
   Slide 3: Core Modules Showcase
   ========================================================================== */
.modules-content {
    width: 100%;
    max-width: 1180px;
}

.modules-content .slide-subtitle {
    margin-bottom: clamp(6px, 1vh, 12px);
}

.modules-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.8vw, 24px);
    width: 100%;
    margin-top: clamp(24px, 3.8vh, 44px);
}

.module-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    padding: clamp(12px, 1.8vh, 18px) clamp(14px, 1.6vw, 20px);
    gap: 12px;
}

.card-header img {
    height: clamp(28px, 3.2vw, 38px);
    width: clamp(28px, 3.2vw, 38px);
    object-fit: contain;
}

.card-header h3 {
    margin: 0;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 700;
}

/* Distinct Header Colors */
.optimes-nexus-inside-card {
    background-color: var(--mod-nexus-header);
    color: var(--mod-nexus-text);
}

.optimes-pulse-inside-card {
    background-color: var(--mod-pulse-header);
    color: var(--mod-pulse-text);
}

.optimes-shield-inside-card {
    background-color: var(--mod-shield-header);
    color: var(--mod-shield-text);
}

.optimes-stock-inside-card {
    background-color: var(--mod-stock-header);
    color: var(--mod-stock-text);
}

.card-body {
    position: relative;
    overflow: hidden;
    padding: clamp(12px, 1.8vh, 18px) clamp(14px, 1.6vw, 18px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    min-height: 200px;
    background: #020713;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    isolation: isolate;
}

.card-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0.92;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.module-card:hover .card-bg-video {
    opacity: 1;
    transform: scale(1.05);
}

.card-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.04) 40%, rgba(2, 9, 18, 0.72) 75%, rgba(2, 9, 18, 0.94) 100%);
    pointer-events: none;
    transition: background 0.4s ease;
}

.module-card:hover .card-video-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 40%, rgba(2, 9, 18, 0.58) 75%, rgba(2, 9, 18, 0.88) 100%);
}

.card-body-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
    pointer-events: none;
}

.card-desc-line {
    font-size: clamp(11px, 0.82vw, 12.5px);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.01em;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 5px 9px;
    width: fit-content;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-action-text {
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease, transform 0.25s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.module-card:hover .card-action-text {
    color: #7dd3fc;
    transform: translateX(3px);
}

/* Mobile Modules Carousel Dots (Hidden on desktop) */
.modules-carousel-dots {
    display: none;
}

/* ==========================================================================
   Slide 4: Contact & Footer
   ========================================================================== */
.slide-content.contact-content,
.contact-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 36px);
    box-sizing: border-box;
}

/* ==========================================================================
   Virtual Scroll Track
   Allows browser scrollbar, mouse wheel, trackpad & page keys to drive the scene
   ========================================================================== */
.virtual-scroll-track {
    width: 1px;
    height: 500vh;
    /* 100vh per slide */
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .modules-grid-container {
        grid-template-columns: repeat(2, 1fr);
        max-height: 56vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-right: 4px;
    }

    #stock-info {
        left: 2%;
        top: 14%;
    }

    #nexus-info {
        left: auto;
        right: 2%;
        top: 14%;
    }

    #pulse-info {
        left: 2%;
        top: 64%;
    }

    #shield-info {
        left: auto;
        right: 2%;
        top: 64%;
    }
}

/* Tablets & Mobile Screen (max-width: 860px) */
@media (max-width: 860px) {
    :root {
        --nav-height: 52px;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-buttons {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(3, 14, 28, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        max-height: calc(100vh - var(--nav-height));
        max-height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-buttons.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 15.5px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Side Pagination on Mobile: Hidden to prevent interfering with touch swipe */
    .side-pagination {
        display: none !important;
    }

    /* Factory Info Cards on Tablet / Mobile: Hide spatial cards, show drawer & beacon end icons */
    .module-info {
        display: none !important;
    }

    /* Slide 1 Factory Mobile Beacons: Pushed inward toward center */
    .stock-beacon-wrapper {
        left: 20% !important;
        top: 29% !important;
        width: 13.5% !important;
    }

    .pulse-beacon-wrapper {
        left: 20% !important;
        top: 57% !important;
        width: 15.5% !important;
    }

    .nexus-beacon-wrapper {
        left: 58% !important;
        top: 29% !important;
        width: 17.5% !important;
    }

    .shield-beacon-wrapper {
        left: 58% !important;
        top: 50% !important;
        width: 17% !important;
    }

    /* Beacon glowing pulse rings scaled for mobile */
    .beacon-pulse-ring {
        width: 16px !important;
        height: 16px !important;
    }

    /* Beacon End Icons: Display on mobile at beacon line endpoints */
    .beacon-end-icon {
        display: flex !important;
        width: clamp(28px, 7.5vw, 36px) !important;
        height: clamp(28px, 7.5vw, 36px) !important;
        padding: 0;
        background: transparent;
        opacity: 0;
        pointer-events: none;
        z-index: 25;
        border-radius: 9px;
    }

    /* Animate in with beacons */
    .optimes-factory-image-contimer.animate-beacons .beacon-end-icon {
        opacity: 1;
        pointer-events: auto;
    }

    /* Stock Module End Icon (Purple Glow) */
    .stock-beacon-wrapper .beacon-end-icon {
        left: 0;
        top: 50%;
        transform: translate(-80%, -50%);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(192, 132, 252, 0.6));
    }
    .optimes-factory-image-contimer.animate-beacons .stock-beacon-wrapper .beacon-end-icon {
        transition-delay: 0.2s;
    }
    .stock-beacon-wrapper .beacon-end-icon:active,
    .stock-beacon-wrapper .beacon-end-icon:hover {
        transform: translate(-80%, -50%) scale(1.15);
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(192, 132, 252, 0.9));
    }

    /* Pulse Module End Icon (Green Glow) */
    .pulse-beacon-wrapper .beacon-end-icon {
        left: 0;
        top: 91.4%;
        transform: translate(-80%, -50%);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(52, 211, 153, 0.6));
    }
    .optimes-factory-image-contimer.animate-beacons .pulse-beacon-wrapper .beacon-end-icon {
        transition-delay: 0.6s;
    }
    .pulse-beacon-wrapper .beacon-end-icon:active,
    .pulse-beacon-wrapper .beacon-end-icon:hover {
        transform: translate(-80%, -50%) scale(1.15);
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(52, 211, 153, 0.9));
    }

    /* Nexus Module End Icon (Cyan Glow) */
    .nexus-beacon-wrapper .beacon-end-icon {
        left: 100%;
        top: 50%;
        transform: translate(-20%, -50%);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
    }
    .optimes-factory-image-contimer.animate-beacons .nexus-beacon-wrapper .beacon-end-icon {
        transition-delay: 0.4s;
    }
    .nexus-beacon-wrapper .beacon-end-icon:active,
    .nexus-beacon-wrapper .beacon-end-icon:hover {
        transform: translate(-20%, -50%) scale(1.15);
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.9));
    }

    /* Shield Module End Icon (Coral/Red Glow) */
    .shield-beacon-wrapper .beacon-end-icon {
        left: 100%;
        top: 91.4%;
        transform: translate(-20%, -50%);
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 107, 107, 0.6));
    }
    .optimes-factory-image-contimer.animate-beacons .shield-beacon-wrapper .beacon-end-icon {
        transition-delay: 0.8s;
    }
    .shield-beacon-wrapper .beacon-end-icon:active,
    .shield-beacon-wrapper .beacon-end-icon:hover {
        transform: translate(-20%, -50%) scale(1.15);
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(255, 107, 107, 0.9));
    }

    .mobile-modules-drawer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: clamp(20px, 3.5vh, 28px);
        width: 100%;
    }

    .mod-tabs-group {
        display: flex;
        gap: clamp(8px, 2.2vw, 10px);
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .mod-tab {
        min-height: 38px;
        padding: 6px 14px;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mod-drawer-launch {
        min-height: 40px;
        padding: 8px 20px;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Comparison Table: Never clipped on the left, starts strictly at 0px with smooth scroll */
    .optimes-table-container {
        padding: 10px 14px !important;
        margin-top: 10px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        overscroll-behavior: contain !important;
        text-align: left !important;
    }

    .optimes-table {
        display: block !important;
        width: max-content !important;
        min-width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .comparison-table-img {
        display: block !important;
        margin: 0 !important;
        transform: none !important;
        min-width: 540px !important;
        width: 540px !important;
        max-width: none !important;
        height: auto !important;
        max-height: 48vh !important;
    }

    .comparison-swipe-hint {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 6px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: var(--accent-cyan) !important;
        opacity: 0.85 !important;
    }

    /* ==========================================================================
       Slide 3: Modules Showcase Mobile & Tablet Refinements
       ========================================================================== */
    .main3 {
        margin-bottom: 12px !important;
        gap: clamp(8px, 2.2vw, 16px) !important;
    }

    .modules-heading-img {
        height: clamp(20px, 5.2vw, 25px) !important;
        width: auto !important;
    }

    .main3 .line1,
    .main3 .line2 {
        display: block !important;
        width: clamp(24px, 7vw, 42px) !important;
        height: 2px !important;
        min-height: 2px !important;
        opacity: 0.8 !important;
        border-radius: 9999px !important;
    }

    .modules-content .slide-subtitle {
        font-size: clamp(12px, 3.2vw, 13px) !important;
        line-height: 1.45 !important;
        color: #94a3b8 !important;
        margin-bottom: clamp(16px, 2.8vh, 24px) !important;
        max-width: 92% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Modules Container: Smooth Horizontal Snap Carousel */
    .modules-grid-container {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        gap: 14px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-top: 4px !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 6px clamp(18px, 6vw, 36px) 14px clamp(18px, 6vw, 36px) !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        max-height: none !important;
    }

    .modules-grid-container::-webkit-scrollbar {
        display: none !important;
    }

    /* Square-Shaped Module Cards */
    .module-card {
        flex: 0 0 clamp(245px, 68vw, 280px) !important;
        width: clamp(245px, 68vw, 280px) !important;
        height: clamp(265px, 74vw, 305px) !important;
        aspect-ratio: 1 / 1.08 !important;
        border-radius: 18px !important;
        background: rgba(4, 14, 28, 0.94) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
        overflow: hidden !important;
        scroll-snap-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        text-decoration: none !important;
        transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    }

    .module-card:active {
        transform: scale(0.98) !important;
    }

    /* Soothing Brand-Themed Borders (Less on the eyes) */
    .optimes-nexus-card {
        border-color: rgba(56, 189, 248, 0.28) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.1) !important;
    }
    .optimes-pulse-card {
        border-color: rgba(52, 211, 153, 0.28) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(52, 211, 153, 0.1) !important;
    }
    .optimes-shield-card {
        border-color: rgba(255, 107, 107, 0.28) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 107, 107, 0.1) !important;
    }
    .optimes-stock-card {
        border-color: rgba(192, 132, 252, 0.28) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(192, 132, 252, 0.1) !important;
    }

    /* Refined Dark Glassmorphic Card Headers (Soothing, Not Glaring) */
    .card-header {
        padding: 10px 14px !important;
        gap: 10px !important;
        display: flex !important;
        align-items: center !important;
        border-top-left-radius: 17px !important;
        border-top-right-radius: 17px !important;
    }

    .card-header img {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }

    .card-header h3 {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .optimes-nexus-inside-card {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(10, 24, 44, 0.96) 100%) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
        color: #ffffff !important;
    }

    .optimes-pulse-inside-card {
        background: linear-gradient(135deg, rgba(52, 211, 153, 0.22) 0%, rgba(8, 28, 20, 0.96) 100%) !important;
        border-bottom: 1px solid rgba(52, 211, 153, 0.25) !important;
        color: #ffffff !important;
    }

    .optimes-shield-inside-card {
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.22) 0%, rgba(36, 14, 18, 0.96) 100%) !important;
        border-bottom: 1px solid rgba(255, 107, 107, 0.25) !important;
        color: #ffffff !important;
    }

    .optimes-stock-inside-card {
        background: linear-gradient(135deg, rgba(192, 132, 252, 0.22) 0%, rgba(26, 12, 38, 0.96) 100%) !important;
        border-bottom: 1px solid rgba(192, 132, 252, 0.25) !important;
        color: #ffffff !important;
    }

    /* Card Body & Video Overlay (High-Contrast, Restful for Eyes) */
    .card-body {
        padding: 12px 14px 14px 14px !important;
        min-height: unset !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        background: #020713 !important;
        border-bottom-left-radius: 17px !important;
        border-bottom-right-radius: 17px !important;
    }

    .card-bg-video {
        opacity: 0.8 !important;
    }

    .card-video-overlay {
        background: linear-gradient(180deg, rgba(2, 8, 20, 0.05) 0%, rgba(2, 8, 20, 0.55) 45%, rgba(2, 8, 20, 0.94) 85%) !important;
    }

    .card-desc-line {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        color: #e2e8f0 !important;
        margin: 0 0 8px 0 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .card-footer-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin-top: auto !important;
    }

    .card-badge {
        font-size: 10px !important;
        padding: 3px 7px !important;
        border-radius: 5px !important;
        color: #cbd5e1 !important;
        background: rgba(15, 23, 42, 0.82) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 140px !important;
    }

    .card-action-text {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--accent-cyan) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Carousel Pagination Dots */
    .modules-carousel-dots {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .carousel-dot {
        width: 7px !important;
        height: 7px !important;
        border-radius: 9999px !important;
        background: rgba(255, 255, 255, 0.22) !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .carousel-dot.active {
        width: 22px !important;
        background: var(--accent-cyan) !important;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
    }

    .slide-content.contact-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        max-height: calc(100vh - var(--nav-height) - 16px);
        max-height: calc(100dvh - var(--nav-height) - 16px);
        width: 100%;
    }

    .footer-card-inner {
        padding: 16px 12px;
    }
}

/* Mobile Phones (max-width: 580px) */
@media (max-width: 580px) {

    .hero-emblem-container,
    .logo1 {
        width: clamp(60px, 18vw, 75px);
        height: clamp(60px, 18vw, 75px);
    }

    .main1 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(8px, 2.5vw, 16px) !important;
        margin: 6px auto !important;
        width: 100% !important;
        max-width: 96vw !important;
        overflow: visible !important;
    }

    .main1 .line1,
    .main1 .line2 {
        display: block !important;
        width: clamp(28px, 14vw, 65px) !important;
        height: 3px !important;
        min-height: 3px !important;
        object-fit: fill !important;
        flex-shrink: 1 !important;
        opacity: 1 !important;
        border-radius: 9999px !important;
    }

    .main1 .line1 {
        position: relative !important;
        left: 0 !important;
    }

    .main1.animate-lines .line1 {
        animation: SlideInLeftMobile 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }

    .main1.animate-lines .line2 {
        animation: SlideInRightMobile 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }

    @keyframes SlideInLeftMobile {
        0% {
            transform: translateX(-40px);
            opacity: 0;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes SlideInRightMobile {
        0% {
            transform: translateX(40px);
            opacity: 0;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .logo2 {
        max-width: clamp(140px, 45vw, 220px) !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }

    .oph1 {
        font-size: clamp(19px, 5vw, 24px);
        line-height: 1.25;
    }

    .oph3 {
        font-size: 15px;
    }

    .opp {
        font-size: 13px;
        line-height: 1.45;
    }

    .mybutt {
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: clamp(8px, 1.8vh, 16px) auto 0 auto !important;
        gap: 10px !important;
    }

    .primary-btn,
    .secondary-btn,
    #mybookcall {
        width: auto !important;
        min-width: 130px !important;
        max-width: fit-content !important;
        min-height: unset !important;
        padding: 9px 24px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-self: center !important;
    }

    /* Compact Mobile Snap Carousel Dimensions */
    .module-card {
        flex: 0 0 clamp(240px, 70vw, 275px) !important;
        width: clamp(240px, 70vw, 275px) !important;
        height: clamp(260px, 76vw, 300px) !important;
    }

    .optimes-factory-image-contimer {
        aspect-ratio: 937 / 532;
    }

    .footer-contact-list {
        flex-direction: column;
        gap: 12px;
    }

    .footer-cta-row {
        flex-direction: column;
        width: 100%;
    }

    .footer-btn {
        width: 100%;
    }
}

/* Compact Mobile Screens (max-width: 380px e.g. iPhone SE) */
@media (max-width: 380px) {
    .slide-title {
        font-size: 20px;
    }

    .slide-subtitle {
        font-size: 12px;
    }

    .hero-emblem-container,
    .logo1 {
        width: 58px;
        height: 58px;
    }

    .main1 {
        gap: 6px;
    }

    .main1 .line1,
    .main1 .line2 {
        width: clamp(18px, 10vw, 36px) !important;
        height: 3px !important;
        min-height: 3px !important;
        opacity: 1 !important;
    }

    .logo2 {
        max-width: clamp(130px, 46vw, 175px) !important;
    }

    .primary-btn,
    .secondary-btn,
    #mybookcall {
        padding: 8px 20px !important;
        font-size: 13px !important;
        min-width: 120px !important;
    }

    .optimes-factory-image-contimer {
        max-height: 38vh;
    }

    .mobile-modules-drawer {
        margin-top: 18px;
        gap: 14px;
    }

    .mod-tabs-group {
        gap: 6px;
    }

    .mod-tab {
        padding: 5px 9px;
        font-size: 11px;
    }
}

/* Height-constrained Windows screens (e.g. 1366x768, 1280x720, or 1080p at 125%/150% scaling) */
@media (max-height: 760px) {
    :root {
        --nav-height: 52px;
    }

    .slide-header {
        margin-bottom: 8px;
    }

    .slide-title {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .slide-subtitle {
        font-size: 13px;
        line-height: 1.35;
    }

    .hero-content {
        gap: 8px;
    }

    .hero-title {
        font-size: clamp(24px, 3.5vw, 42px);
    }

    .optimes-factory-image-contimer {
        max-height: 44vh;
    }

    .info-card {
        padding: 8px 12px;
        font-size: 11px;
    }

    .main2,
    .main3 {
        margin-bottom: 6px;
    }

    .comparison-img,
    .modules-heading-img {
        height: 30px;
    }

    .optimes-table-container {
        margin-top: 10px;
        padding: 8px 18px;
    }

    .comparison-table-img {
        max-height: 42vh;
    }

    .modules-grid-container {
        margin-top: 12px;
        gap: 12px;
        max-height: 52vh;
    }

    .module-card {
        border-radius: 14px;
    }

    .card-header {
        padding: 8px 14px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .card-body {
        min-height: 140px;
        padding: 10px 14px;
    }

    .ftr-card {
        padding: 18px 24px !important;
        gap: 14px !important;
    }

    .ftr-cta-title {
        font-size: 21px !important;
    }
}

@media (max-height: 650px) {
    :root {
        --nav-height: 52px;
    }

    .slide-title {
        font-size: 21px;
    }

    .slide-subtitle {
        font-size: 12px;
    }

    .optimes-factory-image-contimer {
        max-height: 38vh;
    }

    .comparison-img,
    .modules-heading-img {
        height: 26px;
    }

    .optimes-table-container {
        margin-top: 6px;
        padding: 6px 14px;
    }

    .comparison-table-img {
        max-height: 38vh;
    }

    .modules-grid-container {
        max-height: 46vh;
    }

    .card-body {
        min-height: 120px;
        padding: 8px 12px;
    }

    .ftr-card {
        padding: 14px 20px !important;
        gap: 10px !important;
    }

    .ftr-cta-title {
        font-size: 18px !important;
    }
}

/* ==========================================================================
   Integrated Module Links, Dropdown & Card Enhancements
   ========================================================================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-chevron {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    margin-top: 4px;
    width: 292px;
    background: rgba(4, 18, 34, 0.96);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    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 rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 7px 7px 9px 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    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;
    z-index: 120;
}

/* Invisible Hover Tunnel Bridge */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -14px;
    right: -14px;
    height: 20px;
    background: transparent;
    display: block;
    pointer-events: auto;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
    padding: 6px 10px 4px;
    user-select: none;
    font-family: inherit;
    line-height: 1;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 4px 6px;
    border: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 10px;
    border-radius: 9px;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    box-sizing: border-box;
    font-style: normal;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.drop-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.drop-icon-box svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
    display: block;
}

.item-shield .drop-icon-box {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.25);
}
.dropdown-item.item-shield:hover {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.35);
}

.item-nexus .drop-icon-box {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
}
.dropdown-item.item-nexus:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
}

.item-stock .drop-icon-box {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.25);
}
.dropdown-item.item-stock:hover {
    background: rgba(192, 132, 252, 0.14);
    border-color: rgba(192, 132, 252, 0.35);
}

.item-pulse .drop-icon-box {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.25);
}
.dropdown-item.item-pulse:hover {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.35);
}

.item-case-study .drop-icon-box {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.25);
}
.dropdown-item.item-case-study:hover {
    background: rgba(45, 212, 191, 0.14);
    border-color: rgba(45, 212, 191, 0.35);
}

.item-hub .drop-icon-box {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
}
.dropdown-item.item-hub:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
}

.drop-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
    font-style: normal;
}

.drop-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drop-title-row strong,
.drop-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    font-style: normal;
    letter-spacing: -0.01em;
}

.drop-text span.drop-desc,
.drop-text span {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.25;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item:hover .drop-text span.drop-desc,
.dropdown-item:hover .drop-text span {
    color: #cbd5e1;
}

.drop-active-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent-cyan);
    color: #030c17;
    line-height: 1.2;
    flex-shrink: 0;
}

.drop-arrow {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item:hover .drop-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #ffffff;
}

/* Spatial Beacon CTA button */
.beacon-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.beacon-cta-btn:hover {
    background: var(--accent-cyan);
    color: #030a14;
    transform: translateX(3px);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.beacon-status-pill {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(134, 239, 172, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Slide 3 Card Action Footers */
.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-action-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    transition: transform 0.2s ease, color 0.2s ease;
}

.module-card:hover .card-action-text {
    transform: translateX(4px);
    color: #fff;
}

.card-badge-accent {
    font-size: 10px;
    font-weight: 700;
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(134, 239, 172, 0.3);
}

/* Mobile Module Selector Bar Launch Button */
.mod-drawer-launch {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
    transition: all 0.2s ease;
}

.mod-drawer-launch:hover {
    transform: scale(1.05);
}

/* Mobile dropdown responsiveness */
@media (max-width: 860px) {
    .nav-dropdown {
        width: 100% !important;
        display: block !important;
    }

    .nav-dropdown .dropdown-trigger {
        width: 100% !important;
        justify-content: center !important;
    }

    .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
        background: rgba(4, 18, 34, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 12px !important;
        padding: 10px 8px !important;
        gap: 6px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
        display: none !important;
    }

    .dropdown-menu::before {
        display: none !important;
    }

    .nav-dropdown.open .dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !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 {
        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;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        width: 100% !important;
        transform: none !important;
    }

    .dropdown-item:hover,
    .dropdown-item:active {
        background: rgba(255, 255, 255, 0.14) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        transform: none !important;
    }

    .drop-icon-box {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .drop-icon-box svg {
        width: 16px !important;
        height: 16px !important;
    }

    .drop-text {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .drop-title-row strong,
    .drop-text strong {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .drop-text span.drop-desc,
    .drop-text span {
        color: #94a3b8 !important;
        font-size: 11.5px !important;
        font-weight: 400 !important;
        line-height: 1.25 !important;
    }

    .drop-arrow {
        font-size: 14px !important;
        color: #94a3b8 !important;
        margin-left: auto !important;
    }
}

/* Navigation link external */
.nav-link-external {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ecosystem Navigation Bar in Footer */
.optimes-ecosystem-bar {
    margin: 28px 0 20px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.ecosystem-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
}

.ecosystem-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.eco-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all 0.2s ease;
}

.eco-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-cyan);
    color: #fff;
    transform: translateY(-2px);
}

.eco-pill.active {
    background: var(--accent-cyan);
    color: #030a14;
    border-color: var(--accent-cyan);
    font-weight: 700;
}