/* ===== GLOBAL ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
}

/* Selection */
::selection {
    background-color: #6366f1;
    color: #ffffff;
}

/* ===== NAVBAR ===== */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.pill-nav {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.pill-nav:hover {
    color: #4f46e5;
    background-color: #eef2ff;
}

.pill-nav.active {
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12), 0 8px 16px rgba(6, 182, 212, 0.08);
    border-color: transparent;
}

.feature-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    filter: blur(12px);
}

.feature-card:hover .feature-icon-wrapper::after {
    opacity: 0.3;
}

/* ===== CIRCULAR STATS ===== */
.stat-card {
    position: relative;
    padding: 2rem 1rem;
}

.circular-stat {
    position: relative;
    width: 140px;
    height: 140px;
}

.stat-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.stat-progress {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.testimonial-accent-1 {
    border-left-color: #4f46e5;
}

.testimonial-accent-2 {
    border-left-color: #06b6d4;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-item.open {
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.faq-arrow.rotated {
    transform: rotate(180deg);
}

.faq-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-content.expanded {
    max-height: 500px;
}

/* ===== CTA BUTTONS ===== */
.cta-btn-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(255, 255, 255, 0.25) !important;
}

.cta-btn-outline:hover {
    transform: translateY(-4px) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* ===== FOOTER INPUT ===== */
footer input::placeholder {
    color: #9ca3af;
}

footer input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .circular-stat {
        width: 110px;
        height: 110px;
    }

    .stat-ring {
        width: 110px;
        height: 110px;
    }

    .feature-card:hover {
        transform: translateY(-4px);
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f46e5, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4338ca, #0891b2);
}

/* ===== SMOOTH PULSE FOR LIVE INDICATOR ===== */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
