/* ==========================================================================
   BSM Redesign — shared styles for PT Berkah Solusi Mandiri pages.
   Loaded only on non-Kalarra pages (see themes/aiforge/layouts/main.php).
   Every selector is scoped with a `bsm-` class so global theme CSS and
   Kalarra stay untouched.
   ========================================================================== */

:root {
    --bsm-bg: #070a10;
    --bsm-panel: rgba(13, 18, 27, 0.86);
    --bsm-line: rgba(255, 255, 255, 0.1);
    --bsm-text: #f3f6fb;
    --bsm-muted: rgba(231, 237, 247, 0.72);
    --bsm-red: #ef4444;
    --bsm-red-dark: #dc2626;
    --bsm-blue: #0d6dfd;
    --bsm-blue-soft: #9cc7ff;
    --bsm-wa: #1faa54;
    --bsm-wa-dark: #178c44;
    --bsm-header-h: 72px;
    --bsm-ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar palette: layout from ornovaintegrasolusi.com, colours from the
       BSM footer (.bsm-footer) and the dark section panels */
    --bsm-nav-bg: rgba(9, 11, 16, 0.94);
    --bsm-nav-line: rgba(255, 255, 255, 0.08);
    --bsm-nav-text: #cbd5e1;
    --bsm-nav-muted: rgba(203, 213, 225, 0.55);
    --bsm-nav-ink: #ffffff;
    --bsm-nav-accent: #fca5a5;
    --bsm-nav-hover: rgba(255, 255, 255, 0.06);
    --bsm-nav-panel:
        radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.12), rgba(0, 0, 0, 0) 40%),
        linear-gradient(145deg, rgb(15, 23, 42), rgb(8, 13, 22));
    --bsm-nav-panel-line: rgba(148, 163, 184, 0.18);
}

/* --------------------------------------------------------------------------
   1. Navbar — dark sticky header, mega menus, drop-down mobile panel
   -------------------------------------------------------------------------- */

.header-1.bsm-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--bsm-nav-bg);
    border-bottom: 1px solid var(--bsm-nav-line);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    animation: none;
    transition: box-shadow 0.25s ease;
}

.header-1.bsm-nav.sticky {
    background: var(--bsm-nav-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: none;
}

.bsm-nav .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.bsm-nav .header-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--bsm-header-h);
    padding: 0;
}

.bsm-nav .header-left {
    flex: 1 1 auto;
    gap: 20px;
    min-width: 0;
}

/* Brand lockup: icon + wordmark */
.bsm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.bsm-brand-icon {
    display: block;
    width: auto;
    height: 42px;
}

.bsm-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.bsm-brand-text strong {
    color: var(--bsm-nav-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.bsm-brand-text span {
    margin-top: 2px;
    color: var(--bsm-nav-accent);
    font-size: 11px;
    font-weight: 600;
}

.bsm-nav .mean__menu-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.bsm-nav .main-menu > nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
}

/* Top-level links */
.bsm-nav .header-main .main-menu > nav > ul > li {
    position: relative;
    margin-inline-end: 0;
}

.bsm-nav .header-main .main-menu > nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--bsm-nav-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.bsm-nav .header-main .main-menu > nav > ul > li > a i {
    margin-left: 0;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.bsm-nav .header-main .main-menu > nav > ul > li > a::before,
.bsm-nav .header-main .main-menu > nav > ul > li > a::after {
    display: none;
}

/* !important only to beat the theme's `.main-menu ul li a:hover { color: var(--theme) !important }` */
.bsm-nav .header-main .main-menu > nav > ul > li:hover > a,
.bsm-nav .header-main .main-menu > nav > ul > li:focus-within > a {
    color: var(--bsm-nav-accent) !important;
    background: var(--bsm-nav-hover);
}

.bsm-nav .header-main .main-menu > nav > ul > li.is-active > a {
    color: var(--bsm-nav-accent) !important;
    font-weight: 700;
}

.bsm-nav .header-main .main-menu > nav > ul > li:hover > a i {
    transform: rotate(180deg);
}

.bsm-nav .header-main .main-menu a:focus-visible {
    outline: 2px solid var(--bsm-nav-accent);
    outline-offset: 2px;
}

/* Simple dropdown */
.bsm-nav .header-main .main-menu ul li .submenu {
    top: calc(100% + 8px);
    min-width: 250px;
    padding: 8px;
    border: 1px solid var(--bsm-nav-panel-line);
    border-top: 2px solid var(--bsm-red);
    border-radius: 8px;
    background: var(--bsm-nav-panel);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.45);
}

.bsm-nav .header-main .main-menu ul li:focus-within > .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.bsm-nav .header-main .main-menu ul li .submenu li {
    margin: 0;
}

.bsm-nav .header-main .main-menu ul li .submenu a {
    display: block;
    padding: 7px 12px;
    border-radius: 6px;
    color: var(--bsm-nav-text);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    white-space: normal;
    transition: background 0.15s ease, color 0.15s ease;
}

.bsm-nav .header-main .main-menu ul li .submenu a::before,
.bsm-nav .header-main .main-menu ul li .submenu a::after {
    display: none;
}

.bsm-nav .header-main .main-menu ul li .submenu a:hover,
.bsm-nav .header-main .main-menu ul li .submenu a:focus-visible {
    color: var(--bsm-nav-accent) !important;
    background: var(--bsm-nav-hover);
}

/* Mega menu: same pattern as the Hikrobot header (light panel, dark lead block with a
   red CTA, column titles, links as soft tiles). Looks the same in dark and light mode. */
.bsm-nav .header-main .main-menu > nav > ul > li.bsm-has-mega {
    position: static;
}

.bsm-nav .header-main .main-menu ul li .submenu.bsm-mega {
    left: 0;
    right: 0;
    width: min(1080px, calc(100vw - 68px));
    margin: 0 auto;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 2px solid #ef4444;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.26);
}

.bsm-nav .header-main .main-menu ul li .submenu.bsm-mega--2 {
    width: min(660px, calc(100vw - 68px));
    grid-template-columns: 1.12fr 1fr;
}

.bsm-nav .header-main .main-menu ul li .submenu.bsm-mega > li {
    margin: 0;
    padding: 22px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.bsm-nav .header-main .main-menu ul li .submenu.bsm-mega > li:last-child {
    border-right: 0;
}

.bsm-nav .header-main .main-menu ul li .submenu.bsm-mega > li.bsm-mega-lead {
    border-right: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
}

.bsm-mega-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #ff9b8f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.bsm-mega-heading {
    display: block;
    margin-bottom: 12px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.bsm-mega-lead p {
    margin: 0 0 16px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-cta:hover,
.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-cta:focus-visible {
    background: #dc2626;
    color: #ffffff !important;
}

.bsm-mega-cta i {
    font-size: 11px;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-sub {
    display: block;
    margin-top: 14px;
    padding: 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 13px;
    font-weight: 600;
    background: none;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-sub::after {
    content: "\2192";
    display: inline;
    position: static;
    margin-left: 6px;
    background: none;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-sub:hover,
.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-lead .bsm-mega-sub:focus-visible {
    color: #ffffff !important;
    background: none;
}

.bsm-mega-title {
    display: block;
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-col a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    background: rgba(15, 23, 42, 0.043);
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-col a + a {
    margin-top: 8px;
}

.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-col a:hover,
.bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-col a:focus-visible {
    color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.1);
}

/* Header actions */
.bsm-nav .header-right {
    flex: 0 0 auto;
    gap: 8px;
}

.bsm-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsm-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.bsm-nav-btn:hover,
.bsm-nav-btn:focus-visible {
    color: #ffffff;
}

.bsm-nav-btn:focus-visible {
    outline: 2px solid var(--bsm-nav-accent);
    outline-offset: 2px;
}

.bsm-nav-btn--wa {
    background: var(--bsm-wa);
}

.bsm-nav-btn--wa:hover {
    background: var(--bsm-wa-dark);
}

.bsm-nav-btn--primary {
    background: var(--bsm-red);
}

.bsm-nav-btn--primary:hover {
    background: var(--bsm-red-dark);
}

.bsm-nav-mobile-cta {
    display: none !important;
}

/* Burger button (mobile/tablet only) */
.bsm-nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--bsm-nav-panel-line);
    border-radius: 10px;
    background: var(--bsm-nav-hover);
    cursor: pointer;
}

.bsm-nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--bsm-nav-ink);
    transition: transform 0.25s var(--bsm-ease), opacity 0.2s ease, top 0.25s var(--bsm-ease);
}

.bsm-nav-toggle span:nth-child(1) { top: 14px; }
.bsm-nav-toggle span:nth-child(2) { top: 21px; }
.bsm-nav-toggle span:nth-child(3) { top: 28px; }

.bsm-nav.is-open .bsm-nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.bsm-nav.is-open .bsm-nav-toggle span:nth-child(2) { opacity: 0; }
.bsm-nav.is-open .bsm-nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.bsm-nav-toggle:focus-visible {
    outline: 2px solid var(--bsm-nav-accent);
    outline-offset: 2px;
}

@media (max-width: 1399px) {
    .bsm-nav .header-main .main-menu > nav > ul > li > a {
        padding: 8px 9px;
        font-size: 14.5px;
    }

    .bsm-brand-text span {
        display: none;
    }

    .bsm-nav-btn--wa .bsm-nav-btn-label {
        display: none;
    }

    .bsm-nav-actions .bsm-nav-btn--wa {
        width: 40px;
        padding: 0;
    }
}

/* Mobile & tablet: burger opens a panel that drops below the header */
@media (max-width: 1199px) {
    .bsm-nav-toggle {
        display: inline-block;
    }

    .bsm-nav .mean__menu-wrapper {
        display: none;
    }

    .bsm-nav.is-open .mean__menu-wrapper {
        display: block;
        position: fixed;
        top: var(--bsm-header-h);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--bsm-header-h));
        max-height: calc(100dvh - var(--bsm-header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 20px 24px;
        background: var(--bsm-nav-panel);
        border-top: 1px solid var(--bsm-nav-panel-line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    /* meanmenu hides the original nav with an inline style at this width */
    .bsm-nav.is-open #mobile-menu {
        display: block !important;
    }

    .bsm-nav .main-menu > nav > ul {
        display: block;
    }

    .bsm-nav .header-main .main-menu > nav > ul > li {
        display: block;
        border-bottom: 1px solid var(--bsm-nav-line);
    }

    .bsm-nav .header-main .main-menu > nav > ul > li > a {
        display: flex;
        width: 100%;
        padding: 14px 10px;
        font-size: 16px;
        border-radius: 0;
        background: none !important;
    }

    .bsm-nav .header-main .main-menu > nav > ul > li > a i {
        display: none;
    }

    .bsm-nav .header-main .main-menu ul li .submenu,
    .bsm-nav .header-main .main-menu ul li .submenu.bsm-mega {
        position: static;
        display: block;
        width: auto;
        min-width: 0;
        margin: 0 0 10px;
        padding: 0 0 0 14px;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: none;
    }

    .bsm-nav .header-main .main-menu ul li .submenu.bsm-mega > li.bsm-mega-lead {
        display: none;
    }

    .bsm-nav .header-main .main-menu ul li .submenu.bsm-mega > li {
        padding: 0;
        border: 0;
    }

    .bsm-mega-title {
        margin: 0;
        padding: 12px 12px 4px;
        font-size: 13px;
    }

    .bsm-nav .header-main .main-menu ul li .submenu .bsm-mega-col a {
        background: none;
    }

    .bsm-nav .header-main .main-menu ul li .submenu a {
        padding: 9px 12px;
        font-size: 15px;
        color: var(--bsm-nav-text);
    }

    .bsm-nav-mobile-cta {
        display: flex !important;
        gap: 10px;
        padding: 18px 0 4px;
        border-bottom: 0 !important;
    }

    .bsm-nav .header-main .main-menu > nav > ul > li.bsm-nav-mobile-cta > a {
        flex: 1 1 0;
        justify-content: center;
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 10px;
        color: #ffffff !important;
        font-size: 15px;
        font-weight: 700;
    }

    .bsm-nav .header-main .main-menu > nav > ul > li.bsm-nav-mobile-cta > a i {
        display: inline-block;
        font-size: 16px;
    }

    .bsm-nav .header-main .main-menu > nav > ul > li.bsm-nav-mobile-cta > a.bsm-nav-btn--primary {
        background: var(--bsm-red) !important;
    }

    .bsm-nav .header-main .main-menu > nav > ul > li.bsm-nav-mobile-cta > a.bsm-nav-btn--wa {
        background: var(--bsm-wa) !important;
    }

    html.bsm-nav-locked,
    html.bsm-nav-locked body {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    :root {
        --bsm-header-h: 64px;
    }

    .bsm-nav .container-fluid {
        padding: 0 16px;
    }

    .bsm-brand-icon {
        height: 36px;
    }

    .bsm-brand-text strong {
        font-size: 14px;
    }

    .bsm-nav-actions {
        display: none;
    }
}

@media (max-width: 340px) {
    .bsm-brand-text {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   2. Hero with background video (Home)
   -------------------------------------------------------------------------- */

.bsm-home-page .bsm-hero.bsm-hero--video {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(640px, 100vh, 940px);
    padding: calc(var(--bsm-header-h) + 64px) 0 72px;
    overflow: hidden;
    isolation: isolate;
    background: var(--bsm-bg) var(--bsm-hero-poster, none) center / cover no-repeat;
}

.bsm-hero--video::before {
    display: none;
}

.bsm-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.bsm-hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.9s ease;
}

/* Hero playlist: the clip being swapped in/out fades */
.bsm-hero-media video.is-hidden {
    opacity: 0;
}

.bsm-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.94) 0%, rgba(5, 8, 13, 0.82) 38%, rgba(5, 8, 13, 0.42) 72%, rgba(5, 8, 13, 0.3) 100%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.55) 0%, rgba(5, 8, 13, 0) 30%, rgba(5, 8, 13, 0) 70%, rgba(5, 8, 13, 0.9) 100%);
}

.bsm-hero--video .container {
    position: relative;
    width: 100%;
}

.bsm-home-page .bsm-hero--video .bsm-hero-copy {
    max-width: 780px;
}

.bsm-home-page .bsm-hero--video .bsm-hero-copy h1 {
    max-width: 760px;
    margin: 22px 0 22px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.bsm-home-page .bsm-hero--video .bsm-hero-copy p {
    max-width: 640px;
    color: rgba(231, 237, 247, 0.84);
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.75;
    text-wrap: pretty;
}

.bsm-home-page .bsm-hero--video .bsm-hero-actions {
    margin-top: 32px;
}

.bsm-home-page .bsm-hero--video .bsm-hero-kpis {
    max-width: 760px;
    margin-top: 40px;
}

.bsm-home-page .bsm-hero--video .bsm-kpi-card {
    min-height: 0;
    border-radius: 12px;
    background: rgba(13, 18, 27, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bsm-home-page .bsm-hero--video .bsm-hero-status {
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: min(320px, 30vw);
    border-radius: 12px;
    background: rgba(9, 12, 18, 0.72);
}

.bsm-hero-video-toggle {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 700;
    background: rgba(5, 8, 13, 0.55);
    transform: translateX(-50%);
    cursor: pointer;
}

.bsm-hero-video-toggle:hover,
.bsm-hero-video-toggle:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.bsm-hero-video-toggle[hidden] {
    display: none;
}

@media (max-width: 1199px) {
    .bsm-home-page .bsm-hero--video .bsm-hero-status {
        display: none;
    }
}

@media (max-width: 767px) {
    .bsm-home-page .bsm-hero.bsm-hero--video {
        min-height: 0;
        padding: calc(var(--bsm-header-h) + 40px) 0 64px;
    }

    .bsm-hero-overlay {
        background: linear-gradient(180deg, rgba(5, 8, 13, 0.78) 0%, rgba(5, 8, 13, 0.86) 60%, rgba(5, 8, 13, 0.96) 100%);
    }

    .bsm-home-page .bsm-hero--video .bsm-hero-kpis {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bsm-hero-video-toggle {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   3. Video showcase (Home)
   -------------------------------------------------------------------------- */

.bsm-showcase-section {
    background: linear-gradient(180deg, #0b0e13 0%, #0e131b 100%);
}

.bsm-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bsm-showcase-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bsm-line);
    border-radius: 14px;
    background: #05070b;
}

.bsm-showcase-card video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #05070b;
}

.bsm-showcase-card figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 56px 20px 18px;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0) 0%, rgba(5, 7, 11, 0.92) 70%);
    pointer-events: none;
}

.bsm-showcase-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--bsm-blue-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(13, 109, 253, 0.18);
}

.bsm-showcase-card strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.bsm-showcase-note {
    margin: 18px 0 0;
    color: rgba(231, 237, 247, 0.55);
    font-size: 13px;
}

@media (max-width: 991px) {
    .bsm-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .bsm-showcase-grid {
        grid-template-columns: 1fr;
    }

    .bsm-showcase-card video {
        aspect-ratio: 4 / 3;
    }
}

/* --------------------------------------------------------------------------
   4. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .header-1.bsm-nav,
    .bsm-nav-btn,
    .bsm-nav .header-main .main-menu > nav > ul > li > a,
    .bsm-nav .header-main .main-menu > nav > ul > li > a::after {
        transition: none;
    }

    .bsm-hero-media video {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   5. Unified dark sections (Home)
   Every section below the hero becomes the same dark panel, using the
   panel style already used on hikrobot.html (.hikrobot-ai-section) and the
   site's existing dark tokens. The navbar and footer are not touched.
   -------------------------------------------------------------------------- */

.bsm-home-page {
    background: #0b1018;
}

.bsm-home-page > .bsm-section {
    padding: 22px 0;
    color: #e7edf7;
    background: none;
}

.bsm-home-page > .bsm-hero + .bsm-section {
    padding-top: 64px;
}

.bsm-home-page > .bsm-section:last-child {
    padding-bottom: 88px;
}

.bsm-home-page > .bsm-section > .container {
    position: relative;
    padding: 46px 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 16%, rgba(239, 68, 68, 0.14), rgba(0, 0, 0, 0) 30%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 22, 0.99));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

/* Typography inside panels */
.bsm-home-page > .bsm-section h2,
.bsm-home-page > .bsm-section h3,
.bsm-home-page > .bsm-section strong {
    color: #ffffff;
}

.bsm-home-page > .bsm-section p,
.bsm-home-page > .bsm-section li,
.bsm-home-page > .bsm-section .bsm-section-note,
.bsm-home-page > .bsm-section .bsm-overview-item span,
.bsm-home-page > .bsm-section .bsm-marketplace-panel span {
    color: #cbd5e1;
}

.bsm-home-page > .bsm-section .bsm-eyebrow {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fca5a5;
    font-size: 14px;
}

/* Cards that were white on the old light sections */
.bsm-home-page > .bsm-section .bsm-overview-item,
.bsm-home-page > .bsm-section .bsm-solution-card,
.bsm-home-page > .bsm-section .bsm-chip-list span {
    color: #e7edf7;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 237, 247, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bsm-home-page > .bsm-section .bsm-overview-item i {
    color: #fca5a5;
}

.bsm-home-page > .bsm-section .bsm-solution-card a {
    color: #fca5a5;
}

.bsm-home-page > .bsm-section .bsm-hikrobot-media {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 237, 247, 0.12);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.bsm-home-page > .bsm-section .bsm-btn-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(231, 237, 247, 0.18);
    box-shadow: none;
}

.bsm-home-page > .bsm-section .bsm-btn-dark:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Panels that already were panels: avoid a box inside a box */
.bsm-home-page > .bsm-section .bsm-cta-panel,
.bsm-home-page > .bsm-section .bsm-brand-strip {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

/* Client logos keep a light tile: the logo files are made for white */
.bsm-home-page > .bsm-section .bsm-brand-logo {
    background: #f5f7fb;
    border-color: rgba(231, 237, 247, 0.12);
}

/* Video showcase sits inside the panel like the other sections */
.bsm-home-page > .bsm-showcase-section {
    background: none;
}

@media (max-width: 767px) {
    .bsm-home-page > .bsm-section {
        padding: 12px 0;
    }

    .bsm-home-page > .bsm-hero + .bsm-section {
        padding-top: 32px;
    }

    .bsm-home-page > .bsm-section > .container {
        width: calc(100% - 24px);
        padding: 30px 20px;
    }
}

/* --------------------------------------------------------------------------
   6. Shared components for BSM content pages (product pages first)
   Same panel look as the Home sections. Add the classes in the page markup:
   .bsm-unified-page on the page wrapper, .bsm-panel on each section.
   -------------------------------------------------------------------------- */

.bsm-unified-page {
    background: #0b1018 !important;
}

.bsm-panel,
.bsm-unified-page .bsm-panel {
    margin: 22px 0;
    padding: 44px 40px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 16%, rgba(239, 68, 68, 0.14), rgba(0, 0, 0, 0) 30%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 22, 0.99));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

/* Page hero: copy on the left, product visual on the right */
.bsm-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 28px;
}

.bsm-page-hero-media {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #05070b;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
}

.bsm-page-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Product photo tile: official product shots are on white backgrounds */
.bsm-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 6px;
    background: #f5f7fb;
}

.bsm-product-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bsm-component-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 26px;
}

.bsm-component-strip figure {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(231, 237, 247, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.bsm-component-strip .bsm-product-thumb {
    height: 120px;
    margin-bottom: 10px;
}

.bsm-component-strip figcaption {
    color: #e7edf7;
    font-size: 14px;
    font-weight: 700;
}

/* Inline video block (uses data-bsm-showcase-video from bsm-redesign.js) */
.bsm-media-video {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #05070b;
}

.bsm-media-video video {
    display: block;
    width: 100%;
    max-height: 520px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #05070b;
}

.bsm-media-video figcaption {
    padding: 12px 16px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 991px) {
    .bsm-page-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .bsm-panel,
    .bsm-unified-page .bsm-panel {
        margin: 14px 0;
        padding: 30px 20px;
    }

    .bsm-component-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Machine Vision Camera: keep the four camera types on one row inside the panel */
.bsm-unified-page .mvc-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Strip variants for 2 or 3 items */
.bsm-component-strip--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsm-component-strip--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero tile for official product shots (white background, shown at natural size) */
.bsm-hero-product {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #f5f7fb;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
}

.bsm-hero-product img {
    max-width: 100%;
    max-height: 340px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .bsm-component-strip--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsm-hero-product {
        min-height: 220px;
    }
}

/* --------------------------------------------------------------------------
   7. Home fixes: hero status card in the grid, no light borders on sections
   -------------------------------------------------------------------------- */

.bsm-home-page > .bsm-section {
    border: 0;
}

.bsm-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(260px, 320px);
    justify-content: space-between;
    align-items: end;
    gap: 32px;
}

.bsm-home-page .bsm-hero--video .bsm-hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: auto;
    padding: 22px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(13, 18, 27, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
}

.bsm-home-page .bsm-hero--video .bsm-hero-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bsm-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.bsm-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.55);
    animation: bsm-pulse 1.8s ease-out infinite;
}

@keyframes bsm-pulse {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 1199px) {
    .bsm-hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsm-home-page .bsm-hero--video .bsm-hero-status {
        display: block;
        max-width: 520px;
    }
}

/* --------------------------------------------------------------------------
   8. Modern UI layer for every BSM page (Home + content pages)
   Buttons, cards, headings and motion. Colours are the existing tokens:
   red #ef4444, blue #0d6dfd / #9cc7ff, navy panels, white text.
   -------------------------------------------------------------------------- */

/* Headings keep the casing written in the page (the theme forces Title Case) */
.bsm-home-page h1,
.bsm-home-page h2,
.bsm-home-page h3,
.bsm-unified-page h1,
.bsm-unified-page h2,
.bsm-unified-page h3 {
    text-transform: none;
    letter-spacing: -0.01em;
}

/* ---- Buttons ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn:not(.bsm-btn-outline):not(.bsm-btn-dark), .bsm-btn-primary, .mvc-btn-primary, .ic-btn-primary, .sc-btn-primary, .vs-btn-primary),
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn-outline, .bsm-btn-dark, .mvc-btn-secondary, .ic-btn-secondary, .sc-btn-secondary, .vs-btn-secondary) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 24px;
    overflow: hidden;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.25s var(--bsm-ease), box-shadow 0.25s var(--bsm-ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn:not(.bsm-btn-outline):not(.bsm-btn-dark), .bsm-btn-primary, .mvc-btn-primary, .ic-btn-primary, .sc-btn-primary, .vs-btn-primary) {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 12px 28px -12px rgba(239, 68, 68, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* light sweep */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn:not(.bsm-btn-outline):not(.bsm-btn-dark), .bsm-btn-primary, .mvc-btn-primary, .ic-btn-primary, .sc-btn-primary, .vs-btn-primary)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--bsm-ease);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn:not(.bsm-btn-outline):not(.bsm-btn-dark), .bsm-btn-primary, .mvc-btn-primary, .ic-btn-primary, .sc-btn-primary, .vs-btn-primary):hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(239, 68, 68, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn:not(.bsm-btn-outline):not(.bsm-btn-dark), .bsm-btn-primary, .mvc-btn-primary, .ic-btn-primary, .sc-btn-primary, .vs-btn-primary):hover::after {
    transform: translateX(120%);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn-outline, .bsm-btn-dark, .mvc-btn-secondary, .ic-btn-secondary, .sc-btn-secondary, .vs-btn-secondary) {
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn-outline, .bsm-btn-dark, .mvc-btn-secondary, .ic-btn-secondary, .sc-btn-secondary, .vs-btn-secondary):hover {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(252, 165, 165, 0.55);
    background: rgba(239, 68, 68, 0.1);
}

/* icons inside buttons nudge forward */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn, .bsm-btn-primary, .bsm-btn-outline, [class*="-btn-primary"], [class*="-btn-secondary"]) i {
    transition: transform 0.25s var(--bsm-ease);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn, .bsm-btn-primary, .bsm-btn-outline, [class*="-btn-primary"], [class*="-btn-secondary"]):hover i {
    transform: translateX(3px);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn, .bsm-btn-primary, .bsm-btn-outline, [class*="-btn-primary"], [class*="-btn-secondary"]):focus-visible {
    outline: 2px solid #9cc7ff;
    outline-offset: 3px;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-btn, .bsm-btn-primary, .bsm-btn-outline, [class*="-btn-primary"], [class*="-btn-secondary"]):active {
    transform: translateY(0) scale(0.98);
}

/* ---- Cards: lift + cursor spotlight ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-card, .bsm-answer-card, .bsm-why-card, .bsm-solution-card, .bsm-overview-item, .bsm-kpi-card, .bsm-card, .bsm-workflow-step, .mvc-card, .mvc-type-card, .mvc-workflow-step, .ic-card, .sc-card, .sc-workflow-step, .vs-card, .vs-workflow-step, .bsm-component-strip figure) {
    position: relative;
    transition: transform 0.3s var(--bsm-ease), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-card, .bsm-answer-card, .bsm-why-card, .bsm-solution-card, .bsm-overview-item, .bsm-kpi-card, .bsm-card, .bsm-workflow-step, .mvc-card, .mvc-type-card, .mvc-workflow-step, .ic-card, .sc-card, .sc-workflow-step, .vs-card, .vs-workflow-step, .bsm-component-strip figure):hover {
    transform: translateY(-4px);
    border-color: rgba(252, 165, 165, 0.35);
    box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(252, 165, 165, 0.25);
}

/* spotlight: --bsm-mx / --bsm-my are set by bsm-redesign.js on pointer move */
.bsm-spot {
    isolation: isolate;
}

.bsm-spot-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(240px circle at var(--bsm-mx, 50%) var(--bsm-my, 50%), rgba(239, 68, 68, 0.14), transparent 70%);
    transition: opacity 0.3s ease;
}

.bsm-spot:hover .bsm-spot-glow {
    opacity: 1;
}

/* ---- Reading progress under the navbar ---- */
.bsm-scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #ef4444, #0d6dfd);
    transform: scaleX(var(--bsm-progress, 0));
    transform-origin: left center;
    pointer-events: none;
}

/* ---- Scroll reveal (only when JS is running; content stays visible otherwise) ---- */
html.bsm-js .bsm-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--bsm-d, 0) * 70ms);
}

html.bsm-js .bsm-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.bsm-js .bsm-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bsm-live-dot::after {
        animation: none;
    }

    :is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) [class*="-btn"]::after {
        transition: none;
    }

    :is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-card, .bsm-answer-card, .bsm-why-card, .bsm-solution-card, .bsm-card, .mvc-card, .ic-card, .sc-card, .vs-card):hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   9. Typography & link styles (Home + content pages)
   Only presentation changes; page text is untouched.
   -------------------------------------------------------------------------- */

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) {
    --bsm-link: #fca5a5;
    --bsm-link-line: linear-gradient(90deg, #ef4444, #0d6dfd);
    --bsm-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --bsm-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---- Section headings & body copy ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-section-head, .vs-section-head, .ic-section-head, .sc-section-head, .bsm-section-head) h2 {
    color: #ffffff;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-section-head, .vs-section-head, .ic-section-head, .sc-section-head, .bsm-section-head) p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(p, li) strong {
    color: #ffffff;
    font-weight: 700;
}

/* ---- Card titles & text ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-card, .bsm-answer-card, .bsm-why-card, .bsm-solution-card, .bsm-card, .mvc-card, .mvc-type-card, .vs-card, .bsm-workflow-step) h3,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.ic-card-title, .sc-card-title) {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.005em;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-card, .bsm-answer-card, .bsm-why-card, .bsm-solution-card, .bsm-card, .mvc-card, .mvc-type-card, .vs-card) p,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.ic-card-desc, .sc-card-desc) {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

/* ---- Section labels: uppercase with a short accent line ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-section-head, .vs-section-head, .bsm-section-head) > span,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.ic-section-tag, .sc-section-tag) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--bsm-link);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-section-head, .vs-section-head, .bsm-section-head) > span::before,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.ic-section-tag, .sc-section-tag)::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--bsm-link-line);
}

.bsm-home-page .bsm-section .bsm-eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

/* ---- Hero badges: one pill style ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-badge, .vs-badge, .ic-badge, .sc-badge, .bsm-badge) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-badge, .vs-badge, .ic-badge, .sc-badge, .bsm-badge) i {
    color: #fca5a5;
}

/* ---- Links inside sentences: soft tinted label with a small arrow ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page, .hikrobot-page) :is(p, li, td) > :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link, .ins-inline-link, .hik-inline-link) {
    display: inline;
    margin: 0 1px;
    padding: 1px 7px 2px;
    border: 1px solid rgba(252, 165, 165, 0.28);
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: none;
    color: #fecaca;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: none;
    white-space: normal;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transform: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page, .hikrobot-page) :is(p, li, td) > :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link, .ins-inline-link, .hik-inline-link):hover {
    border-color: rgba(252, 165, 165, 0.6);
    background: rgba(239, 68, 68, 0.2);
    box-shadow: none;
    color: #ffffff !important;
    transform: none;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page, .hikrobot-page) :is(p, li, td) > :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link, .ins-inline-link, .hik-inline-link)::after {
    content: "\2197";
    margin-left: 3px;
    color: currentColor;
    font-size: 0.8em;
    opacity: 0.75;
}

/* ---- Stand-alone link buttons: label + arrow in a red circle ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-interactive-link,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link):not(:is(p, li, td) > *),
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-internal-links a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 9px 9px 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    color: #f8fafc;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transform: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--bsm-ease), box-shadow 0.25s ease;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-interactive-link {
    width: 100%;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-interactive-link i {
    display: none;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-interactive-link::after,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link):not(:is(p, li, td) > *)::after,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-internal-links a::after {
    content: "";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 50%;
    background: var(--bsm-arrow) center / 15px no-repeat, linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 14px -6px rgba(239, 68, 68, 0.8);
    opacity: 1;
    transition: transform 0.3s var(--bsm-ease);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-interactive-link:hover,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link):not(:is(p, li, td) > *):hover,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-internal-links a:hover {
    border-color: rgba(252, 165, 165, 0.45);
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 14px 30px -18px rgba(239, 68, 68, 0.7);
    color: #ffffff !important;
    transform: translateY(-2px);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-interactive-link:hover::after,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link):not(:is(p, li, td) > *):hover::after,
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) .bsm-internal-links a:hover::after {
    transform: rotate(-45deg);
}

/* ---- Card footer links: slim text link with growing underline ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a) {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    color: var(--bsm-link);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--bsm-link-line);
    transition: width 0.3s var(--bsm-ease);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a):hover {
    color: #ffffff;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a):hover::before {
    width: 100%;
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a) i {
    font-size: 13px;
    transition: transform 0.25s var(--bsm-ease);
}

:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a):hover i {
    transform: translateX(4px);
}

/* Marketplace (Tokopedia) link follows the primary button */
.bsm-home-page .bsm-marketplace-link {
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 12px 28px -12px rgba(239, 68, 68, 0.75);
    transition: transform 0.25s var(--bsm-ease), box-shadow 0.25s ease;
}

.bsm-home-page .bsm-marketplace-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(239, 68, 68, 0.85);
}

/* ---- Bullet lists: check mark in a soft red circle ---- */
.bsm-home-page :is(.bsm-answer-card, .bsm-faq-item) li {
    padding-left: 28px;
    color: #cbd5e1;
    font-size: 15.5px;
    line-height: 1.6;
}

.bsm-home-page :is(.bsm-answer-card, .bsm-faq-item) li::before {
    top: 0.15em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.14) var(--bsm-check) center / 11px no-repeat;
}

/* ---- FAQ question rows ---- */
:is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-faq-item, .mvc-faq-item) summary {
    color: #ffffff;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    :is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-interactive-link, .bsm-internal-links a, .bsm-service-link, .bsm-solution-card a)::after,
    :is(.bsm-home-page, .bsm-unified-page, .bsm-hik-hero, .bsm-hik-vhero, .bsm-series-page) :is(.bsm-service-link, .bsm-solution-card a)::before {
        transition: none;
    }
}

/* Video used as the hero visual */
.bsm-page-hero-media video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #05070b;
}

/* --------------------------------------------------------------------------
   10. Extra content-page components (application pages)
   -------------------------------------------------------------------------- */

/* Click-to-play gallery (heavy videos load only when played) */
.bsm-video-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 28px;
}

.bsm-video-gallery .bsm-media-video video {
    aspect-ratio: 16 / 9;
    max-height: none;
}

@media (max-width: 767px) {
    .bsm-video-gallery {
        grid-template-columns: 1fr;
    }
}

/* Legacy button classes on application pages follow the modern buttons */
.bsm-unified-page .btn-primary-custom,
.bsm-unified-page .btn-outline-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 24px;
    overflow: hidden;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.25s var(--bsm-ease), box-shadow 0.25s var(--bsm-ease), background 0.25s ease, border-color 0.25s ease;
}

.bsm-unified-page .btn-primary-custom {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 12px 28px -12px rgba(239, 68, 68, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.bsm-unified-page .btn-primary-custom:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(239, 68, 68, 0.85);
}

.bsm-unified-page .btn-outline-custom {
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.bsm-unified-page .btn-outline-custom:hover {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(252, 165, 165, 0.55);
    background: rgba(239, 68, 68, 0.1);
}

/* Section heads on application pages use the same label style */
.bsm-unified-page :is(.ai-section-head, .amr-section-head, .barcode-section-head, .dpm-section-head, .ocr-section-head, .vgr-section-head) {
    margin-top: 0 !important;
}

.bsm-unified-page :is(.ai-section-head, .amr-section-head, .barcode-section-head, .dpm-section-head, .ocr-section-head, .vgr-section-head) > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bsm-unified-page :is(.ai-section-head, .amr-section-head, .barcode-section-head, .dpm-section-head, .ocr-section-head, .vgr-section-head) > span::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ef4444, #0d6dfd);
}

.bsm-unified-page :is(.ai-section-head, .amr-section-head, .barcode-section-head, .dpm-section-head, .ocr-section-head, .vgr-section-head) h2 {
    color: #ffffff;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

/* Kalarra.ai logo tiles on Home: real wordmark on its own navy background */
.bsm-home-page :is(.bsm-kalarra-service-logo, .bsm-kalarra-mark) {
    background: #010613 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.bsm-home-page .bsm-kalarra-logo-img {
    display: block;
    width: 100%;
    max-width: 118px;
    height: auto;
}

/* --------------------------------------------------------------------------
   11. "Terhubung dengan" related-links block (_bsm-related.php)
   -------------------------------------------------------------------------- */

.bsm-related {
    color: #e7edf7;
}

.bsm-related-head {
    max-width: 760px;
    margin-bottom: 26px;
}

.bsm-related-head > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bsm-related-head > span::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ef4444, #0d6dfd);
}

.bsm-related-head h2 {
    margin: 10px 0 0;
    color: #ffffff;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.bsm-related-group + .bsm-related-group {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.bsm-related-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bsm-related-label i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.12);
}

.bsm-rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.bsm-rel-grid--projects,
.bsm-rel-grid--articles {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* page cards */
.bsm-rcard,
.bsm-pcard,
.bsm-acard {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e7edf7;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.25s var(--bsm-ease), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.bsm-rcard:hover,
.bsm-pcard:hover,
.bsm-acard:hover {
    color: #ffffff;
    transform: translateY(-3px);
    border-color: rgba(252, 165, 165, 0.45);
    background: rgba(239, 68, 68, 0.07);
    box-shadow: 0 18px 36px -22px rgba(239, 68, 68, 0.7);
}

.bsm-rcard:focus-visible,
.bsm-pcard:focus-visible,
.bsm-acard:focus-visible {
    outline: 2px solid #9cc7ff;
    outline-offset: 3px;
}

.bsm-rcard-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 17px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(13, 109, 253, 0.85));
}

.bsm-rcard-body,
.bsm-pcard-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bsm-rcard-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bsm-rcard strong,
.bsm-pcard strong,
.bsm-acard strong {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.bsm-rcard-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.5;
}

/* arrow on page cards */
.bsm-rcard::after {
    content: "";
    flex: 0 0 auto;
    align-self: center;
    width: 26px;
    height: 26px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--bsm-arrow, none) center / 13px no-repeat, rgba(239, 68, 68, 0.2);
    transition: transform 0.3s var(--bsm-ease), background-color 0.3s ease;
}

.bsm-rcard:hover::after {
    transform: rotate(-45deg);
    background-color: #ef4444;
}

/* project cards */
.bsm-pcard {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.bsm-pcard-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f7fb;
}

.bsm-pcard-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--bsm-ease);
}

.bsm-pcard:hover .bsm-pcard-media img {
    transform: scale(1.04);
}

.bsm-pcard-body {
    padding: 14px 16px 16px;
}

/* article cards */
.bsm-acard {
    flex-direction: column;
    gap: 8px;
}

.bsm-acard-more {
    margin-top: auto;
    color: #fca5a5;
    font-size: 13.5px;
    font-weight: 700;
}

.bsm-acard-more::after {
    content: " \2192";
    transition: margin 0.25s ease;
}

.bsm-acard:hover .bsm-acard-more::after {
    margin-left: 4px;
}

@media (max-width: 575px) {
    .bsm-rel-grid,
    .bsm-rel-grid--projects,
    .bsm-rel-grid--articles {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   12. Generic content-page components (used by control.php, reusable)
   -------------------------------------------------------------------------- */

.bsm-content-page {
    padding: calc(var(--bsm-header-h) + 48px) 0 72px;
    color: #e7edf7;
}

.bsm-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #94a3b8;
    font-size: 14px;
}

.bsm-crumbs a {
    color: #cbd5e1;
    text-decoration: none;
}

.bsm-crumbs a:hover {
    color: #fca5a5;
}

.bsm-crumbs [aria-current] {
    color: #ffffff;
}

.bsm-head-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bsm-head-label::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ef4444, #0d6dfd);
}

.bsm-content-title {
    margin: 14px 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
}

.bsm-content-lead {
    max-width: 620px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
}

.bsm-head {
    margin-bottom: 24px;
}

.bsm-head h2,
.bsm-summary h2,
.bsm-cta-row h2 {
    margin: 10px 0 0;
    color: #ffffff;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.25;
}

.bsm-summary p,
.bsm-cta-row p {
    max-width: 820px;
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.75;
}

.bsm-check-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.bsm-check-list li {
    position: relative;
    padding-left: 30px;
    color: #e7edf7;
    font-size: 15.5px;
    line-height: 1.6;
}

.bsm-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.14) var(--bsm-check) center / 12px no-repeat;
}

.bsm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.bsm-info-card {
    padding: 22px;
    border: 1px solid rgba(231, 237, 247, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s var(--bsm-ease), border-color 0.3s ease;
}

.bsm-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 165, 165, 0.35);
}

.bsm-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(13, 109, 253, 0.85));
}

.bsm-info-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.bsm-info-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.65;
}

.bsm-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.bsm-steps li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(231, 237, 247, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.bsm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.bsm-step-text {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
}

.bsm-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bsm-photo-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(231, 237, 247, 0.12);
    border-radius: 10px;
}

.bsm-photo-grid img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s var(--bsm-ease);
}

.bsm-photo-grid figure:hover img {
    transform: scale(1.04);
}

.bsm-faq details {
    border: 1px solid rgba(231, 237, 247, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.bsm-faq details + details {
    margin-top: 10px;
}

.bsm-faq summary {
    padding: 16px 18px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.bsm-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    color: #cbd5e1;
    line-height: 1.7;
}

.bsm-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 767px) {
    .bsm-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsm-content-page {
        padding-top: calc(var(--bsm-header-h) + 28px);
    }
}

/* --------------------------------------------------------------------------
   13. Hikrobot hero with official video (views/site/hikrobot.php)
   Buttons reuse the shared .bsm-btn-primary / .bsm-btn-outline rules above.
   -------------------------------------------------------------------------- */

.bsm-hik-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 48px;
    align-items: center;
    padding: 56px;
    overflow: hidden;
    border: 1px solid var(--bsm-line);
    border-radius: 14px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(239, 68, 68, 0.14), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(10, 15, 24, 0.98) 100%);
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.4);
}

.bsm-hik-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
    pointer-events: none;
}

.bsm-hik-hero > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.bsm-hik-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.bsm-hik-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(252, 165, 165, 0.28);
    border-radius: 999px;
    color: #fecaca;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.08);
}

.bsm-hik-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.bsm-hik-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.bsm-hik-intro {
    max-width: 560px;
    margin: 0;
    color: var(--bsm-muted);
    font-size: 16.5px;
    line-height: 1.75;
}

.bsm-hik-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bsm-hik-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 560px;
    margin: 4px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--bsm-line);
    list-style: none;
}

.bsm-hik-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 18px;
    border-left: 1px solid var(--bsm-line);
}

.bsm-hik-stats li:first-child {
    padding-left: 0;
    border-left: 0;
}

.bsm-hik-hero .bsm-hik-stats strong {
    color: var(--bsm-red);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bsm-hik-stats span {
    color: var(--bsm-muted);
    font-size: 13.5px;
}

/* video */
.bsm-hik-video {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.bsm-hik-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #05070b;
    box-shadow: 0 28px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.bsm-hik-video-poster,
.bsm-hik-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bsm-hik-video-poster {
    object-fit: cover;
    transition: opacity 0.6s var(--bsm-ease);
}

.bsm-hik-video.is-playing .bsm-hik-video-poster {
    opacity: 0;
}

/* ambient mode: no clicks into the frame; slight zoom crops the YouTube title bar and logo */
.bsm-hik-video:not(.is-interactive) .bsm-hik-video-frame iframe {
    pointer-events: none;
    transform: scale(1.2);
}

.bsm-hik-video-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    background: rgba(7, 10, 16, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--bsm-ease);
}

.bsm-hik-video-play:hover {
    border-color: rgba(252, 165, 165, 0.6);
    background: rgba(239, 68, 68, 0.85);
    transform: translateY(-2px);
}

.bsm-hik-video-play:focus-visible {
    outline: 2px solid #fca5a5;
    outline-offset: 3px;
}

.bsm-hik-video.is-interactive .bsm-hik-video-play {
    display: none;
}

.bsm-hik-video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.bsm-hik-video-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bsm-hik-video-chips span {
    padding: 6px 12px;
    border: 1px solid var(--bsm-line);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

.bsm-hik-video-meta a {
    color: var(--bsm-muted);
    font-size: 12.5px;
    text-decoration: none;
}

.bsm-hik-video-meta a:hover {
    color: #fca5a5;
}

@media (max-width: 1199px) {
    .bsm-hik-hero {
        gap: 36px;
        padding: 44px;
    }
}

@media (max-width: 991px) {
    .bsm-hik-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsm-hik-intro,
    .bsm-hik-stats {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .bsm-hik-hero {
        gap: 28px;
        padding: 26px 18px;
        border-radius: 12px;
    }

    .bsm-hik-badge {
        border-radius: 10px;
        font-size: 11px;
        letter-spacing: 0.05em;
        line-height: 1.4;
    }

    .bsm-hik-actions,
    .bsm-hik-actions a {
        width: 100%;
    }

    .bsm-hik-stats li {
        padding: 0 10px;
    }

    .bsm-hik-stats strong {
        font-size: 22px;
    }

    .bsm-hik-stats span {
        font-size: 12.5px;
    }

    .bsm-hik-video-play {
        left: 10px;
        bottom: 10px;
        padding: 7px 12px;
        font-size: 12.5px;
    }
}

/* --------------------------------------------------------------------------
   14. Hikrobot series pages (views/site/_hikrobot-series-page.php)
   -------------------------------------------------------------------------- */

.bsm-series-page {
    padding: calc(var(--bsm-header-h) + 48px) 0 72px;
    color: #e7edf7;
    background: #070b12;
}

.bsm-series-page .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bsm-series-page .bsm-crumbs {
    margin-bottom: 0;
}

.bsm-series-hero,
.bsm-series-panel {
    border: 1px solid var(--bsm-line);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 24, 0.97) 100%);
}

.bsm-series-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    padding: 44px;
    background:
        radial-gradient(110% 90% at 100% 0%, rgba(239, 68, 68, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(10, 15, 24, 0.98) 100%);
}

.bsm-series-hero > *,
.bsm-series-split > * {
    min-width: 0;
}

.bsm-series-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.bsm-series-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.bsm-series-hero p {
    max-width: 540px;
    margin: 0;
    color: var(--bsm-muted);
    font-size: 16.5px;
    line-height: 1.7;
}

.bsm-series-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.bsm-series-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin: 0;
    padding: 28px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 45%, rgba(71, 85, 105, 0.5), transparent 58%),
        linear-gradient(180deg, #121b2c 0%, #07101d 60%, #050a13 100%);
}

.bsm-series-hero-media img {
    max-width: 92%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.5));
}

.bsm-series-panel {
    padding: 28px;
}

.bsm-series-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 18px;
}

.bsm-series-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 800;
}

.bsm-series-head span {
    color: var(--bsm-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bsm-series-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--bsm-line);
    border-radius: 10px;
}

.bsm-series-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.bsm-series-table th,
.bsm-series-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--bsm-line);
    text-align: left;
    vertical-align: top;
}

.bsm-series-table th {
    color: var(--bsm-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

.bsm-series-table tr:last-child td {
    border-bottom: 0;
}

.bsm-series-table td:first-child {
    width: 38%;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13.5px;
    white-space: nowrap;
}

.bsm-series-table td:last-child {
    color: #cbd5e1;
}

.bsm-series-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.bsm-series-more {
    margin-top: 12px;
}

.bsm-series-more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fca5a5;
    font-weight: 700;
    cursor: pointer;
}

.bsm-series-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.bsm-series-split .bsm-check-list {
    margin: 0;
}

.bsm-series-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bsm-series-chips li {
    padding: 7px 12px;
    border: 1px solid var(--bsm-line);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.bsm-series-quote {
    margin: 22px 0 0;
    padding: 18px 20px;
    border-left: 3px solid var(--bsm-red);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.03);
}

.bsm-series-quote:first-child {
    margin-top: 0;
}

.bsm-series-quote blockquote {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.bsm-series-quote figcaption {
    margin-top: 8px;
    color: var(--bsm-muted);
    font-size: 13px;
}

.bsm-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.bsm-series-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--bsm-line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.25s var(--bsm-ease), border-color 0.25s ease;
}

.bsm-series-card:hover {
    color: inherit;
    transform: translateY(-3px);
    border-color: rgba(252, 165, 165, 0.45);
}

.bsm-series-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 45%, rgba(71, 85, 105, 0.45), transparent 62%), #0a111d;
}

.bsm-series-card-media img {
    max-width: 82%;
    max-height: 96px;
    object-fit: contain;
}

.bsm-series-card strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
}

.bsm-series-card > span:last-child {
    color: var(--bsm-muted);
    font-size: 13px;
}

.bsm-series-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.bsm-series-cta h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
}

.bsm-series-cta p {
    max-width: 640px;
    margin: 0;
    color: #cbd5e1;
}

@media (max-width: 991px) {
    .bsm-series-hero,
    .bsm-series-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .bsm-series-hero {
        gap: 28px;
        padding: 32px;
    }
}

@media (max-width: 575px) {
    .bsm-series-page {
        padding-top: calc(var(--bsm-header-h) + 24px);
    }

    .bsm-series-hero,
    .bsm-series-panel {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .bsm-series-hero-media {
        min-height: 200px;
        padding: 18px;
    }

    .bsm-series-hero-media img {
        max-height: 190px;
    }

    .bsm-series-actions,
    .bsm-series-actions a {
        width: 100%;
    }

    .bsm-series-table td:first-child {
        width: auto;
        white-space: normal;
        word-break: break-word;
    }

    .bsm-series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 14b. Robot series: grouped features and the full specification table */
.bsm-series-subhead {
    margin: 18px 0 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bsm-series-subhead:first-of-type {
    margin-top: 0;
}

.bsm-series-specs {
    min-width: 640px;
    font-size: 13.5px;
}

.bsm-series-specs th,
.bsm-series-specs td {
    padding: 9px 14px;
    white-space: nowrap;
}

.bsm-series-specs thead th {
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.bsm-series-specs tbody th[scope="row"],
.bsm-series-specs thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 200px;
    max-width: 260px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    text-align: left;
    background: #0e1522;
}

.bsm-series-specs thead th:first-child {
    color: var(--bsm-muted);
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bsm-series-specs td {
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
}

.bsm-series-specs td:first-child {
    width: auto;
    font-family: inherit;
    font-size: inherit;
}

.bsm-series-specs .bsm-series-group th {
    position: sticky;
    left: 0;
    padding-top: 14px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.06);
}

@media (max-width: 575px) {
    .bsm-series-specs tbody th[scope="row"],
    .bsm-series-specs thead th:first-child {
        min-width: 140px;
    }
}

/* --------------------------------------------------------------------------
   15. Burger + offcanvas on every BSM/Hikrobot page (layouts/main.php)
   The header menu is copied into .bsm-oc-nav (bsm-redesign.js) and shown
   whenever the header menu itself is hidden: < 1200px on BSM pages,
   < 1400px on Hikrobot pages (its menu is wider).
   -------------------------------------------------------------------------- */

.bsm-oc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--bsm-ease);
}

.bsm-oc-toggle:hover {
    border-color: rgba(252, 165, 165, 0.5);
    background: rgba(239, 68, 68, 0.14);
    transform: translateY(-1px);
}

.bsm-oc-toggle:focus-visible {
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}

.header-right .header__hamburger {
    display: flex;
    margin-left: 10px;
}

/* the old Ornova-style drop panel is replaced by the offcanvas */
.bsm-nav-toggle {
    display: none !important;
}

/* offcanvas look: same dark surface as the navbar */
.offcanvas__info {
    width: min(400px, 100vw);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: #0b1018;
}

.offcanvas__info .mobile-menu {
    display: none !important;
}

.offcanvas__contact h4 {
    color: #ffffff;
}

.offcanvas__contact .offcanvas__contact-text,
.offcanvas__contact .offcanvas__contact-text a {
    color: #cbd5e1;
}

.offcanvas__contact .offcanvas__contact-icon i {
    color: #fca5a5;
}

.bsm-oc-nav {
    display: none;
    margin: 0 0 28px;
}

.bsm-oc-nav > ul,
.bsm-oc-nav details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bsm-oc-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bsm-oc-nav > ul > li > a,
.bsm-oc-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}

.bsm-oc-nav summary::-webkit-details-marker {
    display: none;
}

.bsm-oc-nav summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.25s var(--bsm-ease);
}

.bsm-oc-nav details[open] > summary::after {
    transform: rotate(225deg) translateY(-3px);
}

.bsm-oc-nav > ul > li > a.is-active,
.bsm-oc-nav details.is-active > summary,
.bsm-oc-nav > ul > li > a:hover,
.bsm-oc-nav summary:hover {
    color: #fca5a5;
}

.bsm-oc-nav details ul {
    display: grid;
    gap: 2px;
    padding: 0 0 12px 10px;
    border-left: 2px solid rgba(239, 68, 68, 0.35);
    margin-left: 4px;
}

.bsm-oc-nav details a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14.5px;
    text-decoration: none;
}

.bsm-oc-nav details a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.bsm-oc-nav .bsm-oc-all {
    color: #fca5a5;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .bsm-oc-nav {
        display: block;
    }
}

@media (max-width: 1399px) {
    .hikrobot-body .bsm-oc-nav {
        display: block;
    }

    .hikrobot-header .mean__menu-wrapper {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   16. Product motion (Hikrobot catalog, product, series pages)
   Hero photos float gently; product photos tilt in 3D with the pointer
   (bsm-redesign.js adds .bsm-tilt). Off for reduced motion.
   -------------------------------------------------------------------------- */

@property --bsm-fy {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}

@keyframes bsm-float {
    0%, 100% { --bsm-fy: 0px; }
    50% { --bsm-fy: -10px; }
}

@keyframes bsm-float-shadow {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.55; }
    50% { transform: translateX(-50%) scaleX(0.82); opacity: 0.35; }
}

.bsm-tilt {
    perspective: 900px;
}

.bsm-tilt img {
    transform:
        translateY(var(--bsm-fy, 0px))
        rotateX(var(--bsm-rx, 0deg))
        rotateY(var(--bsm-ry, 0deg))
        scale(var(--bsm-s, 1)) !important;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--bsm-ease), filter 0.35s ease !important;
    will-change: transform;
}

.bsm-tilt:hover {
    --bsm-s: 1.04;
}

.bsm-tilt.is-tilting img {
    transition: transform 0.08s linear, filter 0.35s ease !important;
}

/* hero product photos: float with a soft floor shadow */
.hik-detail-media--product.bsm-tilt img,
.bsm-series-hero-media.bsm-tilt img {
    animation: bsm-float 6s ease-in-out infinite;
}

.hik-detail-media--product,
.bsm-series-hero-media {
    position: relative;
}

.hik-detail-media--product::after,
.bsm-series-hero-media::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 52%;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
    transform: translateX(-50%);
    animation: bsm-float-shadow 6s ease-in-out infinite;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .bsm-tilt img,
    .hik-detail-media--product::after,
    .bsm-series-hero-media::after {
        animation: none !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   17. Industry pages: official video (click to play) + application photos
   (views/site/_bsm-industry-media.php)
   -------------------------------------------------------------------------- */

.bsm-ind-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.bsm-ind-video {
    margin: 0;
}

.bsm-yt-facade,
.bsm-ind-video iframe {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #05070b;
}

.bsm-yt-facade {
    cursor: pointer;
}

.bsm-yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--bsm-ease), filter 0.3s ease;
}

.bsm-yt-facade:hover img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.bsm-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.22), 0 18px 40px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--bsm-ease);
}

.bsm-yt-play i {
    margin-left: 4px;
}

.bsm-yt-facade:hover .bsm-yt-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.bsm-yt-facade:focus-visible {
    outline: 2px solid #fca5a5;
    outline-offset: 3px;
}

.bsm-ind-video figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 14px;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.bsm-ind-video figcaption a {
    color: var(--bsm-muted);
    font-size: 12.5px;
    text-decoration: none;
}

.bsm-ind-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bsm-ind-photos figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #05070b;
}

.bsm-ind-photos figure:first-child {
    grid-column: 1 / -1;
}

.bsm-ind-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s var(--bsm-ease);
}

.bsm-ind-photos figure:hover img {
    transform: scale(1.05);
}

.bsm-ind-photos figcaption {
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 13px;
}

@media (max-width: 991px) {
    .bsm-ind-media-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 15b. offcanvas close button in the site accent */
.offcanvas__close button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.offcanvas__close button:hover {
    background: var(--bsm-red);
}

/* 15c. Keep the BSM menu clear of the WhatsApp/Konsultasi/burger buttons:
   slightly tighter links on wide screens, and below 1280px the menu moves into
   the burger panel (as on tablets). */
@media (min-width: 1400px) {
    .bsm-nav .header-main .main-menu > nav > ul > li > a {
        padding-left: 9px;
        padding-right: 9px;
    }

    .bsm-nav .header-left {
        gap: 14px;
    }
}

/* The colour-mode toggle sits next to the burger, so the WhatsApp button is an icon
   at every width, and between 1200px and 1365px the menu lives in the burger panel. */
.bsm-nav-actions .bsm-nav-btn--wa .bsm-nav-btn-label {
    display: none;
}

.bsm-nav-actions .bsm-nav-btn--wa {
    width: 40px;
    padding: 0;
}

@media (min-width: 1200px) and (max-width: 1365px) {
    .bsm-nav .mean__menu-wrapper {
        display: none !important;
    }

    .bsm-oc-nav {
        display: block;
    }
}

@media (min-width: 1400px) {
    .hikrobot-header .main-menu > nav > ul > li > a {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hikrobot-header .header-left {
        margin-right: 18px;
    }
}

/* ==========================================================================
   18. Hikrobot page: "Mengenal Hikrobot" + global case studies
   (views/site/hikrobot.php, content from official Hikrobot brochures)
   ========================================================================== */

.bsm-hik-about,
.bsm-hik-cases {
    margin: 72px 0;
}

.bsm-hik-about .hikrobot-section-head,
.bsm-hik-cases .hikrobot-section-head {
    max-width: 860px;
}

.bsm-hik-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bsm-hik-about-card,
.bsm-hik-case-card,
.bsm-hik-certs {
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(8, 13, 22, 0.98) 100%);
}

.bsm-hik-about-card {
    display: flex;
    flex-direction: column;
}

.bsm-hik-about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 18px;
    background: rgba(239, 68, 68, 0.12);
}

.bsm-hik-about-label {
    display: block;
    margin-bottom: 6px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bsm-hik-about-card h3,
.bsm-hik-case-card h3,
.bsm-hik-certs h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.bsm-hik-about-card p,
.bsm-hik-case-card p {
    margin: 0 0 16px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.bsm-hik-about-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bsm-hik-about-card > a:hover {
    color: #ffffff;
}

.bsm-hik-about-card > a i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.bsm-hik-about-card > a:hover i {
    transform: translateX(3px);
}

.bsm-hik-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bsm-hik-chips li {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.04);
}

.bsm-hik-certs {
    margin-top: 18px;
}

.bsm-hik-certs-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bsm-hik-certs-head .bsm-hik-about-icon {
    margin-bottom: 0;
}

.bsm-hik-certs-head h3 {
    margin: 0;
}

.bsm-hik-chips--cert li {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.bsm-hik-source {
    margin: 16px 0 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
}

/* case studies */
.bsm-hik-case-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bsm-hik-case-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bsm-hik-case-card:hover {
    border-color: rgba(239, 68, 68, 0.45);
    transform: translateY(-2px);
}

.bsm-hik-case-sector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bsm-hik-case-card h3 {
    min-height: 2.6em;
    font-size: 18px;
}

.bsm-hik-about h2,
.bsm-hik-cases h2,
.bsm-hik-about h3,
.bsm-hik-cases h3 {
    text-transform: none;
}

.bsm-hik-case-card p {
    font-size: 14px;
    line-height: 1.65;
}

.bsm-hik-case-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.bsm-hik-case-stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bsm-hik-case-stats dt {
    color: #f87171;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.bsm-hik-case-stats dd {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
    min-height: 4.35em;
}

.bsm-hik-case-card .bsm-hik-chips {
    margin-top: auto;
}

.bsm-hik-cases-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
}

.bsm-hik-cases-foot .bsm-hik-source {
    max-width: 820px;
    margin: 0;
}

.bsm-hik-cases-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #dc2626;
    transition: background 0.2s ease;
}

.bsm-hik-cases-cta:hover {
    color: #ffffff;
    background: #b91c1c;
}

@media (max-width: 1199px) {
    .bsm-hik-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bsm-hik-about-grid {
        grid-template-columns: 1fr;
    }

    .bsm-hik-cases-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .bsm-hik-about,
    .bsm-hik-cases {
        margin: 48px 0;
    }

    .bsm-hik-case-grid {
        grid-template-columns: 1fr;
    }

    .bsm-hik-about-card,
    .bsm-hik-case-card,
    .bsm-hik-certs {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bsm-hik-case-card,
    .bsm-hik-about-card > a i {
        transition: none;
    }

    .bsm-hik-case-card:hover {
        transform: none;
    }
}

.bsm-hik-case-sector i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 12px;
    background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   19. Hikrobot hero with a full-width local video background (like Home).
   Switch back to the previous card hero with $hikrobotHeroLayout = 'card'
   in views/site/hikrobot.php.
   ========================================================================== */

.hikrobot-page.hikrobot-page--vhero {
    padding-top: 0;
}

.bsm-hik-vhero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(620px, 92vh, 880px);
    margin-bottom: 40px;
    padding: calc(var(--bsm-header-h) + 72px) 0 80px;
    overflow: hidden;
    isolation: isolate;
    background: #05080d var(--bsm-hero-poster, none) center / cover no-repeat;
}

.bsm-hik-vhero .bsm-hero-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.95) 0%, rgba(5, 8, 13, 0.84) 40%, rgba(5, 8, 13, 0.45) 74%, rgba(5, 8, 13, 0.32) 100%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.6) 0%, rgba(5, 8, 13, 0) 30%, rgba(5, 8, 13, 0) 68%, rgba(11, 16, 24, 1) 100%);
}

.bsm-hik-vhero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 48px;
    align-items: end;
}

.bsm-hik-vhero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 760px;
}

.bsm-hik-vhero .bsm-hik-title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.06;
}

.bsm-hik-vhero .bsm-hik-intro {
    max-width: 640px;
    color: rgba(231, 237, 247, 0.86);
    font-size: clamp(16px, 1.2vw, 18px);
}

.bsm-hik-vhero .bsm-hik-stats {
    max-width: 640px;
    border-top-color: rgba(255, 255, 255, 0.14);
}

.bsm-hik-vhero .bsm-hik-stats li {
    border-left-color: rgba(255, 255, 255, 0.14);
}

.bsm-hik-vhero .bsm-hik-stats strong {
    color: #f87171;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bsm-hik-vhero .bsm-hik-stats span {
    color: rgba(226, 232, 240, 0.78);
}

.bsm-hik-vhero-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(13, 18, 27, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
}

.bsm-hik-vhero-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bsm-hik-vhero-card strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.bsm-hik-vhero-card .bsm-hik-chips li {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1199px) {
    .bsm-hik-vhero-layout {
        grid-template-columns: 1fr;
    }

    .bsm-hik-vhero-card {
        display: none;
    }
}

@media (max-width: 767px) {
    .bsm-hik-vhero {
        min-height: 0;
        padding: calc(var(--bsm-header-h) + 48px) 0 56px;
    }

    .bsm-hik-vhero .bsm-hero-overlay {
        background: linear-gradient(180deg, rgba(5, 8, 13, 0.8) 0%, rgba(5, 8, 13, 0.88) 60%, rgba(11, 16, 24, 1) 100%);
    }

    .bsm-hik-vhero .bsm-hik-stats strong {
        font-size: 24px;
    }
}

/* ==========================================================================
   20. Typography for all BSM/Hikrobot pages
   The theme asks for "Satoshi Variable", which is never loaded, so text fell
   back to Arial. BSM pages now use Plus Jakarta Sans for headings, menus and
   buttons and Inter for body text (this file is not loaded on Kalarra pages).
   Headings keep the case they are written in (no forced Title Case).
   ========================================================================== */

:root {
    --bsm-font-heading: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bsm-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--bsm-font-body) !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* every element that named the missing font now inherits instead (icon fonts, code and the
   Hikrobot wordmark keep their own); :where() keeps this rule weaker than the heading rule below */
body :where(*:not(i):not(.fa):not([class*="fa-"]):not(code):not(pre):not(kbd):not(samp):not(svg):not(svg *):not(.hikrobot-wordmark):not(.hikrobot-wordmark *)) {
    font-family: inherit !important;
}

body :is(h1, h2, h3, h4, h5, h6, .bsm-hik-title, .bsm-mega-heading, .bsm-mega-title, .main-menu a, .bsm-oc-nav a, .bsm-oc-nav summary,
    button, a[class*="btn"], a[class*="button"], .theme-btn,
    .bsm-hik-stats strong, .bsm-hik-case-stats dt, .bsm-brand-name, .bsm-eyebrow, .bsm-hik-badge):not(i):not([class*="fa-"]) {
    font-family: var(--bsm-font-heading) !important;
}

body :is(h1, h2, h3, h4, h5, h6) {
    text-transform: none;
    letter-spacing: -0.015em;
}

body :is(h1, h2) {
    font-weight: 800;
    letter-spacing: -0.025em;
}

body :is(h3, h4) {
    font-weight: 700;
}

body .accordion-button {
    text-transform: none;
}

body :is(p, li, dd, td) {
    font-feature-settings: "cv11", "ss01";
}

/* Hikrobot header: keep each top menu item on one line with its "+" marker */
.hikrobot-header .main-menu > nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hikrobot-header .main-menu > nav > ul > li > a .menu-plus {
    position: static;
    margin: 0;
    line-height: 1;
}

/* Hikrobot comparison table: scroll sideways on small screens instead of clipping */
.hikrobot-page .table-responsive.overflow-hidden {
    overflow-x: auto !important;
}

/* Home hero (robot arm video): move the robot to the right of the copy on wide screens */
.bsm-home-page .bsm-hero--arm .bsm-hero-media {
    background: #05080d;
}

@media (min-width: 992px) {
    .bsm-home-page .bsm-hero.bsm-hero--arm {
        background-position: 78% center;
    }

    .bsm-home-page .bsm-hero--arm .bsm-hero-media video[data-bsm-hero-shift] {
        transform: translateX(18%);
    }
}

/* --------------------------------------------------------------------------
   21. Striped sections (replaces the light/dark toggle, 2026-11-16)
   <html data-bsm-theme="stripes"> on every BSM page except the article list
   and article pages (they stay dark). bsm-redesign.js marks every second main
   section after the hero with .bsm-tone-light and recolours its contents.
   -------------------------------------------------------------------------- */

/* the page stays hidden for the moment the sections are being recoloured
   (a script in layouts/main.php shows it after 2.5 s in any case) */
html[data-bsm-theme="stripes"]:not(.bsm-stripes-ready) body {
    opacity: 0;
}

html.bsm-adapting *,
html.bsm-adapting *::before,
html.bsm-adapting *::after {
    transition: none !important;
}

/* light band: full-width pale background behind the section */
.bsm-tone-light {
    position: relative;
    border-color: transparent !important;
    border-radius: 0 !important;
    background: #f6f8fb !important;
    background-image: none !important;
    box-shadow: 0 0 0 100vmax #f6f8fb !important;
    clip-path: inset(0 -100vmax);
    color: #253041;
}

.bsm-tone-light::before,
.bsm-tone-light::after {
    opacity: 0;
}

.bsm-tone-light :is(h1, h2) {
    letter-spacing: -0.02em;
}

.bsm-tone-light p {
    line-height: 1.75;
}

.bsm-tone-light :is(.bsm-section-head > span, .bsm-head-label, .bsm-eyebrow, .bsm-related-head > span, .bsm-about-eyebrow, .hikdist-kicker, .hik-detail-eyebrow, [class*="-section-head"] > span, [class*="-section-tag"]) {
    color: #c81e1e !important;
}

.bsm-tone-light :is(p, li, td) > :is(.mvc-inline-link, .ic-inline-link, .sc-inline-link, .vs-inline-link, .ins-inline-link, .hik-inline-link) {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c;
}

.bsm-tone-light :is(input, textarea)::placeholder {
    color: #6f7a8c !important;
    opacity: 1;
}

/* dark decorative overlays flagged by the script inside light sections */
.bsm-lm-no-before::before,
.bsm-lm-no-after::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   22. Full-width bands on pages other than Home (2026-11-16)
   Every main section after the hero becomes a full-width dark or light band
   with the same vertical rhythm, so dark and light alternate evenly (like Home
   and Kalarra) instead of light bands next to dark bordered cards.
   -------------------------------------------------------------------------- */

.bsm-band {
    position: relative;
    isolation: isolate;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: clamp(64px, 7vw, 96px) !important;
    padding-bottom: clamp(64px, 7vw, 96px) !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    clip-path: inset(0 -100vmax);
}

/* sections that sit inside a container: content lines up with the container edges */
.bsm-band--inset {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bsm-band.bsm-tone-dark {
    background: #0b1018 !important;
    background-image: radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.09), transparent 42%), radial-gradient(circle at 88% 100%, rgba(37, 99, 235, 0.08), transparent 45%) !important;
    box-shadow: 0 0 0 100vmax #0b1018 !important;
}

.bsm-band.bsm-tone-light {
    background: #f6f8fb !important;
    box-shadow: 0 0 0 100vmax #f6f8fb !important;
}

/* the decorative grid/glow layers of the old cards are not needed on a band */
.bsm-band.bsm-tone-dark::before,
.bsm-band.bsm-tone-dark::after {
    opacity: 0;
}

/* a thin rule where a light band meets a dark one */
.bsm-band.bsm-tone-light + .bsm-band.bsm-tone-dark,
.bsm-band.bsm-tone-dark + .bsm-band.bsm-tone-light {
    border-top: 0 !important;
}

/* two bands of the same tone in a row (tone chosen by content, data-bsm-tone):
   they read as one block, so the gap between them is halved */
.bsm-band.bsm-tone-light + .bsm-band.bsm-tone-light,
.bsm-band.bsm-tone-dark + .bsm-band.bsm-tone-dark {
    padding-top: clamp(8px, 2vw, 24px) !important;
}

/* on those pages a dark band inside the container is a flat colour: the glow would
   only fill the container width and show as a box against the full-width band */
[data-bsm-tone].bsm-band--inset.bsm-tone-dark {
    background-image: none !important;
    animation: none !important;
}

/* --------------------------------------------------------------------------
   23. Section motion (BSM pages except Home and Kalarra) — text is never hidden
   -------------------------------------------------------------------------- */

/* the older fade-in effect is switched off outside Home: text is always visible */
html.bsm-no-reveal .bsm-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* sections drift a few pixels into place as they scroll into view (still fully visible) */
.bsm-motion > :not(.bsm-plight) {
    transform: translateY(18px);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bsm-motion.bsm-in > :not(.bsm-plight) {
    transform: none;
}

/* dark bands: a slow moving red/blue glow */
.bsm-band.bsm-tone-dark {
    background-size: 180% 180% !important;
    animation: bsm-band-glow 24s ease-in-out infinite alternate;
}

@keyframes bsm-band-glow {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

/* light bands: a faint dot grid that drifts slowly */
.bsm-band.bsm-tone-light {
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1.2px) !important;
    background-size: 24px 24px !important;
    animation: bsm-band-dots 40s linear infinite;
}

@keyframes bsm-band-dots {
    from { background-position: 0 0; }
    to { background-position: 240px 120px; }
}

/* section labels: the short accent line grows in */
.bsm-motion.bsm-in :is(.bsm-section-head, [class*="-section-head"]) > span::before {
    animation: bsm-line-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bsm-line-grow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* cards lift with a soft glow on hover */
.bsm-motion :is(.bsm-card, .bsm-workflow-step, [class*="-card"]:not([class*="-card-"]), [class*="-step"]:not([class*="-step-"])) {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.bsm-motion :is(.bsm-card, .bsm-workflow-step, [class*="-card"]:not([class*="-card-"]), [class*="-step"]:not([class*="-step-"])):hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.14);
}

.bsm-tone-light.bsm-motion :is(.bsm-card, .bsm-workflow-step, [class*="-card"]:not([class*="-card-"]), [class*="-step"]:not([class*="-step-"])):hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(220, 38, 38, 0.35) !important;
}

/* soft light that follows the pointer inside a section */
.bsm-plight {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(520px circle at var(--bsm-mx, 50%) var(--bsm-my, 50%), rgba(239, 68, 68, 0.12), rgba(37, 99, 235, 0.06) 45%, transparent 70%);
}

.bsm-tone-light .bsm-plight {
    background: radial-gradient(520px circle at var(--bsm-mx, 50%) var(--bsm-my, 50%), rgba(239, 68, 68, 0.08), rgba(37, 99, 235, 0.05) 45%, transparent 70%);
}

.bsm-plight-on > .bsm-plight {
    opacity: 1;
}

.bsm-motion {
    position: relative;
    isolation: isolate;
}

@media (hover: none) {
    .bsm-plight {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bsm-motion > *,
    .bsm-band {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   24. "Terhubung dengan" block, tidier layout (2026-11-16)
   Category label in a left column, cards filling the row on the right,
   cards stacked vertically with equal height and the arrow at the bottom.
   -------------------------------------------------------------------------- */

.bsm-related-head {
    max-width: 820px;
    margin-bottom: 34px;
}

.bsm-related-group {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.bsm-related-group + .bsm-related-group {
    margin-top: 28px;
    padding-top: 28px;
}

.bsm-related-label {
    position: sticky;
    top: 110px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding-top: 4px;
}

.bsm-related-label i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
}

.bsm-rel-grid,
.bsm-rel-grid--projects,
.bsm-rel-grid--articles {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.bsm-rcard {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 22px 22px 56px;
    border-radius: 14px;
}

.bsm-rcard-body {
    gap: 6px;
}

.bsm-rcard strong {
    font-size: 16.5px;
}

.bsm-rcard-desc {
    font-size: 14px;
    line-height: 1.6;
}

.bsm-rcard::after {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 30px;
    height: 30px;
    margin: 0;
}

/* a thin accent line along the top of a card on hover */
.bsm-rcard::before,
.bsm-acard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ef4444, #0d6dfd);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bsm-rcard:hover::before,
.bsm-acard:hover::before {
    transform: scaleX(1);
}

.bsm-acard {
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border-radius: 14px;
}

.bsm-pcard {
    height: 100%;
    border-radius: 14px;
}

@media (max-width: 991px) {
    .bsm-related-group {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bsm-related-label {
        position: static;
        flex-direction: row;
        align-items: center;
    }
}

/* balanced rows: 4 cards in one row, 5-6 cards in rows of 3 */
@media (min-width: 1200px) {
    .bsm-rel-grid[data-count="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bsm-rel-grid:is([data-count="5"], [data-count="6"]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .bsm-rel-grid[data-count] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
