:root {
    /* Brand-inspired palette (Digiconnex) */
    --bg: #ffffff;
    --text: #0b1220;
    /* deep navy/charcoal */
    --muted: #5b6475;
    --line: #e6eaf2;
    --alt: #f7f9fc;

    /* Brand accents (match logo vibe) */
    --brand-blue: #1d4ed8;
    --brand-orange: #f59e0b;

    /* Primary action + links */
    --brand: var(--brand-blue);
    --cta: var(--brand-orange);

    --shadow: 0 10px 30px rgba(11, 18, 32, .06);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none
}

/* Layout */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .90);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 12px;
    /* NEW: avoid tight squeeze */
    position: relative;
    /* NEW: anchor mobile dropdown */
}

/* Brand logo (Digiconnex) */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    /* NEW: prevent wrapping on desktop */
}

.nav a {
    color: var(--muted);
    font-weight: 700
}

.nav a:hover {
    color: var(--text)
}

/* Mobile nav toggle (hamburger) - NEW */
.nav-toggle {
    display: none;
    /* show only on mobile */
    width: 42px;
    height: 42px;
    border: 1px solid rgba(11, 18, 32, .12);
    background: rgba(255, 255, 255, .92);
    border-radius: 12px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(11, 18, 32, .06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #0f172a;
    margin: 4px 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(29, 78, 216, .22);
    box-shadow: 0 10px 22px rgba(29, 78, 216, .16);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02)
}

.btn:active {
    transform: translateY(0px)
}

.btn-small {
    padding: 10px 12px;
    border-radius: 10px
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
    font-weight: 800;
}

.btn-ghost:hover {
    border-color: rgba(29, 78, 216, .25)
}

.btn-orange {
    background: var(--cta);
    border: 1px solid rgba(245, 158, 11, .28);
    box-shadow: 0 10px 22px rgba(245, 158, 11, .18);
    color: #111827;
}

.btn-orange:hover {
    filter: brightness(1.03)
}

/* Hero */
.hero {
    padding: 56px 0 28px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: start;
}

.kicker {
    color: var(--muted);
    font-weight: 800;
    margin: 0 0 10px
}

h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 14px
}

.lead {
    color: var(--muted);
    font-size: 18px;
    margin: 0 0 18px
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 16px
}

.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.pill {
    font-size: 13px;
    color: var(--muted);
    border: 1px solid rgba(29, 78, 216, .14);
    background: #fff;
    padding: 7px 10px;
    border-radius: 999px;
}

/* Cards / panels */
.hero-card {
    border: 1px solid rgba(11, 18, 32, .08);
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: var(--shadow);
    background: #fff;
}

.hero-card h3 {
    margin: 0 0 10px
}

.checklist {
    margin: 0;
    padding-left: 18px;
    color: var(--muted)
}

.note {
    color: var(--muted);
    margin-top: 10px;
    font-size: 14px
}

/* Sections */
.section {
    padding: 44px 0
}

.section-alt {
    background: var(--alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    margin-bottom: 18px
}

.section-head h2 {
    font-size: 28px;
    margin: 0 0 6px
}

.section-head p {
    margin: 0;
    color: var(--muted)
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.card {
    border: 1px solid rgba(11, 18, 32, .08);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 18, 32, .04);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.card:hover {
    border-color: rgba(29, 78, 216, .25);
    transform: translateY(-1px);
}

.card h3 {
    margin: 0 0 8px
}

.card p {
    margin: 0 0 10px;
    color: var(--muted)
}

.card-link {
    color: var(--brand);
    font-weight: 800
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.step {
    border: 1px solid rgba(11, 18, 32, .08);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
}

.step-no {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #0b1220;
    color: #fff;
    font-weight: 900;
    margin-bottom: 10px;
}

/* CTA */
.cta {
    padding: 44px 0
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(11, 18, 32, .10);
    border-radius: 20px;
    padding: 22px;
    background:
        linear-gradient(135deg,
            rgba(245, 158, 11, .10),
            rgba(29, 78, 216, .06) 55%,
            rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--shadow);
}

.cta h2 {
    margin: 0 0 6px;
    font-size: 26px
}

.cta p {
    margin: 0;
    color: var(--muted)
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.footer-links a {
    color: var(--muted);
    font-weight: 700
}

.footer-links a:hover {
    color: var(--text)
}

.footer-bottom {
    padding-top: 10px
}

.site-footer .brand-logo img {
    height: 30px;
}

/* Utilities */
.muted {
    color: var(--muted)
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    h1 {
        font-size: 36px
    }
}

@media (max-width: 560px) {
    .cards {
        grid-template-columns: 1fr
    }

    .steps {
        grid-template-columns: 1fr
    }

    h1 {
        font-size: 32px
    }

    .brand-logo img {
        height: 30px;
    }

    .site-footer .brand-logo img {
        height: 26px;
    }
}

/* Header primary CTA */
.nav .btn {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #ffffff;
    font-weight: 900;
    border: 1px solid rgba(29, 78, 216, .45);
    box-shadow: 0 10px 26px rgba(29, 78, 216, .45);
}

.nav .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(29, 78, 216, .55);
    filter: brightness(1.03);
}

/* Our Customers */
.customers {
    padding: 26px 0 10px;
}

.customers .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.customers .section-head p {
    max-width: 720px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.logo-card {
    border: 1px solid rgba(11, 18, 32, .08);
    border-radius: 16px;
    background: #fff;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    transition: transform .15s ease, border-color .15s ease;
}

.logo-card:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 78, 216, .22);
}

.logo-card img {
    max-height: 34px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .88;
    transition: filter .15s ease, opacity .15s ease;
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive */
@media (max-width: 980px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-card {
        min-height: 64px;
    }

    .logo-card img {
        max-height: 50px;
    }
}

/* Our Partners */
.partners {
    padding-top: 10px;
    /* sát với Solutions hơn chút */
}

/* =========================
   MOBILE NAV DROPDOWN (NEW)
   Works with: .nav-toggle + .nav.open
   ========================= */
@media (max-width: 768px) {

    /* show hamburger */
    .nav-toggle {
        display: inline-flex;
    }

    /* keep header compact */
    .header-inner {
        height: 64px;
    }

    .brand-logo img {
        height: 26px;
    }

    /* dropdown menu */
    .nav {
        position: absolute;
        top: 64px;
        left: 20px;
        right: 20px;

        display: none;
        /* hidden by default */
        flex-direction: column;
        align-items: stretch;

        gap: 8px;
        padding: 12px;

        background: rgba(255, 255, 255, .98);
        border: 1px solid rgba(11, 18, 32, .10);
        border-radius: 16px;
        box-shadow: 0 18px 48px rgba(2, 6, 23, .14);

        white-space: normal;
        /* allow normal text inside */
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 10px 12px;
        border-radius: 12px;
        font-weight: 800;
        color: var(--text);
    }

    .nav a:hover {
        background: rgba(29, 78, 216, .06);
    }

    /* CTA in menu should be full-width */
    .nav .btn,
    .nav .btn-small {
        width: 100%;
        justify-content: center;
    }
}

/* Optional: reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .btn,
    .card,
    .logo-card {
        transition: none;
    }
}