@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@600;700&display=swap');

:root {
    --bb-primary: #005FBA;
    --bb-secondary: #68D388;
    --bb-accent: #E95992;
    --bb-highlight: #F5B700;
    --bb-neutral-light: #F9FAFB;
    --bb-neutral-dark: #1F2937;
    --bb-surface: #ffffff;
    --bb-border: #d5d9e2;
    --bb-footer-bg: #1F2937;
    --bb-footer-text: #f3f4f6;
    --bb-footer-link: #d7e0f0;
}

.btn-primary { background: var(--bb-primary); border-color: var(--bb-primary); }
.dashboard-banner-thumb { height: 170px; object-fit: cover; background: #f3f4f6; }

/* Base Typography */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: var(--bb-neutral-dark);
    background: var(--bb-neutral-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    font-weight: 700;
    color: var(--bb-primary);
}

/* Shared Buttons */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bb-btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.bb-btn-primary {
    background: var(--bb-secondary);
    color: #0e3420;
}

.bb-btn-primary:hover {
    background: #53bd74;
    color: #0e3420;
}

.bb-btn-secondary {
    background: var(--bb-secondary);
    color: #0e3420;
}

.bb-btn-secondary:hover {
    background: #53bd74;
    color: #0e3420;
}

.bb-btn-ghost {
    border-color: var(--bb-primary);
    color: var(--bb-primary);
    background: #fff;
}

.bb-btn-ghost:hover {
    background: #ecf3fb;
    color: var(--bb-primary);
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--bb-accent);
    outline-offset: 2px;
}

/* Page Layout */
.bb-home {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
}

/* Sticky Navigation */
.bb-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: 1rem;
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0.97), rgba(249, 250, 251, 0.93));
    backdrop-filter: blur(6px);
}

.bb-nav {
    background: var(--bb-surface);
    border: 1px solid var(--bb-border);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
}

.bb-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--bb-primary);
    text-decoration: none;
}

.bb-logo-dot { color: var(--bb-accent); }

.bb-nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-nav-links a {
    color: var(--bb-primary);
    text-decoration: none;
    font-weight: 600;
}

.bb-nav-links a:hover {
    color: var(--bb-accent);
}

.bb-nav-toggle {
    display: none;
    border: 1px solid var(--bb-border);
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.3rem 0.4rem;
}

.bb-nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: var(--bb-neutral-dark);
    margin: 4px 2px;
}

/* Hero Section */
.bb-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3.5rem 0;
}

.bb-eyebrow {
    display: inline-block;
    background: #e9f2fd;
    color: var(--bb-primary);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.bb-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bb-subheadline {
    color: #3a4559;
    margin-bottom: 1.4rem;
}

.bb-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bb-hero-art svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(31, 41, 55, 0.12));
}

/* Features Section */
.bb-features {
    padding: 1.5rem 0 3rem;
}

.bb-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.bb-feature-card {
    background: var(--bb-surface);
    border-radius: 1rem;
    border: 1px solid #e4e8f1;
    padding: 1.3rem;
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.08);
}

.bb-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: #ffeaf2;
    color: var(--bb-accent);
    margin-bottom: 0.8rem;
    transition: transform 0.25s ease;
}

.bb-feature-card:hover .bb-feature-icon {
    transform: rotate(-7deg) scale(1.08);
}

.bb-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Pricing Section */
.bb-pricing {
    padding: 0 0 3rem;
}

.bb-pricing-card {
    position: relative;
    background: var(--bb-surface);
    border: 1px solid #daefd8;
    border-radius: 1rem;
    padding: 1.8rem;
    box-shadow: 0 12px 25px rgba(31, 41, 55, 0.09);
    max-width: 580px;
}

.bb-ribbon {
    position: absolute;
    top: -0.65rem;
    right: 1rem;
    background: var(--bb-highlight);
    color: #5f4600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.bb-plan {
    font-weight: 700;
    color: var(--bb-primary);
    margin-bottom: 0.35rem;
}

.bb-price {
    margin-bottom: 0.5rem;
}

.bb-price span {
    color: #2ea857;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.bb-affiliate-badge {
    display: inline-block;
    background: #e8f8ec;
    color: #1f6a3b;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.bb-testimonials {
    padding: 0 0 3rem;
}

.bb-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bb-quote {
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.bb-quote blockquote {
    margin-bottom: 0.8rem;
}

/* Footer */
.bb-footer {
    background: var(--bb-footer-bg);
    color: var(--bb-footer-text);
    border-radius: 1rem;
    padding: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bb-social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.bb-social-links a {
    color: var(--bb-footer-link);
    text-decoration: none;
}

.bb-social-links a:hover {
    color: var(--bb-accent);
}

/* Responsive */
@media (max-width: 900px) {
    .bb-hero,
    .bb-feature-grid,
    .bb-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .bb-hero,
    .bb-features,
    .bb-pricing,
    .bb-testimonials {
        text-align: center;
    }

    .bb-hero-actions {
        justify-content: center;
    }

    .bb-pricing-card {
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .bb-nav {
        border-radius: 1rem;
        flex-wrap: wrap;
    }

    .bb-nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .bb-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.4rem 0.3rem;
    }

    .bb-nav-links.is-open {
        display: flex;
    }

    .bb-nav .bb-btn-secondary {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bb-neutral-light: #101418;
        --bb-neutral-dark: #f3f4f6;
        --bb-surface: #1b222c;
        --bb-border: #334155;
        --bb-bg-dark: #0f1720;
        --bb-footer-bg: #111a24;
        --bb-footer-text: #e6edf8;
        --bb-footer-link: #aac6eb;
    }

    body {
        background: var(--bb-bg-dark);
        color: var(--bb-neutral-dark);
    }

    .bb-nav-wrap {
        background: linear-gradient(to bottom, rgba(15, 23, 32, 0.96), rgba(15, 23, 32, 0.88));
    }

    .bb-subheadline,
    .bb-quote figcaption,
    .bb-price-note,
    .bb-feature-card p {
        color: #cfd2dc;
    }

    .bb-btn-ghost {
        background: transparent;
        color: #7fb7ff;
        border-color: #4b6f99;
    }

    .bb-eyebrow {
        background: #17304e;
        color: #9accff;
    }

    .bb-quote {
        background: #18212c;
        border-color: #334155;
    }

    .bb-quote blockquote,
    .bb-quote figcaption {
        color: #e2e8f0;
    }
}

html[data-bs-theme='dark'] body {
    background: var(--bb-bg-dark, #0f1720);
    color: var(--bb-neutral-dark, #f3f4f6);
}

html[data-bs-theme='dark'] .card,
html[data-bs-theme='dark'] .dropdown-menu,
html[data-bs-theme='dark'] .modal-content,
html[data-bs-theme='dark'] .list-group-item {
    background-color: var(--bb-surface, #1b222c);
    color: var(--bb-neutral-dark, #f3f4f6);
    border-color: var(--bb-border, #334155);
}

html[data-bs-theme='dark'] .form-control,
html[data-bs-theme='dark'] .form-select,
html[data-bs-theme='dark'] .input-group-text,
html[data-bs-theme='dark'] .table,
html[data-bs-theme='dark'] .table > :not(caption) > * > * {
    background-color: #16202a;
    color: var(--bb-neutral-dark, #f3f4f6);
    border-color: var(--bb-border, #334155);
}

html[data-bs-theme='dark'] .form-control::placeholder {
    color: #a6b2c4;
}

html[data-bs-theme='dark'] .table {
    --bs-table-bg: #16202a;
    --bs-table-color: var(--bb-neutral-dark, #f3f4f6);
    --bs-table-border-color: var(--bb-border, #334155);
    --bs-table-striped-bg: #1c2733;
    --bs-table-striped-color: var(--bb-neutral-dark, #f3f4f6);
    --bs-table-hover-bg: #253241;
    --bs-table-hover-color: var(--bb-neutral-dark, #f3f4f6);
}

html[data-bs-theme='dark'] .text-muted,
html[data-bs-theme='dark'] .text-body-secondary {
    color: #b2bece !important;
}


html[data-bs-theme='dark'] .bb-quote {
    background: #18212c;
    border-color: #334155;
}

html[data-bs-theme='dark'] .bb-testimonials h2,
html[data-bs-theme='dark'] .bb-quote blockquote,
html[data-bs-theme='dark'] .bb-quote figcaption {
    color: #e2e8f0;
}

html[data-bs-theme='dark'] .bb-footer {
    background: #111a24;
    color: #e6edf8;
}

html[data-bs-theme='dark'] .bb-social-links a {
    color: #aac6eb;
}

html[data-bs-theme='dark'] .btn-outline-dark {
    color: #d7e3f4;
    border-color: #6f86a8;
}

html[data-bs-theme='dark'] .btn-outline-dark:hover,
html[data-bs-theme='dark'] .btn-outline-dark:focus,
html[data-bs-theme='dark'] .btn-outline-dark:active {
    color: #0f1720;
    background-color: #d7e3f4;
    border-color: #d7e3f4;
}
