/* ============================================================================
   RedBooster — neon design system
   Enhancement layer on top of Tailwind (CDN). Adds the brand's dark-red neon
   look: animated aurora background, glass + glow cards, gradient-border panels,
   scroll-reveal, animated counters/benchmarks, buttons with shine, RTL support.
   ========================================================================== */

:root {
    --rb-bg:        #07060e;
    --rb-bg-2:      #0b0a16;
    --rb-panel:     rgba(255, 255, 255, .025);
    --rb-panel-2:   rgba(255, 255, 255, .04);
    --rb-border:    rgba(255, 255, 255, .08);
    --rb-border-2:  rgba(255, 255, 255, .14);
    --rb-red:       #ff2b2b;
    --rb-red-bright:#ff3b5c;
    --rb-red-deep:  #c80f2e;
    --rb-amber:     #ffb24a;
    --rb-text:      #ecebf3;
    --rb-muted:     #9b9aa9;
    --rb-glow:      0 0 42px -8px rgba(255, 43, 43, .55);
    --rb-glow-soft: 0 0 60px -20px rgba(255, 43, 43, .55);
}

/* ---- base ---- */
html { scroll-behavior: smooth; }
body {
    background: var(--rb-bg);
    color: var(--rb-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: var(--rb-red); color: #fff; }

/* nicer focus ring for keyboard users */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 2px solid var(--rb-red-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

/* thin neon scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0913; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--rb-red-deep), var(--rb-red));
    border-radius: 99px; border: 2px solid #0a0913;
}
::-webkit-scrollbar-thumb:hover { background: var(--rb-red-bright); }

/* =========================================================================
   ANIMATED BACKGROUND  (fixed, behind everything)
   ========================================================================= */
.rb-bg {
    position: fixed; inset: 0; z-index: -2; overflow: hidden;
    background:
        radial-gradient(1100px 700px at 50% -10%, rgba(255,43,43,.12), transparent 60%),
        radial-gradient(900px 600px at 100% 0%, rgba(200,15,46,.10), transparent 55%),
        var(--rb-bg);
}
.rb-bg::after {  /* fine grid */
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
            mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}
.rb-orb {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
    animation: rbFloat 18s ease-in-out infinite;
}
.rb-orb.a { width: 540px; height: 540px; top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(255,43,43,.55), transparent 65%); }
.rb-orb.b { width: 620px; height: 620px; top: 20%; right: -200px;
    background: radial-gradient(circle, rgba(200,15,46,.50), transparent 65%); animation-delay: -6s; }
.rb-orb.c { width: 460px; height: 460px; bottom: -160px; left: 30%;
    background: radial-gradient(circle, rgba(255,59,92,.40), transparent 65%); animation-delay: -11s; }
@keyframes rbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(40px,-30px) scale(1.08); }
    66%     { transform: translate(-30px,24px) scale(.95); }
}

/* scroll-progress bar under the nav */
#rb-progress {
    position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--rb-red-deep), var(--rb-red), var(--rb-red-bright));
    box-shadow: 0 0 12px rgba(255,43,43,.8); z-index: 60; transition: width .1s linear;
}

/* =========================================================================
   TEXT / HEADINGS
   ========================================================================= */
.gradient-text {
    background: linear-gradient(90deg, #ff6a8a, var(--rb-red), var(--rb-red-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.neon-text { text-shadow: 0 0 22px rgba(255,43,43,.55), 0 0 4px rgba(255,43,43,.35); }
.kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--rb-red-bright);
}
.kicker::before { content: ""; width: 26px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--rb-red)); }
html[dir="rtl"] .kicker::before { background: linear-gradient(90deg, var(--rb-red), transparent); }

/* =========================================================================
   GLASS + GLOW PANELS
   ========================================================================= */
.glass {
    background: var(--rb-panel);
    border: 1px solid var(--rb-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card-hover { transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
.card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(255,43,43,.45);
    box-shadow: var(--rb-glow-soft);
}

/* moving spotlight that follows the cursor inside a card (set via JS vars) */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
    background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(255,43,43,.16), transparent 60%);
    pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* animated gradient border (the “featured” panels) */
.glow-border { position: relative; }
.glow-border::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(255,43,43,.9), rgba(255,59,92,.2), rgba(255,43,43,.7));
    -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;
    background-size: 200% 200%; animation: rbBorder 6s linear infinite;
}
@keyframes rbBorder { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-neon {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, var(--rb-red-bright), var(--rb-red-deep));
    color: #fff; font-weight: 800; border-radius: 14px;
    box-shadow: 0 8px 30px -8px rgba(255,43,43,.7), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 14px 42px -8px rgba(255,43,43,.85); filter: brightness(1.06); }
.btn-neon:active { transform: translateY(0); }
.btn-neon::after { /* shine sweep */
    content: ""; position: absolute; top: 0; inset-inline-start: -120%; width: 60%; height: 100%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-18deg); transition: inset-inline-start .6s ease;
}
.btn-neon:hover::after { inset-inline-start: 130%; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 1px solid var(--rb-border-2); color: var(--rb-text); border-radius: 14px; font-weight: 700;
    transition: border-color .25s, background .25s, color .25s, transform .2s;
}
.btn-ghost:hover { border-color: rgba(255,43,43,.6); background: rgba(255,43,43,.08); transform: translateY(-2px); }

/* =========================================================================
   NAV
   ========================================================================= */
.rb-nav-link { position: relative; }
.rb-nav-link::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--rb-red), var(--rb-red-bright));
    box-shadow: 0 0 10px rgba(255,43,43,.8); transition: width .25s;
}
.rb-nav-link:hover::after, .rb-nav-link.active::after { width: 100%; }
header.rb-scrolled { background: rgba(7,6,14,.82); box-shadow: 0 8px 30px -16px #000, 0 1px 0 rgba(255,255,255,.05); }

.rb-logo-mark {
    filter: drop-shadow(0 0 8px rgba(255,43,43,.7));
    transition: transform .3s, filter .3s;
}
a:hover > .rb-logo-mark { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 14px rgba(255,43,43,.95)); }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
[data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--rb-delay, 0s);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .rb-orb, .marquee-track, .app-float { animation: none !important; }
}

/* =========================================================================
   STATS / COUNTERS / FPS
   ========================================================================= */
.stat-num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fps-chip {
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px rgba(255,43,43,.65);
}

/* =========================================================================
   BENCHMARK BARS
   ========================================================================= */
.bench-row + .bench-row { margin-top: 1.15rem; }
.bench-track {
    position: relative; height: 30px; border-radius: 9px;
    background: rgba(255,255,255,.05); overflow: hidden;
}
.bench-fill {
    position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 9px;
    display: flex; align-items: center; justify-content: flex-end;
    padding-inline-end: 10px; font-size: .72rem; font-weight: 800; color: #fff;
    transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.bench-fill.before { background: linear-gradient(90deg, #3a3a46, #55555f); }
.bench-fill.after  {
    background: linear-gradient(90deg, var(--rb-red-deep), var(--rb-red), var(--rb-red-bright));
    box-shadow: 0 0 22px rgba(255,43,43,.55);
}
html[dir="rtl"] .bench-fill { inset: 0 0 0 auto; }

/* =========================================================================
   MARQUEE (compatibility / games strip)
   ========================================================================= */
.marquee { overflow-x: hidden;
           -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
                   mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: rbMarquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes rbMarquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* =========================================================================
   APP WINDOW MOCKUP (hero showcase)
   ========================================================================= */
.app-frame {
    border-radius: 16px; border: 1px solid var(--rb-border-2);
    background: linear-gradient(180deg, #0e0d1a, #08070f);
    box-shadow: 0 40px 120px -30px rgba(255,43,43,.45), 0 10px 40px -10px #000;
    overflow: hidden;
}
.app-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px;
    border-bottom: 1px solid var(--rb-border); background: rgba(255,255,255,.02); }
.app-dot { width: 11px; height: 11px; border-radius: 50%; }
.app-float { animation: rbHover 7s ease-in-out infinite; }
@keyframes rbHover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* gauge ring for hero */
.gauge { transform: rotate(-90deg); }
.gauge .track { stroke: rgba(255,255,255,.08); }
.gauge .val { stroke: url(#rbGauge); stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(255,43,43,.8)); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }

/* =========================================================================
   FAQ details
   ========================================================================= */
details.rb-faq { transition: border-color .25s, background .25s; }
details.rb-faq[open] { border-color: rgba(255,43,43,.4); background: rgba(255,43,43,.04); }
details.rb-faq summary::-webkit-details-marker { display: none; }
details.rb-faq .rb-faq-ico { transition: transform .25s; }
details.rb-faq[open] .rb-faq-ico { transform: rotate(45deg); }

/* =========================================================================
   COMPARISON TABLE
   ========================================================================= */
.cmp-yes { color: #3ddc84; }
.cmp-no  { color: #9b9aa9; }
.cmp-table tr + tr td { border-top: 1px solid var(--rb-border); }
.cmp-table td, .cmp-table th { padding: 13px 14px; }
@media (min-width: 640px) { .cmp-table td, .cmp-table th { padding: 14px 18px; } }
.cmp-pro-col { background: rgba(255,43,43,.06); }

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
#rb-top {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 50;
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--rb-red-bright), var(--rb-red-deep)); color: #fff;
    box-shadow: var(--rb-glow); opacity: 0; pointer-events: none;
    transform: translateY(12px); transition: opacity .3s, transform .3s;
}
#rb-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* =========================================================================
   MISC
   ========================================================================= */
.hr-glow { height: 1px; border: 0;
    background: linear-gradient(90deg, transparent, rgba(255,43,43,.5), transparent); }
.badge-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1px solid rgba(255,43,43,.3); background: rgba(255,43,43,.08);
    color: var(--rb-red-bright); border-radius: 999px; padding: .35rem 1rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.tick-li { display: flex; align-items: flex-start; gap: .55rem; }
.tick-li::before { content: "✓"; color: #3ddc84; font-weight: 900; line-height: 1.5; }
