/* 
 * madjuoKas Basic - Custom Premium SaaS Stylesheet (v6.10.1)
 * Optimized for Conversion, Accessibility, and Responsive Mobile-First Rendering.
 * Inspired by Stripe, Linear, Ramp, and Vercel.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #0F172A;
    --color-secondary: #1E293B;
    --color-accent: #06B6D4;
    --color-accent-light: #67E8F9;
    --color-success: #10B981;
    --color-background: #F8FAFC;
    --color-text: #0F172A;
    --color-muted: #64748B;
    --color-border: #E2E8F0;
    
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Glassmorphism Elements */
.glass-navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05),
                0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08),
                0 1px 3px rgba(15, 23, 42, 0.02);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Dark Premium Cards (MBIS / Dark Hero) */
.dark-glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-glass-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

/* Neon & Gradients Glows */
.gradient-text {
    background: linear-gradient(135deg, #0F172A 30%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.glow-cyan {
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
}

.glow-blue {
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
}

/* Float Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.5deg);
    }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Scroll reveal classes */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* MBIS Engine Pulse & Flow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
        border-color: rgba(6, 182, 212, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
        border-color: rgba(6, 182, 212, 0.8);
    }
}

.mbis-engine-node {
    animation: pulseGlow 3s infinite;
}

/* Connected Node Pulse */
@keyframes pulseActive {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.node-pulse-active {
    animation: pulseActive 2.5s infinite ease-in-out;
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.mbis-connecting-line {
    stroke-dasharray: 8 4;
    animation: dash 1s linear infinite;
}

/* Custom Interactive Before/After slider styling */
.comparison-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

/* Carousel controls */
.testimonials-slider {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.timeline-connector {
    position: relative;
}

@media (min-width: 768px) {
    .timeline-connector::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #E2E8F0, var(--color-accent), #E2E8F0);
        z-index: 1;
    }
}

/* Pricing Switch Custom Styles */
.pricing-switch-toggle {
    transition: left 0.2s ease-in-out;
}

/* Custom scrollbar style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Recommendation box pulse-once animation triggered by scroll active class */
.reveal-up.active .pulse-once {
    animation: pulseOnce 1.5s ease-out 1;
}

@keyframes pulseOnce {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}
