/* ============================================================================
   BizBlocks — Marketing / Home design system
   A dark, modern SaaS aesthetic (blue accent) adapted from the Suntek Solutions
   design language. Every visual token is a CSS custom property so the on-page
   "Brand Studio" widget can re-theme the entire site live (colors + text).

   Scoped under `.bbx` so it never collides with the framework's Bootstrap 5.
   ========================================================================== */

:root {
    /* ---- Surfaces (dark navy) ---- */
    --bb-bg: #080a14;
    --bb-bg-2: #0c1020;
    --bb-bg-3: #11162b;
    --bb-surface: rgba(255, 255, 255, .03);
    --bb-surface-2: rgba(255, 255, 255, .055);
    --bb-border: rgba(255, 255, 255, .09);
    --bb-border-2: rgba(255, 255, 255, .16);

    /* ---- Text ---- */
    --bb-text: #eef2ff;
    --bb-text-2: rgba(223, 230, 255, .72);
    --bb-text-3: rgba(223, 230, 255, .48);

    /* ---- Brand accent (themeable by Brand Studio) ---- */
    --bb-accent-1: #4f8cff;      /* primary   */
    --bb-accent-2: #22d3ee;      /* secondary */
    --bb-accent-rgb: 79, 140, 255;
    --bb-grad: linear-gradient(135deg, var(--bb-accent-1) 0%, var(--bb-accent-2) 100%);
    --bb-grad-soft: linear-gradient(135deg, rgba(var(--bb-accent-rgb), .16), rgba(34, 211, 238, .10));

    /* ---- Card gradient family (blue variations) ---- */
    --bb-g1: linear-gradient(135deg, #4f8cff, #22d3ee);
    --bb-g2: linear-gradient(135deg, #3b82f6, #06b6d4);
    --bb-g3: linear-gradient(135deg, #6366f1, #38bdf8);
    --bb-g4: linear-gradient(135deg, #2563eb, #60a5fa);
    --bb-g5: linear-gradient(135deg, #0ea5e9, #67e8f9);
    --bb-g6: linear-gradient(135deg, #4338ca, #3b82f6);

    /* ---- Spacing ---- */
    --bb-xs: .5rem;
    --bb-sm: 1rem;
    --bb-md: 1.5rem;
    --bb-lg: 2rem;
    --bb-xl: 3rem;
    --bb-2xl: 4.5rem;
    --bb-3xl: 6rem;

    /* ---- Radius ---- */
    --bb-r-sm: 10px;
    --bb-r-md: 14px;
    --bb-r-lg: 20px;
    --bb-r-xl: 28px;
    --bb-r-full: 999px;

    /* ---- Shadows ---- */
    --bb-shadow-md: 0 8px 30px rgba(0, 0, 0, .35);
    --bb-shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
    --bb-glow: 0 0 44px rgba(var(--bb-accent-rgb), .38);

    --bb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bb-font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bb-container: 1200px;
}

/* Full-page dark canvas. This stylesheet is only linked on marketing pages,
   so it is safe to paint the document background here (overrides Bootstrap). */
body {
    background: var(--bb-bg) !important;
    color: var(--bb-text);
    font-family: var(--bb-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
#divBody { background: var(--bb-bg); }

.bbx, .bbx * { box-sizing: border-box; }

.bbx {
    font-family: var(--bb-font);
    color: var(--bb-text);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
}

.bbx img { max-width: 100%; height: auto; display: block; }
.bbx a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }

.bbx ::selection { background: rgba(var(--bb-accent-rgb), .35); color: #fff; }

/* ---- Layout helpers ---- */
.bb-container {
    max-width: var(--bb-container);
    margin: 0 auto;
    padding: 0 var(--bb-lg);
    position: relative;
    z-index: 1;
}

.bbx section { position: relative; }

/* ---- Typography ---- */
.bbx h1, .bbx h2, .bbx h3, .bbx h4 {
    font-family: var(--bb-font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--bb-text);
    margin: 0;
}
.bbx h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
.bbx h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.bbx h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -.02em; }
.bbx h4 { font-size: 1.15rem; letter-spacing: -.01em; }
.bbx p { margin: 0; }

/* Plain uppercase eyebrow (QuantumMind-style restraint, used to vary from pill badges) */
.bb-kicker {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--bb-accent-2);
    margin-bottom: 1.1rem;
}

.bb-gradient-text {
    background: var(--bb-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Buttons ---- */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .9rem 1.8rem;
    font-family: var(--bb-font);
    font-weight: 650;
    font-size: 15px;
    line-height: 1;
    border-radius: var(--bb-r-full);
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.bb-btn-primary {
    background: var(--bb-grad);
    color: #05070f;
    box-shadow: var(--bb-glow);
    font-weight: 750;
}
.bb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(var(--bb-accent-rgb), .6);
    color: #05070f;
}
.bb-btn-secondary {
    background: var(--bb-surface-2);
    color: var(--bb-text);
    border: 1px solid var(--bb-border-2);
    backdrop-filter: blur(8px);
}
.bb-btn-secondary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); border-color: rgba(var(--bb-accent-rgb), .5); }
.bb-btn-ghost { background: transparent; color: var(--bb-text-2); }
.bb-btn-ghost:hover { color: var(--bb-text); }
.bb-btn-lg { padding: 1.05rem 2.3rem; font-size: 16px; }
.bb-btn-block { width: 100%; }

/* ---- Section header / badge ---- */
.bb-section { padding: var(--bb-3xl) 0; }
.bb-section-head { text-align: center; max-width: 760px; margin: 0 auto var(--bb-2xl); }
.bb-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    background: rgba(var(--bb-accent-rgb), .12);
    color: var(--bb-accent-1);
    border: 1px solid rgba(var(--bb-accent-rgb), .28);
    border-radius: var(--bb-r-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: var(--bb-md);
}
.bb-section-desc {
    font-size: 1.14rem;
    color: var(--bb-text-2);
    max-width: 680px;
    margin: var(--bb-md) auto 0;
    line-height: 1.7;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.bb-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    padding: 1.05rem 0;
    background: rgba(8, 10, 20, .72);
    backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.bb-nav.bb-scrolled { padding: .7rem 0; background: rgba(8, 10, 20, .92); border-bottom-color: var(--bb-border); }
.bb-nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--bb-lg); }
.bb-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--bb-font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; color: var(--bb-text); }
.bbx .bb-logo-img { height: 34px; width: 34px; display: block; border-radius: 8px; flex: 0 0 auto; object-fit: contain; }
.bb-footer .bb-logo-img { height: 30px; width: 30px; }
.bb-logo .bb-logo-text { color: var(--bb-text); }

.bb-nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.bb-nav-menu a { font-size: 15px; font-weight: 550; color: var(--bb-text-2); }
.bb-nav-menu a:hover { color: var(--bb-text); }
.bb-nav-actions { display: flex; align-items: center; gap: 1rem; }
.bb-nav-actions .bb-login { font-size: 15px; font-weight: 600; color: var(--bb-text-2); cursor: pointer; }
.bb-nav-actions .bb-login:hover { color: var(--bb-text); }

.bb-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.bb-burger span { width: 24px; height: 2px; background: var(--bb-text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.bb-burger.bb-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bb-burger.bb-open span:nth-child(2) { opacity: 0; }
.bb-burger.bb-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.bb-mobile-menu {
    position: fixed; inset: 0; z-index: 899;
    background: rgba(6, 8, 16, .97); backdrop-filter: blur(14px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.bb-mobile-menu.bb-open { opacity: 1; pointer-events: auto; }
.bb-mobile-menu a { font-size: 1.5rem; font-weight: 700; color: var(--bb-text); }
.bb-mobile-menu a:hover { color: var(--bb-accent-1); }

/* =====================================================================
   HERO
   ===================================================================== */
.bb-hero {
    position: relative;
    padding: 7.5rem 0 var(--bb-2xl);
    overflow: hidden;
}
.bb-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bb-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: bb-float 22s ease-in-out infinite; }
.bb-orb-1 { width: 560px; height: 560px; background: var(--bb-g1); top: -180px; right: -140px; }
.bb-orb-2 { width: 460px; height: 460px; background: var(--bb-g6); bottom: -200px; left: -160px; animation-delay: -8s; }
.bb-orb-3 { width: 380px; height: 380px; background: var(--bb-g3); top: 40%; right: 18%; opacity: .3; animation-delay: -15s; }
.bb-hero-grid-overlay {
    position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, #000 20%, transparent 75%);
}
.bb-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.5rem; align-items: center; min-height: 52vh; }
.bb-hero-copy { text-align: left; }
.bb-hero-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .5rem 1.15rem;
    background: var(--bb-surface-2); border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-r-full); font-size: 13.5px; font-weight: 600; color: var(--bb-text-2);
    margin-bottom: var(--bb-lg);
}
.bb-hero-badge .bb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bb-accent-2); box-shadow: 0 0 12px var(--bb-accent-2); animation: bb-pulse 2.4s ease-in-out infinite; }
#bbHome .bb-hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); margin-bottom: var(--bb-md); }
.bb-hero-desc { font-size: 1.18rem; color: var(--bb-text-2); max-width: 560px; margin: 0 0 var(--bb-xl); line-height: 1.65; }
.bb-hero-btns { display: flex; gap: var(--bb-sm); justify-content: flex-start; flex-wrap: wrap; }

/* Stat bar spanning the full hero width, beneath the two columns */
.bb-hero-statbar { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bb-lg); margin-top: var(--bb-xl); padding-top: var(--bb-xl); border-top: 1px solid var(--bb-border); }
.bb-stat { text-align: left; }
.bb-stat-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-bottom: .4rem; font-family: var(--bb-font-display); background: var(--bb-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.bb-stat-label { font-size: .8rem; color: var(--bb-text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* ---- Hero product visual (glass dashboard mockup) ---- */
.bb-hero-visual { position: relative; z-index: 1; }
.bb-dash {
    position: relative;
    background: linear-gradient(160deg, rgba(22,28,50,.9), rgba(12,16,32,.92));
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-r-lg);
    box-shadow: var(--bb-shadow-lg), 0 0 80px rgba(var(--bb-accent-rgb), .18);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: bb-cardfloat 7s ease-in-out infinite;
}
.bb-dash-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--bb-border); }
.bb-dash-head .bb-dd { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.bb-dash-head .bb-dd:nth-child(1){ background: rgba(var(--bb-accent-rgb), .8); }
.bb-dash-title { margin-left: .4rem; font-family: var(--bb-font-display); font-weight: 600; font-size: .92rem; }
.bb-dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-accent-2); }
.bb-dash-live .bb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bb-accent-2); box-shadow: 0 0 8px var(--bb-accent-2); animation: bb-pulse 1.8s ease-in-out infinite; }
.bb-dash-body { padding: 1.2rem; }
.bb-dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.1rem; }
.bb-dash-kpi { background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-md); padding: .8rem .9rem; }
.bb-dash-kpi .bb-kl { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-text-3); }
.bb-dash-kpi .bb-kv { font-family: var(--bb-font-display); font-weight: 700; font-size: 1.35rem; margin-top: .15rem; }
.bb-dash-kpi .bb-kv small { font-size: .72rem; color: var(--bb-accent-2); font-weight: 600; margin-left: .2rem; }
.bb-dash-chart { display: flex; align-items: flex-end; gap: .5rem; height: 132px; padding: .8rem; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-md); }
.bb-dash-chart i { flex: 1; border-radius: 5px 5px 0 0; background: var(--bb-grad); opacity: .9; display: block; animation: bb-bar 3.5s ease-in-out infinite; transform-origin: bottom; }
.bb-dash-legend { display: flex; gap: 1rem; margin-top: .8rem; font-size: .72rem; color: var(--bb-text-3); }
.bb-dash-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--bb-accent-1); }
.bb-dash-legend span:nth-child(2)::before { background: var(--bb-accent-2); }

.bb-chip {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(16,20,38,.86); border: 1px solid var(--bb-border-2); border-radius: var(--bb-r-full);
    padding: .55rem .85rem; font-size: .82rem; font-weight: 600; color: var(--bb-text);
    box-shadow: var(--bb-shadow-md); backdrop-filter: blur(12px);
    animation: bb-cardfloat 6s ease-in-out infinite;
}
.bb-chip .bb-chip-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bb-grad-soft); font-size: .9rem; }
.bb-chip-1 { top: -18px; right: -14px; animation-delay: -1s; }
.bb-chip-2 { top: 128px; left: -34px; animation-delay: -3.5s; }
.bb-chip-3 { bottom: -18px; right: 28px; animation-delay: -2s; }

/* =====================================================================
   LOGO / MARQUEE STRIP
   ===================================================================== */
.bb-strip { padding: var(--bb-xl) 0; border-top: 1px solid var(--bb-border); border-bottom: 1px solid var(--bb-border); }
.bb-strip-label { text-align: center; color: var(--bb-text-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: var(--bb-lg); font-weight: 600; }
.bb-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.bb-marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: bb-marquee 34s linear infinite; }
.bb-marquee-item { display: flex; align-items: center; gap: .55rem; color: var(--bb-text-2); font-weight: 650; font-size: 1.05rem; white-space: nowrap; opacity: .78; }
.bb-marquee-item .bb-ico { font-size: 1.3rem; }

/* =====================================================================
   CARD GRIDS
   ===================================================================== */
.bb-grid { display: grid; gap: var(--bb-lg); }
.bb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bb-grid-auto { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.bb-card {
    position: relative;
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-r-xl);
    padding: var(--bb-lg);
    transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.bb-card::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: var(--bb-grad); opacity: 0; transition: opacity .3s ease;
}
.bb-card:hover { transform: translateY(-5px); border-color: rgba(var(--bb-accent-rgb), .35); background: var(--bb-surface-2); box-shadow: var(--bb-shadow-md); }
.bb-card:hover::before { opacity: .06; }
.bb-card > * { position: relative; z-index: 1; }

.bb-card-icon {
    width: 56px; height: 56px; border-radius: var(--bb-r-md);
    display: grid; place-items: center; color: #fff;
    margin-bottom: var(--bb-md);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.bb-card-icon svg { width: 28px; height: 28px; }
.bb-bg-1 { background: var(--bb-g1); } .bb-bg-2 { background: var(--bb-g2); }
.bb-bg-3 { background: var(--bb-g3); } .bb-bg-4 { background: var(--bb-g4); }
.bb-bg-5 { background: var(--bb-g5); } .bb-bg-6 { background: var(--bb-g6); }

.bb-card h3 { margin-bottom: .7rem; }
.bb-card p { color: var(--bb-text-2); line-height: 1.66; }
.bb-card-list { list-style: none; margin: var(--bb-sm) 0 0; padding: 0; }
.bb-card-list li { position: relative; padding-left: 1.6rem; color: var(--bb-text-2); margin-bottom: .55rem; font-size: .96rem; line-height: 1.5; }
.bb-card-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--bb-accent-2); font-weight: 800; }
.bb-card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--bb-md); color: var(--bb-accent-1); font-weight: 650; font-size: .95rem; }
.bb-card-link:hover { gap: .7rem; color: var(--bb-accent-2); }

/* Integration card (compact) */
.bb-int-card { text-align: center; padding: var(--bb-md); }
.bb-int-card .bb-int-ico { font-size: 2.4rem; margin-bottom: .8rem; display: block; }
.bb-int-card h4 { margin-bottom: .4rem; font-size: 1.05rem; }
.bb-int-card p { font-size: .9rem; color: var(--bb-text-2); }

/* =====================================================================
   SPLIT / FEATURE ROWS
   ===================================================================== */
.bb-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bb-2xl); align-items: center; }
.bb-split-media {
    border: 1px solid var(--bb-border); border-radius: var(--bb-r-lg);
    background: linear-gradient(160deg, var(--bb-bg-3), var(--bb-bg-2));
    padding: var(--bb-lg); box-shadow: var(--bb-shadow-lg); overflow: hidden;
}
.bb-eyebrow { color: var(--bb-accent-1); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; margin-bottom: var(--bb-sm); }
.bb-feature-list { list-style: none; margin: var(--bb-lg) 0 0; padding: 0; }
.bb-feature-list li { display: flex; gap: .9rem; margin-bottom: var(--bb-md); }
.bb-feature-list .bb-fi { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bb-grad-soft); border: 1px solid rgba(var(--bb-accent-rgb), .3); color: var(--bb-accent-1); font-size: 1.15rem; }
.bb-feature-list h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.bb-feature-list p { color: var(--bb-text-2); font-size: .95rem; }

/* Mock dashboard used as hero/split visual */
.bb-mock { display: flex; flex-direction: column; gap: .8rem; }
.bb-mock-bar { display: flex; align-items: flex-end; gap: .5rem; height: 130px; padding: var(--bb-sm); background: var(--bb-surface); border-radius: var(--bb-r-md); border: 1px solid var(--bb-border); }
.bb-mock-bar i { flex: 1; border-radius: 5px 5px 0 0; background: var(--bb-grad); opacity: .85; display: block; }
.bb-mock-row { display: flex; gap: .8rem; }
.bb-mock-tile { flex: 1; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-md); padding: var(--bb-sm); }
.bb-mock-tile .bb-k { font-size: .7rem; color: var(--bb-text-3); text-transform: uppercase; letter-spacing: .08em; }
.bb-mock-tile .bb-v { font-size: 1.4rem; font-weight: 800; background: var(--bb-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* =====================================================================
   PROCESS / STEPS
   ===================================================================== */
.bb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bb-lg); counter-reset: step; }
.bb-step { text-align: center; position: relative; }
.bb-step-num {
    width: 52px; height: 52px; margin: 0 auto var(--bb-md); border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
    background: var(--bb-grad-soft); border: 1px solid rgba(var(--bb-accent-rgb), .4); color: var(--bb-accent-1);
}
.bb-step h4 { margin-bottom: .5rem; }
.bb-step p { color: var(--bb-text-2); font-size: .95rem; }

/* =====================================================================
   BIG "PLATFORM" FEATURE BANNER
   ===================================================================== */
.bb-platform { position: relative; overflow: hidden; border-radius: var(--bb-r-xl); border: 1px solid var(--bb-border-2); padding: var(--bb-2xl); background: linear-gradient(150deg, var(--bb-bg-3), var(--bb-bg)); }
.bb-platform .bb-orb { opacity: .3; }

/* Capability rows (icon + title + copy) — a calmer alternative to big-number stats */
.bb-cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bb-lg) var(--bb-2xl); margin-top: var(--bb-xl); }
.bb-cap { display: flex; gap: .9rem; }
.bb-cap .bb-cap-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--bb-grad-soft); border: 1px solid rgba(var(--bb-accent-rgb), .3); color: var(--bb-accent-1); }
.bb-cap .bb-cap-ico svg { width: 21px; height: 21px; }
.bb-cap h4 { margin-bottom: .2rem; }
.bb-cap p { color: var(--bb-text-2); font-size: .94rem; line-height: 1.6; }

/* Code panel with window chrome (developer-facing, distinct visual) */
.bb-code-card { border: 1px solid var(--bb-border-2); border-radius: var(--bb-r-lg); overflow: hidden; background: #0a0e1c; box-shadow: var(--bb-shadow-lg); }
.bb-code-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--bb-border); background: rgba(255,255,255,.02); }
.bb-code-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.bb-code-bar i:nth-child(1){background:#ff5f57} .bb-code-bar i:nth-child(2){background:#febc2e} .bb-code-bar i:nth-child(3){background:#28c840}
.bb-code-bar span { margin-left: .6rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; color: var(--bb-text-3); }
.bb-code-card pre { margin: 0; padding: var(--bb-md) var(--bb-lg); overflow-x: auto; }
.bb-code-card code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .86rem; line-height: 1.75; color: #cdd6f4; white-space: pre; }
.bb-code-card .k { color: #93b4ff; } .bb-code-card .t { color: var(--bb-accent-2); } .bb-code-card .s { color: #a6e3a1; } .bb-code-card .c { color: var(--bb-text-3); font-style: italic; }

/* FAQ accordion (native details/summary) */
.bb-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.bb-faq details { border: 1px solid var(--bb-border); border-radius: var(--bb-r-md); background: var(--bb-surface); overflow: hidden; transition: border-color .25s ease; }
.bb-faq details[open] { border-color: rgba(var(--bb-accent-rgb), .35); background: var(--bb-surface-2); }
.bb-faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-family: var(--bb-font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--bb-accent-1); transition: transform .25s ease; line-height: 1; }
.bb-faq details[open] summary::after { transform: rotate(45deg); }
.bb-faq .bb-faq-body { padding: 0 1.3rem 1.2rem; color: var(--bb-text-2); line-height: 1.7; }
.bb-faq .bb-faq-body ul { margin: .5rem 0 0 1.1rem; }

/* =====================================================================
   CTA
   ===================================================================== */
.bb-cta { position: relative; overflow: hidden; text-align: center; padding: var(--bb-3xl) 0; }
.bb-cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.bb-cta h2 { margin-bottom: var(--bb-md); }
.bb-cta p { font-size: 1.16rem; color: var(--bb-text-2); margin-bottom: var(--bb-xl); }

/* =====================================================================
   FORMS
   ===================================================================== */
.bb-form-card { max-width: 760px; margin: 0 auto; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-xl); padding: var(--bb-xl); box-shadow: var(--bb-shadow-md); }
.bb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bb-sm); }
.bb-field { display: flex; flex-direction: column; }
.bb-field.bb-col-2 { grid-column: 1 / -1; }
.bbx .bb-input,
.bbx .bb-input:focus {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--bb-border-2);
    border-radius: var(--bb-r-md);
    color: var(--bb-text);
    font-family: var(--bb-font);
    font-size: 15px;
    padding: .95rem 1.1rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bbx .bb-input::placeholder { color: var(--bb-text-3); }
.bbx .bb-input:focus { border-color: var(--bb-accent-1); box-shadow: 0 0 0 3px rgba(var(--bb-accent-rgb), .2); }
.bbx textarea.bb-input { resize: vertical; min-height: 130px; }
.bb-notify { margin-top: var(--bb-sm); padding: .9rem 1.1rem; border-radius: var(--bb-r-md); font-weight: 600; font-size: .95rem; }
.bb-notify.bb-ok { background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .4); color: #86efac; }
.bb-notify.bb-err { background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; }
.bb-hidden { display: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.bb-footer { border-top: 1px solid var(--bb-border); padding: var(--bb-3xl) 0 var(--bb-lg); background: var(--bb-bg); }
.bb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--bb-xl); margin-bottom: var(--bb-2xl); }
.bb-footer-main { max-width: 340px; }
.bb-footer-main p { color: var(--bb-text-2); margin: var(--bb-md) 0; font-size: .95rem; line-height: 1.7; }
.bb-footer h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bb-text-3); margin-bottom: var(--bb-md); font-weight: 700; }
.bb-footer ul { list-style: none; margin: 0; padding: 0; }
.bb-footer ul li { margin-bottom: .7rem; }
.bb-footer ul a { color: var(--bb-text-2); font-size: .95rem; }
.bb-footer ul a:hover { color: var(--bb-accent-1); }
.bb-social { display: flex; gap: .7rem; margin-top: var(--bb-md); }
.bb-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bb-surface-2); border: 1px solid var(--bb-border); color: var(--bb-text-2); }
.bb-social a:hover { color: #fff; border-color: rgba(var(--bb-accent-rgb), .5); background: var(--bb-grad-soft); }
.bb-footer-bottom { border-top: 1px solid var(--bb-border); padding-top: var(--bb-lg); display: flex; justify-content: space-between; align-items: center; gap: var(--bb-md); flex-wrap: wrap; color: var(--bb-text-3); font-size: .9rem; }
.bb-footer-bottom .bb-powered { display: flex; align-items: center; gap: .5rem; }
.bb-footer-bottom .bb-powered img { height: 22px; opacity: .8; }

/* =====================================================================
   BRAND STUDIO (live theming widget)
   ===================================================================== */
#bb-studio-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 2147480000;
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--bb-font); font-weight: 700; font-size: 13.5px; color: #05070f;
    padding: .8rem 1.15rem; border: 0; border-radius: var(--bb-r-full); cursor: pointer;
    background: var(--bb-grad);
    box-shadow: 0 14px 40px -8px rgba(var(--bb-accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .2s ease;
}
#bb-studio-fab:hover { transform: translateY(-2px) scale(1.03); }
#bb-studio-fab.bb-hide { display: none; }

#bb-studio {
    position: fixed; right: 18px; top: 84px; bottom: 18px; z-index: 2147480000;
    width: 366px; max-width: calc(100vw - 36px);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(14, 18, 34, .96), rgba(9, 11, 22, .98));
    border: 1px solid var(--bb-border-2); border-radius: var(--bb-r-lg);
    box-shadow: var(--bb-shadow-lg); backdrop-filter: blur(22px) saturate(1.3);
    transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
    overflow: hidden;
}
#bb-studio.bb-closed { transform: translateX(118%); opacity: 0; pointer-events: none; }
.bb-studio-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--bb-border); }
.bb-studio-head b { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.bb-studio-head .bb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bb-accent-2); box-shadow: 0 0 10px var(--bb-accent-2); }
.bb-studio-x { background: none; border: 0; color: var(--bb-text-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bb-studio-x:hover { color: #fff; }
.bb-studio-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.4rem; }
.bb-studio-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bb-text-3); font-weight: 700; margin-bottom: .7rem; }
.bb-swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.bb-swatch { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .18); transition: transform .15s ease; }
.bb-swatch:hover { transform: scale(1.1); }
.bb-swatch.bb-active { box-shadow: 0 0 0 2px var(--bb-bg), 0 0 0 4px #fff; }
.bb-color-row { display: flex; gap: .8rem; }
.bb-color-pick { flex: 1; display: flex; align-items: center; gap: .55rem; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: var(--bb-r-md); padding: .5rem .7rem; }
.bb-color-pick input[type=color] { width: 30px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.bb-color-pick label { font-size: .8rem; color: var(--bb-text-2); }
.bb-studio-field { display: flex; flex-direction: column; gap: .4rem; }
.bb-studio-field input, .bb-studio-field textarea {
    background: var(--bb-surface); border: 1px solid var(--bb-border-2); border-radius: var(--bb-r-md);
    color: var(--bb-text); font-family: var(--bb-font); font-size: 14px; padding: .6rem .75rem; outline: none; resize: vertical;
}
.bb-studio-field input:focus, .bb-studio-field textarea:focus { border-color: var(--bb-accent-1); }
.bb-studio-foot { display: flex; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--bb-border); }
.bb-studio-foot button { flex: 1; padding: .7rem; border-radius: var(--bb-r-md); font-family: var(--bb-font); font-weight: 650; font-size: 13.5px; cursor: pointer; border: 1px solid var(--bb-border-2); background: var(--bb-surface); color: var(--bb-text); }
.bb-studio-foot .bb-reset:hover { border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.bb-studio-hint { font-size: .78rem; color: var(--bb-text-3); line-height: 1.5; }

/* Editable text affordance */
.bbx [data-bb-edit].bb-editing { outline: 2px dashed rgba(var(--bb-accent-rgb), .6); outline-offset: 4px; border-radius: 6px; cursor: text; }

/* Back to top */
.bb-top { position: fixed; right: 22px; bottom: 84px; z-index: 800; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bb-surface-2); border: 1px solid var(--bb-border-2); color: var(--bb-text); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .2s ease; }
.bb-top.bb-show { opacity: 1; pointer-events: auto; }
.bb-top:hover { transform: translateY(-3px); }

/* =====================================================================
   DOCS PAGES
   ===================================================================== */
.bb-doc-hero { padding: 10rem 0 var(--bb-xl); text-align: center; position: relative; overflow: hidden; }
.bb-doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--bb-2xl); align-items: start; padding-bottom: var(--bb-3xl); }
.bb-doc-nav { position: sticky; top: 100px; }
.bb-doc-nav h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bb-text-3); margin-bottom: var(--bb-sm); font-weight: 700; }
.bb-doc-nav ul { list-style: none; margin: 0 0 var(--bb-lg); padding: 0; }
.bb-doc-nav ul li { margin-bottom: .3rem; }
.bb-doc-nav ul a { display: block; padding: .45rem .75rem; border-radius: 9px; color: var(--bb-text-2); font-size: .93rem; }
.bb-doc-nav ul a:hover, .bb-doc-nav ul a.bb-active { background: var(--bb-surface-2); color: var(--bb-text); }
.bb-doc-content { max-width: 780px; }
.bb-doc-content h2 { margin: var(--bb-2xl) 0 var(--bb-md); scroll-margin-top: 100px; }
.bb-doc-content h2:first-child { margin-top: 0; }
.bb-doc-content h3 { margin: var(--bb-xl) 0 var(--bb-sm); }
.bb-doc-content p { color: var(--bb-text-2); margin-bottom: var(--bb-md); line-height: 1.75; }
.bb-doc-content ul.bb-doc-list { margin: 0 0 var(--bb-md) 1.2rem; color: var(--bb-text-2); }
.bb-doc-content ul.bb-doc-list li { margin-bottom: .5rem; line-height: 1.6; }
.bb-doc-content code { background: var(--bb-surface-2); border: 1px solid var(--bb-border); border-radius: 6px; padding: .12rem .45rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88em; color: var(--bb-accent-2); }
.bb-doc-content pre { background: var(--bb-bg-2); border: 1px solid var(--bb-border); border-radius: var(--bb-r-md); padding: var(--bb-md); overflow-x: auto; margin-bottom: var(--bb-md); }
.bb-doc-content pre code { background: none; border: 0; padding: 0; color: var(--bb-text); }
.bb-callout { background: var(--bb-grad-soft); border: 1px solid rgba(var(--bb-accent-rgb), .3); border-left: 3px solid var(--bb-accent-1); border-radius: var(--bb-r-md); padding: var(--bb-md); margin-bottom: var(--bb-md); }
.bb-callout p { margin: 0; color: var(--bb-text); }

/* =====================================================================
   SOLUTIONS EXPLORER (Vue tabbed; degrades to stacked when JS absent)
   ===================================================================== */
.bb-tabs { display: grid; grid-template-columns: 300px 1fr; gap: var(--bb-2xl); align-items: start; }
.bb-tab-btns { display: flex; flex-direction: column; gap: .5rem; }
.bb-tab-btn {
    display: flex; align-items: center; gap: .9rem; text-align: left;
    padding: 1rem 1.1rem; border-radius: var(--bb-r-md); cursor: pointer;
    background: var(--bb-surface); border: 1px solid var(--bb-border); color: var(--bb-text-2);
    font-family: var(--bb-font); font-size: 1rem; font-weight: 600; transition: all .25s ease;
}
.bb-tab-btn .bb-tab-ico { font-size: 1.3rem; }
.bb-tab-btn:hover { color: var(--bb-text); border-color: var(--bb-border-2); }
.bb-tab-btn.bb-active { background: var(--bb-grad-soft); border-color: rgba(var(--bb-accent-rgb), .5); color: var(--bb-text); }
/* When NOT enhanced (no Vue), hide the tab buttons and stack all panels. */
.bb-tabs:not(.bb-tabbed) .bb-tab-btns { display: none; }
.bb-tab-panels { display: flex; flex-direction: column; gap: var(--bb-lg); }
.bb-tabs.bb-tabbed .bb-tab-panel { display: none; }
.bb-tabs.bb-tabbed .bb-tab-panel.bb-active { display: block; animation: bb-fade-up .5s ease forwards; }
.bb-tab-panel h3 { margin-bottom: var(--bb-sm); }
.bb-tab-panel p { color: var(--bb-text-2); line-height: 1.7; margin-bottom: var(--bb-md); }

[v-cloak] { display: none !important; }

/* Button spinner */
.bb-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(5,7,15,.35); border-top-color: #05070f; border-radius: 50%; animation: bb-rot .7s linear infinite; vertical-align: -2px; }
@keyframes bb-rot { to { transform: rotate(360deg); } }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes bb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.06); }
    66% { transform: translate(-30px, 30px) scale(.96); }
}
@keyframes bb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bb-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bb-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }
@keyframes bb-cardfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bb-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.78); } }

/* Content is fully visible by default; only hidden (for the reveal animation)
   once JS confirms it can reveal it — so a JS failure never hides content. */
.bb-reveal { opacity: 1; }
.bb-js .bb-reveal { opacity: 0; }
.bb-js .bb-reveal.bb-in { animation: bb-fade-up .7s cubic-bezier(.22, 1, .36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
    .bb-orb, .bb-marquee-track { animation: none; }
    .bb-js .bb-reveal { opacity: 1; animation: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .bb-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .bb-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .bb-steps { grid-template-columns: repeat(2, 1fr); }
    .bb-split { grid-template-columns: 1fr; gap: var(--bb-xl); }
    .bb-tabs { grid-template-columns: 1fr; }
    .bb-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--bb-lg); }
    .bb-doc-layout { grid-template-columns: 1fr; }
    .bb-doc-nav { position: static; }
    .bb-cap-list { grid-template-columns: 1fr 1fr; }
    /* Hero stacks: copy on top (centered), visual below */
    .bb-hero-inner { grid-template-columns: 1fr; gap: var(--bb-2xl); min-height: 0; text-align: center; }
    .bb-hero-copy { text-align: center; }
    .bb-hero-desc { margin-left: auto; margin-right: auto; }
    .bb-hero-btns { justify-content: center; }
    .bb-hero-visual { max-width: 540px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
    .bb-nav-menu, .bb-nav-actions .bb-login, .bb-nav-actions .bb-cta-btn { display: none; }
    .bb-burger { display: flex; }
    .bb-container { padding: 0 1.15rem; }
    .bb-grid-4, .bb-grid-3, .bb-steps, .bb-form-grid, .bb-footer-grid, .bb-cap-list { grid-template-columns: 1fr; }
    .bb-hero { padding: 6.5rem 0 var(--bb-2xl); }
    .bb-hero-statbar { grid-template-columns: repeat(2, 1fr); gap: var(--bb-lg); }
    .bb-chip { display: none; }
    .bb-section { padding: var(--bb-2xl) 0; }
    #bb-studio { width: calc(100vw - 24px); right: 12px; }
    .bb-footer-bottom { flex-direction: column; text-align: center; }
}
