/* ============================================================
   TRONG TẦM TAY — Design System
   Version: 3.0 — Forest Emerald
   ============================================================ */

/* ======================== VARIABLES ======================== */
:root {
    /* Backgrounds — forest dark */
    --bg-deepest: #0a1410;
    --bg-primary: #0f1d17;
    --bg-card: #0e1c16;
    --bg-card-hover: #14271f;
    --bg-bubble-narrator: #0f2620;
    --bg-bubble-user: #1a3d2e;

    /* Brand accents */
    --accent-primary: #10b981;       /* emerald — brand mẹ */
    --accent-bds: #3b82f6;           /* royal blue — bất động sản */
    --accent-ck: #a855f7;            /* tím giá trần — chứng khoán */
    --accent-tc: #fef3c7;            /* cream — placeholder cho future */

    /* Forest aurora layers */
    --emerald-deep: #065f46;
    --moss: #4d7c0f;
    --cream: #fef3c7;

    --glow-primary: rgba(16, 185, 129, 0.25);
    --glow-bds: rgba(59, 130, 246, 0.3);
    --glow-ck: rgba(168, 85, 247, 0.3);
    --glow-tc: rgba(254, 243, 199, 0.25);
    --glow-cream: rgba(254, 243, 199, 0.3);

    /* Text */
    --text-primary: #f0fdf4;
    --text-secondary: #a7c4b8;
    --text-muted: #5e8a7a;
    --text-faint: #3a5c4e;

    /* Borders */
    --border-subtle: rgba(16, 185, 129, 0.12);
    --border-card: rgba(16, 185, 129, 0.08);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-strong: rgba(16, 185, 129, 0.22);

    /* Fonts */
    --font-main: 'Be Vietnam Pro', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ======================== RESET ======================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deepest);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img { max-width: 100%; display: block; }

/* ======================== ACCESSIBILITY ======================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ======================== BACKGROUND FX ======================== */
/*
 * Aurora — 4 lớp radial gradient tạo "rừng già" emerald + moss
 * Đây là background layer 0
 */
.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        /* Lớp 1: emerald sâu góc trên trái — cây cao */
        radial-gradient(ellipse 80% 50% at 15% 0%, rgba(6, 95, 70, 0.35) 0%, transparent 55%),
        /* Lớp 2: moss ấm bên phải — ánh sáng xuyên tán lá */
        radial-gradient(ellipse 60% 45% at 85% 25%, rgba(77, 124, 15, 0.18) 0%, transparent 55%),
        /* Lớp 3: emerald nhẹ ở đáy — sương đáy rừng */
        radial-gradient(ellipse 75% 40% at 50% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
        /* Lớp 4: shadow ấm trung tâm — chiều sâu */
        radial-gradient(ellipse 90% 60% at 50% 50%, transparent 40%, rgba(10, 20, 16, 0.4) 100%);
    animation: auroraShift 28s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(1.5%, -0.8%) scale(1.03); }
    100% { transform: translate(-0.8%, 0.5%) scale(0.99); }
}

/* Grain — SVG noise inline, blend overlay */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Grid mờ — chỉ gợi ý, không hiển thị rõ */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 30%, transparent 80%);
}

/*
 * Legacy classes (.bg-orb, .bg-orb-1, .bg-orb-2) đã được thay bằng .aurora
 * Giữ rỗng phòng trường hợp markup cũ còn reference — không hiển thị
 */
.bg-orb, .bg-orb-1, .bg-orb-2 { display: none; }

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .aurora { animation: none; }
}

/* ======================== LAYOUT ======================== */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(10, 20, 16, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: var(--bg-deepest);
    box-shadow: 0 0 16px var(--glow-primary);
}
/* Logo image — thay thế logo-mark khi dùng ảnh */
.logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.35));
    transition: filter 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.5));
}

.logo--small .logo-img {
    height: 28px;
}

.logo span { color: var(--accent-primary); }
.logo--small { font-size: 1rem; }
.logo--small .logo-mark { width: 28px; height: 28px; font-size: 13px; }

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--text-primary); }

.nav-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 20px var(--glow-primary);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 16, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* ======================== HERO ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-pretitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
    font-size: 0.8rem;
    opacity: 0;
    animation: fadeUp 0.8s 1.2s forwards;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-faint);
    border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg);
    animation: bounceDown 2s infinite;
}

/* ======================== STORY ======================== */
.story {
    padding: 80px 0 120px;
}

.chapter {
    margin-bottom: 120px;
}

.chapter:last-child { margin-bottom: 0; }

.chapter-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 4px;
}

.chapter-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: 80px 0;
}

/* Bubble group */
.bubble-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bubble {
    max-width: 85%;
    padding: 20px 24px;
    border-radius: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

.bubble--narrator {
    align-self: flex-start;
    background: var(--bg-bubble-narrator);
    border: 1px solid var(--border-card);
    border-bottom-left-radius: 6px;
}

.bubble--narrator strong { color: var(--text-primary); }
.bubble--narrator em { color: var(--accent-primary); font-style: italic; }

.bubble--emphasis {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 6px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
}

.bubble--emphasis em { color: var(--accent-primary); font-style: italic; }

.bubble--pain {
    align-self: flex-end;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom-right-radius: 6px;
    color: #f0a0a0;
}

.bubble--pain strong { color: #fca5a5; }

.bubble--resolve {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom-left-radius: 6px;
}

.bubble--resolve strong { color: var(--accent-primary); }

.bubble--quiet {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ======================== SUMMARY (Golden passage) ======================== */
.summary {
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.summary-heading {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.summary-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.summary-text strong { color: var(--text-primary); }

/* ======================== PILLARS ======================== */
.pillars {
    padding: 80px 0 120px;
}

.pillars-header {
    text-align: center;
    margin-bottom: 48px;
}

.pillars-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.pillars-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pillar-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--border-glass);
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.035) 0%,
        rgba(255, 255, 255, 0.012) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover { transform: translateY(-3px); }

.pillar-card--bds:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(59, 130, 246, 0.15),
        0 12px 40px rgba(59, 130, 246, 0.12);
}

.pillar-card--ck:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(168, 85, 247, 0.15),
        0 12px 40px rgba(168, 85, 247, 0.12);
}

.pillar-card--tc:hover {
    border-color: rgba(254, 243, 199, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(254, 243, 199, 0.15),
        0 12px 40px rgba(254, 243, 199, 0.08);
}

.pillar-card--future {
    cursor: default;
    opacity: 0.65;
}

.pillar-card--future:hover {
    transform: none;
    border-color: rgba(107, 114, 128, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.25);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pillar-card--bds .pillar-icon {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.pillar-card--ck .pillar-icon {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.22);
}

.pillar-card--tc .pillar-icon {
    background: rgba(254, 243, 199, 0.08);
    border: 1px solid rgba(254, 243, 199, 0.2);
}

.pillar-card--future .pillar-icon {
    background: rgba(107, 114, 128, 0.06);
    border: 1px solid rgba(107, 114, 128, 0.12);
}

.pillar-body { flex: 1; }

.pillar-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.pillar-status--live {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pillar-status--live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-primary);
    animation: pulseDot 2s infinite;
}

.pillar-status--building {
    background: rgba(254, 243, 199, 0.08);
    color: var(--cream);
    border: 1px solid rgba(254, 243, 199, 0.2);
}

.pillar-status--soon {
    background: rgba(107, 114, 128, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(107, 114, 128, 0.12);
}

.pillar-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pillar-card--bds .pillar-name { color: var(--accent-bds); }
.pillar-card--ck .pillar-name { color: var(--accent-ck); }
.pillar-card--tc .pillar-name { color: var(--cream); }
.pillar-card--future .pillar-name { color: var(--text-muted); }

.pillar-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pillar-arrow {
    color: var(--text-faint);
    font-size: 1.2rem;
    align-self: center;
    transition: transform 0.3s;
}

.pillar-card:hover .pillar-arrow { transform: translateX(4px); }

/* ======================== CONVERSATION UI ======================== */
.convo-section {
    padding: 40px 0 120px;
}

.convo-header {
    text-align: center;
    margin-bottom: 40px;
}

.convo-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.convo-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.convo-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.convo-titlebar {
    padding: 16px 24px;
    background: rgba(16, 185, 129, 0.04);
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    gap: 12px;
}

.convo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--bg-deepest);
}

.convo-titlebar-text h3 { font-size: 0.9rem; font-weight: 700; }
.convo-titlebar-text p { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }

.convo-body {
    padding: 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.convo-msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.convo-msg--bot {
    align-self: flex-start;
    background: var(--bg-bubble-narrator);
    border: 1px solid var(--border-card);
    border-bottom-left-radius: 6px;
    color: var(--text-secondary);
}

.convo-msg--user {
    align-self: flex-end;
    background: var(--accent-primary);
    color: var(--bg-deepest);
    font-weight: 500;
    border-bottom-right-radius: 6px;
}

.convo-msg--animated {
    animation: msgAppear 0.4s ease forwards;
}

/* Convo options (JS-rendered) */
.convo-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.convo-option {
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: rgba(16, 185, 129, 0.03);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.convo-option:hover {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
}

.convo-option-icon { font-size: 1.2rem; }
.convo-option-text strong { display: block; font-size: 0.9rem; }
.convo-option-text span { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

/* Convo result card (JS-rendered) */
.convo-result {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    background: var(--bg-deepest);
    margin-top: 8px;
    animation: msgAppear 0.4s ease forwards;
}

.convo-result h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.convo-result p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }

.convo-result-btn {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.convo-result-btn--bds { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--accent-bds); }
.convo-result-btn--ck { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.3); color: var(--accent-ck); }
.convo-result-btn--tc { background: rgba(254, 243, 199, 0.08); border: 1px solid rgba(254, 243, 199, 0.25); color: var(--cream); }

/* Typing indicator (JS-rendered) */
.typing-indicator {
    display: inline-flex;
    gap: 5px;
    padding: 14px 20px;
    background: var(--bg-bubble-narrator);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Static fallback (visible to bots, hidden when JS runs) */
.convo-static-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.convo-static-list a {
    display: block;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: rgba(16, 185, 129, 0.03);
    transition: all 0.3s;
}

.convo-static-list a:hover {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
}

.convo-static-list strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.convo-static-list span { font-size: 0.8rem; color: var(--text-muted); }

.convo-static-tools {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.convo-static-tools li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
}

.convo-static-tools a {
    color: var(--accent-primary);
    font-weight: 600;
}

.convo-body h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* ======================== FOOTER ======================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
}

.footer .page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-brand { margin-bottom: 4px; }
.footer-brand p { color: var(--text-faint); font-size: 0.8rem; margin-top: 8px; }

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-copy {
    color: var(--text-faint);
    font-size: 0.75rem;
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes msgAppear {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .page-content { padding: 0 16px; }

    .nav-link { display: none; }

    .bubble {
        max-width: 95%;
        font-size: 0.95rem;
        padding: 16px 18px;
    }

    .bubble--emphasis { font-size: 1.15rem; }

    .pillar-card {
        flex-direction: column;
        gap: 16px;
    }

    .pillar-arrow { display: none; }

    .convo-box {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 18px;
    }

    .convo-msg { max-width: 92%; }

    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ============================================================
   COMMITMENTS — Bốn cam kết
   ============================================================ */
.commitments {
    margin: 96px auto;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.commitments-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.commitments-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.commitments-header h2 em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-secondary);
}

.commitments-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.commitment-card {
    position: relative;
    padding: 32px 28px 30px;
    border-radius: 18px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Cream gradient line ở top, hiện khi hover — như đèn dầu */
.commitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254, 243, 199, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.commitment-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glass-strong);
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(16, 185, 129, 0.012) 100%);
    box-shadow:
        inset 0 1px 0 rgba(16, 185, 129, 0.18),
        0 12px 40px rgba(6, 95, 70, 0.15);
}

.commitment-card:hover::before { opacity: 1; }

.commitment-num {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(254, 243, 199, 0.85);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.commitment-num strong {
    color: var(--cream);
    font-weight: 700;
    text-shadow: 0 0 12px var(--glow-cream);
}

.commitment-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glass), transparent);
}

.commitment-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.commitment-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.commitment-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Staggered reveal khi load */
.commitment-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.commitment-card:nth-child(1) { animation-delay: 0.1s; }
.commitment-card:nth-child(2) { animation-delay: 0.2s; }
.commitment-card:nth-child(3) { animation-delay: 0.3s; }
.commitment-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AUDIENCE — Đây là nơi của ai
   ============================================================ */
.audience {
    margin: 96px auto;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.audience-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.audience-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.audience-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.audience-col {
    padding: 32px 28px;
    border-radius: 18px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.audience-col--yes {
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.07) 0%,
        rgba(16, 185, 129, 0.015) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.audience-col--yes:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(16, 185, 129, 0.18),
        0 12px 40px rgba(6, 95, 70, 0.18);
}

.audience-col--no {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.025) 0%,
        rgba(255, 255, 255, 0.008) 100%);
}

.audience-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.78rem;
}

.audience-col--yes h3 {
    color: var(--accent-primary);
}

.audience-col--no h3 {
    color: var(--text-muted);
}

.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audience-list li {
    padding: 14px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-glass);
}

.audience-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.audience-col--no .audience-list li {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .commitments,
    .audience {
        margin: 64px auto;
    }

    .commitment-card {
        padding: 26px 22px;
    }

    .audience-col {
        padding: 26px 22px;
    }
}
