/* ============================================================
   Noti.vn - Trang chủ
   Giữ nguyên design system gốc: Inter, xanh #0061ff, Liquid Glass,
   bo góc 12 / 16 / 24 / 50px, bóng đổ ám xanh.
   ============================================================ */

:root {
    --blue: #0061ff;
    --blue-deep: #0050d4;
    --cyan: #00c2ff;
    --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);

    --bg: #e9eff9;
    --bg-soft: #ffffff;

    --ink: #0b1220;
    --ink-2: #4a5c74;
    --ink-3: #6b7f99;

    --glass: rgba(255, 255, 255, 0.46);
    --glass-strong: rgba(255, 255, 255, 0.78);
    --glass-inner: rgba(255, 255, 255, 0.72);
    --glass-blur: blur(30px) saturate(200%);
    --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    --glass-top: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --glass-sheen: linear-gradient(115deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 44%);

    --surface: rgba(255, 255, 255, 0.72);

    --sh-1: 0 4px 16px rgba(0, 97, 255, 0.12);
    --sh-2: 0 12px 32px rgba(0, 97, 255, 0.16);
    --sh-3: 0 24px 64px rgba(0, 97, 255, 0.2);
    --sh-brand: 0 8px 28px rgba(0, 97, 255, 0.26);
    --sh-brand-hi: 0 16px 40px rgba(0, 97, 255, 0.3);
    --glow: 0 0 48px rgba(0, 97, 255, 0.18);
    --glow-hi: 0 0 64px rgba(0, 97, 255, 0.26);

    --tint: rgba(0, 97, 255, 0.07);
    --tint-2: rgba(0, 97, 255, 0.12);
    --track: rgba(0, 97, 255, 0.12);
    --on-tint: #0050d4;

    --ok: #059669;
    --ok-bg: rgba(16, 185, 129, 0.13);

    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 50px;

    --t: 0.3s ease;
    --t-smooth: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    --t-spring: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --head-h: 76px;
    --maxw: 1180px;
    --aurora: 0.55;
}

[data-theme="dark"] {
    --bg: #070b16;
    --bg-soft: #0d1424;

    --ink: #eef3fb;
    --ink-2: #a2b3c9;
    --ink-3: #7d8fa8;

    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(255, 255, 255, 0.085);
    --glass-inner: rgba(255, 255, 255, 0.06);
    --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    --glass-top: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --glass-sheen: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 42%);

    --surface: rgba(255, 255, 255, 0.05);

    --sh-1: 0 4px 16px rgba(0, 0, 0, 0.4);
    --sh-2: 0 12px 32px rgba(0, 0, 0, 0.48);
    --sh-3: 0 24px 64px rgba(0, 0, 0, 0.55);
    --sh-brand: 0 8px 28px rgba(0, 97, 255, 0.3);
    --sh-brand-hi: 0 16px 40px rgba(0, 97, 255, 0.3);
    --glow: 0 0 60px rgba(0, 97, 255, 0.22);
    --glow-hi: 0 0 76px rgba(0, 97, 255, 0.3);

    --tint: rgba(0, 122, 255, 0.14);
    --tint-2: rgba(0, 122, 255, 0.2);
    --track: rgba(255, 255, 255, 0.1);
    --on-tint: #7fb2ff;

    --ok: #34d399;
    --ok-bg: rgba(52, 211, 153, 0.16);

    --aurora: 0.3;
}

/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--head-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t), color var(--t);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.3);
    border-radius: var(--r-sm);
}

.skip-link {
    position: absolute;
    top: -120px;
    left: 20px;
    z-index: 2000;
    padding: 0.85rem 1.4rem;
    border-radius: var(--r-sm);
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    transition: top var(--t);
}

.skip-link:focus { top: 20px; }

/* ---------- Liquid Glass ---------- */

.glass {
    position: relative;
    isolation: isolate;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-1);
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--glass-sheen);
    opacity: 0.55;
    pointer-events: none;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .glass { background: var(--glass-strong); }
    [data-theme="dark"] .glass { background: var(--bg-soft); }
}

/* ---------- Nền ---------- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--aurora);
    animation: drift 26s ease-in-out infinite;
    transition: opacity var(--t);
}

.aurora-1 {
    width: 900px;
    height: 900px;
    top: -340px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 97, 255, 0.42), rgba(0, 194, 255, 0.2) 52%, transparent 74%);
}

.aurora-2 {
    width: 760px;
    height: 760px;
    top: 24%;
    left: -240px;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.36), rgba(0, 97, 255, 0.14) 52%, transparent 74%);
    animation-delay: -9s;
}

.aurora-3 {
    width: 560px;
    height: 560px;
    bottom: -220px;
    right: 8%;
    background: radial-gradient(circle, rgba(0, 97, 255, 0.22), transparent 70%);
    animation-delay: -17s;
}

.grain {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(11, 18, 32, 0.05) 0.6px, transparent 0.6px);
    background-size: 34px 34px;
}

[data-theme="dark"] .grain {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 0.6px, transparent 0.6px);
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -46px) scale(1.07); }
    66% { transform: translate(-32px, 30px) scale(0.94); }
}

/* ---------- Header ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 60px;
    padding: 0 0.75rem 0 1.25rem;
    border-radius: var(--r-pill);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    transition: background-color var(--t-smooth), box-shadow var(--t-smooth);
}

.header-inner::before { opacity: 0; transition: opacity var(--t-smooth); }

header.scrolled .header-inner {
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-2);
}

header.scrolled .header-inner::before { opacity: 0.55; }

.brand { display: flex; align-items: center; flex-shrink: 0; }

.logo {
    height: 34px;
    width: auto;
    transition: transform var(--t);
}

.brand:hover .logo { transform: scale(1.04); }

.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-pill);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color var(--t), background-color var(--t);
}

.nav-link:hover {
    color: var(--blue);
    background: var(--tint);
}

.nav-cta {
    margin-left: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--r-pill);
    background: var(--grad);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--sh-brand);
    transition: transform var(--t), box-shadow var(--t);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-brand-hi);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

nav + .header-actions { margin-left: 0; }

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--ink-2);
    transition: color var(--t), background-color var(--t);
}

.icon-btn:hover { color: var(--blue); background: var(--tint); }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.lang-switcher { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 0.7rem;
    border-radius: var(--r-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: color var(--t), background-color var(--t);
}

.lang-btn:hover { color: var(--blue); background: var(--tint); }

.lang-flag { display: flex; align-items: center; line-height: 0; }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 176px;
    padding: 0.4rem;
    border-radius: var(--r-md);
    background: var(--bg-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    z-index: 1001;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    box-shadow: var(--glass-top), var(--sh-2);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-2);
    text-align: left;
    transition: color var(--t), background-color var(--t);
}

.lang-option:hover,
.lang-option.is-active {
    background: var(--tint);
    color: var(--blue);
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 50%;
}

.menu-btn span {
    display: block;
    height: 2px;
    border-radius: var(--r-pill);
    background: var(--ink-2);
    transition: transform var(--t), opacity var(--t);
}

.menu-btn.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Nút ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.95rem 1.9rem;
    border-radius: var(--r-pill);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform var(--t), box-shadow var(--t), color var(--t);
}

.btn svg { flex-shrink: 0; width: 20px; height: 20px; }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-brand-hi);
}

.btn-glass {
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: var(--ink);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-1);
}

.btn-glass:hover {
    transform: translateY(-3px);
    color: var(--blue);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-2);
}

/* ---------- Hero ---------- */

.hero {
    padding: calc(var(--head-h) + 4.5rem) 2rem 5rem;
    text-align: center;
}

.hero-inner {
    max-width: 940px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.15rem;
    margin-bottom: 1.75rem;
    border-radius: var(--r-pill);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-2);
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(0, 97, 255, 0.3);
    animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(0, 97, 255, 0.3); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(0, 97, 255, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6.4vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.6rem;
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-title .line-1,
.hero-title .line-2 { display: block; }

.hero-title .line-1 { color: var(--ink-3); }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title .grad { white-space: nowrap; }

.hero-lede {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--ink-2);
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.75rem;
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    font-size: 0.85rem;
    color: var(--ink-3);
}

.pill strong {
    font-weight: 700;
    font-size: 0.98rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Bảng điều khiển kính ---------- */

.stage {
    position: relative;
    max-width: 1020px;
    margin: 5rem auto 0;
    animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.stage-glow {
    position: absolute;
    top: -6%;
    left: 50%;
    width: 92%;
    height: 108%;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0, 97, 255, 0.55), transparent 58%),
        radial-gradient(ellipse at 72% 62%, rgba(0, 194, 255, 0.48), transparent 56%),
        radial-gradient(ellipse, rgba(0, 97, 255, 0.24), transparent 70%);
    filter: blur(60px);
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.console {
    position: relative;
    border-radius: var(--r-lg);
    padding: 1.25rem;
    text-align: left;
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-3), var(--glow-hi);
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 1.1rem;
}

.console-dots { display: flex; gap: 6px; }

.console-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--track);
}

.console-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-3);
    letter-spacing: 0.02em;
}

.console-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--r-md);
    background: var(--glass-inner);
    box-shadow: var(--glass-top);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--tint);
    color: var(--blue);
}

.panel-icon svg { width: 16px; height: 16px; }

.panel-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.panel-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
}

.panel-state .live-dot { width: 6px; height: 6px; }

.sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.src {
    padding: 0.26rem 0.62rem;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--on-tint);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.bars { display: flex; flex-direction: column; gap: 0.7rem; }

.bar-row {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 0.75rem;
}

.bar-label {
    font-size: 0.76rem;
    color: var(--ink-3);
    white-space: nowrap;
}

.bar {
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--track);
    overflow: hidden;
}

.bar i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--grad);
    box-shadow: 0 0 12px rgba(0, 97, 255, 0.3);
    transform-origin: left;
    animation: grow 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.panel-foot {
    margin-top: auto;
    font-size: 0.72rem;
    color: var(--ink-3);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.step {
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--track);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-3);
}

.step.is-done {
    background: var(--tint-2);
    color: var(--on-tint);
    font-weight: 600;
}

.step.is-live {
    background: var(--grad);
    color: #fff;
    font-weight: 600;
}

.render-track {
    display: block;
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--track);
    overflow: hidden;
}

.render-track i {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--grad);
    box-shadow: 0 0 12px rgba(0, 97, 255, 0.3);
    animation: renderRun 3.4s ease-in-out infinite;
}

@keyframes renderRun {
    0% { width: 18%; }
    50% { width: 82%; }
    100% { width: 18%; }
}

/* Thẻ chờ duyệt: cho người xem thấy ngay "AI đề xuất, người duyệt". */
.approve {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--r-sm);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.approve-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.approve-text strong {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}

.approve-text span {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--ink-3);
}

.approve-btns {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

.ab {
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--track);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

.ab-yes {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem 0.55rem 0.8rem;
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    animation: bob 7s ease-in-out infinite;
}

.float-chip svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
}

.fc-1 { top: -18px; left: 6%; animation-delay: 0s; }
.fc-2 { top: 16%; right: -26px; animation-delay: -1.8s; }
.fc-3 { bottom: 14%; left: -24px; animation-delay: -3.5s; }
.fc-4 { bottom: -18px; right: 12%; animation-delay: -5.2s; }

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

/* ---------- Dải tích hợp ---------- */

.stack {
    padding: 1rem 0 2rem;
    text-align: center;
}

.stack-label {
    margin-bottom: 1.25rem;
    padding: 0 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-3);
}

.marquee {
    max-width: var(--maxw);
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: slide 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-list {
    display: flex;
    gap: 0.75rem;
    padding-right: 0.75rem;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.15rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Section ---------- */

.section { padding: 6.5rem 2rem; }

.section-head {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-head h2,
.split-copy h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin-bottom: 1.1rem;
}

.section-head p,
.split-copy > p {
    font-size: 1.08rem;
    color: var(--ink-2);
}

/* ---------- Nhóm sản phẩm ---------- */

.group {
    max-width: var(--maxw);
    margin: 0 auto;
}

.group + .group { margin-top: 4rem; }

.group-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.group-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--blue);
}

.group-head h3 {
    font-size: 1.35rem;
}

.group-head p {
    flex-basis: 100%;
    font-size: 0.98rem;
    color: var(--ink-2);
}

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

.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--r-lg);
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-1);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--glass-sheen);
    opacity: 0.5;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-3), var(--glow);
}

.card-hero {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--glass-top), 0 18px 48px rgba(0, 97, 255, 0.3);
}

.card-hero:hover {
    box-shadow: var(--glass-top), 0 28px 72px rgba(0, 97, 255, 0.3);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    background: var(--tint);
    color: var(--blue);
    transition: transform var(--t-smooth);
}

.card-icon svg { width: 24px; height: 24px; }

.card:hover .card-icon { transform: scale(1.08) rotate(-5deg); }

.card-hero .card-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.card-badge {
    padding: 0.32rem 0.8rem;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--on-tint);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: right;
}

.badge-live {
    background: var(--ok-bg);
    color: var(--ok);
}

.card-hero .card-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.card h3,
.card h4 { font-size: 1.35rem; }

.card-tagline {
    margin-top: 0.3rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
}

.card-hero .card-tagline { color: rgba(255, 255, 255, 0.9); }

.card-desc {
    font-size: 0.96rem;
    color: var(--ink-2);
}

.card-hero .card-desc { color: rgba(255, 255, 255, 0.94); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.chip {
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--on-tint);
    font-size: 0.75rem;
    font-weight: 500;
}

.card-hero .chip {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* "Phù hợp với ai": giúp chọn giữa ba sản phẩm quảng cáo mà không cần bảng so sánh. */
.card-fit {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-2);
    background-image: linear-gradient(90deg, var(--track), transparent);
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.card-fit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--blue);
}

.card-fit strong { font-weight: 600; color: var(--ink); }

.card-hero .card-fit {
    color: rgba(255, 255, 255, 0.92);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.card-hero .card-fit svg,
.card-hero .card-fit strong { color: #fff; }

.card-spacer { flex-grow: 1; }

.card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.45rem;
    min-height: 44px;
    margin-top: 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    transition: gap var(--t);
}

.card-link svg { width: 18px; height: 18px; }

.card-link:hover { gap: 0.8rem; }

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin-top: 1.1rem;
}

.card-actions .card-link { margin-top: 0; }

.card-hero .card-link { color: #fff; }

.card-hero .card-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--blue);
    box-shadow: 0 8px 24px rgba(0, 40, 120, 0.18);
}

.nav-link.is-current {
    color: var(--blue);
    background: var(--tint);
}

/* ---------- Bố cục hai cột ---------- */

.split {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

.split-copy .tag { margin-bottom: 1.25rem; }
.split-copy > p { margin-bottom: 1.75rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    font-weight: 600;
    color: var(--blue);
    transition: gap var(--t);
}

.text-link svg { width: 18px; height: 18px; }
.text-link:hover { gap: 0.75rem; }

.note {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--ink-3);
}

/* ---------- Số liệu ---------- */

/* Ảnh báo cáo bên trái, ô số liệu và phân bổ thị trường bên phải. */
.result-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.report { margin: 0; }

.result-stats .stat-tile { padding: 1.4rem 0.75rem; }
.result-stats .stat-tile strong { font-size: 1.5rem; white-space: nowrap; }

.report-frame {
    position: relative;
    display: block;
    padding: 0.75rem;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-2);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.report-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-3);
}

.report-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
}

/* Ảnh báo cáo nhiều chữ nhỏ: nhắc người xem bấm để mở bản gốc nét hơn. */
.report-zoom {
    position: absolute;
    right: 1.35rem;
    bottom: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    box-shadow: var(--glass-top), var(--sh-1);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

[data-theme="dark"] .report-zoom { background: rgba(15, 23, 42, 0.85); }

.report-zoom svg { width: 15px; height: 15px; color: var(--blue); }

.report figcaption {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-3);
    text-align: center;
}

.result-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.stat-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    text-align: center;
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.stat-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-top), var(--sh-2), var(--glow);
}

.stat-tile strong {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-tile span {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.geo {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.geo-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.geo-row {
    display: grid;
    grid-template-columns: 112px 1fr 60px;
    align-items: center;
    gap: 0.85rem;
}

.geo-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.geo-row.is-focus .geo-name { font-weight: 700; }

.geo-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- Nguyên tắc ---------- */

.principles {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.principle {
    padding: 1.75rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.principle:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-top), var(--sh-2), var(--glow);
}

.principle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1.15rem;
    border-radius: var(--r-sm);
    background: var(--tint);
    color: var(--blue);
}

.principle-icon svg { width: 21px; height: 21px; }

.principle h3 {
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.principle p {
    font-size: 0.92rem;
    color: var(--ink-2);
}

/* ---------- Hỏi đáp ---------- */

.faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    transition: box-shadow var(--t);
}

.faq-item[open] { box-shadow: var(--glass-top), var(--sh-2); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    padding: 1.1rem 1.4rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    border-radius: var(--r-md);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint);
    transition: transform var(--t), background var(--t);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: translate(-50%, -50%);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t); }

.faq-item[open] .faq-icon { background: var(--tint-2); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-body {
    padding: 0 1.4rem 1.3rem;
    font-size: 0.96rem;
    color: var(--ink-2);
}

/* ---------- CTA ---------- */

.section-cta { padding-bottom: 7rem; }

.cta {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 4.5rem 3rem;
    border-radius: var(--r-lg);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-3);
}

.cta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    width: 70%;
    height: 130%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 97, 255, 0.22), transparent 68%);
    filter: blur(60px);
    z-index: -1;
}

.cta h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    margin-bottom: 1.1rem;
}

.cta p {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-size: 1.08rem;
    color: var(--ink-2);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta .cta-mail {
    margin: 1.5rem auto 0;
    font-size: 0.92rem;
    color: var(--ink-3);
}

.cta-mail a,
.faq-body a {
    font-weight: 600;
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 97, 255, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t);
}

.cta-mail a:hover,
.faq-body a:hover { text-decoration-color: currentColor; }

/* ---------- Footer ---------- */

footer { padding: 4.5rem 2rem 3rem; }

.footer-inner { max-width: var(--maxw); margin: 0 auto; }

.footer-top {
    display: grid;
    grid-template-columns: 1.9fr repeat(4, 1fr);
    gap: 3rem 2.25rem;
    padding-bottom: 3rem;
}

.footer-brand .logo {
    height: 34px;
    margin-bottom: 1.35rem;
}

.footer-brand p {
    max-width: 340px;
    margin-bottom: 1.6rem;
    font-size: 0.92rem;
    color: var(--ink-3);
}

.socials { display: flex; gap: 0.6rem; }

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--tint);
    color: var(--blue);
    transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
}

.socials a:hover {
    transform: translateY(-3px);
    background: var(--grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.socials svg { width: 19px; height: 19px; }

.footer-col h3 {
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--ink-3);
    transition: color var(--t), transform var(--t);
}

.footer-col a:hover {
    color: var(--blue);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
}

.footer-bottom p,
.footer-policies a {
    font-size: 0.85rem;
    color: var(--ink-3);
}

.footer-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
}

.footer-policies a { transition: color var(--t); }
.footer-policies a:hover { color: var(--blue); }

/* ---------- Chi tiết sản phẩm (gộp từ trang /products) ---------- */

.details {
    max-width: var(--maxw);
    margin: 0 auto;
}

/* Thanh chọn sản phẩm dính ngay dưới header khi cuộn trong khối chi tiết. */
.dtabs-wrap {
    --stick: 88px;   /* JS đọc biến này để tính vị trí cuộn */
    position: sticky;
    top: var(--stick);
    z-index: 50;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    pointer-events: none;
}

.dtabs {
    position: relative;
    display: flex;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.35rem;
    border-radius: var(--r-pill);
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--glass-top), var(--sh-2);
    overflow-x: auto;
    scrollbar-width: none;
    pointer-events: auto;
}

.dtabs::-webkit-scrollbar { display: none; }

[data-theme="dark"] .dtabs { background: rgba(13, 20, 36, 0.86); }

.dtab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.55rem 1.15rem 0.55rem 0.95rem;
    border-radius: var(--r-pill);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color var(--t), background-color var(--t), box-shadow var(--t);
}

.dtab svg { width: 16px; height: 16px; flex-shrink: 0; }

.dtab:hover { color: var(--blue); background: var(--tint); }

.dtab[aria-selected="true"] {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.dpanel { animation: panelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Trước khi JS chạy chỉ hiện tab đầu, tránh 5 bảng nháy cùng lúc. Không có JS thì hiện hết. */
.js:not(.details-ready) .dpanel + .dpanel { display: none; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.dp-head {
    padding: 2.5rem;
    border-radius: var(--r-lg);
}

.dp-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blue);
}

.dp-head h3 {
    max-width: 820px;
    margin-bottom: 0.8rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.dp-sub {
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
}

.dp-lede {
    max-width: 780px;
    margin-bottom: 1.6rem;
    font-size: 1.02rem;
    color: var(--ink-2);
}

.dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-sm {
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
}

.btn-sm svg { width: 18px; height: 18px; }

.dp-block { margin-top: 3rem; }

.dp-h {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.dp-h::before {
    content: '';
    width: 5px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 3px;
    background: var(--grad);
}

.dp-desc {
    max-width: 820px;
    margin: -0.4rem 0 1.5rem;
    font-size: 0.98rem;
    color: var(--ink-2);
}

.dp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 3rem;
}

.dp-grid > .dp-block { margin-top: 0; }

/* Thực trạng vận hành */
.pain {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.pain li {
    position: relative;
    padding: 1.1rem 1.25rem 1.1rem 3.2rem;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    font-size: 0.94rem;
    color: var(--ink-2);
}

.pain li::before {
    content: '';
    position: absolute;
    top: 1.15rem;
    left: 1.1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(229, 72, 77, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5484d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.pain strong { font-weight: 600; color: var(--ink); }

/* Luồng các bước */
.flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.flow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--tint);
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.flow-num svg { width: 17px; height: 17px; }

.is-final .flow-num {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.flow-text { display: flex; flex-direction: column; gap: 0.15rem; }

.flow-text strong {
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.4;
}

.flow-text span {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-3);
}

/* Nhóm tích hợp */
.integ {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.integ-group {
    padding: 1.35rem 1.4rem;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.integ-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.integ-group .chips,
.callout .chips { margin-top: 0; }

.chip.is-soon {
    background: var(--track);
    color: var(--ink-3);
}

.chip em {
    margin-left: 0.3rem;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 600;
    opacity: 0.85;
}

.roster .chip { font-size: 0.82rem; padding: 0.45rem 0.95rem; }

.chip.is-lead {
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--sh-brand);
}

/* Lưới tính năng */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feat {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.feat h5 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.feat p {
    font-size: 0.9rem;
    color: var(--ink-2);
}

.feat-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.9rem;
    border-radius: var(--r-sm);
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--sh-brand);
}

.feat-badge {
    align-self: flex-start;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--on-tint);
    font-size: 0.72rem;
    font-weight: 600;
}

.place-k {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.place-label {
    margin: 0.2rem 0 0.75rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.feat .place-q {
    margin-top: auto;
    padding-top: 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-style: italic;
    color: var(--blue);
}

/* Bảng so sánh: hai cột trên desktop, xếp chồng thành thẻ trên di động */
.compare {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.cmp-head,
.cmp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cmp-head span {
    padding: 0.95rem 1.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.cmp-head span:last-child {
    background: var(--grad);
    color: #fff;
}

.cmp-row:nth-child(odd) { background: rgba(0, 97, 255, 0.035); }

.cmp-cell {
    position: relative;
    padding: 1.05rem 1.5rem 1.05rem 3.2rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cmp-cell::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 1.35rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.cmp-old { color: var(--ink-3); }

.cmp-old::before {
    background-color: var(--track);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d90a8' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.cmp-new {
    color: var(--ink);
    background: rgba(0, 97, 255, 0.05);
}

.cmp-new::before {
    background-color: var(--tint-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230061ff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Chú thích chỉ dùng trên di động (desktop đã có hàng tiêu đề của bảng). */
.cmp-legend {
    display: none;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.cmp-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem 0.25rem 0.28rem;
    border-radius: var(--r-pill);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.cmp-legend span::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.cl-old { background: var(--track); color: var(--ink-3); }

.cl-old::before {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d90a8' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.cl-new { background: var(--tint-2); color: var(--on-tint); }

.cl-new::before {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230061ff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Nhãn cột chỉ dành cho trình đọc màn hình. */
.cmp-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Khối nhấn mạnh */
.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-top: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: var(--r-lg);
    background: var(--tint);
}

.dp-block > .callout:first-child { margin-top: 0; }

.callout-copy { flex: 1 1 420px; }

.callout h5 {
    margin-bottom: 0.4rem;
    font-size: 1.12rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.callout p {
    max-width: 680px;
    font-size: 0.95rem;
    color: var(--ink-2);
}

.callout > .chips { flex: 0 1 auto; }

.callout-stack { flex-direction: column; align-items: stretch; }

.callout-cols {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.callout-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.callout-stat svg { width: 18px; height: 18px; color: var(--ink-3); }

.cs-old,
.cs-new {
    padding: 0.55rem 1rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.cs-old { background: var(--surface); color: var(--ink-3); }

.cs-new {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.dp-next {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

@media (max-width: 1080px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .pain-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .dp-grid { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
    .dp-grid > .dp-block { margin-top: 2.5rem; }
    .flow-row { grid-template-columns: 1fr; }
    .integ { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Thanh tab di động: 5 ô đều nhau, icon trên chữ dưới, thấy đủ cả 5 sản phẩm không phải vuốt. */
    .dtabs-wrap {
        --stick: 80px;
        margin-bottom: 1.25rem;
    }

    /* Khi đang đọc chi tiết và cuộn xuống, header ẩn đi, thanh tab lên sát mép trên. */
    .head-hidden .dtabs-wrap { --stick: 12px; }

    header { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
    .head-hidden header { transform: translateY(-110%); }

    .dtabs {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        width: 100%;
        padding: 4px;
        border-radius: 20px;
        overflow: visible;
        background: rgba(255, 255, 255, 0.94);
    }

    [data-theme="dark"] .dtabs { background: rgba(13, 20, 36, 0.94); }

    .dtab {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 54px;
        padding: 6px 2px;
        border-radius: 16px;
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .dtab svg { width: 19px; height: 19px; }
    .dtab-long { display: none; }

    .dp-head { padding: 1.5rem 1.35rem; }
    .dp-head h3 { font-size: 1.5rem; }
    .dp-sub { font-size: 0.98rem; }
    .dp-lede { font-size: 0.96rem; margin-bottom: 1.35rem; }
    .dp-actions .btn { width: 100%; }

    .dp-block,
    .dp-grid > .dp-block { margin-top: 2.25rem; }

    .dp-h { font-size: 1.12rem; margin-bottom: 1rem; }
    .dp-desc { font-size: 0.94rem; margin-bottom: 1.15rem; }

    .feat-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .feat { padding: 1.2rem 1.25rem; }

    .pain li { padding: 1rem 1.1rem 1rem 3rem; font-size: 0.92rem; }
    .pain li::before { top: 1.05rem; left: 1rem; }

    .flow-step { padding: 0.95rem 1.1rem; }

    .integ-group { padding: 1.15rem 1.2rem; }

    /* Bảng so sánh thành từng thẻ gọn: chú thích ✕ / ✓ hiện một lần ở trên,
       mỗi thẻ chỉ còn dòng cũ (mờ, nhỏ) và dòng mới (đậm, nền xanh nhạt). */
    .cmp-legend { display: flex; }
    .compare { background: none; box-shadow: none; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 0.6rem; }
    .cmp-head { display: none; }
    .cmp-row,
    .cmp-row:nth-child(odd) {
        grid-template-columns: 1fr;
        border-radius: var(--r-md);
        overflow: hidden;
        background: var(--surface);
        box-shadow: var(--glass-top), var(--sh-1);
    }
    .cmp-cell { padding: 0.8rem 1rem 0.8rem 2.6rem; font-size: 0.9rem; line-height: 1.5; }
    .cmp-old { padding-bottom: 0.65rem; font-size: 0.84rem; }
    .cmp-cell::before { top: 0.85rem; left: 0.85rem; width: 20px; height: 20px; background-size: 11px; }

    /* Tính năng: gộp thành một danh sách trong một thẻ thay vì 6 thẻ rời. */
    .feat-list {
        gap: 0;
        padding: 0.35rem 1.1rem;
        border-radius: var(--r-md);
        background: var(--surface);
        box-shadow: var(--glass-top), var(--sh-1);
    }

    .feat-list .feat {
        position: relative;
        padding: 0.85rem 0 0.85rem 2rem;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .feat-list .feat::before {
        content: '';
        position: absolute;
        top: 0.95rem;
        left: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--tint-2);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230061ff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 11px;
    }

    .feat-list .feat h5 { margin-bottom: 0.15rem; font-size: 0.95rem; }
    .feat-list .feat p { font-size: 0.87rem; }

    /* Nhóm kết nối: gộp 4 thẻ thành một thẻ, mỗi nhóm một dòng nhãn và chip. */
    .integ {
        gap: 0;
        padding: 0.3rem 1.1rem;
        border-radius: var(--r-md);
        background: var(--surface);
        box-shadow: var(--glass-top), var(--sh-1);
    }

    .integ-group {
        padding: 0.85rem 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .integ-group .integ-label { margin-bottom: 0.55rem; }

    .callout { padding: 1.35rem 1.25rem; gap: 1rem; }
    .callout-copy { flex-basis: 100%; }
    .callout h5 { font-size: 1.04rem; }
    .callout p { font-size: 0.92rem; }

    .dp-next { margin-top: 2.25rem; }
    .dp-next .btn { width: 100%; }
}

/* ---------- Giới thiệu (gộp từ trang /about) ---------- */

.about {
    max-width: var(--maxw);
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.profile {
    padding: 1.25rem;
    border-radius: var(--r-lg);
    text-align: center;
}

.profile-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 1.1rem;
    border-radius: var(--r-md);
}

.profile-name { font-size: 1.45rem; }

.profile-role {
    margin: 0.25rem 0 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 56px;
    padding: 0.65rem 0.85rem;
    border-radius: var(--r-sm);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    transition: transform var(--t), box-shadow var(--t);
}

.profile-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-top), var(--sh-2);
}

.pl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint);
    color: var(--blue);
}

.pl-icon svg { width: 17px; height: 17px; }

.pl-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pl-text strong { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }

.pl-text span {
    overflow: hidden;
    font-size: 0.78rem;
    color: var(--ink-3);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bio {
    padding: 1.75rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.bio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.bio-head .integ-label { margin: 0; }

.bio-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.65;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color var(--t), color var(--t);
}

.copy-btn:hover { background: var(--tint-2); }
.copy-btn svg { width: 15px; height: 15px; }

.copy-btn .cb-done,
.copy-btn.is-copied .cb-idle { display: none; }
.copy-btn.is-copied .cb-done { display: inline; }

.copy-btn.is-copied {
    background: var(--ok-bg);
    color: var(--ok);
}

.bio-more { margin-top: 1rem; }

.bio-more summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
    list-style: none;
}

.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary svg { width: 16px; height: 16px; transition: transform var(--t); }
.bio-more[open] summary svg { transform: rotate(180deg); }

.bio-long {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

.bio-long dt {
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.bio-long dd {
    font-size: 0.92rem;
    color: var(--ink-2);
}

.motto { margin-top: 0; }

.callout .motto-text {
    max-width: none;
    font-size: 1.02rem;
    font-style: italic;
    color: var(--ink);
}

/* Bốn thẻ nằm ở cột phải, dưới phần giới thiệu, để cân với ảnh hồ sơ bên trái. */
.feat-grid-4 { grid-template-columns: repeat(2, 1fr); }
.about-cards .feat { padding: 1.3rem 1.4rem; }

.feat .card-link {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Sự kiện: hàng ngang vuốt được, có nút trước/sau trên desktop */
.events-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.events-head .dp-h { margin-bottom: 0; }

.ev-nav { display: flex; gap: 0.5rem; }

.ev-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    color: var(--ink-2);
    transition: color var(--t), opacity var(--t), box-shadow var(--t);
}

.ev-btn:hover:not(:disabled) { color: var(--blue); box-shadow: var(--glass-top), var(--sh-2); }
.ev-btn:disabled { opacity: 0.35; cursor: default; }
.ev-btn svg { width: 20px; height: 20px; }

.events {
    display: flex;
    gap: 1rem;
    margin: 0 -0.5rem;
    padding: 0.25rem 0.5rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.events::-webkit-scrollbar { display: none; }

.event {
    flex: 0 0 calc((100% - 2rem) / 3);
    scroll-snap-align: start;
}

.event > a,
.event > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.event > a:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-top), var(--sh-2);
}

.ev-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--track);
}

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

.ev-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad);
    color: rgba(255, 255, 255, 0.9);
}

.ev-placeholder svg { width: 44px; height: 44px; }

.ev-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
}

.ev-play svg { width: 22px; height: 22px; margin-left: 3px; }

.ev-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.2rem 1.2rem;
}

.ev-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

.ev-body strong {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

.ev-sub {
    font-size: 0.82rem;
    color: var(--ink-3);
}

/* Tài nguyên thương hiệu */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.brand-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--glass-top), var(--sh-1);
}

.brand-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 1.5rem;
    background: #fff;
}

.brand-thumb img {
    width: auto;
    max-width: 80%;
    max-height: 56px;
}

.brand-thumb.is-dark { background: #0b1220; }

.brand-thumb.is-photo { padding: 0; }

.brand-thumb.is-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center 28%;
}

.brand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.brand-meta strong {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 1080px) {
    .about-grid { grid-template-columns: 300px 1fr; }
    .event { flex-basis: calc((100% - 1rem) / 2); }
}

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

    /* Ảnh nhỏ bên trái, tên bên phải để hồ sơ không chiếm hết màn hình. */
    .profile {
        display: grid;
        grid-template-columns: 104px 1fr;
        align-items: center;
        column-gap: 1.1rem;
        text-align: left;
    }

    .profile-photo { grid-row: span 2; margin: 0; }
    .profile-name { align-self: end; font-size: 1.3rem; }
    .profile-role { align-self: start; margin: 0.15rem 0 0; }
    .profile-links { grid-column: 1 / -1; margin-top: 1.1rem; }
}

@media (max-width: 768px) {
    .bio { padding: 1.35rem 1.25rem; }
    .bio-head { flex-wrap: wrap; }
    .bio-text { font-size: 1rem; }
    .callout .motto-text { font-size: 0.96rem; }

    .feat-grid-4 { grid-template-columns: 1fr; }

    .ev-nav { display: none; }
    .events {
        margin: 0 calc(-1 * max(1.25rem, env(safe-area-inset-left)));
        padding: 0.25rem max(1.25rem, env(safe-area-inset-left)) 1rem;
        scroll-padding: 0 max(1.25rem, env(safe-area-inset-left));
        gap: 0.85rem;
    }
    .event { flex-basis: 80%; }

    .brand-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .brand-item { flex-direction: row; align-items: stretch; }
    .brand-thumb { flex: 0 0 120px; aspect-ratio: auto; min-height: 84px; padding: 0.9rem; }
    .brand-thumb img { max-width: 100%; max-height: 34px; }
    .brand-meta { flex: 1; flex-wrap: wrap; padding: 0.8rem 1rem; }
}

@media (hover: none) {
    .profile-links a:hover,
    .event > a:hover { transform: none; }
}

/* ---------- Reveal ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--t-spring), transform var(--t-spring);
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.cards .reveal:nth-child(2),
.principles .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3),
.principles .reveal:nth-child(3) { transition-delay: 0.16s; }
.principles .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    nav .nav-link { padding: 0.5rem 0.7rem; }

    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards .card-hero { grid-column: 1 / -1; }

    .result-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 720px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 760px;
    }

    .principles { grid-template-columns: repeat(2, 1fr); }

    .footer-top { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

/* Menu có 6 mục nên chuyển sang nút menu sớm hơn để không bị chật. */
@media (max-width: 1140px) {
    header { padding: 0.75rem 1rem; }

    .header-inner {
        background: var(--glass);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-edge), var(--glass-top), var(--sh-1);
    }

    .header-inner::before { opacity: 0.55; }

    #nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        margin: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        width: max-content;
        min-width: 240px;
        max-width: min(300px, calc(100vw - 2rem));
        padding: 0.6rem;
        border-radius: var(--r-md);
        background: var(--bg-soft);
        box-shadow: var(--glass-edge), var(--glass-top), var(--sh-2);
        transform-origin: top right;
    }

    #nav.active {
        display: flex;
        animation: menuIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes menuIn {
        from { opacity: 0; transform: translateY(-8px) scale(0.96); }
        to { opacity: 1; transform: none; }
    }

    #nav .nav-link {
        padding: 0.8rem 1rem;
        border-radius: var(--r-sm);
        font-size: 1rem;
    }

    .nav-cta {
        margin: 0.3rem 0 0;
        padding: 0.85rem 1.2rem;
        text-align: center;
    }

    nav + .header-actions { margin-left: auto; }
    .menu-btn { display: flex; }
}

@media (max-width: 768px) {
    :root { --glass-blur: blur(18px) saturate(170%); --head-h: 68px; }

    header { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
    .section, footer { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

    .hero {
        padding: calc(var(--head-h) + 2.25rem) max(1.25rem, env(safe-area-inset-left)) 3rem;
    }

    .hero-badge { margin-bottom: 1.4rem; }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -0.035em;
        margin-bottom: 1.25rem;
    }

    .hero-lede { font-size: 1.02rem; margin-bottom: 2rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-actions .btn { width: 100%; }

    /* Ba con số xếp thành một hàng ba cột: gọn và đọc lướt nhanh hơn ba viên thuốc rời rạc. */
    .hero-pills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .pill {
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        padding: 0.8rem 0.5rem;
        border-radius: var(--r-md);
        font-size: 0.74rem;
        line-height: 1.35;
        text-align: center;
    }

    .pill strong { font-size: 1.15rem; }

    .stage { margin-top: 3rem; }
    .console { padding: 0.85rem; }
    .console-bar { padding-bottom: 0.85rem; }
    .console-body { grid-template-columns: 1fr; gap: 0.75rem; }
    .panel { padding: 1rem; gap: 0.85rem; }
    .float-chip { display: none; }

    .lang-code, .lang-btn .chevron-icon { display: none; }
    .lang-btn { padding: 0 0.55rem; }
    .logo { height: 30px; }

    .stack { padding: 0.5rem 0 1rem; }

    .section { padding-top: 4.25rem; padding-bottom: 4.25rem; }
    .section-cta { padding-bottom: 5rem; }
    .section-head { margin-bottom: 2.25rem; }
    .section-head p, .split-copy > p { font-size: 1rem; }

    .group + .group { margin-top: 3rem; }
    .group-head { margin-bottom: 1.1rem; }
    .group-head h3 { font-size: 1.2rem; }
    .group-head p { font-size: 0.94rem; }

    .cards, .cards-2 { grid-template-columns: 1fr; gap: 1rem; }
    .card { padding: 1.5rem; }
    .card-top { margin-bottom: 1.1rem; }
    .card-icon { width: 46px; height: 46px; }
    .card-icon svg { width: 22px; height: 22px; }
    .card h3, .card h4 { font-size: 1.25rem; }
    .card-desc { font-size: 0.95rem; }

    .result-grid { gap: 1.5rem; }
    .report-frame { padding: 0.5rem; }
    .report-zoom { right: 1rem; bottom: 1rem; }

    .result-stats { grid-template-columns: 1fr; gap: 0.6rem; }

    .result-stats .stat-tile {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.25rem;
        border-radius: var(--r-md);
        text-align: left;
    }

    .result-stats .stat-tile strong { font-size: 1.45rem; }
    .result-stats .stat-tile span { font-size: 0.85rem; }

    .geo { padding: 1.25rem; gap: 0.7rem; }
    .geo-row { grid-template-columns: 96px 1fr 54px; gap: 0.6rem; }
    .geo-name { font-size: 0.84rem; }

    /* Trên di động: icon bên trái, chữ bên phải để mỗi nguyên tắc thấp hơn. */
    .principles { grid-template-columns: 1fr; gap: 0.75rem; }

    .principle {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 1rem;
        padding: 1.25rem;
        border-radius: var(--r-md);
    }

    .principle-icon { grid-row: span 2; margin-bottom: 0; }
    .principle h3 { margin-bottom: 0.3rem; font-size: 1.02rem; align-self: center; }

    .faq-item summary { padding: 1rem 1.1rem; font-size: 0.98rem; }
    .faq-body { padding: 0 1.1rem 1.15rem; font-size: 0.94rem; }

    .cta { padding: 2.75rem 1.35rem; }
    .cta p { font-size: 1rem; margin-bottom: 2rem; }
    .cta-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }

    footer { padding-top: 3.5rem; padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        padding-bottom: 2.25rem;
    }

    .footer-brand p { max-width: none; }

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

    .footer-policies { justify-content: center; gap: 0.25rem 1.4rem; }


    .aurora-1 { width: 420px; height: 420px; top: -160px; right: -120px; }
    .aurora-2 { width: 360px; height: 360px; left: -160px; }
    .aurora-3 { width: 320px; height: 320px; bottom: -140px; }
}

@media (max-width: 460px) {
    .hero-title { font-size: 2rem; }
    .hero-badge { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
    .bar-row { grid-template-columns: 78px 1fr; }
    .section-head h2, .split-copy h2, .cta h2 { font-size: 1.7rem; }
    .card { padding: 1.35rem; }
    .approve { flex-wrap: wrap; }
    .approve-btns { margin-left: 0; }
}

@media (max-width: 360px) {
    .dtab { font-size: 0.64rem; }
    .dtab svg { width: 17px; height: 17px; }
    .hero-title { font-size: 1.9rem; }
    .footer-top { grid-template-columns: 1fr; }
}

/* Thiết bị cảm ứng: bỏ hiệu ứng hover bị "dính" và bảo đảm vùng bấm tối thiểu 44px. */
@media (hover: none) {
    .card:hover,
    .stat-tile:hover,
    .principle:hover,
    .btn:hover,
    .nav-cta:hover,
    .socials a:hover,
    .footer-col a:hover { transform: none; }

    .card:hover .card-icon { transform: none; }
    .card-link:hover, .text-link:hover { gap: 0.45rem; }

    .nav-link,
    .footer-col a,
    .footer-policies a,
    .lang-option { min-height: 44px; display: flex; align-items: center; }

    .footer-col li { margin-bottom: 0.1rem; }

    .icon-btn,
    .menu-btn { width: 44px; height: 44px; }

    .lang-btn { min-width: 44px; height: 44px; justify-content: center; }
    .brand { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal { opacity: 1; transform: none; }

    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-track { width: auto; animation: none; }
    .marquee-list { flex-wrap: wrap; justify-content: center; padding: 0 1.25rem; }
    .marquee-list[aria-hidden="true"] { display: none; }
}

::selection { background: rgba(0, 97, 255, 0.18); }
