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

body {
    background: #0a0e1a;
    color: #e8eaf2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.3px;
}

a {
    color: #3b9eff;
    text-decoration: none;
}

a:hover {
    color: #6db8ff;
    text-decoration: none;
}

.bb-glow {
    box-shadow:
        0 0 0 1px var(--border),
        0 0 55px 9px var(--blue-glow);
}

.bb-hero-visual .bb-glow {
    box-shadow:
        -1px 0 0 0 var(--border),
        0 -1px 0 0 var(--border),
        0 1px 0 0 var(--border),
        0 0 55px 9px var(--blue-glow);
}

/* ─── Buttons ─────────────────────────────────── */
.btn-bb-primary {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
}

.btn-bb-primary:hover {
    background: #2e8eef;
}

.bb-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
}

/* ─── Homepage Demo Buttons ──────────────────────────────────── */
.btn-bb-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    background: transparent;
    color: var(--blue) !important;
    border: 1px solid var(--blue-bdr);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-bb-demo:hover {
    background: var(--blue-dim);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.btn-bb-demo i {
    font-size: 16px;
}

/* ─── Mobile Nav ──────────────────────────────────── */
.bb-nav-mobile {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.bb-nav-mobile.open {
    display: block;
}

.bb-nav-mobile a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.bb-nav-mobile a:last-child {
    border-bottom: none;
}

.bb-nav-mobile .btn-bb-primary {
    margin-top: 14px;
    width: 100%;
    text-align: center;
}

/* ─── Hero ────────────────────────────────────── */
.bb-hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}

.bb-hero-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 64px 0 64px 6%;
    display: flex;
    align-items: center;
    gap: 0;
}

.bb-hero-text {
    flex: 0 0 42%;
    padding-right: 52px;
    flex-shrink: 0;
}

.bb-hero-text h1 {
    font-size: 49px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1.2px;
}

.bb-hero-text h1 span {
    color: var(--blue);
}

.bb-hero-sub {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.68;
    margin-bottom: 28px;
}

.bb-hero-sub strong {
    color: #e8eaf2;
    font-weight: 500;
}

.bb-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.bb-hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--body-text);
    margin-bottom: 11px;
}

.bb-bullet-dot {
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.bb-hero-cta {
    margin-bottom: 10px;
}

.bb-hero-note {
    font-size: 12px;
    color: var(--faint);
    margin-bottom: 20px;
}

.bb-powered {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--faint);
}

.bb-coingecko-dot {
    width: 18px;
    height: 18px;
    background: #1a8c5b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

.bb-hero-visual {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin-right: -1px;
    overflow: visible;
}

/* ─── Browser Frame ───────────────────────────── */
.bb-browser-frame {
    background: var(--surface);
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    width: 100%;
    border-right: none;
}

.bb-browser-bar {
    background: var(--surface2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.bb-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bb-browser-url {
    background: var(--surface);
    border-radius: 5px;
    padding: 4px 14px;
    font-size: 11px;
    color: var(--faint);
    margin-left: 10px;
}

.bb-dash-placeholder {
    width: 100%;
    background: var(--surface2);
    padding: 16px;
    min-height: calc(100vh - 104px);
    display: flex;
    flex-direction: column;
}

.bb-dash-body {
    flex: 1;
}

.bb-hero-visual img {
    width: 100%;
    display: block;
    min-height: calc(100vh - 104px);
    object-fit: cover;
    object-position: top left;
}

/* ─── Trust Bar ───────────────────────────────── */
.bb-trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 28px 48px;
}

.bb-trust-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.bb-trust-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 40px;
    border-right: 1px solid var(--border);
}

.bb-trust-col:first-child {
    padding-left: 0;
}

.bb-trust-col:last-child {
    border-right: none;
    padding-right: 0;
}

.bb-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-trust-icon {
    width: 36px;
    height: 36px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-bdr);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-trust-icon i {
    color: var(--blue);
    font-size: 17px;
}

.bb-trust-title {
    font-size: 14px;
    font-weight: 500;
    color: #e8eaf2;
    margin-bottom: 1px;
}

.bb-trust-desc {
    font-size: 12px;
    color: var(--faint);
}

.bb-divider {
    height: 1px;
    background: var(--border);
    margin: 0 48px;
}

/* ─── Feature Sections ────────────────────────── */
.bb-section {
    padding: 88px 0;
}

.bb-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.bb-section h2 {
    font-size: 30px;
    font-weight: 500;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.bb-section-body {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.72;
    margin-bottom: 28px;
}

.bb-feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bb-feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--body-text);
    line-height: 1.55;
    margin-bottom: 14px;
}

.bb-feature-bullets li i {
    color: var(--blue);
    font-size: 17px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ─── Screen frames ───────────────────────────── */
.bb-screen {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.bb-screen-bar {
    background: var(--surface2);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.bb-screen-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.bb-screen-url {
    background: var(--surface);
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 10px;
    color: var(--faint);
    margin-left: 8px;
}

.bb-feed-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

/* ═══════════════════════════════════════════════
   CAROUSEL MODAL SYSTEM (FIXED RESPONSIVE FIT)
═══════════════════════════════════════════════ */

.bb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.bb-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bb-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90vw;
    max-width: 1152px;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 80px 8px rgba(59, 158, 255, 0.2),
        0 32px 64px rgba(0, 0, 0, 0.7);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.28s ease;
}

.bb-modal-overlay.active .bb-modal {
    transform: translateY(0) scale(1);
}

.bb-modal-header {
    padding: 20px 28px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
}

.bb-modal-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bb-modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.3px;
}

.bb-modal-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5;
}

.bb-modal-close {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 16px;
    transition: background 0.15s, color 0.15s;
}

.bb-modal-close:hover {
    background: var(--border);
    color: #fff;
}

/* Modal body flex layout */
.bb-modal-body {
    padding: 0 28px 20px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Viewport wrapper */
#emblaViewport {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.embla {
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.embla__container {
    display: flex;
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    position: relative;
}

/* Slide inner container */
.bb-slide-inner {
    width: 100%;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Force image aspect-ratio scaling inside container */
.bb-slide-inner img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

.bb-slide-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 40px 4px rgba(59, 158, 255, 0.12);
}

.bb-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--surface2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bb-slide-placeholder.visible {
    opacity: 1;
}

.bb-slide-placeholder-icon {
    width: 64px;
    height: 64px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-bdr);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--blue);
}

.bb-slide-placeholder-title {
    font-size: 15px;
    font-weight: 500;
    color: #e8eaf2;
    text-align: center;
}

.bb-slide-placeholder-sub {
    font-size: 12px;
    color: var(--faint);
    text-align: center;
    max-width: 300px;
    line-height: 1.6;
}

.bb-slide-placeholder-tag {
    font-size: 10px;
    color: var(--blue);
    background: var(--blue-dim);
    border: 1px solid var(--blue-bdr);
    border-radius: 4px;
    padding: 3px 10px;
}

/* Slide description bar */
.bb-slide-desc-bar {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bb-slide-desc-bar i {
    color: var(--blue);
    font-size: 16px;
    flex-shrink: 0;
}

.bb-slide-desc-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.55;
    transition: opacity 0.25s ease;
}

.bb-slide-desc-text.fading {
    opacity: 0;
}

/* Controls */
.bb-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    flex-shrink: 0;
}

.bb-carousel-arrows {
    display: flex;
    gap: 8px;
}

.bb-carousel-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 18px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bb-carousel-btn:hover:not(:disabled) {
    background: var(--blue-dim);
    border-color: var(--blue);
    color: var(--blue);
}

.bb-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.bb-carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.bb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}

.bb-dot.active {
    background: var(--blue);
    transform: scale(1.3);
}

.bb-carousel-counter {
    font-size: 12px;
    color: var(--faint);
}

.bb-carousel-counter span {
    color: var(--muted);
}

.bb-modal.expanded {
    width: 98vw;
    max-width: 98vw;
    height: 96vh;
    max-height: 96vh;
}

.bb-modal-expand {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bb-modal-expand:hover {
    background: var(--blue-dim);
    border-color: var(--blue);
    color: var(--blue);
}

.bb-section-text-col {
    flex: 0 0 46%;
    max-width: 46%;
    padding-right: 32px;
}

.bb-section-text-col.reversed {
    padding-right: 0;
    padding-left: 32px;
}

.bb-section-image-col {
    flex: 0 0 54%;
    max-width: 54%;
}

/* ─── Footer CTA ──────────────────────────────── */
.bb-footer-cta {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 80px 24px 56px;
    text-align: center;
}

.bb-footer-cta h2 {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.bb-footer-cta p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 28px;
}

.bb-footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
    font-size: 12px;
    color: var(--faint);
}

.bb-footer-bottom {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    flex-shrink: 0;
}

.bb-footer-bottom p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

/* ─── Responsive Media Queries ────────────────── */
@media (max-width: 991px) {
    .bb-hero-inner {
        flex-direction: column;
        padding: 52px 24px 40px;
        gap: 40px;
        overflow: visible;
    }

    .bb-hero-text {
        flex: none;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .bb-hero-text h1 {
        font-size: 36px;
    }

    .bb-hero-bullets {
        text-align: left;
    }

    .bb-powered {
        justify-content: center;
    }

    .bb-hero-visual {
        width: 100%;
        margin-right: 0;
        align-self: auto;
    }

    .bb-hero-visual .bb-browser-frame {
        border-radius: 12px;
        border-right: 1px solid var(--border);
    }

    .bb-hero-visual .bb-glow {
        box-shadow: 0 0 0 1px var(--border), 0 0 41px 6px var(--blue-glow);
    }

    .bb-trust-bar {
        padding: 28px 24px;
    }

    .bb-trust-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bb-trust-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0 0 20px;
    }

    .bb-trust-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .bb-section {
        padding: 60px 24px;
    }

    .bb-section h2 {
        font-size: 24px;
    }

    .bb-divider {
        margin: 0 24px;
    }
}

@media (max-width: 767px) {

    .bb-section-text-col,
    .bb-section-image-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .bb-navbar {
        padding: 0 20px;
    }

    .bb-nav-links {
        display: none;
    }

    .bb-nav-toggle {
        display: block;
    }

    .bb-footer-cta h2 {
        font-size: 24px;
    }

    .bb-dash-side {
        display: none;
    }

    .bb-modal {
        width: 98vw;
        height: 90vh;
        max-height: 90vh;
    }

    .bb-modal-header {
        padding: 16px 18px 10px;
    }

    .bb-modal-body {
        padding: 0 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bb-modal,
    .bb-modal-overlay,
    .bb-slide-inner {
        transition: none;
    }
}