/* Homepage landing — Bluebuff brand + motion */

:root {
    --bb-bg-0: #070b16;
    --bb-bg-1: #0a1020;
    --bb-bg-2: #0d1220;
    --bb-bg-3: #10182a;
    --bb-blue: #446ce5;
    --bb-blue-soft: #8eb0ff;
    --bb-grad: linear-gradient(270.71deg, #0b366a 0.53%, #0d4383 50.99%, #395dc8 99.38%);
    --bb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reveal on scroll ----- */
.bb-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(4px);
    transition:
        opacity 0.7s var(--bb-ease),
        transform 0.7s var(--bb-ease),
        filter 0.7s var(--bb-ease);
    transition-delay: calc(var(--bb-delay, 0) * 90ms);
}

.bb-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.bb-reveal[data-delay="1"] { --bb-delay: 1; }
.bb-reveal[data-delay="2"] { --bb-delay: 2; }
.bb-reveal[data-delay="3"] { --bb-delay: 3; }
.bb-reveal[data-delay="4"] { --bb-delay: 4; }

/* ----- Shared ----- */
.bb-section-head {
    text-align: center;
    margin-bottom: 2.25rem;
}

.bb-section-head__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bb-blue);
}

.bb-section-head__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

.bb-section-head__desc {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.65);
}

.bb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.25s var(--bb-ease),
        box-shadow 0.25s var(--bb-ease),
        background 0.25s ease,
        border-color 0.25s ease;
}

.bb-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s var(--bb-ease);
}

.bb-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.bb-btn:hover::after {
    transform: translateX(120%);
}

.bb-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.bb-btn--primary {
    background: var(--bb-grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(24, 101, 247, 0.28);
}

.bb-btn--primary:hover {
    color: #fff;
    box-shadow: 0 12px 32px rgba(24, 101, 247, 0.45), 0 0 0 4px rgba(24, 101, 247, 0.28);
}

.bb-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bb-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(142, 176, 255, 0.55);
}

/* ----- Hero ----- */
.bb-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(68, 108, 229, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(63, 24, 103, 0.45), transparent 50%),
        linear-gradient(160deg, #0a1020 0%, #0b1a3a 45%, #12081f 100%);
    color: #fff;
    /* Extra top space so content clears the floating sticky nav */
    padding: 7.5rem 0 4rem;
}

.bb-hero__glow {
    pointer-events: none;
    position: absolute;
    inset: -20% 10% auto;
    height: 60%;
    background: radial-gradient(circle, rgba(68, 108, 229, 0.22), transparent 70%);
    filter: blur(40px);
    animation: bb-pulse 6s ease-in-out infinite;
}

.bb-hero__orb {
    pointer-events: none;
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
}

.bb-hero__orb--1 {
    width: 180px;
    height: 180px;
    top: 12%;
    left: 8%;
    background: radial-gradient(circle, rgba(68, 108, 229, 0.45), transparent 70%);
    animation: bb-float 8s ease-in-out infinite;
}

.bb-hero__orb--2 {
    width: 120px;
    height: 120px;
    bottom: 18%;
    right: 12%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4), transparent 70%);
    animation: bb-float 10s ease-in-out infinite reverse;
}

.bb-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
}

.bb-hero__brand {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--bb-blue-soft);
    text-transform: uppercase;
}

.bb-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1.55;
    color: #fff;
}

.bb-hero__subtitle {
    margin: 0 0 1.75rem;
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.72);
}

.bb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bb-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bb-hero__img {
    width: min(100%, 420px);
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
    animation: bb-float 5.5s ease-in-out infinite;
}

/* ----- Feature split (market / boost) ----- */
.bb-feature {
    padding: 4.5rem 0;
    background: var(--bb-bg-2);
}

.bb-feature--boost {
    background: linear-gradient(180deg, var(--bb-bg-3) 0%, var(--bb-bg-1) 100%);
}

.bb-feature__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
}

.bb-feature__inner--reverse .bb-feature__media {
    order: 2;
}

.bb-feature__media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: translateZ(0);
}

.bb-feature__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    object-fit: cover;
    transition: transform 0.7s var(--bb-ease);
}

.bb-feature__media:hover img {
    transform: scale(1.05);
}

.bb-feature__badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(10, 16, 32, 0.85);
    border: 1px solid rgba(68, 108, 229, 0.45);
    color: #fff;
    font-size: 0.82rem;
    backdrop-filter: blur(8px);
    animation: bb-badge-pop 3.5s ease-in-out infinite;
}

.bb-feature__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.55;
}

.bb-feature__text {
    margin: 0 0 1.1rem;
    font-size: 0.98rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
}

.bb-feature__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.bb-feature__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.7;
}

.bb-feature__list i {
    margin-top: 0.2rem;
    color: var(--bb-blue-soft);
}

.bb-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ----- Services ----- */
.bb-services {
    background: linear-gradient(180deg, var(--bb-bg-3) 0%, var(--bb-bg-2) 100%);
    padding: 4rem 0;
}

.bb-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.bb-services__card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.7rem 1.4rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.35s var(--bb-ease),
        box-shadow 0.35s var(--bb-ease);
}

.bb-services__card:hover {
    background: rgba(68, 108, 229, 0.14);
    border-color: rgba(68, 108, 229, 0.55);
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(24, 101, 247, 0.2);
    color: #fff;
    text-decoration: none;
}

.bb-services__card i {
    font-size: 1.65rem;
    color: var(--bb-blue-soft);
    margin-bottom: 0.25rem;
    transition: transform 0.35s var(--bb-ease);
}

.bb-services__card:hover i {
    transform: scale(1.12) rotate(-6deg);
}

.bb-services__card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.bb-services__card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
}

.bb-services__more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bb-blue-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.75;
    transition: opacity 0.25s ease, gap 0.25s ease;
}

.bb-services__card:hover .bb-services__more {
    opacity: 1;
    gap: 0.55rem;
}

/* ----- Steps ----- */
.bb-steps {
    padding: 4rem 0;
    background: var(--bb-bg-1);
}

.bb-steps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.bb-steps__item {
    position: relative;
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: transform 0.35s var(--bb-ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.bb-steps__item:hover {
    transform: translateY(-6px);
    border-color: rgba(68, 108, 229, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.bb-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    background: var(--bb-grad);
    color: #fff;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 0 0 0 rgba(68, 108, 229, 0.45);
    animation: bb-ring 3.2s ease-out infinite;
}

.bb-steps__item h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: #fff;
}

.bb-steps__item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
}

/* ----- Why ----- */
.bb-why {
    padding: 4rem 0;
    background: var(--bb-bg-2);
}

.bb-why__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.bb-why__card {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s var(--bb-ease), border-color 0.3s ease, background 0.3s ease;
}

.bb-why__card:hover {
    transform: translateY(-6px);
    border-color: rgba(68, 108, 229, 0.45);
    background: rgba(68, 108, 229, 0.1);
}

.bb-why__card i {
    font-size: 1.5rem;
    color: var(--bb-blue-soft);
    margin-bottom: 0.85rem;
    display: inline-block;
    transition: transform 0.35s var(--bb-ease);
}

.bb-why__card:hover i {
    transform: translateY(-3px) scale(1.08);
}

.bb-why__card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: #fff;
}

.bb-why__card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
}

/* ----- Trust ----- */
.bb-trust {
    background: var(--bb-bg-0);
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.bb-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: transform 0.35s var(--bb-ease), box-shadow 0.35s ease;
}

.bb-trust__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(24, 101, 247, 0.18);
}

.bb-trust__item i {
    font-size: 1.75rem;
    color: var(--bb-blue-soft);
    margin-bottom: 0.35rem;
}

.bb-trust__item strong {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bb-blue);
    font-family: 'Space Grotesk', sans-serif;
}

.bb-trust__item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ----- Reviews ----- */
.bb-reviews {
    background: var(--bb-bg-2) !important;
}

.bb-reviews .page-container .header h6,
.bb-reviews .page-container .summary p,
.bb-reviews .page-container .summary span {
    color: #fff;
}

.bb-reviews .page-container .header p {
    color: rgba(255, 255, 255, 0.55);
}

.bb-reviews .page-container .data .swiper .swiper-wrapper .swiper-slide .item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transition: transform 0.35s var(--bb-ease), border-color 0.3s ease;
}

.bb-reviews .page-container .data .swiper .swiper-wrapper .swiper-slide .item:hover {
    transform: translateY(-4px);
    border-color: rgba(68, 108, 229, 0.4);
}

.bb-reviews .page-container .data .swiper .swiper-wrapper .swiper-slide .item .nick-date p:first-child,
.bb-reviews .page-container .data .swiper .swiper-wrapper .swiper-slide .item .text p,
.bb-reviews .page-container .data .swiper .swiper-wrapper .swiper-slide .item .game .target p {
    color: rgba(255, 255, 255, 0.85);
}

.bb-reviews .arrows span {
    transition: transform 0.25s var(--bb-ease), box-shadow 0.25s ease;
}

.bb-reviews .arrows span:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(68, 108, 229, 0.25);
}

/* ----- FAQ ----- */
.bb-faq {
    padding: 4rem 0;
    background: var(--bb-bg-1);
}

.bb-faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.bb-faq__item {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bb-faq__item[open] {
    border-color: rgba(68, 108, 229, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.bb-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.25rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
    padding-left: 2.5rem;
    transition: background 0.25s ease;
}

.bb-faq__item summary::-webkit-details-marker {
    display: none;
}

.bb-faq__item summary::after {
    content: '+';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bb-blue-soft);
    font-size: 1.25rem;
    transition: transform 0.3s var(--bb-ease);
}

.bb-faq__item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.bb-faq__item summary:hover {
    background: rgba(68, 108, 229, 0.08);
}

.bb-faq__item p {
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 1.85;
    animation: bb-faq-in 0.35s var(--bb-ease);
}

/* ----- Final CTA ----- */
.bb-cta {
    padding: 2rem 0 4.5rem;
    background: var(--bb-bg-1);
}

.bb-cta__box {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(11, 54, 106, 0.85), rgba(63, 24, 103, 0.75));
    border: 1px solid rgba(142, 176, 255, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.bb-cta__glow {
    pointer-events: none;
    position: absolute;
    inset: -40% auto auto 30%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(68, 108, 229, 0.35), transparent 70%);
    animation: bb-pulse 5s ease-in-out infinite;
}

.bb-cta__box h2 {
    position: relative;
    margin: 0 0 0.65rem;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: #fff;
}

.bb-cta__box > p {
    position: relative;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.bb-cta__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ----- Keyframes ----- */
@keyframes bb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes bb-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes bb-ring {
    0% { box-shadow: 0 0 0 0 rgba(68, 108, 229, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(68, 108, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(68, 108, 229, 0); }
}

@keyframes bb-badge-pop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes bb-faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .bb-hero__inner,
    .bb-feature__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bb-hero__subtitle,
    .bb-feature__text {
        margin-left: auto;
        margin-right: auto;
    }

    .bb-hero__actions,
    .bb-feature__actions,
    .bb-feature__list {
        justify-content: center;
    }

    .bb-feature__list li {
        justify-content: center;
        text-align: right;
    }

    .bb-hero__visual {
        order: -1;
    }

    .bb-hero__img {
        width: min(100%, 280px);
    }

    .bb-feature__inner--reverse .bb-feature__media {
        order: 0;
    }

    .bb-services__grid,
    .bb-trust__grid {
        grid-template-columns: 1fr;
    }

    .bb-steps__grid,
    .bb-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .bb-hero {
        padding: 5.5rem 0 2rem;
    }

    .bb-steps__grid,
    .bb-why__grid {
        grid-template-columns: 1fr;
    }

    .bb-btn {
        width: 100%;
        justify-content: center;
    }

    .bb-feature__list li {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-reveal,
    .bb-btn,
    .bb-btn::after,
    .bb-hero__img,
    .bb-hero__glow,
    .bb-hero__orb,
    .bb-feature__media img,
    .bb-feature__badge,
    .bb-services__card,
    .bb-steps__num,
    .bb-cta__glow {
        animation: none !important;
        transition: none !important;
    }

    .bb-reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
