/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    /* Màu chủ đạo: Xanh biển dịu mắt */
    --primary: #8ECAE6; 
    --primary-glow: rgba(142, 202, 230, 0.4);

    /* Màu nhấn: Vàng nắng hoặc Cam đất nhẹ */
    --secondary: #F4A261; 

    /* NỀN CHÍNH: Màu kem ấm */
    --bg-base: #FEF1E1; 

    /* Nền của các khối (Card, FAQ): Màu trắng sữa nổi bật trên nền kem */
    --bg-surface: #FFFFFF; 
    --bg-surface-hover: #FFF9F2;

    /* Viền: Tạo độ sâu tinh tế */
    --border-subtle: rgba(184, 150, 110, 0.2);
    --border-highlight: rgba(184, 150, 110, 0.4);

    /* CHỮ: Màu tối tối ưu độ tương phản cao trên nền sáng */
    --text-main: #433422;  /* Nâu đen ấm */
    --text-muted: #7D6B58; /* Nâu xám nhẹ */
}

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

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    /* Chèn ảnh và lặp lại pattern nền phủ kín trang */
    background-image: url('pattern.png');
    background-repeat: repeat;
    background-size: 196px;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(250, 204, 21, 0.04) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Baloo 2', cursive;
}

/* Custom Thanh cuộn (Scrollbar) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }


/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    background: rgba(254, 241, 225, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.1);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center; 
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-brand:hover .logo-img {
    transform: scale(1.1);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

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


/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('SplashArt.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    box-shadow: inset 0 -100px 100px -100px var(--bg-base);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(254, 241, 225, 0.02) 40%,  
        rgba(254, 241, 225, 0.2) 60%,   
        rgba(254, 241, 225, 0.5) 75%,   
        rgba(254, 241, 225, 0.8) 90%,   
        var(--bg-base) 100%             
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding-top: 60px;
}

.hero-logo-container {
    margin-bottom: 50px !important;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    justify-content: center;
}

.hero-logo {
    max-width: 700px; 
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #433422;
    margin: 0 auto 50px;
    font-weight: 600;
    max-width: 700px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.btn-steam {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #219EBC; 
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
    box-shadow: 0 8px 25px var(--primary-glow);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px) scale(1);
}

.btn-steam i {
    font-size: 2.5rem;
    line-height: 1;
}

.btn-steam:hover {    
    transform: translateY(0px) scale(1.15) !important; 
    background-color: #0077B6; 
    color: #FFFFFF !important; 
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.4) !important;
    border-color: transparent;
    z-index: 100;
}


/* ==========================================================================
   4. LAYOUT CONTAINER & FEATURES GRID
   ========================================================================== */
.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 40px 24px 40px; 
    position: relative;
    z-index: 1;
}

h2.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: -10px;
    color: var(--text-main);
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-highlight);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card:hover::after { opacity: 1; }

.icon-wrapper {
    width: 60px; height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.card:hover .icon-wrapper {
    background: var(--secondary);
    color: var(--bg-base);
    transform: scale(1.1) rotate(-5deg);
}

.card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.3;
}

.card p { 
    color: var(--text-muted); 
    font-size: 1rem; 
}


/* ==========================================================================
   5. CHARACTER PREVIEW SECTION (MALECHAR.GIF)
   ========================================================================== */
.character-preview-section {
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.male-char-gif {
    display: block;
    height: auto;
    border-radius: 10px;
    border: none;    /* Đã loại bỏ hoàn toàn viền màu cam theo yêu cầu */
    width: 375px;   /* Kích thước PC mới tăng lên gấp 2.5 lần (150px * 2.5) */
    max-width: 100%; 
}


/* ==========================================================================
   6. VIDEO TRAILER & GALLERY ENGINE
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

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

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16/9;
    cursor: pointer;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.img-wrapper:hover::before { opacity: 1; }
.img-wrapper:hover img { transform: scale(1.08); }

.img-caption {
    position: absolute;
    bottom: 15px; left: 50%;
    transform: translateX(-50%) translateY(15px);
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 90%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.img-wrapper:hover .img-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   7. VISUAL INVESTOR ROADMAP PRESENTATION
   ========================================================================== */
.roadmap-meta {
    text-align: center;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.roadmap-subtitle {
    font-family: 'Baloo 2', cursive;
    color: var(--text-main);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

/* Khối tóm tắt tài nguyên tinh gọn */
.bullet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.summary-pill {
    background: rgba(142, 202, 230, 0.15);
    border: 1px dashed var(--primary);
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.summary-pill i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Khối trình diễn so sánh ảnh Prototype trực quan */
.visual-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0 50px;
}

.visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(67, 52, 34, 0.03);
    text-align: center;
}

.visual-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    display: block;
    margin-bottom: 12px;
}

.visual-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.visual-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dòng thời gian thu gọn (Compact Timeline) */
.timeline-compact {
    position: relative;
    max-width: 850px;
    margin: 0 auto 50px;
    padding-left: 30px;
}

.timeline-compact::before {
    content: '';
    position: absolute;
    left: 5px; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
}

.step {
    position: relative;
    margin-bottom: 35px;
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: -30px; top: 6px;
    width: 13px; height: 13px;
    background: var(--bg-base);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    z-index: 2;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.step-date {
    background: var(--secondary);
    color: white;
    font-size: 0.8rem;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
}

.step-title {
    font-size: 1.3rem;
    color: var(--text-main);
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    list-style-type: square;
    padding-left: 20px;
}

.step-desc li {
    margin-bottom: 4px;
}

/* Khối lưu ý thuyết phục nhà đầu tư (Insight Card) */
.investor-note {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    margin-top: 40px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(67, 52, 34, 0.02);
}

.investor-note i {
    font-size: 1.6rem;
    color: var(--secondary);
    padding-top: 2px;
}

.investor-note p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}


/* ==========================================================================
   8. LIGHTBOX MODAL (IMAGE VIEW)
   ========================================================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--secondary);
    padding: 20px 0;
    font-size: 1.8rem;
    font-weight: 700;
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal {
    position: absolute;
    top: 20px; right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: #FACC15;
    transform: scale(1.1);
}


/* ==========================================================================
   9. ACCORDION FAQ SYSTEM
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-highlight);
    background: var(--bg-surface-hover);
}

.faq-item summary {
    padding: 16px 16px 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.faq-item summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 12px 12px 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-top-color: var(--border-subtle);
}

.gif-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: -50px;
}

.centered-gif {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   10. FOOTER SECTION
   ========================================================================== */
footer {
    background: var(--primary-glow);
    padding: 20px 24px 40px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.social-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-item {
    width: 75px; height: 75px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 2.2rem; 
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-item:hover {
    color: var(--text-main);
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.social-item.steam:hover { background: #171a21; border-color: #66c0f4; color: #66c0f4; }
.social-item.discord:hover { background: #5865F2; border-color: #5865F2; color: #fff; }
.social-item.twitter:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.social-item.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.footer-copyright {
    margin-top: 8px; 
    font-size: 0.95rem; 
    color: var(--text-muted);
}


/* ==========================================================================
   11. RESPONSIVE DESIGN UTILITIES (MOBILE BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Navbar Mobile Layout */
    .navbar { padding: 10px 20px; flex-direction: column; gap: 10px; }
    .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-links a { font-size: 0.9rem; }

    /* Titles Mobile Scale */
    h2.section-title { 
        font-size: 1.8rem;
        line-height: 1.2;
        margin-top: 60px !important; 
        margin-bottom: 10px !important; 
    }

    .section-subtitle { 
        font-size: 0.9rem; 
        margin-bottom: 30px; 
        line-height: 1.4;
    }

    /* Hero CTA Button Resize */
    .btn-steam {
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
        line-height: 1.1; 
        gap: 8px;
    }
    .btn-steam i { font-size: 1.8rem; }
    .hero-logo { max-width: 420px; }

    /* Character Preview Mobile Rescale */
    .character-preview-section {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .male-char-gif {
        width: 250px; /* Kích thước Mobile tối ưu hóa gấp 2.5 lần (100px * 2.5) */
    }

    /* 2-Column Mobile Layout for Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card {
        padding: 20px 15px;
        gap: 8px;
        border-radius: 16px;
        align-items: center;
        text-align: center;
    }

    .icon-wrapper {
        width: 45px; height: 45px;
        font-size: 1.2rem;
    }

    .card h3 { font-size: 1rem; line-height: 1.2; }
    .card p { 
        font-size: 0.8rem; 
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Gallery & Roadmap Layout Fallbacks */
    .gallery-grid { grid-template-columns: 1fr; }
    .visual-comparison { grid-template-columns: 1fr; gap: 16px; }
    
    .timeline-compact { padding-left: 20px; }
    .timeline-compact::before { left: 0; }
    .step::before { left: -25px; }

    /* Footer Navigation Icons Control */
    .social-item {
        width: 60px !important; 
        height: 60px !important;
        font-size: 2rem !important; 
    }
    
    /* Lightbox Modal Elements */
    .modal-content { width: 100%; }
    .close-modal { top: 10px; right: 20px; font-size: 40px; }
}


/* ==========================================================================
   12. CORE ANIMATION ENGINES
   ========================================================================== */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px) scale(1); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}