/* ==========================================================================
   SMARTERP SOLUTIONS - MODERN ENTERPRISE SAAS DESIGN SYSTEM
   Inspired by premium SaaS patterns (Foxia.vn style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Primary Color Palette */
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-light: #6366f1;
    --color-secondary: #06b6d4;
    --color-accent: #10b981;
    
    /* Neutral & Backgrounds — warm-shifted */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #f9f7f3;
    --bg-cream: #f5f2eb;
    --bg-white: #ffffff;
    
    /* Text Colors */
    --text-primary: #0e1118;
    --text-secondary: #4b5366;
    --text-muted: #697080;
    --text-light: #f8fafc;
    
    /* Borders & Shadows */
    --border-color: rgba(11, 15, 26, 0.1);
    --border-dark: #334155;
    --shadow-sm: 0 2px 8px -2px rgba(11, 15, 26, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.1), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -16px rgba(79, 70, 229, 0.18);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-brand-hover: 0 20px 50px -16px rgba(79, 70, 229, 0.28);

    /* Radius & Transitions */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.18s ease;

    /* Grid Pattern */
    --grid-pattern: 
        linear-gradient(rgba(14, 17, 24, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 17, 24, 0.032) 1px, transparent 1px);
    --grid-size: 80px 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

section[id], header[id] {
    scroll-margin-top: 90px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation Dropdown Menu (Foxia Style) */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    width: 250px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.2);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.06);
    color: var(--color-primary);
    transform: translateX(4px);
}

.dropdown-item i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Section Header Utility */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    border: 1px solid rgba(79, 70, 229, 0.18);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.32;
    padding-top: 0.08em;
    padding-bottom: 0.08em;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
    border: 1px solid transparent;
    outline: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px -8px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(79, 70, 229, 0.55);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-dark);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header-top {
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 24px;
}

.header-contact span a {
    color: #cbd5e1;
    transition: var(--transition-fast);
}

.header-contact span a:hover {
    color: var(--color-secondary);
}

.header-social {
    display: flex;
    gap: 14px;
}

.header-social a {
    color: #94a3b8;
    transition: var(--transition-fast);
}

.header-social a:hover {
    color: var(--color-secondary);
}

/* Main Nav */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header-main.scrolled {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 16px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.04);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 28px -8px rgba(79, 70, 229, 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-tagline {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-link {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    padding: 8px 4px;
    white-space: nowrap;
    display: inline-block;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-actions .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--bg-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: #ffffff;
    padding: 110px 0 130px;
    overflow: hidden;
}

/* Radial glow */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Grid pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: var(--grid-size);
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.35;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    margin-top: -0.1em;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 26px;
    font-weight: 500;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    border-radius: var(--radius-full);
    padding: 14px 28px;
}

.hero-buttons .btn-primary {
    box-shadow: 0 18px 36px -14px rgba(79, 70, 229, 0.7);
}

.hero-preview {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 26px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.hero-card-title {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-left: 10px;
    font-weight: 500;
}

.hero-modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-module-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-module-box:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.2);
}

.hero-module-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(6, 182, 212, 0.15));
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-module-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hero-module-info p {
    font-size: 0.73rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Floating Badge */
.hero-floating-badge {
    position: absolute;
    bottom: -22px;
    left: -16px;
    background: #ffffff;
    color: var(--text-primary);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.floating-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==========================================================================
   STATS BAR SECTION
   ========================================================================== */
.stats-section {
    background: #ffffff;
    margin-top: -50px;
    position: relative;
    z-index: 20;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px -18px rgba(11, 15, 26, 0.12);
    padding: 44px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 0 16px;
    border-right: 1px solid rgba(11, 15, 26, 0.08);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    display: inline-block;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   SOLUTIONS ECOSYSTEM (INTERACTIVE TABS)
   ========================================================================== */
.solutions-section {
    padding: 112px 0;
    background: var(--bg-cream);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
}

.solutions-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.tab-btn:hover {
    border-color: rgba(79, 70, 229, 0.35);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 28px -8px rgba(79, 70, 229, 0.45);
}

.solutions-tabs-content {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 55px -18px rgba(11, 15, 26, 0.14);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tab-pane {
    display: none;
    padding: 52px;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-info-badge {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    letter-spacing: 0.04em;
}

.tab-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tab-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.tab-feature-list {
    margin-bottom: 32px;
}

.tab-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: transform 0.2s ease;
}

.tab-feature-item:hover {
    transform: translateX(4px);
}

.tab-feature-item i {
    color: var(--color-accent);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.tab-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 48px -16px rgba(11, 15, 26, 0.18);
    background: #f1f5f9;
}

.tab-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-image:hover img {
    transform: scale(1.04);
}

/* ==========================================================================
   WHY CHOOSE US / FEATURES
   ========================================================================== */
.why-section {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 112px 0;
    position: relative;
    overflow: hidden;
}

/* Grid pattern on dark */
.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: var(--grid-size);
    pointer-events: none;
}

.why-section .section-title {
    color: #ffffff;
}

.why-section .section-subtitle {
    color: #94a3b8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.why-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -16px rgba(79, 70, 229, 0.2);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
}

.why-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.why-card p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ==========================================================================
   INDUSTRIES SOLVED
   ========================================================================== */
.industries-section {
    padding: 112px 0;
    background: #ffffff;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.industry-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 22px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.industry-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-brand-hover);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-5px);
}

.industry-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.08));
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    transition: transform 0.25s ease;
}

.industry-card:hover .industry-icon {
    transform: scale(1.1);
}

.industry-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.industry-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS / CUSTOMER SUCCESS
   ========================================================================== */
.testimonials-section {
    padding: 112px 0;
    background: var(--bg-cream);
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 12px 36px -12px rgba(11, 15, 26, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-brand-hover);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 28px;
    position: relative;
    line-height: 1.7;
    padding-left: 20px;
    border-left: 3px solid rgba(79, 70, 229, 0.2);
}

.testimonial-quote::before {
    content: '"';
    font-size: 3.5rem;
    color: var(--color-primary);
    opacity: 0.15;
    position: absolute;
    top: -16px;
    left: -6px;
    font-family: Georgia, serif;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(11, 15, 26, 0.06);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid rgba(79, 70, 229, 0.15);
}

.testimonial-user h5 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-user span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   NEWS & KNOWLEDGE HUB
   ========================================================================== */
.news-section {
    padding: 112px 0;
    background: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-brand-hover);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-5px);
}

.news-thumb {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.news-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.65;
}

.news-readmore {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-readmore:hover {
    gap: 12px;
}

/* ==========================================================================
   DEMO & CONSULTATION CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 112px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: var(--grid-size);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.contact-detail-list {
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    transition: transform 0.2s ease;
}

.contact-detail-item:hover {
    transform: translateX(4px);
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail-text span {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.contact-detail-text strong {
    font-size: 1.05rem;
    color: #ffffff;
}

/* Contact / Demo Form */
.demo-form-card {
    background: #ffffff;
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    padding: 42px;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-form-card h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.demo-form-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 26px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid rgba(11, 15, 26, 0.12);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #080c14;
    color: #94a3b8;
    padding: 72px 0 32px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 52px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-bottom a {
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.3);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--color-accent);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px -6px rgba(79, 70, 229, 0.5);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 900;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   CASE STUDIES & REAL METRICS STYLES
   ========================================================================== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.case-study-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 12px 36px -12px rgba(11, 15, 26, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-brand-hover);
    border-left-color: var(--color-primary-light);
}

.case-study-card:nth-child(2) {
    border-left-color: var(--color-secondary);
}

.case-study-card:nth-child(3) {
    border-left-color: var(--color-accent);
}

.case-study-card:nth-child(4) {
    border-left-color: #f59e0b;
}

.case-study-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.cs-industry {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cs-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.cs-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

.cs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 15, 26, 0.06);
}

.cs-metric-box {
    background: var(--bg-white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(11, 15, 26, 0.06);
    box-shadow: 0 2px 6px -2px rgba(11, 15, 26, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.12);
}

.cs-metric-icon {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.cs-metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cs-metric-lbl {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.cs-highlights {
    border-top: 1px solid rgba(11, 15, 26, 0.06);
    padding-top: 20px;
    margin-top: auto;
}

.cs-highlights h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cs-highlights h4 i {
    color: var(--color-accent);
}

.cs-highlights ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-highlights li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cs-highlights li i {
    color: var(--color-primary);
    font-size: 0.78rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner, .contact-wrapper, .tab-pane.active {
        grid-template-columns: 1fr;
    }

    .why-grid, .industries-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(11, 15, 26, 0.06);
        padding-bottom: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 80px 0 100px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 100;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .testimonials-grid, .news-grid {
        grid-template-columns: 1fr;
    }

    .why-grid, .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .hero {
        padding: 60px 0 80px;
    }

    .solutions-section,
    .why-section,
    .industries-section,
    .testimonials-section,
    .news-section,
    .contact-section {
        padding: 72px 0;
    }

    .header-top {
        display: none;
    }

    .stats-section {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .tab-pane {
        padding: 28px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   UI UPGRADE 2026-10 — Modern polish (append-only overrides)
   - Smooth scroll, focus a11y, hover depth, sticky glass nav
   ============================================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* offset sticky header khi nhảy anchor */
}

::selection {
    background: rgba(79, 70, 229, 0.22);
    color: var(--text-primary);
}

/* Focus rõ ràng cho accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Header sticky dạng kính mờ */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 24px -12px rgba(15, 23, 42, 0.18);
}

/* Nút bấm: chuyển động mượt + nâng khi hover */
.btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    will-change: transform;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(79, 70, 229, 0.45);
}
.btn:active {
    transform: translateY(0);
}

/* Section title: gạch chân gradient tinh tế */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary, #06b6d4));
}

/* Cards: đổ bóng mềm + hover nổi */
.why-card,
.case-study-card,
.testimonial-card,
.news-card,
.industry-card,
.ps-card,
.tab-pane {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.why-card:hover,
.case-study-card:hover,
.testimonial-card:hover,
.news-card:hover,
.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px -18px rgba(15, 23, 42, 0.22);
    border-color: rgba(79, 70, 229, 0.35);
}

/* Icon card: xoay nhẹ khi hover */
.why-card:hover .why-icon,
.industry-card:hover .industry-icon {
    transform: rotate(-6deg) scale(1.06);
    transition: transform 0.28s ease;
}

/* Ảnh card tin tức zoom nhẹ khi hover */
.news-card .news-thumb {
    overflow: hidden;
}
.news-card .news-thumb img {
    transition: transform 0.4s ease;
}
.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

/* Tab phân hệ: trạng thái active nổi bật hơn */
.tab-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.tab-btn:hover {
    transform: translateY(-2px);
}
.tab-btn.active {
    box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.5);
}

/* Form: input focus đẹp hơn */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
    outline: none;
}

/* Back-to-top mượt */
.back-to-top {
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.back-to-top:hover {
    transform: translateY(-3px);
}

/* Scrollbar tinh gọn (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.55);
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Giảm chuyển động cho người dùng nhạy cảm */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
