/* ========================================
   MyRBA Landing Page — Custom Styles
   ======================================== */

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

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ---------- Hero speed counter ---------- */
.speed-counter {
    transition: all 0.3s ease;
}

/* ---------- Animated bars ---------- */
.bar-animate {
    width: 0;
    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-animate.is-visible {
    width: var(--w, 100%);
}

/* ---------- Floating animation (fallback) ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ---------- Pulse glow ---------- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31, 67, 245, 0.4); }
    50%      { box-shadow: 0 0 0 14px rgba(31, 67, 245, 0); }
}
.pulse-glow { animation: pulseGlow 2.5s infinite; }

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3461ff, #1932dd);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #1f43f5; }

/* ---------- Selection ---------- */
::selection { background: #3461ff; color: #fff; }

/* ---------- Form polish ---------- */
input::placeholder { color: #94a3b8; }
input:focus { box-shadow: 0 0 0 4px rgba(52, 97, 255, 0.15); }

/* ---------- Pricing card hover effect ---------- */
.pricing-card {
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52, 97, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.pricing-card:hover::before { opacity: 1; }

/* ---------- Print friendly ---------- */
@media print {
    header, footer, .no-print, a[href^="https://wa.me"] { display: none !important; }
}
