/* 
 * madjuoIFBI - Institutional Financial Behaviour Infrastructure Stylesheet (v2.6.0)
 * Design Ancestry: madjuoKas Basic Landing Page (public/css/basic-landing.css)
 * Premium Enterprise B2B SaaS Aesthetic — Glassmorphism, Sci-Fi Glows, Data Flow & Accessibility.
 */

@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-warning: #F59E0B;
    --color-danger: #EF4444;
    --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 Navigation & Header */
.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.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    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.35);
}

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

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

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

.gradient-text-cyan {
    background: linear-gradient(135deg, #38BDF8 0%, #06B6D4 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    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 floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.4deg); }
}

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

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

/* Scroll reveal classes */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    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);
}

/* Data Flow SVG & Node Pulse */
@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.55);
        border-color: rgba(6, 182, 212, 0.85);
    }
}

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

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

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

/* Timeline vertical connector */
.timeline-connector-v {
    position: relative;
}

.timeline-connector-v::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: linear-gradient(180deg, #E2E8F0, var(--color-accent), #E2E8F0);
    z-index: 1;
}

/* Custom Scrollbar */
::-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;
}

/* Reduced Motion Accessibility Override */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .animate-float-slow, .animate-float-delay, .mbis-engine-node, .mbis-connecting-line {
        animation: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
