/* =========================================================
   IBMS BUSINESS DEMO
========================================================= */

.business-demo {
    min-height: 100vh;

    color: #071528;

    background:
        #f5f9fe;
}


.demo-container {
    width: min(1420px, calc(100% - 64px));

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.demo-header {
    position: sticky;

    z-index: 100;

    top: 0;

    min-height: 72px;

    display: flex;

    align-items: center;

    border-bottom:
        1px solid rgba(121, 170, 218, 0.18);

    background:
        rgba(255, 255, 255, 0.94);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 8px 30px
        rgba(37, 81, 125, 0.06);
}


.demo-header-inner {
    display: flex;

    align-items: center;

    gap: 25px;
}


.demo-brand {
    display: flex;

    align-items: center;

    gap: 10px;
}


.demo-brand-mark {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    color: white;

    background:
        linear-gradient(
            145deg,
            #2baaff,
            #0875ef
        );

    font-weight: 800;

    box-shadow:
        0 8px 24px
        rgba(0, 111, 240, 0.22);
}


.demo-brand > div:last-child {
    display: flex;

    flex-direction: column;
}


.demo-brand strong {
    color: #071528;

    font-size: 18px;
}


.demo-brand span {
    color: #708197;

    font-size: 8px;
}


.demo-mode {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-left: 22px;

    padding:
        7px 11px;

    border-radius: 999px;

    color: #087cff;

    background: #edf6ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.09em;
}


.demo-header-actions {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 20px;
}


.demo-header-actions > a:first-child {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #526579;

    font-size: 10px;

    font-weight: 600;
}


.demo-book-button {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    padding: 0 17px;

    border-radius: 8px;

    color: white;

    background: #087cff;

    font-size: 9px;

    font-weight: 700;
}


/* =========================================================
   HERO
========================================================= */

.business-demo-hero {
    position: relative;
    overflow: hidden;

    padding:
        75px 0 70px;

    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(1, 17, 40, 0.86),
            rgba(4, 45, 87, 0.66) 62%,
            rgba(5, 79, 137, 0.48)
        ),
        var(--demo-background) center center / cover no-repeat;
}


.business-demo-hero::before,
.workspace-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(47, 171, 255, 0.22),
            transparent 29%
        );
}


.business-demo-hero-grid {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    align-items: center;

    gap: 75px;
}


.demo-eyebrow {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #86caff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.12em;
}


.demo-eyebrow span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #24a6ff;

    box-shadow:
        0 0 12px #24a6ff;
}


.business-demo-hero h1 {
    max-width: 700px;

    margin-top: 15px;

    font-size:
        clamp(38px, 4.5vw, 62px);

    line-height: 1;

    letter-spacing: -0.05em;
}


.business-demo-hero h1 span {
    display: block;

    color: #28a5ff;
}


.business-demo-hero p {
    max-width: 650px;

    margin-top: 20px;

    color: #d5e6f6;

    font-size: 13px;

    line-height: 1.75;
}


.demo-notice {
    max-width: 610px;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 22px;

    padding: 12px 14px;

    border:
        1px solid rgba(118, 192, 255, 0.20);

    border-radius: 10px;

    color: #bcd7ef;

    background:
        rgba(6, 41, 81, 0.58);

    font-size: 9px;
}


/* =========================================================
   COMPANY CARD
========================================================= */

.demo-company-card {
    padding: 24px;

    border:
        1px solid rgba(142, 205, 255, 0.28);

    border-radius: 20px;

    background:
        rgba(4, 30, 64, 0.54);

    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, 0.20);

    backdrop-filter:
        blur(16px);
}


.demo-company-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}


.demo-company-header span {
    color: #7dbff3;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 0.12em;
}


.demo-company-header h3 {
    margin-top: 5px;

    color: white;

    font-size: 18px;
}


.demo-company-avatar {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #155aa0;

    font-weight: 700;
}


.demo-company-stats {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    margin-top: 22px;
}


.demo-company-stats div {
    padding: 15px;

    border:
        1px solid rgba(132, 192, 248, 0.12);

    border-radius: 12px;

    background:
        rgba(4, 24, 51, 0.55);
}


.demo-company-stats span {
    display: block;

    color: #91abc3;

    font-size: 7px;
}


.demo-company-stats strong {
    display: block;

    margin-top: 6px;

    color: white;

    font-size: 19px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.demo-overview-section {
    padding:
        70px 0 30px;
}


.demo-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 28px;
}


.demo-section-heading > div > span {
    color: #087cff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.12em;
}


.demo-section-heading h2 {
    margin-top: 7px;

    color: #071528;

    font-size: 30px;

    letter-spacing: -0.035em;
}


.demo-section-heading > p {
    max-width: 450px;

    color: #697b90;

    font-size: 10px;

    line-height: 1.6;
}


/* =========================================================
   KPI GRID
========================================================= */

.demo-kpi-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}


.demo-kpi {
    padding: 18px;

    border:
        1px solid #dfeaf5;

    border-radius: 15px;

    background: white;

    box-shadow:
        0 10px 28px
        rgba(41, 87, 132, 0.06);
}


.demo-kpi-icon {
    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    margin-bottom: 16px;

    border-radius: 9px;

    color: #087cff;

    background: #eaf5ff;

    font-size: 16px;
}


.demo-kpi > span {
    display: block;

    color: #708197;

    font-size: 8px;
}


.demo-kpi > strong {
    display: block;

    margin-top: 6px;

    color: #071528;

    font-size: 18px;
}


.demo-kpi > small {
    display: block;

    margin-top: 6px;

    color: #2cb969;

    font-size: 7px;
}


/* =========================================================
   CENTRES
========================================================= */

.demo-centres-section {
    padding:
        55px 0 80px;
}


.centre-heading {
    margin-bottom: 30px;
}


.demo-centres-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}


.demo-centre-card {
    position: relative;

    min-height: 225px;

    display: flex;

    flex-direction: column;

    padding: 21px;

    border:
        1px solid #dce8f3;

    border-radius: 16px;

    background: white;

    box-shadow:
        0 12px 30px
        rgba(41, 84, 127, 0.055);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.demo-centre-card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(8, 124, 255, 0.38);

    box-shadow:
        0 24px 45px
        rgba(41, 84, 127, 0.12);
}


.demo-centre-icon {
    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color: #087cff;

    background: #e9f5ff;

    font-size: 19px;
}


.demo-centre-copy {
    margin-top: 17px;
}


.demo-centre-copy > span {
    color: #087cff;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 0.1em;
}


.demo-centre-copy h3 {
    margin-top: 6px;

    color: #071528;

    font-size: 15px;
}


.demo-centre-copy p {
    margin-top: 8px;

    color: #697a8e;

    font-size: 9px;

    line-height: 1.6;
}


.demo-centre-arrow {
    position: absolute;

    right: 18px;
    top: 18px;

    color: #9aabba;

    font-size: 16px;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.demo-bottom-cta {
    padding:
        0 0 70px;
}


.demo-bottom-cta-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 38px 42px;

    border-radius: 22px;

    color: white;

    background:
        linear-gradient(
            120deg,
            #063c7a,
            #087dec
        );

    box-shadow:
        0 25px 55px
        rgba(0, 91, 190, 0.17);
}


.demo-bottom-cta span {
    color: #bde0ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.12em;
}


.demo-bottom-cta h2 {
    margin-top: 7px;

    font-size: 25px;
}


.demo-bottom-cta p {
    margin-top: 8px;

    color: #d6eaff;

    font-size: 10px;
}


.demo-bottom-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.demo-outline-button,
.demo-primary-button {
    min-height: 43px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 17px;

    border-radius: 8px;

    font-size: 9px;

    font-weight: 700;
}


.demo-outline-button {
    border:
        1px solid rgba(255, 255, 255, 0.38);

    color: white;
}


.demo-primary-button {
    color: #0878e7;

    background: white;
}


/* =========================================================
   CENTRE WORKSPACE
========================================================= */

.centre-workspace {
    min-height: 100vh;
    color: #071528;
    background: #f4f8fc;
}


.workspace-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(121, 170, 218, 0.18);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}


.workspace-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}


.workspace-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8292a5;
    font-size: 9px;
}


.workspace-breadcrumb a:hover,
.workspace-back:hover {
    color: #087cff;
}


.workspace-breadcrumb strong {
    color: #263b55;
}


.workspace-back {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #526579;
    font-size: 9px;
    font-weight: 700;
}


.workspace-hero {
    position: relative;
    overflow: hidden;

    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(1, 17, 40, 0.82),
            rgba(4, 45, 87, 0.60) 62%,
            rgba(5, 79, 137, 0.44)
        ),
        var(--demo-background) center center / cover no-repeat;
}


.workspace-hero-inner {
    position: relative;
    z-index: 1;

    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


.workspace-eyebrow,
.workspace-kicker {
    color: #86caff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}


.workspace-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
}


.workspace-eyebrow i {
    color: #27a7ff;
    font-size: 15px;
}


.workspace-hero h1 {
    margin-top: 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -0.04em;
}


.workspace-hero p {
    max-width: 590px;
    margin-top: 15px;
    color: #d3e5f5;
    font-size: 11px;
    line-height: 1.65;
}


.workspace-status {
    min-width: 175px;
    padding: 15px;
    border: 1px solid rgba(142, 205, 255, 0.25);
    border-radius: 12px;
    color: #cce7fb;
    background: rgba(4, 30, 64, 0.45);
    font-size: 9px;
}


.workspace-status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 50%;
    background: #35dd8b;
    box-shadow: 0 0 12px #35dd8b;
}


.workspace-status small {
    display: block;
    margin: 8px 0 0 14px;
    color: #86b1d2;
    font-size: 8px;
}


.workspace-content {
    padding-top: 38px;
    padding-bottom: 70px;
}


.workspace-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
}


.workspace-sidebar {
    align-self: start;
    padding: 15px 10px;
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: white;
}


.workspace-sidebar-label {
    padding: 5px 9px 11px;
    color: #8a9bad;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
}


.workspace-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 9px;
    border-radius: 7px;
    color: #64778b;
    font-size: 9px;
}


.workspace-nav-item.active,
.workspace-nav-item:hover {
    color: #087cff;
    background: #edf6ff;
}


.workspace-main {
    min-width: 0;
}


.workspace-heading-row,
.workspace-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}


.workspace-heading-row h2 {
    margin-top: 6px;
    color: #071528;
    font-size: 25px;
    letter-spacing: -0.03em;
}


.workspace-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #dce8f3;
    border-radius: 7px;
    color: #526579;
    background: white;
    font-size: 8px;
    cursor: pointer;
}


.workspace-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-top: 22px;
}


.workspace-metric,
.workspace-panel {
    border: 1px solid #dce8f3;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 28px rgba(41, 87, 132, 0.05);
}


.workspace-metric {
    padding: 15px;
}


.workspace-metric > span {
    color: #74879a;
    font-size: 8px;
}


.workspace-metric strong {
    display: block;
    margin-top: 8px;
    color: #10243d;
    font-size: 20px;
}


.workspace-metric small {
    display: block;
    margin-top: 6px;
    color: #27ae69;
    font-size: 7px;
}


.workspace-panels {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    margin-top: 14px;
}


.workspace-panel {
    padding: 18px;
}


.workspace-panel-heading {
    align-items: center;
}


.workspace-panel-heading h3 {
    margin-top: 5px;
    color: #142a43;
    font-size: 14px;
}


.workspace-panel-heading a {
    color: #087cff;
    font-size: 8px;
    font-weight: 700;
}


.workspace-table {
    margin-top: 15px;
}


.workspace-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #edf2f7;
}


.workspace-table-row div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.workspace-table-row strong {
    color: #253a53;
    font-size: 9px;
}


.workspace-table-row div span {
    color: #8494a5;
    font-size: 8px;
}


.workspace-pill {
    padding: 5px 8px;
    border-radius: 999px;
    color: #168c57;
    background: #eaf9f1;
    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
}


.workspace-pill.pending {
    color: #ad7410;
    background: #fff6df;
}


.workspace-chart {
    position: relative;
    height: 165px;
    margin-top: 18px;
}


.workspace-chart-grid {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, #eaf0f6, #eaf0f6 1px, transparent 1px, transparent 41px);
}


.workspace-chart svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}


.workspace-chart polyline {
    fill: none;
    stroke: #087cff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}


.workspace-chart-labels {
    display: flex;
    justify-content: space-between;
    color: #8494a5;
    font-size: 7px;
}


.workspace-structure {
    margin-top: 24px;
    text-align: center;
}


.workspace-structure-root {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #b9dcfa;
    border-radius: 8px;
    color: #075ea8;
    background: #edf7ff;
    font-size: 8px;
    font-weight: 700;
}


.workspace-structure-line {
    width: 1px;
    height: 28px;
    margin: 0 auto;
    background: #b9dcfa;
}


.workspace-structure-branches {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}


.workspace-structure-branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16%;
    right: 16%;
    height: 1px;
    background: #b9dcfa;
}


.workspace-structure-branches span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding-top: 16px;
    color: #607990;
    font-size: 8px;
}


.workspace-structure-branches i {
    color: #087cff;
    font-size: 17px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

.demo-level-badge { display: inline-flex; width: fit-content; margin-top: 8px; padding: 4px 8px; border-radius: 999px; background: #edf7ff; color: #075ea8; font-size: 10px; font-weight: 700; }
.level-full_system .demo-level-badge { background: #f1f3f5; color: #607080; }
.demo-boundary-notice { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 22px; padding: 18px 20px; border: 1px solid #b9dcfa; border-radius: 12px; background: #edf7ff; color: #173b5f; }
.demo-boundary-notice.locked { border-color: #d7dde3; background: #f7f8f9; }
.demo-boundary-notice i { font-size: 22px; color: #087cff; }
.demo-boundary-notice strong { display: block; margin-bottom: 4px; }
.demo-boundary-notice p { margin: 0; color: #607990; }
.guided-login-page { min-height: 75vh; display: grid; place-items: center; padding: 40px 20px; background: #f4f8fc; }
.guided-login-card { width: min(100%, 420px); padding: 34px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(19, 56, 91, .12); }
.guided-login-card h1 { margin: 18px 0 8px; color: #102f4c; }
.guided-login-card p { color: #607990; }
.guided-login-card label { display: block; margin: 16px 0 6px; color: #173b5f; font-weight: 700; }
.guided-login-card input { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #cbd8e4; border-radius: 8px; }
.guided-login-card button { width: 100%; margin-top: 22px; border: 0; }
.guided-login-card .login-error { color: #a22828; }

.workspace-book-demo { padding: 9px 14px; border-radius: 8px; background: #087cff; color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; }

@media (max-width: 1150px) {

    .demo-kpi-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .demo-centres-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


@media (max-width: 900px) {

    .business-demo-hero-grid {
        grid-template-columns: 1fr;
    }


    .demo-centres-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .demo-section-heading {
        flex-direction: column;

        align-items: flex-start;
    }


    .workspace-layout {
        grid-template-columns: 1fr;
    }


    .workspace-sidebar {
        display: flex;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        padding: 9px;
    }


    .workspace-sidebar-label {
        display: none;
    }


    .workspace-nav-item {
        flex-shrink: 0;
    }
}


@media (max-width: 650px) {

    .demo-container {
        width:
            calc(100% - 30px);
    }


    .demo-mode {
        display: none;
    }


    .demo-header-actions > a:first-child {
        display: none;
    }


    .demo-kpi-grid,
    .demo-centres-grid {
        grid-template-columns: 1fr;
    }


    .demo-bottom-cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }


    .demo-bottom-actions {
        flex-direction: column;

        width: 100%;
    }


    .demo-outline-button,
    .demo-primary-button {
        width: 100%;
    }


    .workspace-header-inner,
    .workspace-hero-inner,
    .workspace-heading-row {
        align-items: flex-start;
    }


    .workspace-breadcrumb {
        display: none;
    }

    .workspace-book-demo { display: none; }


    .workspace-hero-inner,
    .workspace-heading-row {
        flex-direction: column;
    }


    .workspace-hero-inner {
        min-height: 290px;
        justify-content: center;
    }


    .workspace-status {
        width: 100%;
    }


    .workspace-metrics,
    .workspace-panels {
        grid-template-columns: 1fr;
    }


    .workspace-filter {
        align-self: stretch;
        justify-content: center;
    }
}

