:root {
    --primary: #0f172a;       /* Deep Slate Trust Blue */
    --primary-light: #1e293b; /* Medium Slate Secondary Blue */
    --accent: #1f8bca;        /* Vibrant Neon Growth Sky Blue */
    --text-main: #334155;     /* Balanced Muted Charcoal Body Text */
    --border-color: #f1f5f9;  /* Minimal Clean Slate Border Tint */
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global Reset & Core Styling */
body { 
    font-family: var(--font-stack); 
    background-color: #ffffff; 
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 4-Inch Micro Screen Optimization Baseline */
@media (max-width: 360px) {
    html { font-size: 14px; }
    .container { px: 12px !important; }
}

/* Header & Navigation Bar Styling */
.navbar { 
    background: rgba(255, 255, 255, 0.96) !important; 
    box-shadow: 0 1px 0px rgba(15, 23, 42, 0.05);
    padding: 12px 0;
}
.navbar-brand img {
    transition: transform 0.2s ease;
}
.navbar-brand img:hover {
    transform: scale(1.02);
}
.nav-link { 
    font-weight: 600; 
    font-size: 0.95rem;
    color: #475569 !important; 
    margin: 0 8px;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--accent) !important;
}
.btn-brand { 
    background: var(--primary); 
    color: #ffffff !important; 
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px; 
    padding: 10px 22px; 
    transition: all 0.2s ease-in-out; 
    border: 1px solid transparent; 
}
.btn-brand:hover { 
    background: #1e293b; 
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

    /* Premium Navigation Bar Canvas Container */
    .main-fintech-nav {
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #f1f5f9;
        transition: all 0.3s ease;
        z-index: 1050;
    }
    
    
    /* Premium Glassmorphism Frame for Logo */
    .logo-glass-frame {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 16px !important;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 12px;
        box-shadow: 
            0 4px 12px rgba(15, 23, 42, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Subtle Hover & Click Feedback Interaction */
    .logo-glass-frame:hover {
        background: rgba(255, 255, 255, 0.65);
        border-color: rgba(56, 189, 248, 0.3); /* Soft accent tint on hover */
        box-shadow: 
            0 6px 16px rgba(15, 23, 42, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        transform: translateY(-1px);
    }
    
    .logo-glass-frame:active {
        transform: scale(0.97) translateY(0);
        background: rgba(255, 255, 255, 0.35);
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    }
    
    /* Keep logo image crisp within the lens frame */
    /* Scaling constraints for brand visibility */
    .nav-logo {
        height: 80px;
        width: auto;
        object-fit: contain;
        display: block;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-logo:active {
        transform: scale(0.96);
    }

    /* Modern Minimalist Toggle Icon System */
    .custom-nav-toggle {
        padding: 8px 4px;
        background: transparent !important;
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .custom-nav-toggle:focus {
        box-shadow: none !important;
    }
    .toggle-icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--primary);
        border-radius: 1px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* Desktop Navigation Interaction System (Hover Underlines & Weights) */
    .core-nav-list .nav-item {
        position: relative;
    }
    .core-nav-list .nav-link {
        font-size: 0.92rem;
        font-weight: 600;
        color: #475569 !important;
        padding: 8px 16px !important;
        margin: 0 2px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        position: relative;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    
    /* Interactive Haptic Feel Mock for Desktop */
    .core-nav-list .nav-link span {
        position: relative;
        z-index: 2;
    }
    .core-nav-list .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 16px;
        right: 16px;
        height: 2px;
        background-color: var(--accent);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1;
    }
    .core-nav-list .nav-link:hover {
        color: var(--primary) !important;
    }
    .core-nav-list .nav-link:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
    .core-nav-list .nav-link:active {
        transform: scale(0.97);
        background-color: #f8fafc;
    }

    /* Active State Override for Instant Recognition */
    .core-nav-list .nav-link.active-link {
        color: var(--primary) !important;
    }
    .core-nav-list .nav-link.active-link::after {
        transform: scaleX(1);
        background-color: var(--primary);
    }

    /* World-Class Fintech Tactile Action Button */
    .btn-brand-action {
        background: var(--primary);
        color: #ffffff !important;
        font-weight: 600;
        font-size: 0.88rem;
        letter-spacing: 0.3px;
        padding: 10px 24px;
        border-radius: 10px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    .btn-brand-action .style-arrow {
        transition: transform 0.2s ease;
    }
    .btn-brand-action:hover {
        background: var(--primary-light);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    }
    .btn-brand-action:hover .style-arrow {
        transform: translateX(3px);
    }
    .btn-brand-action:active {
        transform: scale(0.96);
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1) inset;
    }

    /* 4-Inch Micro Mobile Viewport Optimization (< 576px down to 320px) */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            background: #ffffff;
            border-top: 1px solid #f1f5f9;
            margin-top: 12px;
            padding: 16px 4px;
            border-radius: 12px;
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
        }
        .core-nav-list .nav-link {
            width: 100%;
            padding: 12px 16px !important;
            margin: 4px 0;
            background-color: #f8fafc;
            border: 1px solid #f1f5f9;
        }
        .core-nav-list .nav-link::after {
            display: none; /* Suppress underlines on vertical drawer elements */
        }
        .core-nav-list .nav-link:active {
            background-color: #f1f5f9;
            transform: scale(0.99);
        }
        .core-nav-list .nav-link.active-link {
            background-color: rgba(56, 189, 248, 0.08);
            border-color: rgba(56, 189, 248, 0.2);
            color: #0369a1 !important;
        }
        .btn-brand-action {
            padding: 14px 20px; /* Enhanced tap targeting for physical mobile interactions */
            font-size: 0.95rem;
        }
        /* Structural morphing animation for clicked state indicators */
        .navbar-toggler[aria-expanded="true"] .toggle-icon-bar:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        .navbar-toggler[aria-expanded="true"] .toggle-icon-bar:nth-child(2) {
            opacity: 0;
        }
        .navbar-toggler[aria-expanded="true"] .toggle-icon-bar:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
    }

/* Hero Display Panel Section */
.hero-section {            
    background: radial-gradient(circle at 90% 10%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;            
    padding: 90px 0;            
    border-bottom-left-radius: 0px;            
    border-bottom-right-radius: 0px;
    position: relative;
}
.hero-section h1 {
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.hero-section p.lead {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
}
.hero-section .btn-info {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary) !important;
}
.hero-section .btn-info:hover {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}
.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* High-Class Metric Statistics Strip */
.bg-light {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9;
}
.bg-light h3 {
    color: var(--primary);
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}
.bg-light small {
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #64748b !important;
}

/* Metric / Feature Functional Grid Architecture */
.feature-card {            
    border: 1px solid #e2e8f0;            
    border-radius: 16px;            
    padding: 32px 24px;            
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);            
    background: #ffffff;            
    height: 100%;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
}        
.feature-card:hover {            
    transform: translateY(-4px);            
    box-shadow: 0 16px 24px -4px rgba(15, 23, 42, 0.06);            
    border-color: #cbd5e1;        
}
.feature-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-card p.text-muted {
    color: #64748b !important;
    line-height: 1.5;
}
.icon-circle {            
    width: 52px; 
    height: 52px;            
    background: #f0fdfa;            
    border-radius: 12px;            
    display: flex; 
    align-items: center; 
    justify-content: center;            
    font-size: 20px; 
    color: #0d9488;            
    margin-bottom: 24px;
    border: 1px solid #ccfbf1;
}

.dynamic-solutions-section {
        background-color: #ffffff;
    }
    .section-title {
        color: var(--primary);
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }
    .section-subtitle {
        color: #64748b !important;
        font-size: 1.05rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Fine-tuned grid item elevation */
    .solutions-grid-canvas .feature-card {
        border: 1px solid #e2e8f0;
        background: #ffffff;
        border-radius: 20px;
        padding: 36px 28px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Icon Accent Variation Mapping for High-End Separation */
    .icon-celebrate {
        background-color: #fff7ed !important;
        color: #ea580c !important;
        border-color: #ffedd5 !important;
    }
    .icon-wealth {
        background-color: #f0fdf4 !important;
        color: #16a34a !important;
        border-color: #dcfce7 !important;
    }
    .icon-emergency {
        background-color: #eef2ff !important;
        color: #4f46e5 !important;
        border-color: #e0e7ff !important;
    }

    /* Mobile Responsive Balancing for 4-inch Screens up to Tablets */
    @media (max-width: 767.98px) {
        .section-title {
            font-size: 1.75rem;
        }
        .solutions-grid-canvas .feature-card {
            padding: 24px;
            border-radius: 16px;
        }
        .solutions-grid-canvas .icon-circle {
            margin-bottom: 16px;
            width: 46px;
            height: 46px;
            font-size: 18px;
        }
    }

/* Clear, Solid Compliance Footer - No Blurs */
footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 2px solid #1e293b;
}
footer h5, footer h6 {
    color: #ffffff !important;
    font-weight: 700;
}
footer p, footer span, footer li {
    font-size: 0.82rem;
    line-height: 1.6;
}
footer a {
    color: #94a3b8 !important;
    transition: color 0.2s ease;
}
footer a:hover {
    color: #ffffff !important;
}
footer .text-info {
    color: var(--accent) !important;
}

/* Grievance Desk Profile Wrapper */
footer .small.border-start, 
footer .mb-3.p-2.rounded {
    background: #1e293b !important;
    border-color: #334155 !important;
    padding: 12px !important;
    border-radius: 6px;
}

/* Social Connectivity Links */
footer .fs-5 a {
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}
footer .fs-5 a:hover {
    transform: translateY(-2px);
}
footer .fs-5 a.hover-success:hover { color: #22c55e !important; }
footer .fs-5 a.hover-primary:hover { color: #3b82f6 !important; }
footer .fs-5 a.hover-warning:hover { color: #f59e0b !important; }

/* Micro-Screen Mobile Breakpoint Rules (4-inch to Tablet Dimensions) */
@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.25rem;
    }
    .hero-section .d-flex {
        flex-direction: column;
        gap: 12px !important;
    }
    .hero-section .btn {
        width: 100%;
    }
    
    /* Force 2-Column Split Cleanliness on grid structures down to 320px */
    .row.g-4 > .col-6 {
        width: 50% !important;
        padding: 6px;
    }
    .bg-light h3 {
        font-size: 1.4rem;
    }
    
    /* Footer Formatting Alignments for Small Form-factors */
    footer {
        text-align: left !important;
    }
    footer .text-center {
        text-align: left !important;
    }
    footer .col-6 {
        width: 50% !important;
        margin-top: 15px;
    }
    footer .px-lg-5 {
        padding-left: 10 !important;
        padding-right: 10 !important;
    }
}

/* Tablet Layout Standardizations */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-section h1 { font-size: 3rem; }
    footer .col-md-6 { width: 50% !important; }
}