/**
 * Leadite Easter Egg: console art + Konami code.
 */
(function () {
    if (!window.leaditeEaster) return;

    var v = leaditeEaster.version || '';
    var brand = 'color:#6366f1;font-weight:bold;font-size:13px';
    var soft = 'color:#64748b';
    var faint = 'color:#94a3b8;font-style:italic';

    console.log('%c🚀 Leadite ' + v, brand);
    console.log('%cBuilt with ☕ (way too much of it) by AKAVA — akava.site', soft);
    console.log('%cPeeking under the hood? Respect. Found a bug? Tell me before my users do.', faint);
    console.log('%cPsst… try the Konami code. ↑ ↑ ↓ ↓ ← → ← → B A', faint);

    var seq = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65], i = 0, fired = false;
    document.addEventListener('keydown', function (e) {
        i = (e.keyCode === seq[i]) ? i + 1 : 0;
        if (i === seq.length && !fired) {
            fired = true;
            console.log('%c🎉 Achievement unlocked: You actually tried it.', brand);

            var t = document.createElement('div');
            t.textContent = '🎉 Leadite: you found the secret. Go ship something great.';
            t.style.cssText = 'position:fixed;z-index:99999;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;background:#6366f1;color:#fff;padding:12px 20px;border-radius:10px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.2);transition:all .25s ease';
            document.body.appendChild(t);
            requestAnimationFrame(function () {
                t.style.opacity = '1';
                t.style.transform = 'translateX(-50%) translateY(0)';
            });
            setTimeout(function () {
                t.style.opacity = '0';
                t.style.transform = 'translateX(-50%) translateY(20px)';
                setTimeout(function () { t.remove(); }, 300);
            }, 3000);
        }
    });
})();