@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================================================
                    RESET
=================================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    font-size:16px;
    scroll-behavior:smooth;
}

body{
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
                "Open Sans", "Helvetica Neue", sans-serif;

    color:#222;
    background:#fff;
    line-height:1.6;

    min-height:100vh;

    -webkit-font-smoothing:antialiased;
}

img,
picture,
svg,
video{
    display:block;
    max-width:100%;
}

button,
input,
textarea,
select{
    font:inherit;
}

button{
    cursor:pointer;
    border:none;
    background:none;
}

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

ul,
ol{
    list-style:none;
}

table{
    border-collapse:collapse;
    border-spacing:0;
}

/* ===================================================
                    VARIABLES
=================================================== */

:root{

    /* ===== Colors ===== */

    --primary:#0072FF;
    --secondary:#00B9FF;
    --gradient:linear-gradient(135deg, var(--primary), var(--secondary));

    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;

    --white:#ffffff;
    --black:#111827;

    --gray-50:#f9fafb;
    --gray-100:#f3f4f6;
    --gray-200:#e5e7eb;
    --gray-300:#d1d5db;
    --gray-500:#6b7280;
    --gray-700:#374151;
    --gray-900:#111827;

    /* ===== 1. Base Typography Scale ===== */
    --font-xs: 0.75rem;     /* 12px - Caption, Tag nhỏ, Badge phụ */
    --font-sm: 0.875rem;    /* 14px - Small body, Metadata, Secondary text */
    --font-base: 1rem;      /* 16px - Body chính, Form input, Button chuẩn */
    --font-lg: 1.125rem;    /* 18px - Lead paragraph, Subtitle nổi bật */
    --font-xl: 1.25rem;     /* 20px - Subtitle lớn, Minor heading */

    /* ===== 2. Responsive Headings ===== */
    --h1: clamp(1.875rem, 4vw, 3rem);      /* 30px -> 48px: Page Title / Hero Main Title */
    --h2: clamp(1.5rem, 3vw, 2.25rem);      /* 24px -> 36px: Section Titles */
    --h3: clamp(1.25rem, 2.5vw, 1.75rem);  /* 20px -> 28px: Subsection Titles */
    --h4: clamp(1.125rem, 2vw, 1.5rem);    /* 18px -> 24px: Feature Titles, Module Header */
    --h5: 1rem;                             /* 16px: Mobile (<= 767px) Card Titles */

    /* ===== 3. Semantic Role Aliases ===== */
    --font-body: var(--font-base);         /* 16px */
    --font-body-lg: var(--font-lg);        /* 18px */
    --font-small: var(--font-sm);          /* 14px */
    --font-caption: var(--font-xs);        /* 12px */
    --font-button: var(--font-small);      /* 14px - Chuẩn hóa Small button */
    --font-input: var(--font-base);        /* 16px */
    --font-nav: var(--font-sm);            /* 14px */
    --font-kpi: clamp(1.6rem, 3.2vw, 2.5rem); /* 25px -> 40px: Dashboard Metric Values */

    /* ===== 4. Font Weights ===== */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ===== 5. Line Heights ===== */
    --lh-tight: 1.15;
    --lh-heading: 1.28;
    --lh-body: 1.6;
    --lh-relaxed: 1.7;

    /* ===== 6. Letter Spacing ===== */
    --ls-tight: -0.02em;
    --ls-heading: -0.015em;
    --ls-normal: 0;
    --ls-wide: 0.02em;
    --ls-uppercase: 0.05em;

    /* ===== 7. Backward Compatibility Tokens ===== */
    --fs-xs: var(--font-xs);
    --fs-sm: var(--font-sm);
    --fs-base: var(--font-base);
    --fs-lg: var(--font-lg);
    --fs-xl: var(--font-xl);
    --fs-2xl: var(--h3);
    --fs-3xl: var(--h2);
    --fs-4xl: var(--h1);

    /* ===== Radius ===== */

    --radius-sm:.5rem;
    --radius-md:1rem;
    --radius-lg:1.5rem;
    --radius-full:9999px;

    /* ===== Shadow ===== */

    --shadow-sm:
        0 2px 8px rgba(0,0,0,.08);

    --shadow-md:
        0 8px 24px rgba(0,0,0,.12);

    --shadow-lg:
        0 16px 40px rgba(0,0,0,.15);

    /* ===== Transition ===== */

    --transition:.3s ease;

    /* ===== Container ===== */

    --container:1200px;

    /* ===== Section Spacing ===== */

    --section-padding:
        clamp(2.5rem, 5vw, 6rem);

}

/* Responsive H5 Token Step Scale */
@media (min-width: 768px) {
    :root {
        --h5: 1.125rem; /* 18px: Tablet (768px - 1023px) & Laptop (1024px - 1279px) */
    }
}

@media (min-width: 1280px) {
    :root {
        --h5: 1.25rem;  /* 20px: Desktop (>= 1280px) */
    }
}

/* ===================================================
                    GLOBAL
=================================================== */

body{
    overflow-x:hidden;
    padding-top: 0;
}

section{
    padding:var(--section-padding) 0;
}

.container{
    width:min(var(--container),90%);
    margin-inline:auto;
}

.text-center{
    text-align:center;
}

.text-left{
    text-align:left;
}

.text-right{
    text-align:right;
}

.text-gradient{
    background:var(--gradient);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    color:transparent;
}

/* Title elements with gradient changed to solid #0170F0 */
h1 .text-gradient,
h2 .text-gradient,
h3 .text-gradient,
h4 .text-gradient,
.section-title .text-gradient,
.partners-title .text-gradient,
.newsletter-title .text-gradient {
    color: #0170F0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #0170F0 !important;
}

/* ===================================================
                    HEADER & LOGO
=================================================== */

/* Floating Header Wrapper */
.floating-header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 0;
    pointer-events: none;
}

/* Inner Floating Container (Straight Capsule) */
.floating-header-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px; /* compact, modern capsule height */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 99px;
    padding: 0 1rem;
    filter: drop-shadow(0 15px 35px rgba(0, 114, 255, 0.08));
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* Blocks */
.header-left-block {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

/* Logo divider line */
.header-left-block::after {
    content: '';
    width: 1px;
    height: 24px;
    background: var(--gray-200);
    margin-left: 2rem;
}

.header-right-block {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1rem;
}

/* Middle Navigation Block */
.header-mid-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2rem;
    height: 100%;
}

/* Logo & Branding */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: var(--fw-bold);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.03em;
}

/* Navigation Links */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    height: 100%;
}

.nav-list li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list li.has-dropdown-products {
    position: relative;
}

.nav-list li.has-dropdown-solutions {
    position: static;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-nav);
    font-weight: var(--fw-semibold);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.6rem 1.1rem;
    border-radius: 99px;
    position: relative;
}

.nav-list li a iconify-icon {
    font-size: 1.15rem;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.nav-list li a .caret-down {
    font-size: 0.8rem;
    margin-left: -0.15rem;
    color: var(--gray-500);
}

/* Hover and Active states */
.nav-list li a:hover {
    color: var(--primary);
    background: rgba(0, 114, 255, 0.03);
}

.nav-list li a:hover iconify-icon,
.nav-list li a:hover .caret-down {
    color: var(--primary);
}

.nav-list li a.active {
    color: var(--primary);
    background: rgba(0, 114, 255, 0.06); /* Light blue capsule background */
}

.nav-list li a.active iconify-icon,
.nav-list li a.active .caret-down {
    color: var(--primary);
}

/* Active bottom glowing indicator dot */
.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: -10px; /* sits perfectly at the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
    z-index: 10;
}

.nav-personal {
    font-size: var(--font-nav);
    font-weight: var(--fw-semibold);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.6rem 1.1rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
}

.nav-personal:hover {
    color: var(--primary);
    background: rgba(0, 114, 255, 0.03);
}

/* Brand Gradient Capsule Contact Button */
.btn-contact {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.75rem;
    background: var(--gradient);
    color: var(--white) !important;
    border-radius: 99px;
    font-weight: var(--fw-semibold);
    font-size: var(--font-button);
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.2);
    align-self: center;
}

.btn-contact:hover {
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.35);
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-contact iconify-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-contact:hover iconify-icon {
    transform: translateX(3px);
}

/* Mobile Toggler Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--gray-900);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

/* Products Hover Dropdown Menu & Caret down */
.nav-list li a .caret-down {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    margin-left: 0.2rem;
    color: var(--gray-500);
}

.nav-list li.has-dropdown:hover .caret-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); /* 8px space below the bottom border of the capsule header */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 114, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Invisible bridge to maintain hover state across the 8px gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav-list li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Modifiers for different dropdown layouts */
.dropdown-products {
    width: 440px;
    padding: 1.25rem 1.5rem;
}

.dropdown-solutions {
    width: 960px;
    padding: 2rem;
}

/* 1. Products (Sản phẩm) Grid: Text-only, 2 columns */
.dropdown-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.product-item {
    display: block;
    font-size: var(--font-small);
    font-weight: var(--fw-semibold);
    color: var(--gray-800);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
}

.product-item:hover {
    background: rgba(0, 114, 255, 0.04);
    color: var(--primary);
}

/* 2. Solutions (Giải pháp) Grid: Rich items, 3 columns */
.dropdown-solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--gray-800);
}

.solution-item:hover {
    background: rgba(0, 114, 255, 0.04);
}

.solution-item iconify-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(0, 114, 255, 0.06);
    padding: 0.5rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.solution-item .item-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.solution-item .item-text strong {
    font-size: var(--font-small);
    font-weight: var(--fw-bold);
    color: var(--gray-900);
}

.solution-item .item-text span {
    font-size: var(--font-caption);
    color: var(--gray-500);
    line-height: 1.4;
}

/* Responsiveness media queries */
@media (max-width: 1024px) {
    .floating-header {
        top: 1rem;
    }
    
    .floating-header-inner {
        height: 64px;
        background: var(--white);
        border-radius: 16px;
        padding: 0 1.25rem;
        justify-content: space-between;
    }

    /* Hide middle navigation and desktop actions on mobile */
    .header-mid-block,
    .header-right-block {
        display: none !important;
    }

    .header-left-block {
        padding: 0;
        border: none;
    }
    
    .header-left-block::after {
        display: none;
    }

    .logo img {
        height: 36px;
    }
    
    .logo-title {
        font-size: 1.15rem;
    }

    .hero {
        padding-top: calc(64px + 3.5rem) !important;
    }
}

/* ===================================================
                    TYPOGRAPHY
=================================================== */

h1 {
    font-size: var(--h1);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: var(--fw-semibold);
}

h2 {
    font-size: var(--h2);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    font-weight: var(--fw-semibold);
}

h3 {
    font-size: var(--h3);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    font-weight: var(--fw-bold);
}

h4 {
    font-size: var(--h4);
    line-height: 1.35;
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--h5);
    line-height: 1.4;
    font-weight: var(--fw-semibold);
}

p {
    color: var(--gray-700);
    font-size: var(--font-body);
    line-height: var(--lh-body);
}

/* ===================================================
                    BUTTON
=================================================== */

.btn{

    justify-content:center;
    align-items:center;
    gap:.5rem;
    padding:.85rem 1.7rem;
    border-radius:var(--radius-full);
    border:2px solid transparent;
    background: 
        var(--gradient) padding-box,
        linear-gradient(135deg, rgba(153, 153, 153, 0.1), rgba(255, 255, 255, 1)) border-box;
    color:var(--white);
    transition:var(--transition);
    font-size: var(--font-button);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    align-self: flex-start;
}

.btn:hover{
    opacity:.9;
}

/* ===================================================
                    GRID
=================================================== */

.grid{

    display:grid;

    gap:2rem;

}

.grid-auto{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:2rem;

}

/* ===================================================
                    FLEX
=================================================== */

.flex{
    display:flex;
}

.flex-center{

    display:flex;

    justify-content:center;

    align-items:center;

}

.flex-between{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.two-column{

    display:flex;

    flex-direction:column;

}

.flex-column{

    display:flex;

    flex-direction:column;

}

/* ===================================================
                    CARD
=================================================== */

.card{

    padding:2rem;

    background:var(--white);

    border-radius:var(--radius-md);

    box-shadow:var(--shadow-sm);

}

/* ===================================================
                    UTILITIES
=================================================== */

.hidden{
    display:none;
}

.w-full{
    width:100%;
}

.rounded{
    border-radius:var(--radius-md);
}

.shadow{
    box-shadow:var(--shadow-md);
}

.bg-primary{
    background:var(--primary);
}

.bg-light{
    background:var(--gray-100);
}

.text-gradient{
    background:var(--gradient);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    color:transparent;
}

/* Title elements with gradient changed to solid #0170F0 */
h1 .text-gradient,
h2 .text-gradient,
h3 .text-gradient,
h4 .text-gradient,
.section-title .text-gradient,
.partners-title .text-gradient,
.newsletter-title .text-gradient {
    color: #0170F0 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #0170F0 !important;
}

/* ===================================================
                    FOOTER
=================================================== */

footer{
    padding:3rem 0;
    border-top:1px solid var(--gray-200);
}

.footer-links{
    gap:2rem;
}

/* ===================================================
                    TABLET
=================================================== */

@media(min-width:768px){

.two-column{

display:grid;

grid-template-columns:1fr 1fr;

gap:4rem;

}

}

/* ===================================================
                    DESKTOP
=================================================== */

@media(min-width:1200px){

.container{

width:min(1200px,92%);

}

}