/* =================================================
   REMSAHAM UI — SaaS Production Final
   Clean • Calm • Consistent • Maintainable
   ================================================= */

/* ==============================
   DESIGN TOKENS
   ============================== */
html,
body {
    overflow-x: hidden;
}

:root {
    --rs-blue: #2d4ec9;
    --rs-blue-light: #5c7cff;
    --rs-blue-soft: #eef2ff;

    --rs-text-dark: #1f2937;
    --rs-text-muted: #64748b;

    --rs-bg-soft: #f8fafc;
    --rs-bg-section: #f1f5f9;

    --rs-radius-lg: 18px;
    --rs-radius-md: 12px;

    --rs-shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.06);
    --rs-shadow-hover: 0 35px 80px rgba(0, 0, 0, 0.10);
}

/* ==============================
   BASE TYPOGRAPHY
   ============================== */

body {
    font-family: 'Inter', sans-serif;
    color: var(--rs-text-dark);
    line-height: 1.7;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--rs-text-dark);
}

h3 {
    font-size: 28px;
}

.text-muted {
    color: var(--rs-text-muted) !important;
}

/* ==============================
   NAVBAR
   ============================== */

.ci3-navbar-v1 {
    background: linear-gradient(135deg, var(--rs-blue) 0%, var(--rs-blue-light) 100%);
    padding: 0.9rem 0;
}

.ci3-navbar-v1 .navbar-brand,
.ci3-navbar-v1 .brand-text {
    color: #ffffff;
    font-weight: 600;
}

.ci3-navbar-v1 .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
}

.ci3-navbar-v1 .nav-link:hover {
    color: #ffffff;
}

/* LOGIN BUTTON */

.btn-nav-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ==============================
   HERO SECTION
   ============================== */

.ci3-hero-scene {
    background: linear-gradient(135deg, var(--rs-blue) 0%, var(--rs-blue-light) 100%);
    padding: 120px 0 160px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ci3-hero-scene::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--rs-bg-section);
    border-top-left-radius: 100% 80px;
    border-top-right-radius: 100% 80px;
}

.hero-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
}

.hero-accent {
    font-weight: 700;
    color: #ffffff;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 18px;
}

/* HERO BUTTON SYSTEM */

.hero-actions {
    margin-top: 26px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--rs-radius-md);
    min-height: 48px;
    transition: all 0.2s ease;
}

.btn-hero-primary {
    background: #22c55e;
    color: #ffffff;
    border: none;
}

.btn-hero-primary:hover {
    background: #16a34a;
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--rs-blue);
    border: 1px solid #e2e8f0;
    margin-left: 12px;
}

.btn-hero-secondary:hover {
    background: #f8fafc;
}

/* ==============================
   GLOBAL SECTION SPACING
   ============================== */

section {
    padding: 100px 0;
}

/* ==============================
   PROBLEM + OUTPUT SECTION
   ============================== */

.rs-problem-output {
    background: linear-gradient(to bottom, var(--rs-bg-section) 0%, #e2e8f0 100%);
}

.rs-problem-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.blue {
    background: #3b82f6;
}

.rs-checklist {
    list-style: none;
    padding-left: 0;
}

.rs-checklist li {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--rs-blue);
}

/* SAMPLE CARD */

.rs-sample-card {
    background: #ffffff;
    border-radius: var(--rs-radius-lg);
    box-shadow: var(--rs-shadow-soft);
    overflow: hidden;
}

.rs-sample-header {
    background: #f1f5f9;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rs-text-muted);
    letter-spacing: 1px;
}

.rs-sample-body {
    padding: 36px;
}

.rs-badge-risk {
    background: #facc15;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.rs-note {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--rs-radius-md);
    color: #475569;
}

/* ==============================
   HOW IT WORKS
   ============================== */

.rs-how-it-works {
    background: #ffffff;
}

.rs-work-card {
    background: #ffffff;
    padding: 36px;
    border-radius: var(--rs-radius-lg);
    box-shadow: var(--rs-shadow-soft);
    transition: all .3s ease;
}

.rs-work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rs-shadow-hover);
}

.rs-work-icon {
    font-size: 28px;
    margin-bottom: 18px;
}

/* ==============================
   FINAL CTA
   ============================== */

.rs-final-cta {
    background: linear-gradient(135deg, var(--rs-blue) 0%, var(--rs-blue-light) 100%);
    padding: 110px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.rs-final-cta::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.rs-cta-btn {
    background: #ffffff;
    color: var(--rs-blue);
    padding: 14px 34px;
    border-radius: var(--rs-radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
}

.rs-cta-btn:hover {
    background: #f8fafc;
}

/* ==============================
   FOOTER
   ============================== */

.rs-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    color: #cbd5e1;
    padding: 5rem 0 2rem;
}

.rs-footer h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rs-footer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #94a3b8;
}

.rs-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rs-footer-links li {
    margin-bottom: 0.6rem;
}

.rs-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.rs-footer-links a:hover {
    color: #ffffff;
}

.rs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==============================
   MOBILE
   ============================== */

@media (max-width: 768px) {

    .ci3-hero-scene {
        padding: 90px 0 120px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.35;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 26px;
    }

    .btn-hero-secondary {
        margin-left: 0;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        min-height: 50px;
    }

    section {
        padding: 75px 0;
    }

}



/* ==============================
   HOW IT WORKS ALIGN FIX
   ============================== */

.rs-how-it-works .row {
    align-items: stretch;
}

.rs-work-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
}

.rs-work-card h5 {
    margin-top: 12px;
    margin-bottom: 10px;
}

.rs-work-card p {
    flex-grow: 1;
    margin-bottom: 0;
    color: var(--rs-text-muted);
}


/* ==============================
   CHECKLIST POLISH
   ============================== */

.rs-checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 12px;
}

.rs-checklist li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--rs-text-dark);
    line-height: 1.6;
}

.rs-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #22c55e;
}

h4 {
    font-size: 22px;
}


/* ==============================
   MOBILE HEADER LOGIN FINAL FIX
   ============================== */

.btn-nav-mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;

    min-height: 34px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    transition: all 0.2s ease;
}

.btn-nav-mobile-login:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.9);
}

/* spacing ke hamburger */
@media (max-width: 991px) {

    .btn-nav-mobile-login {
        margin-right: 10px;
    }

}


/* ==============================
   HERO MOBILE FIX — FINAL
   ============================== */

@media (max-width: 768px) {

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* INI PENTING */
        gap: 16px;
        margin-top: 26px;
    }

    .hero-actions .btn {
        display: flex;
        /* override inline-flex */
        width: 100%;
        justify-content: center;
        align-items: center;

        min-height: 52px;
        padding: 14px 20px;

        margin: 0;
        /* hapus margin desktop */
        border-radius: 14px;
    }

}

/* Pastikan layer dekoratif tidak menghalangi klik */
.rs-final-cta::before,
.rs-final-cta::after,
.ci3-hero-scene::after {
    pointer-events: none;
}


@media (max-width: 768px) {

    .ci3-hero-scene .col-lg-6:first-child {
        text-align: center;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.35;
    }

    .hero-desc {
        font-size: 14px;
    }

}

/* ==============================
   MOBILE USER MENU
   ============================== */

/* ==============================
   MOBILE NAV DIVIDER (VISIBLE)
   ============================== */

.mobile-nav-divider {
    border: none;
    height: 1px;
    margin: 18px 0;
    background: rgb(250, 250, 250);
}

.nav-mobile-user,
.nav-mobile-logout {
    font-weight: 500;
    padding: 10px 0;
}

.nav-mobile-logout {
    opacity: 0.85;
}

.nav-mobile-logout:hover {
    opacity: 1;
}


.rs-footer-v2 {
    background: #f8f9fb;
}

.rs-footer-v2 h6 {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #111;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #3b5bdb;
}

.social-icons a {
    font-size: 18px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    color: #3b5bdb;
}

.rs-footer-v2 {
    background: #f8f9fb;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.rs-footer-v2 h6 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #495057;
}

.social-icons a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    font-size: 16px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: #3b5bdb;
    color: white;
    border-color: #3b5bdb;
}


.rs-contact {
    background: #ffffff;
}

.contact-box {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
}

.contact-box a {
    color: #3b5bdb;
}

.contact-box a:hover {
    text-decoration: underline;
}