@font-face {
    font-family: 'Fira Code';
    src: url('/fonts/FiraCode-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.font-mono-code {
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@keyframes heroSlide {
    0% {
        opacity: 0.92;
        transform: scale(1);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: scale(1.35);
    }
    100% {
        opacity: 0.92;
        transform: scale(1);
    }
}

.animate-hero-slide {
    animation: heroSlide 80s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

/* Button aesthetics inspired by NaiveUI on Dooong */
.btn-coral {
    background-color: #d03050;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(208, 48, 80, 0.38);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-coral:hover {
    background-color: #de576d;
    box-shadow: 0 6px 20px 0 rgba(208, 48, 80, 0.48);
}
.btn-coral:active {
    background-color: #ab2540;
    transform: translateY(1px);
}

.btn-green {
    background-color: #18a058;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(24, 160, 88, 0.38);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-green:hover {
    background-color: #36ad6a;
    box-shadow: 0 6px 20px 0 rgba(24, 160, 88, 0.48);
}
.btn-green:active {
    background-color: #0c7a43;
    transform: translateY(1px);
}

.btn-blue {
    background-color: #0094c5;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(0, 148, 197, 0.38);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-blue:hover {
    background-color: #0082ad;
    box-shadow: 0 6px 20px 0 rgba(0, 148, 197, 0.48);
}
.btn-blue:active {
    background-color: #006f94;
    transform: translateY(1px);
}

/* Stats Pill */
.stats-pill {
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Glassmorphism helpers */
.glass-nav {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Scrollbar for drawer and code previews */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}
