/* ==========================================
   DESIGN SYSTEM - HIỆU QUẢ DỰ ÁN
   ========================================== */

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

:root {
    --primary: #0F172A;        /* Slate 900 - Navy siêu đậm */
    --primary-light: #1E293B;  /* Slate 800 - Navy vừa */
    --primary-brand: #1E4ED8;  /* Blue 700 - Xanh dương tài chính */
    --secondary: #FFFFFF;
    --accent: #FF6B35;         /* Cam hổ phách - Điểm nhấn CTA */
    --accent-hover: #E0531F;
    --bg-light: #F8FAFC;       /* Slate 50 - Nền sáng */
    --bg-dark: #090D16;        /* Nền tối sâu */
    --bg-card: #FFFFFF;
    --text-main: #1E293B;      /* Chữ chính */
    --text-muted: #64748B;    /* Chữ phụ nhạt */
    --text-light: #F8FAFC;
    --border-color: #E2E8F0;   /* Viền nhẹ */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --container-width: 1300px;
    --font-family: 'Be Vietnam Pro', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.flex-column { flex-direction: column; }

/* Sections */
.section {
    padding: 96px 0;
    position: relative;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-bg-white {
    background-color: var(--secondary);
}

.section-bg-dark {
    background-color: var(--primary);
    color: var(--text-light);
}

.section-title-wrap {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-brand);
    margin-bottom: 12px;
    display: inline-block;
}

.section-bg-dark .section-subtitle {
    color: var(--accent);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.section-bg-dark .section-title {
    color: var(--secondary);
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-top: 16px;
}

.section-bg-dark .section-desc {
    color: #94A3B8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background-color: var(--primary-brand);
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(30, 78, 216, 0.3);
}

.btn-secondary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 78, 216, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--secondary);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary);
    color: #94A3B8;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-socials {
    display: flex;
    gap: 16px;
}

.top-socials a:hover {
    color: var(--accent);
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

header.scrolled .nav-menu a {
    color: #E2E8F0;
}

header.scrolled .nav-menu a:hover,
header.scrolled .nav-menu a.active {
    color: var(--accent);
}

header.scrolled .logo-text {
    color: var(--secondary);
}

header.scrolled .logo-sub {
    color: #94A3B8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 16px;
}

.nav-menu a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-light);
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-brand);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 4px;
    transition: var(--transition);
}

header.scrolled .hamburger span {
    background-color: var(--secondary);
}

/* Hero Section */
.hero {
    padding: 120px 0 96px 0;
    background: radial-gradient(circle at 10% 20%, rgba(30, 78, 216, 0.05) 0%, rgba(255, 255, 255, 0) 90%), var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 78, 216, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

.hero-tagline {
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary-brand);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.hero-image-wrap {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.hero-image-wrap:hover .hero-image {
    transform: translateY(-5px);
}

.hero-card-floating {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero-card-1 {
    bottom: 30px;
    left: -40px;
}

.hero-card-2 {
    top: 40px;
    right: -20px;
    animation-delay: 2s;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(30, 78, 216, 0.1);
    color: var(--primary-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hero-card-2 .hero-card-icon {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
}

.hero-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.hero-card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(30, 78, 216, 0.2);
}

.product-card.featured {
    border-color: var(--primary-brand);
    position: relative;
}

.product-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--primary-brand);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-img-wrap {
    height: 260px;
    overflow: hidden;
    position: relative;
    background-color: var(--primary);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-price-box {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price-label {
    font-size: 14px;
    color: var(--text-muted);
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.product-features-list {
    list-style: none;
    margin-bottom: 36px;
    flex-grow: 1;
}

.product-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text-main);
}

.product-features-list li svg {
    margin-top: 4px;
    flex-shrink: 0;
    color: #10B981; /* Green */
}

/* Core Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 78, 216, 0.15);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(30, 78, 216, 0.08);
    color: var(--primary-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-brand);
    color: var(--secondary);
    transform: rotateY(180deg);
    transition: transform 0.6s;
}

.benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.benefit-desc {
    font-size: 15px;
    color: var(--text-muted);
}

/* Video Demo Section */
.video-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--primary-light);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-wrap:hover .video-thumbnail {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.6);
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.video-wrap:hover .play-btn {
    background-color: var(--secondary);
    color: var(--accent);
    transform: scale(1.1);
}

.video-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.video-sub {
    font-size: 15px;
    color: #CBD5E1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Modal Video */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 24px;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    background-color: #000;
    transform: scale(0.9);
    transition: var(--transition);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: var(--secondary);
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
}

.video-modal-close:hover {
    color: var(--accent);
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Workflow Section */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.workflow-steps::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-num-wrap {
    display: inline-flex;
    position: relative;
    margin-bottom: 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 3px solid var(--border-color);
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step-card:hover .step-number {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--secondary);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.step-icon-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-brand);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--secondary);
}

.step-card:hover .step-icon-badge {
    background-color: var(--primary);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-slider-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 10px;
}

.testimonial-card {
    background-color: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 120px;
    font-family: serif;
    color: rgba(30, 78, 216, 0.05);
    line-height: 1;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: #FBBF24; /* Yellow */
    font-size: 18px;
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 32px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-brand);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.author-title {
    font-size: 13px;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-brand);
    color: var(--secondary);
    border-color: var(--primary-brand);
    box-shadow: var(--shadow-md);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-brand);
    width: 24px;
    border-radius: 10px;
}

/* Why Choose Us Section */
.why-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.why-features {
    display: grid;
    gap: 24px;
}

.why-feature-item {
    display: flex;
    gap: 20px;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.why-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.why-feature-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.why-image-wrap {
    position: relative;
}

.why-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.why-stats-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 24px;
}

.why-stat-item {
    text-align: center;
}

.why-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.why-stat-lbl {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Call to Action (CTA) Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(30, 78, 216, 0.15) 0%, transparent 60%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: #0B0F19;
    color: #94A3B8;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand .logo-text {
    color: var(--secondary);
}

.footer-brand .logo-sub {
    color: #64748B;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-title {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.footer-contact-item svg {
    margin-top: 4px;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-contact-item strong {
    color: var(--secondary);
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-form {
    display: flex;
    margin-top: 8px;
}

.newsletter-input {
    background-color: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    flex-grow: 1;
}

.newsletter-btn {
    background-color: var(--accent);
    color: var(--secondary);
    padding: 0 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--accent-hover);
}

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrap {
        max-width: 600px;
        margin: 0 auto;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
        margin: 0 auto;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .workflow-steps::after {
        display: none;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .why-image-wrap {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1150px) {
    .top-bar {
        display: none;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto; /* Allow vertical scroll for small mobile screens/landscape mode */
        gap: 24px; /* More spaced out links on mobile drawer */
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu a {
        color: var(--secondary);
        font-size: 18px;
    }
    /* Highlight active link in the mobile drawer */
    .nav-menu a.active,
    .nav-menu a:hover {
        color: var(--accent) !important;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .header-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile safe area container padding */
    .container {
        padding: 0 16px;
    }

    /* Mobile global typography */
    .section-title {
        font-size: 26px;
    }
    .section-desc {
        font-size: 15px;
    }
    .section-title-wrap {
        margin-bottom: 36px;
    }

    /* Logo shrink on mobile viewports */
    .logo img {
        height: 36px;
    }
    .logo-text {
        font-size: 16px;
    }
    .logo-sub {
        font-size: 9px;
    }

    /* Hero section optimizations */
    .hero-title {
        font-size: 28px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    /* Hide decorative absolute cards on mobile to prevent horizontal viewport overflow */
    .hero-card-floating {
        display: none !important;
    }

    /* Product cards spacing and padding */
    .product-info {
        padding: 24px 20px;
    }
    .product-name {
        font-size: 20px;
    }
    .product-price {
        font-size: 22px;
    }

    /* Stack CTA buttons full width */
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-card {
        padding: 30px;
    }
    .workflow-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .step-card {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 20px;
    }
    .step-num-wrap {
        margin-bottom: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .section {
        padding: 64px 0;
    }

    /* Form mobile optimizations (overriding inline styles) */
    form[style*="padding: 40px"],
    div[style*="padding: 40px"] {
        padding: 24px 16px !important;
    }
    
    .grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        margin-bottom: 16px !important;
    }

    /* Form input fields touch size and auto-zoom prevention on iOS */
    input, select, textarea {
        font-size: 13px !important;
    }
}
