/* RotaKredi Main Stylesheet */

:root {
    --rk-navy: #06214f;
    --rk-blue: #1a489a;
    --rk-sky: #54bbf7;
    --rk-orange: #fe670d;
    --rk-orange-dark: #e89a1f;
    --rk-yellow: #FFE56B;
    --rk-ink: #0a1633;
    --rk-bg: #f6f9ff;
    --rk-line: #e6ecf6;
}

/* Base Styles */
html, body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--rk-ink);
}

body {
    background: var(--rk-bg);
}

/* Paragraph Base Styles */
p {
    font-size: 0.875rem;
    color: rgb(100 116 139);
    line-height: 1.5rem;
}

@media (min-width: 1024px) {
    p {
        font-size: 1rem;
    }
}

/* Fintech gradient utilities */
.rk-hero-bg {
    background:
        radial-gradient(1100px 520px at 88% -10%, rgba(84,187,247,0.28), transparent 60%),
        radial-gradient(900px 460px at -5% 110%, rgba(255,177,44,0.18), transparent 65%),
        radial-gradient(700px 360px at 50% 120%, rgba(26,72,154,0.10), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.rk-hero-mesh::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6,33,79,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6,33,79,0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.rk-gradient-text {
    background: linear-gradient(95deg, #06214f 0%, #1a489a 50%, #54bbf7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rk-glass {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px -12px rgba(6,33,79,0.18);
}

.rk-card {
    background: #ffffff;
    border: 1px solid var(--rk-line);
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(6,33,79,0.04), 0 8px 24px -16px rgba(6,33,79,0.18);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -18px rgba(6,33,79,0.28);
    border-color: #d6e2f5;
}

.rk-btn-primary {
    position: relative;
    color: #ffffff;
    background-image: linear-gradient(110deg, #fe670d 0%, #ff8a3d 100%);
    background-size: 180% 100%;
    background-position: 0% 50%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(0,0,0,0.16),
        0 1px 2px rgba(160,90,0,0.14),
        0 10px 24px -10px rgba(254,103,13,0.60);
    transition: background-position .5s ease, box-shadow .25s ease, transform .15s ease;
    overflow: hidden;
    isolation: isolate;
}
.rk-btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0) 55%);
    pointer-events: none;
    z-index: -1;
}
.rk-btn-primary:hover {
    background-position: 100% 50%;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.50),
        inset 0 -1px 0 rgba(0,0,0,0.18),
        0 2px 4px rgba(160,90,0,0.16),
        0 16px 32px -12px rgba(254,103,13,0.65);
}
.rk-btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        inset 0 -1px 0 rgba(0,0,0,0.22),
        0 1px 2px rgba(160,90,0,0.20);
}

/* SaaS CTA — gradient palette flow with button depth */
.rk-cta {
    position: relative;
    color: #ffffff;
    background-image: linear-gradient(110deg, #06214f 0%, #1a489a 55%, #54bbf7 100%);
    background-size: 180% 100%;
    background-position: 0% 50%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        inset 0 -1px 0 rgba(0,0,0,0.22),
        0 1px 2px rgba(6,33,79,0.18),
        0 10px 24px -10px rgba(26,72,154,0.55);
    transition: background-position .5s ease, box-shadow .25s ease, transform .15s ease;
    overflow: hidden;
    isolation: isolate;
}
.rk-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%);
    pointer-events: none;
    z-index: -1;
}
.rk-cta:hover {
    background-position: 100% 50%;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.34),
        inset 0 -1px 0 rgba(0,0,0,0.25),
        0 2px 4px rgba(6,33,79,0.22),
        0 16px 32px -12px rgba(84,187,247,0.55);
}
.rk-cta:active { transform: translateY(1px); box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        inset 0 -1px 0 rgba(0,0,0,0.30),
        0 1px 2px rgba(6,33,79,0.30); }

/* Quick-link cards — fintech SaaS style */
.rk-quick {
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(6,33,79,0.04);
    isolation: isolate;
}
.rk-quick::before {
    content: "";
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #06214f 0%, #1a489a 50%, #54bbf7 100%);
    transform: scaleY(0.35);
    transform-origin: center;
    opacity: 0.55;
    transition: transform .3s ease, opacity .3s ease;
}
.rk-quick:hover {
    box-shadow: 0 14px 30px -18px rgba(6,33,79,0.28);
}
.rk-quick:hover::before {
    transform: scaleY(1);
    opacity: 1;
}
.rk-quick > svg:first-of-type {
    width: 44px !important;
    height: 44px !important;
    padding: 10px;
    border-radius: 12px;
    background: #f2f7ff;
    box-shadow: inset 0 0 0 1px rgba(26,72,154,0.06);
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.rk-quick:hover > svg:first-of-type {
    transform: scale(1.04);
    background: #e8f1ff;
    box-shadow: inset 0 0 0 1px rgba(26,72,154,0.12);
}
/* Soft pastel tint variations per card */
.rk-quick:nth-child(1) > svg:first-of-type { background: #eef4ff; }
.rk-quick:nth-child(2) > svg:first-of-type { background: #fff8e8; }
.rk-quick:nth-child(3) > svg:first-of-type { background: #ecf7ff; }
.rk-quick:nth-child(4) > svg:first-of-type { background: #f1f1fb; }
.rk-quick:nth-child(5) > svg:first-of-type { background: #fff4e2; }
.rk-quick:nth-child(6) > svg:first-of-type { background: #e8f5ff; }
.rk-quick:nth-child(7) > svg:first-of-type { background: #eef2fc; }
.rk-quick:nth-child(8) > svg:first-of-type { background: #fffae8; }

.rk-quick::after {
    content: "";
    position: absolute;
    top: 1px; bottom: 1px; right: 1px;
    width: 90px;
    border-radius: 0 15px 15px 0;
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity .35s ease, transform .35s ease;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a489a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") right 14px center / 16px 16px no-repeat,
        linear-gradient(to left, #ffffff 35%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0) 100%);
}
.rk-quick:hover::after {
    opacity: 1;
    transform: translateX(0);
}
.rk-quick:hover { border-color: #cfe7fb; }

.rk-btn-navy {
    background: linear-gradient(180deg, #1a489a 0%, #06214f 100%);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(6,33,79,0.55);
}

.rk-chip-ad {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFE56B;
    color: #5b3d00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--rk-bg), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--rk-bg), transparent);
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track.marquee-reverse {
    animation-direction: reverse;
    animation-duration: 36s;
}

/* Modal Animation */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-modalIn {
    animation: modalIn 0.2s ease-out;
}

/* Route / Info Banner Animations */
@keyframes rkFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}
@keyframes rkRouteFlow {
    0%   { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -40; }
}
@keyframes rkPulseRing {
    0%   { opacity: 0.22; transform: scale(1); }
    70%  { opacity: 0;    transform: scale(2.2); }
    100% { opacity: 0;    transform: scale(2.2); }
}
@keyframes rkPulseDot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.25); }
}

.rk-float      { animation: rkFloat 3.8s ease-in-out infinite; }
.rk-float-alt  { animation: rkFloat 4.6s ease-in-out infinite; animation-delay: .6s; }
.rk-float-slow { animation: rkFloat 5.2s ease-in-out infinite; animation-delay: 1.1s; }
.rk-route-flow { animation: rkRouteFlow 2s linear infinite; }
.rk-pulse-ring {
    animation: rkPulseRing 2.6s ease-out infinite;
    transform-origin: center; transform-box: fill-box;
}
.rk-pulse-dot {
    animation: rkPulseDot 2.6s ease-in-out infinite;
    transform-origin: center; transform-box: fill-box;
}
