/* ============================================================
 * Đợt 10 — Landing public (home / login / register / huongdan)
 * Style theo chinhquyenai.vn: gradient đỏ-cam, glass-morphism
 * Prefix: lp- (landing page) tránh xung đột với app
 * ============================================================ */

/* ---------- Reset nhẹ (không đụng app) ---------- */
.lp-page { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Be Vietnam Pro", "Inter", system-ui, sans-serif; color: #fff; min-height: 100vh; margin: 0; padding: 0; }
.lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page a { color: inherit; text-decoration: none; }
.lp-page button, .lp-page input, .lp-page select, .lp-page textarea { font: inherit; color: inherit; }

/* ---------- Header (sticky, white) ---------- */
.lp-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.lp-header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lp-brand { display: flex; align-items: center; gap: 12px; color: #b91c1c; font-weight: 800; font-size: 20px; }
.lp-brand-flag { font-size: 28px; line-height: 1; }

/* Cờ Việt Nam — image 340×148 (aspect 2.3) — đẩy phải 150px, kích cỡ lớn, không viền */
.lp-brand-flag-img {
    height: 60px;
    width: auto;                       /* aspect ratio tự bảo toàn */
    margin-left: 150px;
    border: none;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.22);
    flex-shrink: 0;
    transition: transform .25s cubic-bezier(.21,1.02,.73,1), box-shadow .25s;
    object-fit: contain;
}
.lp-brand:hover .lp-brand-flag-img {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.32);
}
.lp-brand-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.lp-nav { display: flex; gap: 28px; align-items: center; }
.lp-nav-link { color: #1f2937; font-weight: 500; font-size: 15px; padding: 6px 4px; position: relative; transition: color .15s; }
.lp-nav-link:hover, .lp-nav-link.active { color: #b91c1c; }
.lp-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: #b91c1c; border-radius: 2px; }
.lp-cta-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lp-cta-btn,
.lp-cta-login,
.lp-cta-register {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    color: #0c4a6e !important;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 700; font-size: 15px;
    border: 2px solid #0ea5e9;
    box-shadow: 0 4px 14px rgba(14,165,233,0.25);
    transition: transform .35s cubic-bezier(.21,1.02,.73,1), box-shadow .35s, background .35s, border-color .35s, color .25s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* Glow blob xuất hiện ở góc khi hover (giống feature-card) */
.lp-cta-btn::after,
.lp-cta-login::after,
.lp-cta-register::after {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 60%; height: 200%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    transform: translateX(-200%) skewX(-20deg);
    transition: transform .8s cubic-bezier(.21,1.02,.73,1);
    z-index: 0;
    pointer-events: none;
}
.lp-cta-btn:hover,
.lp-cta-login:hover,
.lp-cta-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14,165,233,0.45), 0 4px 8px rgba(14,165,233,0.2);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}
/* Shimmer sweep khi hover */
.lp-cta-btn:hover::after,
.lp-cta-login:hover::after,
.lp-cta-register:hover::after {
    transform: translateX(300%) skewX(-20deg);
}
.lp-cta-btn > *,
.lp-cta-login > *,
.lp-cta-register > * { position: relative; z-index: 1; }
/* Trang đang xem: nút filled cam + chữ trắng (giữ contrast tốt trên nền cam) */
.lp-cta-btn.is-active {
    background: linear-gradient(135deg, #b91c1c, #ea580c);
    color: #fff !important;
    border-color: #ea580c;
    box-shadow: 0 4px 14px rgba(185,28,28,0.4), 0 0 0 2px rgba(253,224,71,0.7);
    cursor: default;
    transform: none;
}
.lp-cta-btn.is-active:hover {
    transform: none;
    filter: none;
    background: linear-gradient(135deg, #b91c1c, #ea580c);
    box-shadow: 0 4px 14px rgba(185,28,28,0.4), 0 0 0 2px rgba(253,224,71,0.7);
}

/* Nút Zalo — xanh dương đặc trưng + icon chat */
.lp-cta-btn.lp-cta-zalo {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    color: #0068ff !important;          /* xanh Zalo brand */
    border-color: #0068ff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lp-cta-btn.lp-cta-zalo:hover {
    background: linear-gradient(135deg, #0068ff, #0052cc);
    color: #ffffff !important;
    border-color: #0052cc;
    box-shadow: 0 6px 18px rgba(0,104,255,0.4);
}
.lp-cta-zalo-icon { font-size: 16px; line-height: 1; }

/* ---------- Hero (full-screen, ảnh nền + overlay đỏ-cam mờ) ---------- */
.lp-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex; align-items: center; justify-content: center;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
/* Không phủ overlay — giữ nguyên độ sáng ảnh nền. Text legibility xử lý bằng text-shadow. */
.lp-hero-inner {
    position: relative; z-index: 2;
    max-width: 1100px; padding: 80px 32px;
    text-align: center;
    transform: translateY(-170px);
}
.lp-hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.75), 0 4px 24px rgba(0,0,0,0.55);
    letter-spacing: -0.02em;
}
.lp-hero h1.lp-hero-title-yellow {
    color: #fde047;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 24px rgba(0,0,0,0.6);
    /* Hiệu ứng: bay lên + scale + glow vàng nhịp nhẹ */
    opacity: 0;
    transform: translateY(40px) scale(.92);
    animation:
        lpHeroIn 1.05s cubic-bezier(.2,.8,.2,1) .15s forwards,
        lpHeroGlow 3.6s ease-in-out 1.4s infinite alternate;
}
.lp-hero p.lp-hero-sub-italic {
    font-style: italic;
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 500;
    color: #fff;
    line-height: 1.55;
    text-shadow: 0 2px 6px rgba(0,0,0,0.75), 0 1px 12px rgba(0,0,0,0.4);
    /* Hiệu ứng: fade-up sau title */
    opacity: 0;
    transform: translateY(28px);
    animation: lpHeroIn 1s cubic-bezier(.2,.8,.2,1) .85s forwards;
}

/* Keyframes hero entrance */
@keyframes lpHeroIn {
    0%   { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(6px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1);     filter: blur(0); }
}
@keyframes lpHeroGlow {
    0%   { text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 24px rgba(0,0,0,0.6),  0 0 0    rgba(253,224,71,0); }
    100% { text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 28px rgba(0,0,0,0.55), 0 0 24px rgba(253,224,71,0.55); }
}

/* Logo + nav cũng vào nhẹ nhàng */
.lp-header { animation: lpFadeDown .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lpFadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
    .lp-hero h1.lp-hero-title-yellow,
    .lp-hero p.lp-hero-sub-italic,
    .lp-header {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}
.lp-hero p {
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.6;
    margin: 0 0 36px;
    opacity: 0.98;
    max-width: 760px; margin-left: auto; margin-right: auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.45);
}
.lp-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.lp-hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700; font-size: 16px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all .18s;
    cursor: pointer;
}
.lp-hero-btn:hover { background: rgba(255,255,255,0.95); color: #b91c1c; border-color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.lp-hero-btn.primary { background: rgba(255,255,255,0.95); color: #b91c1c; border-color: #fff; }
.lp-hero-btn.primary:hover { background: #fff; }

/* ---------- Features section — Premium card design ---------- */
.lp-features {
    background:
        radial-gradient(ellipse at top left, rgba(99,102,241,0.06), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(236,72,153,0.05), transparent 50%),
        linear-gradient(180deg, #fafaf9 0%, #f5f3ff 100%);
    color: #1f2937;
    padding: 96px 32px;
    position: relative;
}
.lp-features-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.lp-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #b91c1c 0%, #ea580c 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.lp-section-sub { text-align: center; font-size: 16px; color: #64748b; margin: 0 0 64px; max-width: 640px; margin-left: auto; margin-right: auto; }
.lp-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

@keyframes lp-feature-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lp-feature-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 26px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.04);
    text-align: left;
    transition: transform .35s cubic-bezier(.21,1.02,.73,1), box-shadow .35s, border-color .35s;
    overflow: hidden;
    isolation: isolate;
    animation: lp-feature-rise .6s cubic-bezier(.21,1.02,.73,1) both;
    cursor: default;
}
/* Stagger animation 60ms per card */
.lp-feature-card:nth-child(1) { animation-delay: 0s; }
.lp-feature-card:nth-child(2) { animation-delay: .06s; }
.lp-feature-card:nth-child(3) { animation-delay: .12s; }
.lp-feature-card:nth-child(4) { animation-delay: .18s; }
.lp-feature-card:nth-child(5) { animation-delay: .24s; }
.lp-feature-card:nth-child(6) { animation-delay: .30s; }
.lp-feature-card:nth-child(7) { animation-delay: .36s; }
.lp-feature-card:nth-child(8) { animation-delay: .42s; }

/* Top accent bar — animated gradient (revealed on hover) */
.lp-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-accent-from, #6366f1), var(--lp-accent-to, #8b5cf6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.21,1.02,.73,1);
    z-index: 2;
}
/* Soft glow blob behind icon — appears on hover */
.lp-feature-card::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--lp-accent-from, #6366f1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s, transform .6s;
    z-index: 0;
    pointer-events: none;
}
.lp-feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 48px -12px var(--lp-accent-shadow, rgba(99, 102, 241, 0.25));
    border-color: var(--lp-accent-from, #6366f1);
}
.lp-feature-card:hover::before { transform: scaleX(1); }
.lp-feature-card:hover::after { opacity: 0.18; transform: scale(1.15); }

/* Icon — gradient rounded-square container */
.lp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    font-size: 28px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lp-icon-bg-from, #ede9fe), var(--lp-icon-bg-to, #fce7f3));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 4px 12px var(--lp-accent-shadow, rgba(99, 102, 241, 0.15));
    transition: transform .35s cubic-bezier(.21,1.02,.73,1), box-shadow .35s;
    position: relative;
    z-index: 1;
}
.lp-feature-card:hover .lp-feature-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 8px 20px var(--lp-accent-shadow, rgba(99, 102, 241, 0.3));
}

.lp-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0f172a;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}
.lp-feature-card p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
    position: relative;
    z-index: 1;
}
.lp-feature-card strong { color: #334155; font-weight: 600; }

/* ===== Color palettes per card (nth-child) — sang trọng, hài hoà ===== */
/* 1. Multi-Agent AI — indigo/violet */
.lp-feature-card:nth-child(1) {
    --lp-accent-from: #6366f1; --lp-accent-to: #8b5cf6;
    --lp-icon-bg-from: #eef2ff; --lp-icon-bg-to: #ede9fe;
    --lp-accent-shadow: rgba(99, 102, 241, 0.25);
}
/* 2. NĐ 30 — amber/gold */
.lp-feature-card:nth-child(2) {
    --lp-accent-from: #f59e0b; --lp-accent-to: #d97706;
    --lp-icon-bg-from: #fef3c7; --lp-icon-bg-to: #fde68a;
    --lp-accent-shadow: rgba(245, 158, 11, 0.25);
}
/* 3. Multi-tenant — emerald */
.lp-feature-card:nth-child(3) {
    --lp-accent-from: #10b981; --lp-accent-to: #059669;
    --lp-icon-bg-from: #d1fae5; --lp-icon-bg-to: #a7f3d0;
    --lp-accent-shadow: rgba(16, 185, 129, 0.25);
}
/* 4. Personalization — pink/rose */
.lp-feature-card:nth-child(4) {
    --lp-accent-from: #ec4899; --lp-accent-to: #db2777;
    --lp-icon-bg-from: #fce7f3; --lp-icon-bg-to: #fbcfe8;
    --lp-accent-shadow: rgba(236, 72, 153, 0.25);
}
/* 5. Knowledge Graph — cyan */
.lp-feature-card:nth-child(5) {
    --lp-accent-from: #06b6d4; --lp-accent-to: #0891b2;
    --lp-icon-bg-from: #cffafe; --lp-icon-bg-to: #a5f3fc;
    --lp-accent-shadow: rgba(6, 182, 212, 0.25);
}
/* 6. Storage — sky blue */
.lp-feature-card:nth-child(6) {
    --lp-accent-from: #0ea5e9; --lp-accent-to: #0284c7;
    --lp-icon-bg-from: #e0f2fe; --lp-icon-bg-to: #bae6fd;
    --lp-accent-shadow: rgba(14, 165, 233, 0.25);
}
/* 7. Chat assistant — orange */
.lp-feature-card:nth-child(7) {
    --lp-accent-from: #f97316; --lp-accent-to: #ea580c;
    --lp-icon-bg-from: #ffedd5; --lp-icon-bg-to: #fed7aa;
    --lp-accent-shadow: rgba(249, 115, 22, 0.25);
}
/* 8. Smart compose + self-improvement — purple */
.lp-feature-card:nth-child(8) {
    --lp-accent-from: #a855f7; --lp-accent-to: #7e22ce;
    --lp-icon-bg-from: #f3e8ff; --lp-icon-bg-to: #e9d5ff;
    --lp-accent-shadow: rgba(168, 85, 247, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .lp-feature-card { animation: none; }
    .lp-feature-card:hover { transform: none; }
    .lp-feature-card:hover .lp-feature-icon { transform: none; }
}

/* ---------- Footer ---------- */
.lp-footer {
    background: #111827;
    color: #d1d5db;
    padding: 40px 32px 24px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}
.lp-footer-inner { max-width: 1200px; margin: 0 auto; }
.lp-footer-brand { font-size: 16px; font-weight: 700; color: #f59e0b; margin-bottom: 8px; }

/* ============================================================
 * AUTH FORMS (login + register) — gradient bg + glass card
 * ============================================================ */
.lp-auth-bg {
    min-height: calc(100vh - 70px);
    background:
        radial-gradient(ellipse at top left, rgba(56,189,248,0.55), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(245,158,11,0.55), transparent 60%),
        linear-gradient(135deg, #0c4a6e 0%, #0369a1 25%, #ea580c 70%, #f59e0b 100%);
    padding: 60px 24px;
    display: flex; flex-direction: column; align-items: center;
}
/* compact = không title/sub/divider, form sát mép trên */
.lp-auth-bg-compact { padding-top: 24px; }
/* Modifier: nền xanh nước biển pha vàng — dành cho trang đăng ký */
.lp-auth-bg-blue {
    background:
        radial-gradient(ellipse at top, rgba(56,189,248,0.45), transparent 65%),
        linear-gradient(135deg, #0c4a6e 0%, #0369a1 35%, #0284c7 65%, #f59e0b 115%);
}
.lp-auth-title { color: #fff; font-size: clamp(36px, 4vw, 48px); font-weight: 800; margin: 0 0 8px; text-shadow: 0 4px 16px rgba(0,0,0,0.25); text-align: center; }
.lp-auth-sub { color: rgba(255,255,255,0.92); font-size: 16px; margin: 0 0 18px; text-align: center; }
.lp-auth-divider { width: 80px; height: 3px; background: rgba(255,255,255,0.5); border-radius: 2px; margin: 0 auto 36px; }

.lp-auth-card {
    width: 100%; max-width: 540px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 22px;
    padding: 36px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.lp-form-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.lp-form-row.full { grid-template-columns: 1fr; }
.lp-form-row label { color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.lp-input-wrap {
    position: relative;
    background: rgba(255,255,255,0.32);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    transition: border-color .15s, background .15s;
}
.lp-input-wrap:focus-within { border-color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.42); }
.lp-input-wrap input, .lp-input-wrap select {
    width: 100%;
    background: transparent;
    border: none; outline: none;
    padding: 12px 14px 12px 44px;
    color: #fff;
    font-size: 15px;
}
.lp-input-wrap select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 36px; }
.lp-input-wrap input::placeholder { color: rgba(255,255,255,0.75); }
.lp-input-wrap option { color: #1f2937; }
.lp-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.85); font-size: 16px; pointer-events: none; }
.lp-input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.85); font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.lp-input-suffix:hover { background: rgba(255,255,255,0.15); }

.lp-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff;
    font-weight: 700; font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: all .15s;
}
.lp-submit-btn:hover { background: rgba(255,255,255,0.95); color: #b91c1c; border-color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.lp-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.lp-auth-footer { text-align: center; margin-top: 22px; color: rgba(255,255,255,0.92); font-size: 14px; }
.lp-auth-footer a { color: #fef3c7; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-auth-footer a:hover { color: #fff; }

.lp-msg { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.lp-msg-error { background: rgba(220,38,38,0.85); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.lp-msg-success { background: rgba(22,163,74,0.85); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* ---------- Hướng dẫn page ---------- */
.lp-doc-bg {
    min-height: calc(100vh - 70px);
    background: #fafaf9;
    color: #1f2937;
    padding: 60px 24px;
}
.lp-doc-inner { max-width: 880px; margin: 0 auto; }
.lp-doc-inner h1 { font-size: 36px; font-weight: 800; color: #b91c1c; margin: 0 0 8px; }
.lp-doc-inner h2 { font-size: 22px; font-weight: 700; color: #111827; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #fee2e2; }
.lp-doc-inner p { font-size: 15px; line-height: 1.75; margin: 0 0 14px; color: #374151; }
.lp-doc-inner ol, .lp-doc-inner ul { padding-left: 24px; }
.lp-doc-inner li { font-size: 15px; line-height: 1.75; margin-bottom: 6px; color: #374151; }
.lp-doc-inner code { background: #fef3c7; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #92400e; }
.lp-doc-card { background: #fff; border: 1px solid #f1f5f9; border-radius: 14px; padding: 24px 28px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

/* ---------- Mobile ≤720px (tablet portrait + phone) ---------- */
@media (max-width: 720px) {
    .lp-header-inner { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
    .lp-brand { font-size: 14px; gap: 8px; }
    .lp-brand-logo { width: 34px; height: 34px; }
    .lp-brand-flag { font-size: 22px; }
    .lp-brand-flag-img { height: 44px; margin-left: 60px; }   /* mobile: kích cỡ + offset gọn hơn */
    .lp-brand span { display: none; }
    .lp-nav { display: none; }
    .lp-cta-group { gap: 8px; margin-left: auto; flex-wrap: wrap; }   /* P0: cho phép wrap khi 3 nút quá rộng */
    /* P0: tap target ≥44px (Apple HIG / WCAG 2.5.5) */
    .lp-cta-btn,
    .lp-cta-login,
    .lp-cta-register { padding: 11px 18px; font-size: 13px; min-height: 44px; box-sizing: border-box; }
    .lp-hero-inner { padding: 50px 18px; }
    .lp-form-row { grid-template-columns: 1fr; gap: 6px; }
    .lp-auth-card { padding: 26px 22px; }
}

/* ---------- Phone ≤480px (1-cột thực sự, gọn hơn) ---------- */
@media (max-width: 480px) {
    .lp-brand-flag-img { height: 36px; margin-left: 20px; }   /* phone bé: thu gọn nhưng vẫn đẹp */
    .lp-cta-group { width: 100%; justify-content: stretch; gap: 6px; margin-top: 6px; }
    .lp-cta-btn,
    .lp-cta-login,
    .lp-cta-register { flex: 1 1 0; padding: 11px 10px; font-size: 12.5px; text-align: center; }
    .lp-auth-card { padding: 22px 18px; border-radius: 18px; }
    .lp-auth-bg { padding: 24px 12px; }
    /* Hero overlap với flow card → giảm để tránh che phần text */
    .lp-flow { margin-top: -40px; }
}

/* ---------- iOS Safari 100vh fix cho hero ---------- */
@supports (height: 100dvh) {
    .lp-hero { min-height: calc(100dvh - 70px); }
}

/* ============================================================
 * Quy trình 5 bước (mô phỏng style Dịch Vụ Công)
 * Mỗi step có biến --c (màu chủ đạo) inline để dễ đổi
 * ============================================================ */
.lp-flow {
    background: transparent;
    color: #f1f5f9;
    padding: 0 24px 70px;
    /* Đè lên mép dưới hero — nổi card nổi bật trên ảnh nền */
    margin-top: -270px;
    position: relative;
    z-index: 5;
}
.lp-flow-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 48px 36px 54px;
    text-align: center;
    /* Card đen trong suốt — backdrop blur nhẹ để text vẫn đọc được, ảnh nền vẫn hiện rõ */
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%),
        rgba(8, 12, 22, 0.42);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45),
        0 8px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -1px 0 rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) {
    .lp-flow { margin-top: -60px; padding-bottom: 40px; }
    .lp-flow-inner { padding: 32px 20px 40px; border-radius: 18px; }
}
.lp-flow-title {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 800;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 50px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.lp-flow-steps {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 0;
    position: relative;
}
.lp-flow-step {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    min-width: 0;
}
/* Đường nối ngang: vẽ bằng pseudo, đứt ở giữa bubble */
.lp-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;          /* canh giữa chiều cao bubble (88px / 2) */
    left: calc(50% + 50px);
    right: calc(-50% + 50px);
    height: 2px;
    background: var(--c, #cbd5e1);
    opacity: 0.5;
    z-index: 0;
}
.lp-flow-bubble {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--c, #6b7280);
    color: var(--c, #6b7280);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative; z-index: 2;
    transition: transform .2s, box-shadow .2s;
}
.lp-flow-step:hover .lp-flow-bubble {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.lp-flow-num {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--c, #6b7280);
    letter-spacing: 0.05em;
}
.lp-flow-label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    max-width: 180px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Mobile: xếp dọc */
@media (max-width: 760px) {
    .lp-flow-steps { flex-direction: column; gap: 30px; }
    .lp-flow-step:not(:last-child)::after { display: none; }
    .lp-flow-step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 88px;
        left: 50%;
        width: 2px;
        height: 30px;
        background: var(--c, #cbd5e1);
        opacity: 0.5;
        transform: translate(-50%, 0);
    }
    .lp-flow-label { max-width: none; }
}

/* ============================================================
 * Animation cho 5 bước quy trình — trigger khi vào viewport
 * (class .lp-flow-anim được add bởi IntersectionObserver)
 * ============================================================ */
/* Initial state: ẩn + scale nhỏ */
.lp-flow-step .lp-flow-bubble {
    opacity: 0;
    transform: translateY(28px) scale(0.55);
}
.lp-flow-step .lp-flow-num,
.lp-flow-step .lp-flow-label {
    opacity: 0;
    transform: translateY(8px);
}
.lp-flow-step:not(:last-child)::after {
    transform: scaleX(0);
    transform-origin: left center;
}

/* Khi section vào viewport → animate lần lượt mỗi step */
.lp-flow-anim .lp-flow-step .lp-flow-bubble {
    animation: lpBubblePop .65s cubic-bezier(.34,1.56,.64,1) forwards;
}
.lp-flow-anim .lp-flow-step .lp-flow-num,
.lp-flow-anim .lp-flow-step .lp-flow-label {
    animation: lpTextRise .45s ease-out forwards;
}
.lp-flow-anim .lp-flow-step:not(:last-child)::after {
    animation: lpLineDraw .55s cubic-bezier(.5,0,.5,1) forwards;
}

/* Stagger delay 220ms mỗi step */
.lp-flow-anim .lp-flow-step:nth-child(1) .lp-flow-bubble { animation-delay: .00s; }
.lp-flow-anim .lp-flow-step:nth-child(2) .lp-flow-bubble { animation-delay: .22s; }
.lp-flow-anim .lp-flow-step:nth-child(3) .lp-flow-bubble { animation-delay: .44s; }
.lp-flow-anim .lp-flow-step:nth-child(4) .lp-flow-bubble { animation-delay: .66s; }
.lp-flow-anim .lp-flow-step:nth-child(5) .lp-flow-bubble { animation-delay: .88s; }

.lp-flow-anim .lp-flow-step:nth-child(1) .lp-flow-num   { animation-delay: .25s; }
.lp-flow-anim .lp-flow-step:nth-child(1) .lp-flow-label { animation-delay: .32s; }
.lp-flow-anim .lp-flow-step:nth-child(2) .lp-flow-num   { animation-delay: .47s; }
.lp-flow-anim .lp-flow-step:nth-child(2) .lp-flow-label { animation-delay: .54s; }
.lp-flow-anim .lp-flow-step:nth-child(3) .lp-flow-num   { animation-delay: .69s; }
.lp-flow-anim .lp-flow-step:nth-child(3) .lp-flow-label { animation-delay: .76s; }
.lp-flow-anim .lp-flow-step:nth-child(4) .lp-flow-num   { animation-delay: .91s; }
.lp-flow-anim .lp-flow-step:nth-child(4) .lp-flow-label { animation-delay: .98s; }
.lp-flow-anim .lp-flow-step:nth-child(5) .lp-flow-num   { animation-delay: 1.13s; }
.lp-flow-anim .lp-flow-step:nth-child(5) .lp-flow-label { animation-delay: 1.20s; }

/* Đường nối "vẽ" sau khi bubble next xuất hiện */
.lp-flow-anim .lp-flow-step:nth-child(1)::after { animation-delay: .15s; }
.lp-flow-anim .lp-flow-step:nth-child(2)::after { animation-delay: .37s; }
.lp-flow-anim .lp-flow-step:nth-child(3)::after { animation-delay: .59s; }
.lp-flow-anim .lp-flow-step:nth-child(4)::after { animation-delay: .81s; }

@keyframes lpBubblePop {
    0%   { opacity: 0; transform: translateY(28px) scale(0.55); }
    60%  { opacity: 1; transform: translateY(-6px) scale(1.12); }
    100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes lpTextRise {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes lpLineDraw {
    to { transform: scaleX(1); }
}

/* Tôn trọng prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .lp-flow-step .lp-flow-bubble,
    .lp-flow-step .lp-flow-num,
    .lp-flow-step .lp-flow-label,
    .lp-flow-step:not(:last-child)::after {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
