/* =========================================================================
   Custom utilities that complement the Tailwind CDN config.
   ======================================================================= */

:root {
    --brand-grad: linear-gradient(135deg, #5d8bff 0%, #1f4cf0 50%, #1a3dc4 100%);
}

html, body { background: #05081a; }

/* --- Glassmorphism cards ------------------------------------------------ */
.glass-card {
    position: relative;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .015) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card-highlight {
    position: relative;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(58, 107, 255, .15) 0%, rgba(15, 21, 48, .6) 100%);
    border: 1px solid rgba(93, 139, 255, .35);
    box-shadow: 0 0 60px -10px rgba(58, 107, 255, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* --- Buttons ------------------------------------------------------------ */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    will-change: transform;
    white-space: nowrap;
}

.btn-primary {
    color: #fff;
    background: var(--brand-grad);
    background-size: 200% 200%;
    box-shadow: 0 10px 30px -10px rgba(31, 76, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    background-position: 100% 0;
    box-shadow: 0 16px 40px -10px rgba(31, 76, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

/* --- Reveal-on-scroll --------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Misc --------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05081a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(#1a3dc4, #0b1f6b);
    border-radius: 999px;
    border: 2px solid #05081a;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#3a6bff, #1a3dc4); }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* --- Facebook-branded login button -------------------------------------- */
.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: #1877F2;
    box-shadow:
        0 8px 22px -8px rgba(24, 119, 242, .65),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, background .2s ease, box-shadow .25s ease;
}
.fb-btn:hover {
    background: #166FE5;
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px -8px rgba(24, 119, 242, .8),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}
.fb-btn:active { transform: translateY(0); }
.fb-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 0 0 5px rgba(24, 119, 242, .55);
}
.fb-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s ease;
}
.fb-btn:hover::after { transform: translateX(100%); }
.fb-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
}
.fb-btn__label { flex: 1; text-align: left; }
.fb-btn__chev  { opacity: .8; transition: transform .2s ease; }
.fb-btn:hover .fb-btn__chev { transform: translateX(2px); }

/* ========================================================================
   Multi-Platform section — 2026 futuristic card styling.
   ====================================================================== */
.bb-card {
    --bb-from: #5d8bff;
    --bb-to:   #1a3dc4;
    position: relative;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--bb-from) 18%, transparent) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s ease, border-color .25s ease, box-shadow .35s ease;
    animation: bbFadeUp .6s ease-out both;
}
.bb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bb-from) 60%, transparent), transparent 40%, color-mix(in srgb, var(--bb-to) 50%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: .55;
    transition: opacity .35s ease;
}
.bb-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--bb-from) 45%, transparent);
    box-shadow:
        0 24px 60px -24px color-mix(in srgb, var(--bb-from) 55%, transparent),
        inset 0 1px 0 rgba(255,255,255,.06);
}
.bb-card:hover::before { opacity: 1; }

/* Soft radial glow that lives inside the card and brightens on hover. */
.bb-card__glow {
    position: absolute;
    inset: -2px auto auto -2px;
    width: 60%;
    height: 60%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--bb-from) 35%, transparent), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0;
    transition: opacity .45s ease, transform .45s ease;
}
.bb-card:hover .bb-card__glow {
    opacity: 1;
    transform: translate(20%, 10%);
}

/* Branded icon tile per platform. */
.bb-card__icon {
    flex: none;
    display: grid;
    place-items: center;
    height: 52px;
    width: 52px;
    border-radius: 14px;
    color: #fff;
    box-shadow:
        0 10px 30px -10px color-mix(in srgb, var(--bb-from) 60%, transparent),
        inset 0 1px 0 rgba(255,255,255,.15);
    transition: transform .3s ease;
}
.bb-card:hover .bb-card__icon {
    transform: scale(1.06) rotate(-3deg);
}

@keyframes bbFadeUp {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Counters bar — slightly punchier hover. */
#platforms .glass-card { transition: transform .25s ease, border-color .25s ease; }
#platforms .glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(141, 177, 255, .35);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
