﻿/* ===== DESIGN SYSTEM ===== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --border: #e5e7eb;
    --radius: 14px;
}

/* ===== GLOBAL ===== */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto;
    color: var(--text);
    line-height: 1.6;
    padding-top: 100px; /* fix navbar overlap */
}

/* smooth */
* {
    transition: all .25s ease;
}

/* ===== NAVBAR ===== */
#mainNav {
    padding: 18px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

    #mainNav.scrolled {
        padding: 10px 0;
        box-shadow: 0 6px 25px rgba(0,0,0,.08);
    }

/* LOGO */
.logo-img {
    height: 95px;
}

#mainNav.scrolled .logo-img {
    height: 65px;
}

/* NAV LINK */
.nav-link {
    font-weight: 500;
    margin: 0 14px;
    color: var(--text);
    position: relative;
}

    .nav-link:hover {
        color: var(--primary);
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--primary);
        transition: .3s;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* BUTTON */
.btn-demo {
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), #4f8cff);
    border: none;
}

    .btn-demo:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(13,110,253,.3);
    }

/* ===== HERO ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg,#f8fafc,#eef4ff);
    position: relative;
}

    .hero h1 {
        font-size: 48px;
        font-weight: 800;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
        color: var(--text-light);
    }

    .hero img {
        border-radius: var(--radius);
        box-shadow: 0 20px 40px rgba(0,0,0,.08);
    }

/* ===== SECTION ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ===== FEATURE CARD (VERTICAL - dùng cho FEATURES) ===== */
.feature {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    transition: all .25s ease;
}

    .feature:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,.08);
    }

    /* TITLE */
    .feature h5 {
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 6px;
        min-height: 42px; /* giữ card đều nhau */
    }

    /* DESCRIPTION */
    .feature p {
        margin: 0;
        color: var(--text-light);
        font-size: 15px;
    }

    /* hover effect */
    .feature:hover h5 {
        color: var(--primary);
        font-weight: bold;
    }

/* ===== FEATURE INLINE (ICON + TEXT - dùng cho SOLUTIONS) ===== */
.feature-inline {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .25s ease;
}

    .feature-inline:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

    /* ICON */
    .feature-inline i {
        min-width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(13,110,253,0.1);
        border-radius: 10px;
        font-size: 18px;
        transition: .25s;
    }

    /* ICON HOVER */
    .feature-inline:hover i {
        transform: scale(1.15);
        background: rgba(13,110,253,0.2);
    }

    /* TEXT */
    .feature-inline h6 {
        margin: 0;
        font-weight: 600;
    }

    .feature-inline a {
        text-decoration: none;
        color: var(--text);
    }

        .feature-inline a:hover {
            color: var(--primary);
        }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--primary), #4f8cff);
    color: #fff;
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(13,110,253,.25);
}

/* ===== FOOTER ===== */
footer {
    background: #0b1324;
    color: #fff;
    padding: 40px 0;
    font-size: 14px;
}

/* ===== BUTTON GLOBAL ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f8cff);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13,110,253,.3);
    }

/* ===== TRUSTED LOGOS SECTION ===== */
/* ===== TRUSTED LOGOS SECTION ===== */
.rf-trusted-section {
    padding: 90px 0;
    background: #f9fbff;
}

/* LABEL (to + nổi bật hơn) */
.rf-trusted-label {
    font-size: 20px;
    font-weight: 700;
    color: #0b1324;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* GRID */
.rf-logo-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD */
.rf-logo-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    height: 120px; /* 🔥 lớn hơn */

    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all .3s ease;
}

    /* LOGO */
    .rf-logo-card img {
        max-height: 70px; /* 🔥 gấp ~2 */
        max-width: 100%;
        object-fit: contain;
        /* 🔥 mặc định có màu */
        filter: none;
        opacity: 1;
        transition: all .35s ease;
    }

    /* HOVER = chuyển sang grayscale */
    .rf-logo-card:hover img {
        filter: grayscale(100%);
        opacity: 0.6;
    }

    /* CARD HOVER */
    .rf-logo-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }



/* RESPONSIVE */
@media (max-width: 768px) {
    .rf-trusted-label {
        font-size: 18px;
    }

    .rf-logo-card {
        height: 90px;
        padding: 16px;
    }

        .rf-logo-card img {
            max-height: 50px;
        }
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {

    body {
        padding-top: 90px;
    }

    .hero {
        padding-top: 40px;
    }

        .hero h1 {
            font-size: 32px;
        }

    .logo-img {
        height: 70px;
    }

    #mainNav.scrolled .logo-img {
        height: 60px;
    }
}

/* DEMO MODAL */
.demo-modal {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, Segoe UI, Roboto;
}

/* HEADER */
.demo-header {
    background: linear-gradient(135deg,#0d6efd,#4f8cff);
    color: #fff;
    border-bottom: none;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.demo-sub {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* CLOSE BUTTON */
.demo-close {
    filter: brightness(10);
}

/* BODY */
.demo-modal .modal-body {
    padding: 30px;
}

/* INPUTS */
.demo-modal .form-control,
.demo-modal .form-select,
.demo-modal textarea {
    border-radius: 10px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
    padding: 12px 14px;
}

/* BUTTON */
.demo-modal .btn-primary {
    background: linear-gradient(135deg,#0d6efd,#4f8cff);
    font-weight: 600;
    border-radius: 8px;
    transition: all .25s ease;
}

    .demo-modal .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13,110,253,.3);
    }

/* RESPONSIVE */
@media (max-width: 767px) {
    .demo-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .demo-icon {
        margin-bottom: 8px;
    }
}
/* ============================================
   🔥 AUTO-RESPONSIVE HEADINGS + BUTTONS
   Giữ nguyên toàn bộ code cũ, chỉ thêm mới
============================================ */

/* Tablet */
@media (max-width: 992px) {
    h1 {
        font-size: calc(32px + 1vw);
    }

    h2 {
        font-size: calc(26px + 0.8vw);
    }

    h3 {
        font-size: calc(22px + 0.5vw);
    }

    h4 {
        font-size: calc(19px + 0.3vw);
    }

    h5 {
        font-size: calc(17px + 0.2vw);
    }

    .btn,
    button,
    .btn-primary,
    .btn-demo {
        font-size: 0.95rem !important;
        padding: 8px 18px !important;
    }
}

/* Mobile lớn */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    .btn,
    button,
    .btn-primary,
    .btn-demo {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
        border-radius: 10px;
    }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    h5 {
        font-size: 15px;
    }

    .btn,
    button,
    .btn-primary,
    .btn-demo {
        font-size: 0.85rem !important;
        padding: 7px 14px !important;
    }
}