/* ===================================
   AI Pro Studio - Modern Landing Page
   =================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #1a202c;
    
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;  /* Bỏ padding-top, header sẽ overlap hero */
}

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

/* ===================================
   HEADER
   =================================== */

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

#main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 !important;  /* Chỉ 2px padding so với logo */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Auth Button */
#auth-container-home {
    display: flex;
    align-items: center;
    position: relative;
}

#auth-button-home {
    padding: 8px 20px !important;  /* Giảm padding để nút nhỏ hơn */
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 100px;
    min-height: 38px !important;  /* Giảm chiều cao từ 44px xuống 38px */
    opacity: 0;  /* Ẩn ban đầu */
    visibility: hidden;
}

#auth-button-home img,
#auth-button-home > div {
    margin: 0;
}

#auth-button-home:has(img),
#auth-button-home:has(> div[style*="border-radius: 50%"]) {
    padding: 6px;
    min-width: auto;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#auth-button-home:has(img):hover,
#auth-button-home:has(> div[style*="border-radius: 50%"]):hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.avatar-button {
    padding: 0 !important;
    margin: 0 !important;
    min-width: 38px !important;
    min-height: 38px !important;
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;  /* Bỏ gradient */
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Bỏ ::before */

.avatar-button img {
    width: 38px !important;  /* Full size */
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.avatar-button > div {
    width: 38px !important;  /* Full size */
    height: 38px !important;
    border-radius: 50% !important;
}

.avatar-button:hover {
    transform: scale(1.05);  /* Nhẹ nhàng hơn */
}

#auth-button-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#user-info-home {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

#user-avatar-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#user-initials-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 250px;
    display: none;
    overflow: hidden;
    z-index: 1000;
}

#user-info-home:hover .user-dropdown,
#auth-container-home .user-dropdown.show {
    display: block;
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-dropdown-email {
    font-size: 14px;
    color: var(--text-muted);
}

.user-dropdown-body {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section-new {
    position: relative;
    padding: 80px 0 80px;  /* Thêm padding-top để tránh bị header che */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
}

.hero-content-new {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title-new {
    font-size: 64px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-new {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.hero-cta-new {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-glow {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-trust {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.hero-value-promise {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features-section-new {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-new {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle-new {
    font-size: 20px;
    color: var(--text-secondary);
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card-new {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-primary {
    border: 2px solid var(--primary);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-badge {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.feature-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.feature-list i {
    color: var(--success);
    margin-top: 4px;
}

.feature-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */

.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.download-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 60px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.download-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    color: var(--text-primary);
}

.download-card-disabled {
    opacity: 0.6;
}

.download-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 24px;
}

.download-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-version {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.download-requirements {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-download {
    width: 100%;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    color: white;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.info-item i {
    font-size: 24px;
}

/* ===================================
   PRICING CTA
   =================================== */

.pricing-cta-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.pricing-cta-content {
    text-align: center;
}

.pricing-cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.pricing-cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

#main-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-logo p {
    opacity: 0.7;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .hero-title-new {
        font-size: 40px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .hero-cta-new {
        flex-direction: column;
    }
    
    .features-grid-new {
        grid-template-columns: 1fr;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .download-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        display: none;
    }
}
