/* ==========================================================================
   kcn.dntdigital.com — bo sung cho design system cua dntdigital.com
   Dung lai bien mau / font / .section / .card / .btn / .faq-item tu main.css
   ========================================================================== */

/* ---------- nav ---------- */
.nav-lang { font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.nav-lang:hover { color: var(--brand); }
.nav-cta { padding: 11px 20px; border-radius: 12px; font-size: 14.5px; margin-left: 4px; }
.main-nav { gap: 22px; }

/* dntdigital.com chuyen sang hamburger tu <=1500px vi nav cua ho co 12 muc + dropdown.
   Nav KCN chi 7 muc nen giu ngang tren may tinh, chi dung hamburger o man hinh nho. */
@media (min-width: 1020px) and (max-width: 1500px) {
    .nav-toggle-btn { display: none; }
    .main-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        max-height: none;
        overflow: visible;
        margin-left: auto;
        margin-right: 0;
        padding: 0;
        background: transparent;
        border-bottom: 0;
        box-shadow: none;
    }
    .main-nav > a {
        padding: 0;
        border-bottom: 0;
        font-size: 15px;
        white-space: nowrap;
    }
    .main-nav > a::after { display: none; }
    .main-nav > a.nav-cta {
        padding: 11px 18px;
        border-radius: 12px;
        font-size: 14.5px;
    }
    .main-nav > a.nav-lang { font-size: 13px; }
}

/* ---------- can deu hai ben noi dung ---------- */
.hero-lead,
.section-lead,
.lead-sm,
.faq-item p,
.kpi-list li,
.svc-model span,
.step-card p,
.tbl td,
.tbl-price td,
.kcn-hero .hero-lead,
main .card:not(.mod-card) p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ---------- hero ---------- */
.kcn-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 88% 8%, rgba(26, 92, 255, .38), transparent 62%),
        radial-gradient(900px 460px at 6% 96%, rgba(0, 200, 180, .16), transparent 60%),
        linear-gradient(160deg, #071127 0%, #0b1c3d 52%, #0e1f45 100%);
    color: #fff;
    padding: clamp(44px, 5.4vw, 82px) 0 clamp(40px, 4.6vw, 68px);
}
.kcn-hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 70% 20%, #000 30%, transparent 78%);
}
.kcn-hero-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: clamp(28px, 3.4vw, 56px);
    align-items: center;
}
.kcn-hero h1 { font-size: clamp(30px, 3.9vw, 54px); line-height: 1.1; letter-spacing: -.02em; margin: 16px 0 0; color: #fff; }
.kcn-hero h1 .hl {
    background: linear-gradient(96deg, #6ea8ff 0%, #6ee3d4 60%, #a8ffe9 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.kcn-hero .hero-lead { margin: 18px 0 0; max-width: 620px; font-size: clamp(15.5px, 1.15vw, 18px); color: #b7c6e4; }
.kcn-hero .hero-lead strong { color: #fff; }
.kcn-hero .hero-actions { margin-top: 26px; }
.kcn-hero-media { position: relative; }
.kcn-hero-media img {
    width: 100%; height: auto; display: block;
    border-radius: 18px;
    box-shadow: 0 48px 90px -44px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .09);
}
.kcn-hero .hero-badge { margin-bottom: 4px; }

/* ---------- stats band ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-band .stats-grid { padding: clamp(20px, 2.4vw, 30px) 0; }
.stats-band .stat b { font-size: clamp(24px, 2.3vw, 32px); }

/* ---------- card grids bo sung ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.mod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------- module card ---------- */
.mod-card { display: flex; flex-direction: column; padding: 20px 20px 16px; gap: 0; }
.mod-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mod-icon {
    width: 44px; height: 44px; border-radius: 13px;
    display: grid; place-items: center;
    color: var(--brand);
    background: linear-gradient(150deg, #eef3ff, #e3edff);
    box-shadow: inset 0 0 0 1px rgba(26, 92, 255, .12);
}
.mod-num { font-size: 13px; font-weight: 800; color: var(--line-2); letter-spacing: .06em; }
.mod-card h3 { font-size: 17px; line-height: 1.34; margin: 10px 0 8px; }
.mod-card h3 a { color: var(--ink); }
.mod-card h3 a:hover { color: var(--brand); }
.mod-card p { font-size: 14.5px; color: var(--body); margin: 0 0 14px; }
.mod-thumb {
    width: 100%; height: auto; display: block;
    border-radius: 10px; margin: 0 0 14px;
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.mod-card:hover .mod-thumb { transform: translateY(-2px); box-shadow: var(--shadow); }
.mod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mod-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mod-card .card-link { font-size: 13.5px; font-weight: 700; }

/* ---------- pill ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    color: var(--pc, var(--brand));
    background: color-mix(in srgb, var(--pc, #1a5cff) 10%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc, #1a5cff) 24%, #fff);
}
.pill-blue { --pc: #1a5cff; }
.pill-teal { --pc: #00b39f; }
.pill-purple { --pc: #7b5cf0; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl thead th {
    text-align: left; font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); font-weight: 800; padding: 14px 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcff; }
.svc-code { font-family: var(--font); font-weight: 800; color: var(--brand); white-space: nowrap; width: 84px; }
.svc-name { font-weight: 600; color: var(--ink); width: 34%; }
.tbl-price { min-width: 0; font-size: 14.5px; }
.tbl-price td { padding: 10px 14px; }
.tbl-price th { padding: 11px 14px; }
.tbl-price .price { text-align: right; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ---------- packages ---------- */
.pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pkg-card { position: relative; padding: 22px; }
.pkg-num { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.pkg-card h3 { font-size: 17.5px; margin: 6px 0 8px; }
.pkg-card p { font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip:hover { background: #eef3ff; border-color: #c9d9f8; color: var(--brand); }

/* ---------- roadmap / steps ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.step-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm);
}
.step-n {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
    background: linear-gradient(150deg, var(--brand), #4b83ff); color: #fff;
    font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.step-card h3 { font-size: 16.5px; margin: 0 0 7px; }
.step-card p { font-size: 14.5px; color: var(--body); margin: 0; }

/* ---------- service model ---------- */
.svc-model { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: sm; }
.svc-model li {
    display: flex; flex-direction: column; gap: 3px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.svc-model b { color: var(--ink); font-size: 15px; }
.svc-model span { color: var(--body); font-size: 14px; }

/* ---------- 8 fields ---------- */
.field-card { padding: 18px; }
.field-n { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.field-card p { font-size: 14.5px; margin: 8px 0 0; color: var(--ink-2); font-weight: 600; }

/* ---------- page hero (detail) ---------- */
.page-hero {
    background: linear-gradient(170deg, #f5f8fd 0%, #ffffff 62%);
    border-bottom: 1px solid var(--line);
    padding: clamp(20px, 2.4vw, 32px) 0 clamp(34px, 4vw, 56px);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span:last-child { color: var(--ink-2); font-weight: 600; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 46px); align-items: center; }
.page-hero h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.13; letter-spacing: -.02em; margin: 14px 0 0; }
.page-hero .hero-lead { color: var(--body); font-size: clamp(15.5px, 1.1vw, 17.5px); margin-top: 16px; }
.page-hero .hero-badge {
    background: #eef3ff; color: var(--brand-dark); box-shadow: inset 0 0 0 1px #d9e6ff;
}
.page-hero .hero-badge::before { background: var(--brand); }
.page-hero-img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- misc ---------- */
.lead-sm { font-size: 16px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.7; }
.kpi-list { margin: 12px 0 0; padding: 0; list-style: none; }
.kpi-list li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15px; color: var(--ink-2); }
.kpi-list li::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 3px;
    background: linear-gradient(150deg, var(--brand-2), #26e0c8);
}
.small { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.cta-note { margin: 18px 0 0; font-size: 14px; color: #9fb2d4; }
.cta-note a { color: #fff; }

/* ---------- footer bo sung ---------- */
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { font-size: 13px; color: #7a8cab; margin: 0; }
.footer-mods { columns: 2; column-gap: 26px; }
.footer-mods li { break-inside: avoid; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .card-grid.mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .kcn-hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .kcn-hero-media { order: -1; }
    .card-grid.mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-2, .card-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .svc-model { grid-template-columns: minmax(0, 1fr); }
    .footer-mods { columns: 1; }
}
@media (max-width: 620px) {
    .card-grid.mod-grid, .card-grid-4, .steps-row, .pkg-grid { grid-template-columns: minmax(0, 1fr); }
    .mod-thumb { display: none; }
    .tbl { min-width: 480px; font-size: 14px; }
    .svc-name { width: auto; }
}
