/* ConnectStack Premium Aesthetic Tokens - Stripe-inspired */
:root {
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

.dark {
    --glass-bg: rgba(15, 23, 42, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Surfaces */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px -10px var(--accent-glow);
    transform: translateY(-4px);
}

/* Premium Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 8s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Micro-animations */
.fade-up {
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Tool Logos Glow Effect */
.logo-glow {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    position: relative;
}

.logo-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.2;
    filter: blur(8px);
}

/* Hero Section Refinement */
.hero-mesh {
    background:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%),
        #0f172a;
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Stats Card Badge */
.badge-glow {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Internal Links Visibility - High Specificity Override */
.prose a,
.prose-slate a,
.prose-indigo a,
.prose a:link,
.prose a:visited {
    color: #4f46e5 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border-bottom: 2px solid rgba(79, 70, 229, 0.2) !important;
    transition: all 0.2s ease !important;
}

.prose a:hover,
.prose-slate a:hover,
.prose-indigo a:hover {
    color: #4338ca !important;
    border-bottom-color: #4f46e5 !important;
    background: rgba(79, 70, 229, 0.08) !important;
}

.dark .prose a,
.dark .prose-slate a,
.dark .prose-indigo a {
    color: #818cf8 !important;
    border-bottom-color: rgba(129, 140, 248, 0.3) !important;
}

.dark .prose a:hover,
.dark .prose-slate a:hover,
.dark .prose-indigo a:hover {
    color: #a5b4fc;
    border-bottom-color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
}

/* Custom Scrollbar for Dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.6);
}