/* ============================================================
   GEKO - CSS Design System
   Dark & Light Theme matching reference design
   ============================================================ */

/* ============================
   CSS VARIABLES - THEME SYSTEM
   ============================ */
:root {
    /* Default: Dark Theme - synced with product pages */
    --color-bg: #101010;
    --color-bg-alt: #161616;
    --color-bg-card: #171717;
    --color-bg-card-hover: #202020;
    --color-bg-elevated: #171717;
    
    --color-text: #f4f1e9;
    --color-text-secondary: #cfcac0;
    --color-text-muted: #aaaaaa;
    
    --color-border: #333333;
    --color-border-light: rgba(255, 255, 255, 0.08);
    
    --color-accent: #e9783f;
    --color-accent-light: #f2985f;
    --color-accent-dim: rgba(233, 120, 63, 0.15);
    
    --glass-bg: rgba(16, 16, 16, 0.85);
    --glass-border: rgba(233, 120, 63, 0.08);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    
    --btn-text: #0a0b0e;
    
    /* Shared */
    --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --container-max: 1280px;
    --section-py: clamp(20px, 3vw, 40px);
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Header background color */
    --header-bg: #101010;
    --header-text: #f4f1e9;
}

[data-theme="light"] {
    --color-bg: #f7f6f2;
    --color-bg-alt: #fbfaf7;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #fce8de;
    --color-bg-elevated: #ffffff;
    
    --color-text: #171717;
    --color-text-secondary: #4d4d4d;
    --color-text-muted: #666666;
    
    --color-border: #dedbd3;
    --color-border-light: rgba(23, 23, 23, 0.08);
    
    --color-accent: #e45b2c;
    --color-accent-light: #ef8058;
    --color-accent-dim: rgba(228, 91, 44, 0.15);
    
    --glass-bg: rgba(247, 246, 242, 0.9);
    --nav-bg: rgba(255, 238, 224, 0.94);   /* nền thanh điều hướng: cam nhạt */
    --glass-border: rgba(228, 91, 44, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(228, 91, 44, 0.1);
    --shadow-md: 0 8px 24px rgba(228, 91, 44, 0.15);
    --shadow-lg: 0 16px 48px rgba(228, 91, 44, 0.2);
    
    --btn-text: #ffffff;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    position: relative;
    overflow-x: hidden;
}

/* Simplified Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(228, 91, 44, 0.05) 0%, transparent 50%);
}

/* Simplified Light Theme Background */
[data-theme="light"] body::before {
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(228, 91, 44, 0.12) 0%, transparent 50%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--color-bg-card);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    color: var(--color-text-secondary);
    margin: 0;
    text-wrap: pretty;   /* ưu tiên tránh dòng cuối chỉ còn 1 chữ */
}

/* ============================
   CONTAINER
   ============================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ============================
   SECTIONS - BASE + REVEAL
   ============================ */
section {
    padding: var(--section-py) 0;
    position: relative;
    z-index: 2;
}

.reveal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition);
    background: var(--nav-bg, var(--glass-bg));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: var(--nav-bg, var(--glass-bg));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.5rem 0.875rem;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}

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

.nav-link.active::after {
    width: 60%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 1rem;
    transition: all var(--transition);
    background: transparent;
}

.theme-toggle:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Nav CTA Button */
.btn-nav {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-text);
    border-radius: 4px;
    color: var(--color-text);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-nav:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-bg-elevated);
    z-index: 2000;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.mobile-menu-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-body .nav-link {
    font-size: 1rem;
    padding: 0.75rem 0;
}

@media (max-width: 992px) {
    .nav-links-wrapper {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn-outline {
    border: 1px solid #e45b2c;
    color: #e45b2c;
    background: transparent;
}

.btn-outline:hover {
    border-color: #c04a22;
    background: #e45b2c;
    color: #ffffff;
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--btn-text);
    border: 1px solid var(--color-accent);
}

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

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    padding: clamp(120px, 15vw, 180px) 0 var(--section-py);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
    position: relative;
    overflow: hidden;
}

/* Simplified Hero Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(228, 91, 44, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

/* Light Theme Hero */
[data-theme="light"] .hero-section::before {
    background: radial-gradient(ellipse at center, rgba(228, 91, 44, 0.15) 0%, transparent 70%);
}

/* Simplified Spiral */
.galaxy-spiral {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(228, 91, 44, 0.03) 60deg,
        transparent 120deg,
        rgba(232, 137, 77, 0.02) 180deg,
        transparent 240deg,
        rgba(184, 78, 24, 0.02) 300deg,
        transparent 360deg
    );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;   /* cột chữ rộng hơn để dòng slogan nằm gọn trên 1 hàng */
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    container-type: inline-size;   /* để H1 tính cỡ chữ theo bề rộng cột (đơn vị cqi) */
}

.hero-title {
    font-family: 'Bungee', var(--font-heading);
    font-size: clamp(2rem, 4.6vw, 3.6rem);   /* dự phòng cho trình duyệt cũ */
    font-size: clamp(2rem, 11.5cqi, 4.5rem); /* co theo bề rộng cột chữ -> mỗi dòng luôn vừa khít */
    font-weight: 400;                        /* Bungee Regular */
    font-style: normal;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: 0;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

/* Chỉ dòng đầu ("THỜI GIAN") dùng gradient để nhấn mạnh chủ đề; dòng dưới giữ màu chữ thường */
.hero-title-line:first-child {
    /* Gradient theo bảng màu (Color Palette 2D): cam nhạt -> cam -> cam đỏ -> nâu */
    --title-gradient: linear-gradient(100deg, #FFA35C 0%, #FF7B35 30%, #E4572E 65%, #3F2A24 100%);
    width: fit-content;          /* gradient chạy đúng theo chiều rộng của chữ */
    max-width: 100%;
    /* chừa chỗ để dấu tiếng Việt và nét chữ nghiêng không bị cắt bởi background-clip */
    padding: 0.12em 0.12em 0.05em 0;
    margin: -0.12em 0 -0.05em;
    background-image: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Nền tối: bỏ màu nâu ở cuối (khó nhìn trên nền đen), dùng dải kem -> cam đỏ */
[data-theme="dark"] .hero-title-line:first-child {
    --title-gradient: linear-gradient(100deg, #FFE8C8 0%, #FFD29A 22%, #FFA35C 48%, #FF7B35 74%, #E4572E 100%);
}

.hero-slogan {
    font-size: clamp(1rem, 1.7vw, 1.4rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-accent);
    margin-top: -0.5rem;
    text-wrap: balance;   /* khi phải xuống dòng, chia đều hai dòng thay vì rớt 1 chữ lẻ */
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 100%;      /* dùng hết bề rộng cột chữ để đoạn mô tả ít xuống dòng hơn */
    text-wrap: pretty;    /* hạn chế dòng cuối chỉ còn 1 chữ */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

/* Ảnh hero: không hiệu ứng, khung tự khớp theo kích thước thật của ảnh (không cắt ảnh) */
.hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    align-self: center;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Máy tính: slogan luôn 1 hàng, ảnh dịch sang phải một chút để nhường chỗ */
@media (min-width: 993px) {
    .hero-slogan {
        white-space: nowrap;
    }
    .hero-image {
        margin-right: -2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        text-align: center;
        align-items: center;
    }
    .hero-title-line:first-child {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-description {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    /* Adjust galaxy for mobile */
    .hero-section::before {
        width: 400px;
        height: 400px;
        right: -30%;
    }
    
    .hero-section::after {
        width: 300px;
        height: 300px;
        right: -25%;
    }
    
    .galaxy-spiral {
        width: 250px;
        height: 250px;
        right: -20%;
    }
}

/* ============================
   QUESTION ROW SECTION
   ============================ */
.question-row-section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
}

.question-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.question-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
    color: var(--color-text);
    max-width: 600px;
}

.mini-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mini-product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

/* Simplified Card Effect */
.mini-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(228, 91, 44, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: opacity var(--transition);
}

[data-theme="light"] .mini-product-card::before {
    background: radial-gradient(circle at 50% 50%, rgba(228, 91, 44, 0.02) 0%, transparent 60%);
}

.mini-product-card:hover::before {
    opacity: 1;
}

.mini-product-card:hover {
    border-color: var(--color-accent-dim);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.mini-product-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.mini-product-info {
    padding: 1rem 1.25rem 1.25rem;
}

.mini-product-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.mini-product-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mini-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   SECRET BAG SECTION
   ============================ */
.secret-bag-section {
    padding: var(--section-py) 0;
    background: var(--color-bg-alt);
    transition: background-color var(--transition-slow);
}

.secret-bag-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.secret-bag-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.secret-bag-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: 3rem;
}

/* Solar System Layout */
.solar-system-layout {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    /* Glassmorphism */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

[data-theme="light"] .solar-system-layout {
    background: linear-gradient(135deg, rgba(228, 91, 44, 0.05), rgba(244, 199, 165, 0.02));
    border: 1px solid rgba(232, 216, 204, 0.4);
}

/* Orbits */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(228, 91, 44, 0.3); /* Soft orange stroke */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

[data-theme="light"] .orbit {
    border-color: rgba(228, 91, 44, 0.25);
}

.orbit-1 { width: 300px; height: 180px; }
.orbit-2 { width: 500px; height: 300px; }
.orbit-3 { width: 700px; height: 420px; }

/* Center Node */
.center-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #ef8058 50%, #e45b2c);
    box-shadow: 0 0 30px rgba(228, 91, 44, 0.4), inset 0 0 10px rgba(43, 33, 28, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

[data-theme="light"] .center-node {
    background: radial-gradient(circle at 30% 30%, #fff, #ef8058 50%, #e45b2c);
    box-shadow: 0 0 20px rgba(228, 91, 44, 0.3), inset 0 0 10px rgba(43, 33, 28, 0.1);
}

/* Planet Cards */
.planet-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.planet-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
    background: var(--glass-bg);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(5px);
}

.planet-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

[data-theme="light"] .planet-image-wrapper {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.planet-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.planet-card:hover .planet-image-wrapper img {
    transform: scale(1.1);
}

/* Positioning handled by flexbox - no manual positioning needed */

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

@media (max-width: 768px) {
    .solar-system-layout {
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .planet-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .planet-label {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ============================
   BỘ SƯU TẬP / PRODUCT STORIES
   ============================ */
.product-stories-section {
    padding: var(--section-py) 0;
    background: var(--color-bg-alt);
    transition: background-color var(--transition-slow);
}

.section-title-script {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

/* Simplified Product Card Effect */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(228, 91, 44, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: opacity var(--transition);
}

[data-theme="light"] .product-card::before {
    background: radial-gradient(circle at 50% 50%, rgba(228, 91, 44, 0.02) 0%, transparent 60%);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-dim);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.product-description {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   SOCIAL PROOF SECTION
   ============================ */
.social-proof-section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
}

.social-proof-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.social-proof-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.social-proof-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

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

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

.testimonial-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.testimonial-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform var(--transition-slow);
}

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

.testimonial-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================
   LUXURY / DISCOVER SECTION
   ============================ */
.luxury-section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
}

.luxury-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.luxury-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.luxury-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.luxury-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.luxury-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Simplified Luxury Gallery Effect */
.luxury-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(228, 91, 44, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    transition: opacity var(--transition);
}

[data-theme="light"] .luxury-gallery-item::before {
    background: radial-gradient(circle at 50% 50%, rgba(228, 91, 44, 0.02) 0%, transparent 60%);
}

.luxury-gallery-item:hover::before {
    opacity: 1;
}

.luxury-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform var(--transition-slow);
    position: relative;
    z-index: 2;
}

.luxury-gallery-item:hover img {
    transform: scale(1.05);
}

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

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.loop-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.loop-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 60px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.step-question {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.step-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.core-message {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.core-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.core-tagline {
    font-size: 1rem;
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ============================
   PRODUCTS SECTION
   ============================ */
.products-section {
    padding: var(--section-py) 0;
    background: var(--color-bg-alt);
    transition: background-color var(--transition-slow);
}

.gekco-time-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.gekco-time-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.gekco-time-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlight-item {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.highlight-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.gekco-time-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.system-products-section {
    margin-bottom: 3rem;
}

.system-products-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.system-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.system-product-item {
    display: block;
    position: relative;
    z-index: 5;

    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;

    transition: all var(--transition);

    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.system-product-item * {
    pointer-events: auto;
}

.system-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.system-product-item:hover {
    border-color: var(--color-accent-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.system-product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.system-product-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.future-development-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.future-development-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.future-development-content {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.products-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ============================
   EVENTS SECTION
   ============================ */
.events-section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
}

.workshop-section,
.fpro-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Ảnh Workshop & F-ProSelling: khung cùng tỉ lệ với ảnh workshop_for_web (5663 x 2452 ≈ 2.31 : 1) */
.event-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5663 / 2452;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.workshop-title,
.fpro-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.workshop-description,
.fpro-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.experience-section,
.awareness-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.experience-title,
.awareness-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.experience-content,
.awareness-content {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.testimonials-section {
    margin-bottom: 2rem;
}

.testimonials-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

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

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: var(--color-accent-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-img {
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.follow-up-section,
.future-events-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.follow-up-title,
.future-events-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.follow-up-content,
.future-events-content {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================
   IMPACT SECTION
   ============================ */
.impact-section {
    padding: var(--section-py) 0;
    background: var(--color-bg-alt);
    transition: background-color var(--transition-slow);
}

.impact-frameworks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
}

.impact-framework {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.framework-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 60px;
}

.framework-content {
    flex: 1;
}

.framework-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.framework-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.impact-methods-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.impact-methods-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.impact-methods-list {
    list-style: none;
    padding: 0;
}

.impact-method-item {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.impact-method-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact-section {
    padding: var(--section-py) 0;
    background: var(--color-bg);
    transition: background-color var(--transition-slow);
}

.contact-cta-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.future-development-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.future-development-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.future-development-content {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-info-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    font-size: 1rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--color-accent);
}

/* ============================
   FOOTER
   ============================ */
.footer-section {
    padding: 3rem 0 1.5rem;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.footer-navigation {
    flex: 1;
    text-align: center;
}

.footer-nav {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.footer-nav-link {
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.footer-nav-link:hover {
    color: var(--color-accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-item {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-navigation {
        text-align: left;
    }
    .gekco-time-section {
        grid-template-columns: 1fr;
    }
    .system-products-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .loop-step {
        flex-direction: column;
    }
    .step-number {
        min-width: auto;
    }
    .impact-framework {
        flex-direction: column;
    }
    .framework-number {
        min-width: auto;
    }
    .contact-cta-section {
        flex-direction: column;
    }
}

/* ============================
   ACCESSIBILITY
   ============================ */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================
   RESPONSIVE FINE-TUNING
   ============================ */
@media (max-width: 375px) {
    html { font-size: 14px; }
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
    .navbar, .theme-toggle, .mobile-menu-toggle, #sparkleCanvas {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    section {
        page-break-inside: avoid;
    }
}
/* ============================
   LANGUAGE TOGGLE (VI / EN)
   ============================ */
.lang-toggle {
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-toggle:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.mobile-menu-body .lang-toggle {
    align-self: flex-start;
    margin-top: 0.5rem;
}

@media print {
    .lang-toggle {
        display: none !important;
    }
}
/* ============================
   BACKGROUND PATTERN — tam giác né khối chữ
   Các tam giác được js/components.js (initBgTriangles) rải lên toàn trang, tránh chữ, ảnh, nút và thẻ,
   cuộn cùng trang. Muốn đậm/nhạt hơn: chỉnh --pattern-opacity. Muốn tắt: xóa khối này (và initBgTriangles).
   ============================ */
:root {
    --pattern-opacity: 1;      /* nền tối: màu tam giác đã được làm sẫm trong bg-triangles.js */
}

[data-theme="light"] {
    --pattern-opacity: 1;
}

#bgTriangles {
    position: absolute;        /* dài bằng cả trang và cuộn theo trang */
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: var(--pattern-opacity);
}

#bgTriangles svg {
    display: block;
}

.hero-section,
.about-section,
.products-section,
.events-section,
.impact-section,
.contact-section {
    background: transparent;
}

/* chân trang nằm trên hoa văn */
.footer-section {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    [data-theme="light"] { --pattern-opacity: 0.7; }
}

@media print {
    #bgTriangles { display: none; }
}
/* Từ tiếng Anh đầu mỗi dòng highlight (Understand, Choose, Act, Reflect) */
.highlight-item .highlight-en {
    font-weight: 700;
    color: #000000;
}

[data-theme="dark"] .highlight-item .highlight-en {
    color: #ffffff;
}