/* DIKITA KREDIT Enterprise Fintech Design System Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #0F172A;
    --color-secondary: #475569;
    --color-muted: #64748B;
    --color-accent: #2563EB;
    --color-accent-hover: #1D4ED8;
    --color-accent-light: #EFF6FF;
    --color-orange: #F97316;
    --color-orange-hover: #EA580C;
    --color-orange-light: #FFF7ED;
    --color-success: #059669;
    --color-warning: #D97706;
    --color-danger: #DC2626;
    --color-bg: #FFFFFF;
    --color-surface: #F8FAFC;
    --color-border: #E2E8F0;
    --color-border-subtle: #F1F5F9;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 14px 28px -6px rgba(15, 23, 42, 0.09), 0 6px 12px -3px rgba(15, 23, 42, 0.04);

    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

* {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Global Container Protection */
.content-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Typography Enhancements */
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
}

.gradient-text-blue {
    color: #1E40AF;
}

.gradient-text-brand {
    color: #0F172A;
}

/* Header & Panels */
.glass-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #E2E8F0;
}

.glass-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.glass-card-dark {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Button & Interactive States */
.btn-primary {
    position: relative;
    background-color: var(--color-primary);
    color: #FFFFFF;
    border: 1px solid transparent;
    transition: transform 150ms var(--ease-smooth), box-shadow 150ms var(--ease-smooth), background-color 150ms ease;
}

.btn-primary:hover {
    background-color: #1E40AF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-accent {
    position: relative;
    background: #1E40AF;
    color: #FFFFFF;
    border: 1px solid transparent;
    transition: transform 150ms var(--ease-smooth), background-color 150ms ease, box-shadow 150ms ease;
}

.btn-accent:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-accent:active {
    transform: translateY(0) scale(0.98);
}

.btn-orange {
    background-color: var(--color-orange);
    color: #FFFFFF;
    border: 1px solid transparent;
    transition: transform 150ms var(--ease-smooth), background-color 150ms ease, box-shadow 150ms ease;
}
.btn-orange:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: transform 200ms var(--ease-smooth), border-color 200ms ease, background-color 150ms ease, box-shadow 200ms ease;
}
.btn-secondary:hover {
    background-color: var(--color-surface);
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Card Hover Elevation (Subtle & Tactile) */
.card-hover {
    transition: transform 200ms var(--ease-smooth), box-shadow 200ms var(--ease-smooth), border-color 200ms ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

/* Custom Interactive Range Slider (Clean Banking Aesthetic) */
input[type=range].custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 9999px;
    outline: none;
    transition: background 0.2s ease;
}

input[type=range].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #1E40AF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

input[type=range].custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    border-color: #1D4ED8;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
}

input[type=range].custom-slider::-webkit-slider-thumb:active {
    transform: scale(1.04);
    border-color: #1E3A8A;
}

input[type=range].custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #1E40AF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
    cursor: pointer;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}
.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 450ms var(--ease-smooth) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.animate-scale-in {
    animation: scaleIn 350ms var(--ease-smooth) forwards;
}

/* Number Value Pop Animation */
.val-pop {
    animation: valPop 220ms var(--ease-bounce);
}
@keyframes valPop {
    0% { transform: scale(0.94); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Accordion Smooth Expand/Collapse */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 350ms var(--ease-smooth), opacity 250ms ease, padding 350ms ease;
    opacity: 0;
}
.faq-item.is-active .faq-content {
    max-height: 320px;
    opacity: 1;
}
.faq-item.is-active {
    border-color: #93C5FD !important;
    box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.08);
}
.faq-item.is-active .faq-chevron {
    transform: rotate(180deg);
    color: #2563EB;
}

/* Milestone Numerical Node Styles (Clean, no icon clutter) */
.milestone-node {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    transition: transform 250ms var(--ease-smooth), box-shadow 250ms var(--ease-smooth);
}
.milestone-node:hover {
    transform: scale(1.08);
}

/* Sticky Navbar Scrolled State */
.nav-scrolled {
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
}

/* Input Styles */
.input-fintech {
    border: 1px solid var(--color-border);
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input-fintech:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.input-fintech::placeholder {
    color: #94A3B8;
}

/* Signature Pad Border Transition */
.sig-pad-wrapper {
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    background: #FFFFFF;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}
.sig-pad-wrapper.is-signed {
    border-color: var(--color-success) !important;
    border-style: solid !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Responsive Helpers */
@media (max-width: 640px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   ENHANCED FORM & ANIMATION SUITE (MODERN FINTECH UI)
   ========================================================================== */

/* Multi-step Transitions */
@keyframes slideStepIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.animate-slide-step {
    animation: slideStepIn 380ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Modern Polish */
.card-glass-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card-summary-gradient {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

/* Modern Input Polish with Subtle Interactive States */
.input-premium {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    background-color: #F8FAFC;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.input-premium:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}
.input-premium:focus {
    background-color: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 2px 8px -2px rgba(37, 99, 235, 0.1);
    outline: none;
}
.input-premium::placeholder {
    color: #94A3B8;
    font-weight: 400;
    font-size: 0.825rem;
    letter-spacing: -0.01em;
}

/* Number pop dynamic animation */
.num-pop {
    display: inline-block;
    animation: numPopAnim 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes numPopAnim {
    0% { transform: scale(0.92); opacity: 0.8; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* Subtle badge pulse */
@keyframes subtlePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.92; }
}
.animate-subtle-pulse {
    animation: subtlePulse 2.5s ease-in-out infinite;
}

/* Progression Flow Gradient & Shimmer Animations */
@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-flow-gradient {
    background-size: 200% 200%;
    animation: flowGradient 4s ease infinite;
}

@keyframes glowShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.glow-track-shimmer {
    position: relative;
    overflow: hidden;
}
.glow-track-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
    animation: glowShimmer 2.5s infinite;
}

/* ==========================================================================
   Fintech Micro-Animations: Live Sync Pulse, Laser Scanner & Liquid Stepper
   ========================================================================== */

/* 1. Live Sync Radar Pulse (finite single ping on calculation update) */
@keyframes syncRadarPing {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(2); opacity: 0.3; }
    100% { transform: scale(2.6); opacity: 0; }
}
.sync-dot-ping {
    position: relative;
}
.sync-dot-ping::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background-color: #2563EB;
    pointer-events: none;
    animation: syncRadarPing 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1;
}

/* 2. Document Verification Laser Scanner Animation */
@keyframes laserScanAnim {
    0% {
        top: 0%;
        opacity: 0.85;
    }
    50% {
        top: 98%;
        opacity: 1;
    }
    100% {
        top: 0%;
        opacity: 0.85;
    }
}
.scanner-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.875rem;
}
.laser-scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38BDF8 25%, #2563EB 50%, #38BDF8 75%, transparent);
    box-shadow: 0 0 16px 3px rgba(37, 99, 235, 0.7), 0 0 6px 1px rgba(56, 189, 248, 0.9);
    pointer-events: none;
    z-index: 20;
    animation: laserScanAnim 1.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.laser-scanner-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
                linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 10;
}

/* 3. Spring Feedback for Success States */
@keyframes springPopAnim {
    0% { transform: scale(0.75); opacity: 0; }
    60% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.spring-pop {
    animation: springPopAnim 320ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 4. Fluid Step Slide Transitions with Zero Mobile Overflow */
@keyframes stepSlideInAnim {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-slide-step {
    animation: stepSlideInAnim 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

/* Accessibility: respect user prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .animate-slide-step,
    .laser-scanner-line,
    .laser-scanner-grid,
    .spring-pop,
    .sync-dot-ping::after {
        animation: none !important;
        transition: none !important;
    }
}

.roadmap-step-card {
    transition: all 180ms ease;
}
.roadmap-step-card:hover {
    transform: translateY(-2px);
    border-color: #94A3B8;
}
.roadmap-step-card.active-step {
    border-color: var(--color-accent) !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 0 0 2px rgba(30, 64, 175, 0.25) !important;
}

/* Formal Dark Fintech Footer Styling */
.footer-formal-dark {
    background: #0B132B;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    transition: all 150ms ease;
}
.footer-nav-link:hover {
    color: #f8fafc;
}

.footer-btn-portal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 150ms ease;
}
.footer-btn-portal:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}



