/* ==========================================================================
   Stock - Inventory Management Page Stylesheet
   Designed for Adventis Tech / OptiMES Suite
   ========================================================================== */

/* --------------------------------------------------
   1. CSS Reset & Design Tokens
   -------------------------------------------------- */
:root {
    --bg-primary: #050f1a;
    --bg-secondary: #061b33;
    --bg-surface: #042545;
    --bg-card: rgba(6, 27, 51, 0.72);
    --bg-card-hover: rgba(4, 37, 69, 0.88);
    --bg-footer: #050f1a;

    --header-lavender: #DCCCFF;
    --header-text: #1d163a;
    --header-pill-bg: #ccb9fa;
    --header-pill-hover: #bda3f7;

    --border-card: rgba(65, 244, 252, 0.18);
    --border-card-hover: rgba(65, 244, 252, 0.45);

    --cyan-glow: #41f4fc;
    --cyan-core: #92faff;
    --cyan-dark: #279196;
    --cyan-subtle: rgba(65, 244, 252, 0.08);

    --alert-yellow: #E7CB02;
    --alert-red: #FF7676;
    --alert-red-dark: #d64545;
    --status-green: #2bd899;

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #8ba2b8;
    --text-dim: #5c728a;

    --font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max: 1360px;
    --container-reading: 980px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 50% 0%, #042545 0%, #061b33 50%, #050f1a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sleek custom scrollbar */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

*::-webkit-scrollbar-thumb {
    background: rgba(65, 244, 252, 0.25);
    border-radius: 9999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-glow);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --------------------------------------------------
   2. Sticky Header & Navigation
   -------------------------------------------------- */
.stock-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--header-lavender);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background-color var(--transition-medium), padding var(--transition-medium);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-brand:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.brand-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-pill {
    display: inline-block;
    padding: 0.45rem 1.4rem;
    background-color: var(--header-pill-bg);
    color: var(--header-text);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    border-radius: 9999px;
    transition: all var(--transition-fast);
}

.nav-pill:hover,
.nav-pill:focus-visible {
    background-color: #ffffff;
    color: #0b071e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 60, 200, 0.2);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--header-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* --------------------------------------------------
   3. Stock Module Branding Bar
   -------------------------------------------------- */
.stock-branding-bar {
    width: 100%;
    background: transparent;
    border-bottom: none;
    padding: 24px 24px 16px 24px;
}

.branding-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.module-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-icon-wrap {
    flex-shrink: 0;
    transition: transform var(--transition-medium);
}

.stock-icon {
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 4px 16px rgba(65, 244, 252, 0.25));
}

.module-identity:hover .module-icon-wrap {
    transform: scale(1.05) rotate(2deg);
}

.module-title-wrap {
    display: flex;
    flex-direction: column;
}

.module-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.module-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: #8fa5bd;
    font-weight: 400;
}

.live-engine-tag {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.1rem;
    background: rgba(11, 26, 47, 0.7);
    border: 1px solid rgba(65, 244, 252, 0.25);
    border-radius: 9999px;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--status-green);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--status-green);
    animation: pingDot 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes pingDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.status-label {
    color: var(--text-secondary);
}

.highlight-cyan {
    color: var(--cyan-glow);
}

.highlight-green {
    color: var(--status-green);
}

/* --------------------------------------------------
   4. Hero Section & Banner
   -------------------------------------------------- */
.stock-hero-section {
    position: relative;
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 999;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B5CF6, #C084FC, #41F4FC);
    box-shadow: 0 0 10px #C084FC;
    transition: width 0.1s ease-out;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Automated Lidar Warehouse Scanner Beam - Dimmed down for sleek elegance */
.hero-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    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);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.55), 0 0 16px rgba(168, 85, 247, 0.3);
    z-index: 5;
    animation: stockLidarScan 3.5s linear infinite;
    pointer-events: none;
}

@keyframes stockLidarScan {
    0% {
        top: 0%;
        opacity: 0;
    }

    4% {
        opacity: 0.65;
    }

    94% {
        opacity: 0.65;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1) contrast(1.05);
}

.hero-vignette-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(4, 37, 69, 0.88) 0%,
            rgba(6, 27, 51, 0.62) 32%,
            rgba(6, 27, 51, 0.22) 55%,
            transparent 78%),
        linear-gradient(180deg,
            rgba(4, 37, 69, 0.3) 0%,
            transparent 30%,
            transparent 65%,
            rgba(5, 15, 26, 0.85) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-foreground {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
}

.hero-copy-block {
    max-width: 900px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subhead-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    max-width: 900px;
    margin-bottom: 24px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-optimes-wordmark {
    display: inline-block;
    height: 21px;
    width: auto;
    object-fit: contain;
    transform: translateY(-1px);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-cta-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.2rem;
    background: linear-gradient(135deg, #6c638d 0%, #4f466b 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 4px 18px rgba(108, 99, 141, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-medium);
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: btnShimmerStock 3.5s infinite;
}

@keyframes btnShimmerStock {

    0%,
    65% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #8177a6 0%, #5d537f 100%);
    box-shadow: 0 8px 25px rgba(108, 99, 141, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------
   5. Interactive 3D Warehouse Showcase Zone
   -------------------------------------------------- */
.warehouse-showcase-zone {
    position: relative;
    padding: 2.5rem 2rem 5rem;
    max-width: 1440px;
    margin: 0 auto;
}

.showcase-inner {
    position: relative;
    display: grid;
    grid-template-columns: 360px 1fr 340px;
    align-items: center;
    gap: 2rem;
    min-height: 520px;
}

/* Center 3D Warehouse Image */
.warehouse-3d-model-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
}

.warehouse-3d-img {
    width: 100%;
    max-width: 760px;
    height: auto;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.65));
    transition: transform var(--transition-slow);
}

.warehouse-3d-model-wrap:hover .warehouse-3d-img {
    transform: translateY(-4px) scale(1.015);
}

/* Ping Beacons on the warehouse */
.warehouse-ping-beacon {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}

.beacon-shelf-1 {
    top: 32%;
    right: 28%;
    background-color: var(--alert-red);
    box-shadow: 0 0 14px var(--alert-red);
}

.beacon-shelf-1::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--alert-red);
    animation: pingBeacon 2s infinite ease-out;
}

.beacon-bay-3 {
    bottom: 24%;
    left: 48%;
    background-color: var(--cyan-glow);
    box-shadow: 0 0 14px var(--cyan-glow);
}

.beacon-bay-3::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--cyan-glow);
    animation: pingBeacon 2.5s infinite ease-out 0.5s;
}

@keyframes pingBeacon {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Floating Telemetry Cards */
.floating-telemetry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.floating-telemetry-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 25px rgba(65, 244, 252, 0.12);
}

/* Left Card: Inventory Overview with Floating Levitation */
.card-inventory-overview {
    grid-column: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: floatStockLeft 5.5s ease-in-out infinite;
}

@keyframes floatStockLeft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.card-inventory-overview:hover {
    animation-play-state: paused;
}

.glass-card-header .card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
}

.overview-stats-grid {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 0.85rem;
}

.stat-pill-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.total-items-box {
    background: rgba(255, 255, 255, 0.06);
}

.box-icon-cell {
    color: var(--cyan-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-pill-box {
    background: var(--alert-yellow);
    border-color: #ffd83d;
    color: #121006;
}

.alert-icon-cell {
    color: #121006;
}

.stat-pill-info {
    display: flex;
    flex-direction: column;
}

.stat-pill-info .pill-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.alert-pill-box .stat-pill-info .pill-label {
    color: rgba(18, 16, 6, 0.8);
    font-weight: 700;
}

.stat-pill-info .pill-val {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.alert-pill-box .stat-pill-info .pill-val {
    color: #121006;
}

.overview-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    align-items: center;
}

.warehouse-tag {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.wh-pin-dot {
    width: 10px;
    height: 10px;
    background-color: var(--alert-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--alert-red);
}

.wh-text {
    display: flex;
    flex-direction: column;
}

.wh-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.wh-name {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.valuation-badge {
    background: linear-gradient(135deg, rgba(43, 216, 153, 0.2) 0%, rgba(17, 94, 89, 0.3) 100%);
    border: 1px solid rgba(43, 216, 153, 0.4);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
}

.val-label {
    font-size: 0.68rem;
    color: var(--status-green);
    text-transform: uppercase;
}

.val-amount {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}

/* Floating Alert Card: Anchored to 3D Warehouse Model */
.card-out-of-stock-alert {
    position: absolute;
    top: 2%;
    right: 4%;
    z-index: 10;
    background: var(--alert-red);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 0.85rem 1.15rem;
    max-width: 260px;
    box-shadow: 0 10px 30px rgba(255, 118, 118, 0.4);
}

.alert-badge-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.alert-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

.alert-items-list {
    list-style: none;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.bullet-dot {
    color: #ffffff;
    margin-right: 0.2rem;
}

.time-ago {
    opacity: 0.85;
}

/* Right Card: Focus Points 2x2 Grid */
.card-focus-points {
    grid-column: 3;
    padding: 1.25rem;
}

.focus-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.focus-tile {
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.focus-tile:hover {
    background: rgba(65, 244, 252, 0.08);
    border-color: rgba(65, 244, 252, 0.3);
    transform: translateX(3px);
}

.tile-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.tile-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --------------------------------------------------
   6. Platform Intro & Three Pillars Section
   -------------------------------------------------- */
.stock-main-body {
    position: relative;
    z-index: 10;
}

.platform-intro-section {
    padding: 5rem 2rem 4rem;
    background: radial-gradient(circle at 20% 40%, rgba(65, 244, 252, 0.04) 0%, transparent 50%);
}

.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.optimes-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.optimes-logomark-svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 2px 8px rgba(65, 244, 252, 0.3));
}

.optimes-wordmark-svg {
    width: 112px;
    height: auto;
}

.platform-main-headline {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 3.5rem;
}

.headline-gradient {
    color: var(--cyan-glow);
    text-shadow: 0 0 25px rgba(65, 244, 252, 0.4);
}

.three-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    backdrop-filter: blur(12px);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.pillar-card:hover {
    border-color: var(--cyan-glow);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(65, 244, 252, 0.18);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cyan-glow);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.pillar-card-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------
   7. From Stock to Inventory Intelligence (Timeline)
   -------------------------------------------------- */
.workflow-intelligence-section {
    padding: 5rem 2rem 7rem;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 17, 34, 0.5) 100%);
}

.intelligence-container {
    max-width: 1100px;
}

.intelligence-layout {
    display: flex;
    gap: 3.5rem;
    position: relative;
}

/* Vertical Timeline Track */
.beacon-track-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38px;
    flex-shrink: 0;
    position: relative;
}

.beacon-head-halo {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.halo-core {
    width: 18px;
    height: 18px;
    background-color: var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--cyan-glow);
}

.halo-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--cyan-glow);
    border-radius: 50%;
}

.ring-1 {
    animation: beaconHaloPulse 2.4s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-2 {
    animation: beaconHaloPulse 2.4s infinite cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
}

@keyframes beaconHaloPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.vertical-beacon-line {
    width: 4px;
    flex-grow: 1;
    background: linear-gradient(180deg, var(--cyan-glow) 0%, rgba(65, 244, 252, 0.4) 65%, rgba(39, 145, 150, 0) 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 12px rgba(65, 244, 252, 0.45);
}

.beacon-live-runner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, #ffffff, var(--cyan-core), transparent);
    animation: beamTravel 4s infinite linear;
    border-radius: 2px;
    box-shadow: 0 0 16px #ffffff;
}

@keyframes beamTravel {
    0% {
        top: 0%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* Steps Content List */
.intelligence-content-flow {
    flex-grow: 1;
}

.workflow-header-wrap {
    margin-bottom: 3.5rem;
}

.intelligence-section-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    font-style: italic;
    color: var(--cyan-glow);
    letter-spacing: -0.02em;
    text-shadow: 0 0 25px rgba(65, 244, 252, 0.3);
}

.workflow-steps-list {
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
}

.intelligence-step-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform var(--transition-fast);
}

.step-bullet-marker {
    position: absolute;
    left: -58px;
    top: 4px;
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.bullet-inner-circle {
    width: 8px;
    height: 8px;
    background-color: var(--bg-primary);
    border-radius: 50%;
}

.intelligence-step-item:hover .step-bullet-marker {
    background-color: var(--cyan-glow);
    transform: scale(1.25);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.step-copy-box {
    max-width: 800px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------
   8. Core Platform Capabilities Section
   -------------------------------------------------- */
.capabilities-section {
    padding: 5rem 2rem 7rem;
    background: radial-gradient(circle at 80% 80%, rgba(65, 244, 252, 0.04) 0%, transparent 60%);
}

.capabilities-header {
    text-align: center;
    margin-bottom: 4rem;
}

.capabilities-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.capabilities-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(65, 244, 252, 0.12);
}

.bento-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cyan-glow);
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.bento-card-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Card 1: Left Tall */
.card-material-master {
    grid-column: 1;
    grid-row: 1 / span 2;
}

/* Card 2: Top Horizontal */
.card-precision-storage {
    grid-column: 2 / span 2;
    grid-row: 1;
}

.precision-flex-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
}

.card-precision-storage .bento-card-title {
    margin-bottom: 0;
}

/* Card 3: Middle Center */
.card-smarter-sourcing {
    grid-column: 2;
    grid-row: 2;
}

/* Card 4: Bottom Center */
.card-dynamic-allocation {
    grid-column: 2;
    grid-row: 3;
}

/* Card 5: Left Bottom */
.card-item-tracking {
    grid-column: 1;
    grid-row: 3;
}

/* Card 6: Right Tall */
.card-valuation-insights {
    grid-column: 3;
    grid-row: 2 / span 2;
}

/* --------------------------------------------------
   9. Footer Section
   -------------------------------------------------- */
.stock-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 2rem 2.5rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 2.5rem;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-style: italic;
    transition: all var(--transition-fast);
    width: fit-content;
}

.contact-link:hover {
    color: var(--cyan-glow);
    transform: translateX(4px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all var(--transition-fast);
}

.contact-link:hover .contact-icon {
    background: rgba(65, 244, 252, 0.15);
    border-color: var(--cyan-glow);
    color: var(--cyan-glow);
}

.footer-copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-links a:hover {
    color: var(--cyan-glow);
}

/* --------------------------------------------------
   10. Interactive Sandbox Demo Modal
   -------------------------------------------------- */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal-container {
    background: #061b33;
    border: 1px solid var(--border-card-hover);
    border-radius: 22px;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(65, 244, 252, 0.15);
    transform: scale(0.92);
    transition: transform var(--transition-medium);
    overflow: hidden;
}

.demo-modal-overlay.active .demo-modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon-dot {
    width: 10px;
    height: 10px;
    background-color: var(--cyan-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-glow);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-close-btn {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.75rem;
}

.modal-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.sandbox-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sandbox-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem;
}

.sandbox-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.sandbox-counter-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.sandbox-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}

.sandbox-stat-unit {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.sandbox-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sandbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.btn-receive {
    background: rgba(43, 216, 153, 0.15);
    color: var(--status-green);
    border: 1px solid rgba(43, 216, 153, 0.35);
}

.btn-receive:hover {
    background: rgba(43, 216, 153, 0.28);
    transform: translateY(-2px);
}

.btn-dispatch {
    background: rgba(65, 244, 252, 0.12);
    color: var(--cyan-glow);
    border: 1px solid rgba(65, 244, 252, 0.35);
}

.btn-dispatch:hover {
    background: rgba(65, 244, 252, 0.22);
    transform: translateY(-2px);
}

.btn-audit {
    background: rgba(231, 203, 2, 0.12);
    color: var(--alert-yellow);
    border: 1px solid rgba(231, 203, 2, 0.35);
}

.btn-audit:hover {
    background: rgba(231, 203, 2, 0.22);
    transform: translateY(-2px);
}

.sandbox-feed-wrap {
    background: #050f1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.feed-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.feed-status-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    background: rgba(43, 216, 153, 0.2);
    color: var(--status-green);
    border-radius: 4px;
    font-weight: 700;
}

.feed-log-terminal {
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
}

.feed-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.4;
}

.log-time {
    color: var(--text-dim);
}

.log-tag {
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.7rem;
}

.tag-sys {
    background: #1e293b;
    color: #94a3b8;
}

.tag-grn {
    background: #064e3b;
    color: #6ee7b7;
}

.tag-alloc {
    background: #083344;
    color: #67e8f9;
}

.tag-audit {
    background: #451a03;
    color: #fde047;
}

.log-text {
    color: var(--text-secondary);
}

.modal-footer {
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.btn-contact-sales {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-glow);
    transition: color var(--transition-fast);
}

.btn-contact-sales:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --------------------------------------------------
   11. Responsive Media Queries
   -------------------------------------------------- */
@media (max-width: 1200px) {
    .warehouse-showcase-zone {
        padding: 2rem 1.5rem 3.5rem;
    }

    .showcase-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
        min-height: auto;
    }

    .warehouse-3d-model-wrap {
        width: 100%;
        max-width: 680px;
        order: 1;
        position: relative;
    }

    .card-out-of-stock-alert {
        position: absolute;
        top: 4%;
        right: 4%;
        z-index: 10;
        max-width: 240px;
    }

    .card-inventory-overview {
        width: 100%;
        max-width: 600px;
        order: 2;
        margin: 0 auto;
    }

    .card-focus-points {
        width: 100%;
        max-width: 600px;
        order: 3;
        margin: 0 auto;
    }

    .focus-grid-2x2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .capabilities-bento-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .bento-card,
    .card-material-master,
    .card-precision-storage,
    .card-smarter-sourcing,
    .card-dynamic-allocation,
    .card-item-tracking,
    .card-valuation-insights {
        grid-column: auto;
        grid-row: auto;
    }

    .precision-flex-layout {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .card-precision-storage .bento-card-title {
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 900px) {
    .three-pillars-grid {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 2.75rem;
    }

    .platform-main-headline {
        font-size: 2.75rem;
    }

    .capabilities-bento-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .bento-card,
    .card-material-master,
    .card-precision-storage,
    .card-smarter-sourcing,
    .card-dynamic-allocation,
    .card-item-tracking,
    .card-valuation-insights {
        grid-column: auto;
        grid-row: auto;
    }

    .intelligence-layout {
        gap: 2rem;
    }

    .step-bullet-marker {
        left: -38px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #030e1d;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
        display: none;
        z-index: 9999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-btn {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.22);
    }

    .hero-container {
        height: auto;
        min-height: 360px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-vignette-overlay {
        background: rgba(3, 13, 26, 0.84);
    }

    .hero-foreground {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .hero-copy-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .hero-headline {
        font-size: 2.15rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .hero-subhead-row {
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .hero-cta-btn {
        margin: 0 auto;
    }

    .platform-main-headline {
        font-size: 2.15rem;
    }

    .intelligence-section-title {
        font-size: 1.85rem;
    }

    .capabilities-section {
        padding: 3rem 1.25rem 4rem;
    }

    .capabilities-header {
        margin-bottom: 2rem;
    }

    .capabilities-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .capabilities-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .bento-card {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100%;
        box-sizing: border-box;
        padding: 1.35rem 1.25rem;
        border-radius: 16px;
    }

    .bento-card-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .card-precision-storage .bento-card-title {
        margin-bottom: 0.5rem;
    }

    .bento-card-title br,
    .bento-desktop-br {
        display: none;
    }

    .bento-card-body {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .sandbox-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .warehouse-showcase-zone {
        padding: 1.25rem 1rem 2.5rem;
    }

    .showcase-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.15rem;
        min-height: auto;
        width: 100%;
    }

    .warehouse-3d-model-wrap {
        order: 1;
        position: relative;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .warehouse-3d-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Pinned Out Of Stock Alert - Floating seamlessly on top-right of 3D warehouse */
    .card-out-of-stock-alert {
        position: absolute;
        top: 8px;
        right: 8px;
        width: auto;
        max-width: 170px;
        padding: 0.45rem 0.65rem;
        border-radius: 9px;
        margin: 0;
        order: unset;
        z-index: 10;
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.45);
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .card-out-of-stock-alert .alert-badge-top {
        font-size: 0.72rem;
        gap: 0.3rem;
        margin-bottom: 0.2rem;
    }

    .card-out-of-stock-alert .alert-symbol {
        width: 13px;
        height: 13px;
        font-size: 9px;
    }

    .card-out-of-stock-alert .alert-heading {
        font-size: 0.72rem;
        font-weight: 800;
    }

    .card-out-of-stock-alert .alert-items-list {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    /* Balanced Inventory Overview Card */
    .card-inventory-overview {
        order: 2;
        width: 100%;
        max-width: 440px;
        padding: 1rem 0.9rem;
        border-radius: 14px;
        gap: 0.75rem;
        margin: 0 auto;
        animation: none;
    }

    .card-inventory-overview .glass-card-header .card-title {
        font-size: 1rem;
    }

    .card-inventory-overview .overview-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .card-inventory-overview .stat-pill-box {
        padding: 0.7rem 0.6rem;
        border-radius: 11px;
        gap: 0.55rem;
        height: 100%;
        box-sizing: border-box;
    }

    .card-inventory-overview .stat-pill-info .pill-label {
        font-size: 0.62rem;
    }

    .card-inventory-overview .stat-pill-info .pill-val {
        font-size: 1.4rem;
    }

    .card-inventory-overview .box-icon-cell svg {
        width: 22px;
        height: 22px;
    }

    .card-inventory-overview .overview-bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        align-items: stretch;
    }

    .card-inventory-overview .warehouse-tag,
    .card-inventory-overview .valuation-badge {
        padding: 0.6rem 0.65rem;
        border-radius: 10px;
        height: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .card-inventory-overview .wh-code {
        font-size: 0.7rem;
    }

    .card-inventory-overview .wh-name {
        font-size: 0.62rem;
    }

    .card-inventory-overview .val-label {
        font-size: 0.62rem;
    }

    .card-inventory-overview .val-amount {
        font-size: 1rem;
    }

    /* Sleek 2x2 Focus Points Card */
    .card-focus-points {
        order: 3;
        width: 100%;
        max-width: 440px;
        padding: 1rem 0.9rem;
        border-radius: 14px;
        margin: 0 auto;
    }

    .focus-grid-2x2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .focus-tile {
        padding: 0.7rem 0.65rem;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .focus-tile .tile-title {
        font-size: 0.78rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
        line-height: 1.25;
        color: #ffffff;
    }

    .focus-tile .tile-desc {
        font-size: 0.66rem;
        line-height: 1.35;
        color: #8fa5bd;
    }
}
}

@media (max-width: 600px) {
    .branding-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .module-identity {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .stock-icon {
        width: 52px;
        height: 52px;
    }

    .module-title {
        font-size: 1.85rem;
    }

    .module-subtitle {
        font-size: 0.88rem;
    }

    .live-engine-tag {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }

    .hero-foreground {
        padding: 0 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        gap: 0.85rem;
    }

    .hero-cta-btn {
        width: auto;
        max-width: max-content;
        min-height: 44px;
        margin: 0 auto;
    }

    .platform-intro-section,
    .stock-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }


    .pillar-card {
        padding: 1.5rem 1.25rem;
    }

    .intelligence-layout {
        gap: 1.25rem;
    }

    .beacon-track-column {
        width: 28px;
    }

    .step-copy-box {
        padding: 1.25rem;
    }

    .demo-modal-container {
        width: 95vw;
        max-height: 92dvh;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 0.85rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.2;
    }

    .hero-subhead-row {
        font-size: 14px;
        line-height: 1.45;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 18px;
    }

    .hero-optimes-wordmark {
        height: 16px;
    }

    .platform-main-headline {
        font-size: 1.85rem;
    }

    .capabilities-section {
        padding: 2.5rem 1rem 3.5rem;
    }

    .capabilities-title {
        font-size: 1.75rem;
    }

    .intelligence-section-title {
        font-size: 1.6rem;
    }

    .pillar-card-title {
        font-size: 1.35rem;
    }

    .pillar-card-body {
        font-size: 0.95rem;
    }

    .bento-card {
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }

    .bento-card-title {
        font-size: 1.15rem;
    }

    .bento-card-body {
        font-size: 0.85rem;
    }

    .step-num-badge {
        font-size: 0.75rem;
    }

    .step-title {
        font-size: 1.15rem;
    }

    .beacon-shelf-1,
    .beacon-bay-3 {
        width: 12px;
        height: 12px;
    }

    .warehouse-3d-model-wrap {
        width: 100%;
        overflow: hidden;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .btn-contact-sales {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ==========================================================================
   Cross-Module Integration & Switcher Styles
   ========================================================================== */
.platform-hub-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--header-text);
    background: rgba(47, 19, 89, 0.1);
    border: 1.5px solid rgba(47, 19, 89, 0.35);
    padding: 3px 9px;
    border-radius: 20px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-brand:hover .platform-hub-badge {
    background: var(--header-text);
    color: #fff;
    border-color: var(--header-text);
    transform: translateX(-2px);
}

.module-switch-wrap {
    position: relative;
    display: inline-block;
}

.module-switch-btn {
    height: 32px;
    padding: 4px 14px;
    background-color: rgba(47, 19, 89, 0.12);
    border-radius: 9999px;
    border: 1.5px solid rgba(47, 19, 89, 0.35);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--header-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.module-switch-btn:hover,
.module-switch-wrap:hover .module-switch-btn,
.module-switch-wrap.open .module-switch-btn {
    background-color: var(--header-text);
    color: #fff;
}

.module-switch-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 250px;
    background: rgba(14, 11, 26, 0.98);
    border: 1px solid rgba(220, 204, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 150;
}

.module-switch-wrap:hover .module-switch-dropdown,
.module-switch-wrap.open .module-switch-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mod-switch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.mod-switch-item:hover {
    background: rgba(220, 204, 255, 0.12);
}

.mod-switch-item .mod-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.mod-switch-item strong {
    display: block;
    font-size: 13px;
    color: #fff;
    line-height: 1.2;
}

.mod-switch-item small {
    display: block;
    font-size: 11px;
    color: #a78bfa;
}

/* 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.15);
    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(220, 204, 255, 0.2);
    border-color: #dcccff;
    color: #fff;
    transform: translateY(-2px);
}

.eco-pill.active {
    background: #dcccff;
    color: #2f1359;
    border-color: #dcccff;
    font-weight: 700;
}

@media (max-width: 860px) {
    .module-switch-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
    }
}