/* ====== Agentic Section ======  */
.agentic-section .highlight-green {
    color: #b8ff63;
}

.agentic-box {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), #1a1a1a 60%);

    border: 1px solid #333;
    border-radius: var(--radius-64-24) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);

    max-width: 880px;
    width: 100%;
    padding: var(--pad-64-24);
    margin: 64px auto 0;
    overflow: hidden;
}

.agentic-box h3 {
    font-size: var(--fs-48-32);
    font-weight: var(--font-weight-semibold);
    margin-top: 64px;
    margin-bottom: 0;
}

.agentic-box p {
    max-width: 666px;
    /*text-align: justify;*/
    line-height: 140%;
    text-align-last: center;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);
    margin: 0;
    margin-top: 16px;
}


.join-btn {
    display: block;
    width: 100%;
    max-width: var(--btn-w-752-295);
    height: var(--btn-h-64-56);
    margin: 0 auto;
    /*background: linear-gradient(to right, #fff, #ffe9b4);*/
    background: linear-gradient(to right,
    #fff 0%,
    #fff 25%,
    #fff 50%,
    #fff 75%,
    #ffe9b4 100%
    );
    margin-top: 32px;
    padding: 20px 25px;
    border-radius: 32px;

    color: #121314;
    font-weight: var(--font-weight-semibold);
    font-size: var(--fs-18-16);
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
}


.join-btn:hover {
    /*background: linear-gradient(to right, #ffe9b4, #fff);*/
    background: linear-gradient(to right,
    #ffe9b4 0%,
    #fff 25%,
    #fff 50%,
    #fff 75%,
    #fff 100%
    );

    color: black;
}


.diagram-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-image {
    /*padding-top: 64px;*/
    /*position: absolute;*/
    /*left: 28%;*/
    /*transform: translate(-50%, -10%);*/
    /*max-width: 200px;*/
    /*pointer-events: none;*/

}

/* ====== Standout Section ====== */

.standout-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-128-18);
    /*background: linear-gradient(to top, #000000, #000000);*/
    /*background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));*/
}

.standout-box {
    z-index: 11 !important;
    width: 100%;
    margin: 0 auto;
    padding: var(--pad-64-24);
    background: linear-gradient(to bottom right, #d1d1d1, #1a1a1a);
    border-radius: var(--radius-64-24);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: #121314;
    text-align: left;
}


.standout-title {
    font-size: var(--fs-48-32);
    font-weight: var(--font-weight-light);
    margin-bottom: 0;
}

.standout-title strong {
    font-weight: var(--font-weight-bold);
    color: #121314;
}

.standout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.standout-item {
    /*background-color: #f5f5f5;*/
    background: linear-gradient(to bottom right, #d1d1d1, #f5f5f5);
    border-radius: var(--radius-48-24);
    padding: var(--pad-48-24);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.standout-item h4 {
    font-size: var(--fs-32-20);
    font-weight: var(--font-weight-semibold);
    color: #121314;
    margin: 0;
}

.standout-item p {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: var(--fs-18-16);
    color: #121314;
    font-weight: var(--font-weight-regular);
    line-height: 1.5;
}


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

/* ====== Quote Section ======  */

.agentic-quote-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000 15%, #fefefe);
    /*background: radial-gradient(ellipse 180% 100% at top, #000 15%, #fefefe 100%);*/
    /*background: #adadad;*/

    padding: 64px 200px;
    /*padding: 128px 200px;*/

    /*padding: clamp(16px, calc(16px + 48 * ((100vw - 375px) / 1065)), 64px) clamp(48px, calc(48px + 152 * ((100vw - 375px) / 1065)), 200px);*/
    /*padding:  clamp(48px, calc(48px + 152 * ((100vw - 375px) / 1065)), 200px) 0;*/

    /*min-height: 300px;*/
    position: relative;
    overflow: visible;
    margin-bottom: 0 !important;
    min-height: 708px;
}

.quote-box {
    position: relative;
    padding-right: clamp(56px, 10vw, 128px);
    padding-left: clamp(56px, 10vw, 128px);
    /*padding: clamp(56px, calc(4.76vw + 28px), 128px);*/

    margin: 0 auto;
    /*padding: 40px 60px;*/
    color: white;
    background: transparent;
    overflow: visible;
    z-index: 10; /* To appear above the grid */
    /*margin-top: -220px;*/
    margin-top: -15%;
< --- - 220 px
}

/* Floor grid (rectangular grid with 3D effect) */
.floor-grid {
    position: absolute;
    top: 0;
    width: 80%;
    height: 488px;
    background-image: repeating-linear-gradient(
            to right,
            rgba(0, 0, 0),
            rgba(0, 0, 0) 0.01rem,
            transparent 1px,
            transparent 60px
    ),
    repeating-linear-gradient(
            to top,
            rgba(0, 0, 0),
            rgba(0, 0, 0) 0.01rem,
            transparent 1px,
            transparent 60px
    );
    background-size: 21px 25px;
    background-position: center bottom;
    z-index: 5;
    pointer-events: none;
    transform-style: preserve-3d;
    transform-origin: center top;
    transform: perspective(474px) rotateX(20deg);
    overflow: hidden;
}

.floor-grid::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 6;
}

.floor-grid::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 6;
}


/* Quote text */
.quote-text {
    line-height: 120%;

    /*max-width: 700px;*/
    margin: 0 auto;
    text-align: left;
    font-weight: var(--font-weight-light);
    position: relative;
    z-index: 15;
    font-size: var(--fs-48-24);
}

.quote-text .highlight {
    color: #D8FF5A;
    font-weight: bold;
}

/* Desktop-first approach - Default styles for desktop */
.quote-container {
    position: relative;
    display: block;
    /*padding: 60px 120px;*/
}

.quote-svg {
    position: absolute;
    width: var(--spacing-200-60);
    height: var(--spacing-200-60);
    user-select: none;
    z-index: 20;
}

.quote-svg-top {
    top: -64px;
    left: -271px;
    margin: 0;
    /*align-self: flex-start;*/
}

@media (max-width: 1474px) {
    .quote-svg-top {
        top: -20px;
    }

    .quote-text {
        /*margin-top: 200px;*/
    }
}

.quote-svg-bottom {
    bottom: -64px;
    right: -271px;
    margin: 0;
    /*align-self: flex-end;*/
}


/* Mobile styles - responsive layout for small screens */
@media (max-width: 991px) {
    /*.quote-container {*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*    justify-content: center;*/
    /*    height: 100%;*/
    /*    width: 100%;*/
    /*    padding: 0;*/
    /*}*/
    .quote-svg {
        position: static;
    }

    .agentic-quote-section {
        padding: 64px 20px;
    }

    .quote-svg-top {
        margin-right: 95%;
        /*margin-bottom: 20px;*/
        /*margin-top: 200px;*/
        top: auto;
        left: auto;
    }

    .quote-box {
        /*padding: 0;*/
        /*margin: 0;*/
        margin-top: 0;
    }

    .quote-svg-bottom {
        margin-left: 85%;
        bottom: auto;
        right: auto;
    }

    /*.floor-grid {*/
    /*    position: absolute;*/
    /*    bottom: 100px;*/
    /*    height: 350px;*/
    /*    background-image: repeating-linear-gradient(*/
    /*            to right,*/
    /*            rgba(0, 0, 0),*/
    /*            rgba(0, 0, 0) 0.01rem,*/
    /*            transparent 1px,*/
    /*            transparent 60px*/
    /*    ),*/
    /*    repeating-linear-gradient(*/
    /*            to top,*/
    /*            rgba(0, 0, 0),*/
    /*            rgba(0, 0, 0) 0.01rem,*/
    /*            transparent 1px,*/
    /*            transparent 60px*/
    /*    );*/
    /*    background-size: 20px 25px;*/
    /*    background-position: center bottom;*/
    /*    z-index: 5;*/
    /*    pointer-events: none;*/
    /*    transform-style: preserve-3d;*/
    /*    transform-origin: center top;*/
    /*    transform: perspective(474px) rotateX(30deg);*/
    /* Fading shadow from top (starts transparent and becomes fully visible at 20%)*/
    /*-webkit-mask-image: linear-gradient(to bottom, transparent, black 20%);*/
    /*mask-image: linear-gradient(to bottom, transparent, black 20%);*/
    /*-webkit-mask-size: 100% 100%;*/
    /*mask-size: 100% 100%;}*/

}

/* Legacy quote marks - keep for backward compatibility */
.quote-icon {
    position: absolute;
    user-select: none;
    z-index: 20;
}

.quote-icon-left {
    top: -10px;
    left: -120px;
}

.quote-icon-right {
    bottom: 0;
    right: -120px;
    /*transform: rotate(180deg);*/
}

/* ====== Comparison Section ======  */

.comparison-section {
    background: #ffffff;
}

.comparison-section .comparison-box {
    border: 1px solid #d8ff5a;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Left box: Fully white */
.comparison-box.left-box {
    background: #ffffff;
    color: #121314;
    border-color: #dbdbdb !important;
}

.comparison-box.left-box p {
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);
    color: #484E57;
}

/* Right box: Attractive gradient */
.comparison-box.right-box {
    background: linear-gradient(to bottom, #ffffff, #efffbc);
    color: #000;
}

/* Table styling */
.table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    background: #fefefe;
}

.custom-table {
    margin: 0;
    width: 100%;
}

.custom-table tbody tr:last-child {
    border-bottom: none;
}

.custom-table th {
    border: none;
    vertical-align: middle;
    font-size: var(--fs-24-16);
    font-weight: var(--font-weight-semibold);
    color: #FFFFFF;
    padding: 24px 0 24px 16px;
}

.custom-table td {
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);
    color: #121314;
    padding: 16px;
}

.custom-table th {
    background-color: #000;
    color: white;
    font-weight: bold;
}

.custom-table td {
    background-color: #ffffff;
    color: #000;
}

/* Gradient for first (left) column */
.custom-table td:first-child {
    background: linear-gradient(to right, #ffffff, #d1d1d1);
    color: #000;
}

/* Gradient for second (right) column */
.custom-table td:last-child {
    background: linear-gradient(to right, #d6ff5b, #3bf5ff);
    color: #000;
}

/* Bottom border for each row */
.custom-table tr {
    border-bottom: 1px solid #121314;
}

/* Remove default cell borders */
.custom-table th, .custom-table td {
    border: none !important;
}

/* ====== Barnabus Difference Section ======*/
.barnabus-difference-section {
    margin-top: 16px;
}

.barnabus-box {
    border-radius: 32px;
    border: 1px solid #cfcfcf;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    color: #121314;
}

/* Left box: bigger width */
.left-diff-box {
    flex: 3;
    border: #3BF5FF 2px solid;

    background: linear-gradient(to bottom,
    #ffffff 8%,
    #72f8ff 100%);

}

/* Right box: smaller width */
.right-diff-box {
    border: #7C3AFF 2px solid;
    flex: 1;
    /*background: linear-gradient(to bottom,*/
    /*#ffffff 0%,*/
    /*#ffffff 85%,*/
    /*#e5d8ff 100%);*/
    /*color: #000;*/
    background: radial-gradient(ellipse 70% 55% at bottom center,
    rgba(124, 58, 255, 0.20) 0%,
    #ffffff 100%);
}


/* Icon Box Formatting */
.icon-box i {
    font-size: 1.5rem;
    color: #7c00ff;
    margin-right: 10px;
}

.icon-box h5 {
    font-size: var(--fs-24-20);
    font-weight: var(--font-weight-semibold);
    color: #121314;
    display: flex;
    align-items: center;
}

.left-column-box {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-24-16);
    flex: 1;
}

.left-column-box p {
    color: #484E57;
    margin-bottom: 0;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);

}

.right-column-box {
    background: #ffffff;
    border: none;
    border-radius: 32px;
    flex: 1;
    display: flex;
}

.barnabus-difference-quote-text {
    text-align: left;
    position: relative;
    font-size: var(--fs-44-24);
    color: #121314;
    line-height: 120%;
    font-weight: var(--font-weight-light);
}

/* ====== New Needs & Offer Section ====== */
.needs-offer-section {
    background: #ffffff;
    color: #121314;
}

.left-needs h2 {
    font-size: 2rem;
}

.offer-card {
    border: 1px solid #EAEAEA;
    position: relative;
    overflow: hidden;
}

.offer-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;

    background-image: radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
    background-size: 10px 10px;
    background-repeat: repeat;

    mask-image: radial-gradient(ellipse at bottom center, black 0%, black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at bottom center, black 0%, black 20%, transparent 60%);

    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* See All button for mobile collapsibles */
.see-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    position: relative; /* ensure above panel bottom overlay */
    z-index: 4;
}

.see-all-btn::after {
    content: "\2193"; /* down arrow */
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transform: translateY(1px);
    transition: transform 0.25s ease;
}

.see-all-btn.expanded::after {
    transform: rotate(180deg) translateY(-1px);
}

.see-all-btn:active,
.see-all-btn:hover {
    background: linear-gradient(180deg, #34363A 0%, #1E1F21 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* ===== Agent Ecosystem Section Styles ===== */

/* Bottom gradient hint for collapsed panels on mobile */
@media (max-width: 991.98px) {
    .panel.large-panel::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        background: linear-gradient(to bottom, rgba(18, 19, 20, 0) 0%, rgba(18, 19, 20, 0.7) 60%, rgba(18, 19, 20, 0.95) 100%);
        pointer-events: none;
        z-index: 3;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .panel.large-panel.collapsed::after {
        opacity: 1;
    }

    /* Fade the last visible items to hint more content */
    /* Left panel: fade bottom of the 3rd pillar when collapsed */
    .panel--left.collapsed #pillarsList .pillar-item:nth-child(3) {
        position: relative;
        overflow: hidden;
    }

    .panel--left.collapsed #pillarsList .pillar-item:nth-child(3)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 150px;
        background: linear-gradient(to bottom, rgba(18, 19, 20, 0) 0%, rgba(18, 19, 20, 0.85) 80%, rgba(18, 19, 20, 1) 100%);
        pointer-events: none;
        z-index: 2;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

    /* Right panel: fade bottom of the 2nd row grid when collapsed */
    .panel--right.collapsed .row-heading:nth-of-type(2) + .row {
        position: relative;
        overflow: hidden;
    }

    .panel--right.collapsed .row-heading:nth-of-type(2) + .row::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 150px;
        background: linear-gradient(to bottom, rgba(18, 19, 20, 0) 0%, rgba(18, 19, 20, 0.85) 80%, rgba(18, 19, 20, 1) 100%);
        pointer-events: none;
        z-index: 2;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }
}

/* Color variables */
:root {
    --bg: #0d0d0d;
    --accent: #D8FF5A;
    --accent2: #3bf5ff;
    --panel-fore: rgba(255, 255, 255, 0.03);
    --muted: #b7bdb9;
}

/* SECTION + dotted background fade */
.agent-ecosystem-section {
    position: relative;
    background: #121314;
    color: #fff;
    overflow: visible;
}

/* dotted overlay that starts at top and fades before mid-section */
.agent-ecosystem-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%; /* dots fade away slightly before mid */
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.18;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0) 62%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0) 62%);
}

/* Section header */
.section-header {
    z-index: 2;
    position: relative;
    margin-bottom: 12px;
}

/* Growing Ecosystem Section - Equal Height Columns */
.growing-ecosystem-section .row {
    align-items: stretch !important;
}

.growing-ecosystem-section .col-12.col-lg-6 {
    display: flex;
    flex-direction: column;
}

.growing-ecosystem-section .panel.large-panel,
.growing-ecosystem-section .small-cta-panel {
    height: 100%;
    /*display: flex;*/
    /*flex-direction: column;*/
}

/* Panels */
.panel.large-panel {
    background: #1f2021;
    position: relative;
    z-index: 2;

    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-right: none;
    margin-top: var(--spacing-64-32);
}

/* Left and right panels distinct backgrounds and stronger shadows */
.panel--left {
}

.panel--right {
    /*background: linear-gradient(180deg, rgba(18, 18, 20, 0.88), rgba(12, 12, 13, 0.92));*/
    /*border: 1px solid rgba(59, 245, 255, 0.04);*/
    /*box-shadow: 0 20px 48px rgba(0, 0, 0, 0.72),*/
    /*0 8px 22px rgba(0, 0, 0, 0.6),*/
    /*inset 0 1px 0 rgba(255, 255, 255, 0.02);*/
}

/* Column heading (white) */
.column-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Subtitle */
.panel-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 14px;
}

/* Pillar items - left */
.pillar-item {
    background: #121314;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    flex: 0 0 48px;
    color: var(--accent);
}

.pillar-title {
    color: #D8FF5A;
    font-weight: var(--font-weight-semibold);
    font-size: 20px;
    line-height: 110%;
    margin: 0;
}

.pillar-desc {
    color: var(--muted);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    margin: 4px 0 8px 0;
}

.pillar-percent {
    color: #dfeedd;
    font-weight: 700;
    font-size: 0.9rem;
}

/* tags */
.pillar-tags .tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    color: #cbd6cf;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 14px;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Progress bar */
.custom-progress {
    background: rgba(255, 255, 255, 0.02);
    height: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.custom-progress .progress-bar {
    height: 100%;
    background: #B0B5BE;
    box-shadow: 0 2px 6px rgba(59, 245, 255, 0.06);
}

/* Small CTA panel */
.small-cta-panel {
    background: #1f2021;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    border-right: none;

    padding: var(--spacing-48-24);
    margin-top: var(--spacing-48-24);
}


.small-cta-panel h5 {
    color: #fff;
    font-size: var(--fs-32-24);
    font-weight: var(--font-weight-semibold);
}

.small-cta-panel p {
    color: #B0B5BE !important;
    margin-bottom: 12px;
}

.small-cta-panel .cta-btn {
    display: block;
    margin: var(--spacing-95-32) auto 0;
    padding: 0 24px;
    height: 56px; /* Tablet/Mobile default */
    border-radius: 999px;
    background: linear-gradient(to right,
    #fff 0%,
    #fff 25%,
    #fff 50%,
    #fff 75%,
    #ffe9b4 100%
    );
    color: #000;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    line-height: 56px;
}

@media (min-width: 992px) {
    .small-cta-panel .cta-btn {
        height: 64px;
    }
}

/* Right column agent cards */
.row-heading {
    color: var(--accent);
    font-weight: var(--font-weight-semibold);
    /*margin-top: 16px;*/
    margin-bottom: 16px;
    font-size: 20px;
}

.agent-card {
    background: #121314;
    border-radius: 12px;
    padding: 12px;
    min-height: 110px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.agent-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    margin-bottom: 8px;
}

.agent-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.agent-desc {
    color: var(--muted);
    margin: 0 0 6px 0;
    font-size: 0.86rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-tags .micro-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    color: #cbd6cf;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .agent-ecosystem-section {
        padding: 36px 12px;
    }

    .pillar-icon {
        width: 44px;
        height: 44px;
    }

    .agent-card {
        min-height: 100px;
    }

}


/*====== Tooltip ======  */
.circle {
    position: absolute;
    width: 100px;
    height: 100px;
    /*background-color: rgba(0, 123, 255, 0.6);*/
    border-radius: 50%;
    cursor: pointer;
}

.tooltip-custom {
    position: absolute;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 40px 10px 10px;
    border-radius: 8px;
    font-size: 14px;
    display: block;
    z-index: 1000;
    text-align: left;
    white-space: normal;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip-custom.arrow-bottom::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.tooltip-custom.arrow-top::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.tooltip-custom.show {
    opacity: 1;
    visibility: visible;
}

.tooltip-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.tooltip-desc {
    font-size: 14px;
    line-height: 1.4;
    color: #484E57;
}

/* ====== Barnabus Team Section ====== */
.barnabus-team-section {
    position: relative;
    background: #ffffff;
    color: #333333;
    overflow: visible;
}

/* Team grid collapse + gradient */
.team-grid-wrapper {
    position: relative;
}
.team-grid-wrapper.collapsed {
    /*padding-bottom: 180px; !* ensure gradient doesn't visually crowd the button area and clear the gradient (160px) *!*/
}
.team-grid-wrapper.collapsed .team-grid > .beyond-limit {
    display: none !important;
}
.team-grid-wrapper.collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px; /* gradient height */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, #ffffff 100%);
    pointer-events: none;
    z-index: 1; /* keep overlay below the button container (which will be z-index:2) */
}

/* Mobile-specific: show only 5 items with the 5th partially faded */
@media (max-width: 991px) {
    /* Hide everything after the 5th item when collapsed */
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(n+6) {
        display: none !important;
    }
    /* Apply a half-height gradient overlay on the 5th item */
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(5) {
        position: relative;
        overflow: hidden;
    }
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(5)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
        pointer-events: none;
    }
    /* Disable the big wrapper gradient on mobile to avoid double overlays */
    .team-grid-wrapper.collapsed::after {
        display: none;
    }
}

/* ensure the See More container always paints above the gradient overlay */
.team-see-more-bar {
    position: relative;
    z-index: 2;
}

/* See More button */
.see-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* center text and arrow inside the button */
    gap: 10px;
    height: var(--btn-h-64-56); /* match height with other buttons */
    padding: 20px; /* vertical padding 0 to respect fixed height; keep horizontal padding */
    background: #e8e8e8;
    color: #121314;
    border: 1px solid #E0E0E0;
    border-radius: 500px;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: var(--spacing-64-32);
    width: 250px;
    text-align: center; /* ensure text is centered for accessibility */
}
.see-more-btn .arrow { font-size: 16px; }
.see-more-btn:hover { background: #E8E8E8; }
.see-more-btn:active { transform: translateY(1px); }

/* Mobile: center the button and make it full width */
@media (max-width: 991px) {
    .team-see-more-bar { text-align: center; }
    .see-more-btn { width: 100%; }
}

.team-section-title {
    color: #333333;
    /*font-size: 1.8rem;*/
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;

    font-size: 1.6rem;
    /*margin-bottom: 6px;*/
}

.team-card {
    background: transparent;
    border: none;
    /*padding: 20px 10px;*/
    /*margin-bottom: 20px;*/
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-member-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-image img {
    width: 120%;
    height: 120%;
    object-fit: cover;
}

.team-member-info {
    flex: 1;
}

.team-member-name {
    color: #121314;
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    margin: 0 0 5px 0;
}

.team-member-role {
    color: #484E57;
    font-size: 14px;
    margin: 0;
    font-weight: var(--font-weight-regular);
}

.linkedin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1px solid #59595a;
    background: transparent;
    border-radius: 8px;
    color: #59595a;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-top: 11px !important;
}

.linkedin-icon:hover {
    background-color: #121314;
    color: #fff;
}

.linkedin-icon i {
    font-size: 18px;
}

.barnabus-team-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80%;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, 0.8) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.18;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0) 62%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0) 62%);
}

/* ====== Barnabus Manifesto Section ======  */
.manifesto-section {
    background: #ffffff;
    position: relative;
    color: #121314;
    overflow: visible;
}

.manifesto-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 0, 0, 0.8) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.18;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0) 62%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0) 62%);
}

.manifesto-title {
    color: #121314;
    font-weight: normal;
}

.problem-section {
    position: relative;
    background: linear-gradient(to bottom,
    #121314 0%,
    #121314 85%,
    #ffffff 125%);

    color: #B0B5BE;
    /*padding: 2rem;*/
}

.problem-section h4 {
    font-size: var(--fs-32-24);
}

.problem-section p, ul {
    color: #B0B5BE;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);
}

.memory-highlight {
    border: #EAEAEA solid 2px;
}

.memory-highlight p {
    margin-bottom: 0;
    font-weight: var(--font-weight-light);
    font-size: var(--fs-40-24) !important;
}

.promise-card {
    border: 2px solid #D8FF5A;
    background: linear-gradient(to bottom,
    #ffffff 0%,
    #ffffff 70%,
    rgba(216, 255, 90, 0.45) 100%);
}

.promise-card ul {
    font-size: var(--fs-18-16);
    color: #484E57;
    list-style-type: square;
}

.principles-card {
    background-color: #ffffff;
    border: 2px solid #3BF5FF;

    background: linear-gradient(to bottom,
    #ffffff 0%,
    #ffffff 70%,
    #3BF5FF 150%);
}

.principles-card ol {
    color: #484E57;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);
    margin-bottom: 0;
}

.future-card {
    border: 2px solid #7C3AFF;
    background: linear-gradient(to bottom,
    #ffffff 0%,
    #ffffff 70%,
    #7C3AFF 180%);
}

.future-card ul, .future-card.p {
    color: #484E57;
    font-size: var(--fs-18-16);
    font-weight: var(--font-weight-regular);
}

/* Final mobile See All button styles to preserve white 10% background */
@media (max-width: 991.98px) {
    .panel.large-panel .see-all-btn {
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .panel.large-panel .see-all-btn:hover,
    .panel.large-panel .see-all-btn:active {
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}


/* Mobile spacing fix between AGI Pillar Progress Tracker and Agent Ecosystem Breakdown */
@media (max-width: 991.98px) {
    /* Reduce vertical gutter when columns stack */
    .growing-ecosystem-section .row.g-5 {
        --bs-gutter-y: 0.75rem; /* ~12px, was ~48px */
    }

    /* Reduce panel top margin on mobile to avoid compounded spacing */
    .growing-ecosystem-section .panel.large-panel {
        margin-top: 12px;
    }
}

/* Desktop-specific: show 3 full rows (9 items), and partially fade the 10th, 11th, and 12th */
@media (min-width: 992px) {
    /* Hide everything after the 12th item when collapsed */
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(n+13) {
        display: none !important;
    }
    /* Apply a gradient overlay on the 10th, 11th, and 12th items (first of 4th row and next two) */
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(10),
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(11),
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(12) {
        position: relative;
        overflow: hidden;
    }

    .team-grid-wrapper.collapsed .team-grid > *:nth-child(10)::after,
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(11)::after,
    .team-grid-wrapper.collapsed .team-grid > *:nth-child(12)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
        pointer-events: none;
    }

    /* Disable the big wrapper gradient on desktop to avoid double overlays */
    .team-grid-wrapper.collapsed::after {
        display: none;
    }
}

