/* DxTroy — Explore. Test. Transform. (Phase 1, 01/12/2026). Một tệp, không phụ thuộc bộ landing cũ.
   Nguyên tắc: chữ lớn, nhiều khoảng thở, một màu nhấn; mỗi Page một bố cục (Home tối, Insights tạp chí, Explore ô công nghệ,
   Lab sổ thí nghiệm có lưới, Liên hệ hai cột). Sáng / tối theo máy. */
/* 01/12/2026: theo ebig.io (EbigTemplateWeb/patterns/EbigLanding): nền gần đen, Geist, chữ trắng / xám, viền mảnh, một màu xanh Ebig. */
:root {
  --bg: #080808; --soft: #0e0e10; --card: #111113; --ink: #f5f5f6; --ink2: #b4b4bb; --muted: #85858f; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --accent: #7aa6ff; --brand: #1857e9; --accent-ink: #fff; --lab: #4ed08a; --danger: #ff7b70; --dark: #080808; --dark2: #111113; --on-dark: #f5f5f6; --on-dark-2: #a1a1aa;
  --r: 14px; --r-sm: 10px; --wrap: 1200px; --narrow: 760px;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; --serif: var(--sans);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 24px 48px -12px rgba(0,0,0,.6), 0 0 0 1px var(--line2);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .more a, .small a { color: var(--accent); }
p a:hover, .prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
.preview-bar { margin: 0; padding: 8px 16px; background: #ffd84d; color: #222; font-size: 14px; text-align: center; }
.arr { display: inline-block; transition: transform .2s; }
a:hover .arr { transform: translateX(3px); }

/* nút */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--light { background: #fff; color: #0b0b0f; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* đầu trang */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }
.brand span { color: var(--accent); }
.nav { flex: 1; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--ink2); }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.hdr__cta[aria-current="page"] { opacity: .6; }
.mnav { display: none; margin-left: auto; position: relative; }
.mnav summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; cursor: pointer; border-radius: 12px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.mnav[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.mnav[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav nav { position: fixed; left: 0; right: 0; top: 60px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav a { display: block; padding: 14px 8px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (max-width: 1080px) { .nav, .hdr__cta { display: none; } .mnav { display: block; } }

/* đầu Page */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.phead { padding: 88px 0 40px; }
.phead h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; font-weight: 800; }
.phead__lead { margin-top: 20px; max-width: 720px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink2); }
.phead--insights h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; }
.phead--lab { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.phead--lab h1 { font-family: var(--mono); letter-spacing: -0.06em; }
.phead--lab .eyebrow { color: var(--lab); }
.phead--explore { background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.phead--contact { padding-bottom: 8px; }

/* khối */
.band { padding: 72px 0; }
.band--tight { padding: 40px 0; }
.band--soft { background: var(--soft); }
.band--dark { background: var(--dark); color: var(--on-dark); }
.shead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-bottom: 28px; }
.shead h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.shead p { color: var(--muted); max-width: 520px; }
.more { margin-top: 24px; font-weight: 600; }
.more a { color: var(--accent); }

/* thẻ */
.grid2, .grid3 { display: grid; gap: 20px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media.is-fig { display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(135deg, var(--dark2), var(--dark)); color: var(--on-dark); }
.card__media.is-fig b { font-size: clamp(40px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1; }
.card__media.is-fig span { color: var(--on-dark-2); font-size: 14px; margin-top: 8px; }
.play { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #0b0b0f; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.card__kicker { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card__title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.card__sum { color: var(--ink2); font-size: 15.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.card--big .card__title { font-size: clamp(24px, 3vw, 34px); }
.card--big .card__sum { -webkit-line-clamp: 4; font-size: 17px; }
.card--flat { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--flat .card__body { padding: 18px 0; }
.card--flat:hover .card__title { color: var(--accent); }
.l-insights .card__title, .l-insights .lead__title { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; background: var(--soft); color: var(--ink2); border: 1px solid var(--line); }
.tag[data-tone="ok"] { color: var(--lab); border-color: color-mix(in srgb, var(--lab) 40%, transparent); background: color-mix(in srgb, var(--lab) 10%, transparent); }
.tag[data-tone="demo"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tag[data-tone="plan"], .tag[data-tone="wait"] { color: #b26a00; border-color: rgba(178,106,0,.35); background: rgba(255,170,0,.1); }

/* Home */
.l-home .hdr { background: color-mix(in srgb, var(--dark) 80%, transparent); border-color: rgba(255,255,255,.08); color: var(--on-dark); }
.l-home .hdr .nav a { color: var(--on-dark-2); }
.l-home .hdr .nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.l-home .hdr .btn { background: #fff; color: #0b0b0f; }
.l-home .mnav summary span { background: #fff; }
.l-home .mnav nav { background: var(--dark); color: var(--on-dark); }
.l-home .mnav a { border-color: rgba(255,255,255,.1); }
.hero { background: var(--dark); color: var(--on-dark); padding: 96px 0 80px; margin-top: -61px; padding-top: 157px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(77,124,255,.32), transparent); pointer-events: none; }
.hero__in { position: relative; }
.hero__who { font-size: 15px; color: var(--on-dark-2); font-weight: 500; }
.hero__title { margin-top: 18px; font-size: clamp(52px, 10.5vw, 136px); font-weight: 800; letter-spacing: -0.055em; line-height: .98; }
.hero__title span { display: inline-block; background: linear-gradient(180deg, #fff 30%, #9aa6c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title span:nth-child(2) { background-image: linear-gradient(180deg, #a9bcff, #4d7cff); }
.hero__lead { margin-top: 26px; max-width: 640px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: #d6d6de; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 64px 0 0; background: rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; max-width: 900px; }
.hero__stats div { background: var(--dark); padding: 22px 22px 20px; display: flex; flex-direction: column-reverse; gap: 6px; }
.hero__stats dd { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.hero__stats dt { font-size: 14px; color: var(--on-dark-2); }
.hero__src { margin-top: 14px; font-size: 13px; color: var(--on-dark-2); }
.hero__src a { color: #a9bcff; }
@media (max-width: 640px) { .hero { padding-bottom: 56px; } .hero__stats { grid-template-columns: 1fr; } .hero__stats div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 16px 18px; } .hero__stats dd { font-size: 28px; } }
.doors { padding-top: 56px; }
.doors__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doors__list a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; border-radius: var(--r); background: var(--soft); transition: transform .2s; }
.doors__list a:hover { transform: translateY(-3px); }
.doors__n { font: 600 13px var(--mono); color: var(--muted); }
.doors__k { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.045em; }
.doors__list li:nth-child(1) .doors__k { color: var(--accent); }
.doors__list li:nth-child(2) .doors__k { color: var(--lab); font-family: var(--mono); letter-spacing: -0.06em; }
.doors__list b { font-size: 17px; }
.doors__t { color: var(--ink2); font-size: 15.5px; }
.doors__go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .doors__list { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.feature__side { display: flex; flex-direction: column; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.band--lab { background: var(--soft); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.labs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .labs { grid-template-columns: 1fr; } }
.labcard { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s; }
.labcard:hover { box-shadow: var(--shadow); }
.labcard__k { font: 600 13px var(--mono); color: var(--lab); }
.labcard > b { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; }
.labcard__go { font-weight: 600; color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.metrics div { background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.metrics dd { margin: 0; font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--mono); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.metrics dt { font-size: 13px; color: var(--muted); line-height: 1.35; }
.vfeature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; background: var(--dark); color: var(--on-dark); }
.vfeature__img { position: relative; display: block; }
.vfeature__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.vfeature__body { display: flex; flex-direction: column; gap: 12px; justify-content: center; padding: 36px; }
.vfeature__body b { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.vfeature__body > span:not(.card__kicker):not(.more) { color: #c9c9d2; }
.vfeature .card__kicker { color: var(--on-dark-2); }
.vfeature .more { color: #a9bcff; margin-top: 8px; }
@media (max-width: 860px) { .vfeature { grid-template-columns: 1fr; } .vfeature__body { padding: 24px; } }
.sigs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sig { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sig time { font: 500 14px var(--mono); color: var(--muted); padding-top: 3px; }
.sig b { display: block; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.sig p { color: var(--ink2); margin-top: 6px; font-size: 15.5px; }
.sig a { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--accent); }
@media (max-width: 640px) { .sig { grid-template-columns: 1fr; gap: 6px; } }
.band--about { background: var(--dark); color: var(--on-dark); }
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.about h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.045em; }
.about .eyebrow { color: var(--on-dark-2); }
.about__head { margin-top: 14px; color: var(--on-dark-2); font-size: 19px; }
.about p { color: #d6d6de; font-size: 18px; line-height: 1.6; }
.about__disc { margin-top: 14px; padding-left: 14px; border-left: 2px solid #6d8dff; font-size: 15.5px !important; color: var(--on-dark-2) !important; }
.q3__t { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.q3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: q; }
.q3 li { counter-increment: q; padding: 22px; border-radius: var(--r); background: var(--soft); font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.q3 li::before { content: "0" counter(q); display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 10px; }
@media (max-width: 760px) { .q3 { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 14px; color: var(--on-dark); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 20px; } }
.cta { padding: 96px 0; text-align: center; }
.cta__in { display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; max-width: 860px; }
.cta p { margin-top: 18px; color: var(--ink2); font-size: 19px; max-width: 620px; }
.cta .actions { justify-content: center; }

/* Insights */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink2); background: var(--card); }
.chips a span { font: 500 12px var(--mono); color: var(--muted); }
.chips a:hover { border-color: var(--ink2); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips a[aria-current="page"] span { color: inherit; opacity: .7; }
.lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: box-shadow .2s; }
.lead:hover { box-shadow: var(--shadow); }
.lead__fig { display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; background: linear-gradient(135deg, #10131f, #0b0b0f 60%); color: var(--on-dark); min-height: 280px; }
.lead__fig b { font-size: clamp(64px, 8vw, 112px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.lead__fig span { margin-top: 12px; color: var(--on-dark-2); }
.lead__body { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 40px; }
.lead__title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
.lead__sum { font-size: 18px; color: var(--ink2); }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; } .lead__fig { min-height: 180px; padding: 24px; } .lead__body { padding: 24px; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 110px 1fr 24px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row time { font: 500 14px var(--mono); color: var(--muted); padding-top: 4px; }
.row__main { display: flex; flex-direction: column; gap: 4px; }
.row__k { font-size: 13px; color: var(--muted); font-weight: 600; }
.row b { font-size: 20px; line-height: 1.3; font-family: var(--serif); font-weight: 600; }
.row__s { color: var(--ink2); font-size: 15.5px; }
.row:hover b { color: var(--accent); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 6px; } .row .arr { display: none; } }

/* Explore */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 220px; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); }
.tile[data-topic="security"]::before { background: radial-gradient(closest-side, rgba(255,90,90,.28), transparent); }
.tile[data-topic="cloud"]::before { background: radial-gradient(closest-side, rgba(0,170,255,.28), transparent); }
.tile[data-topic="automation"]::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--lab) 30%, transparent), transparent); }
.tile[data-topic="agents"]::before { background: radial-gradient(closest-side, rgba(160,90,255,.3), transparent); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__n { font: 500 12.5px var(--mono); color: var(--muted); }
.tile b { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; }
.tile > span:not(.tile__n):not(.tile__go) { color: var(--ink2); font-size: 15px; }
.tile__go { margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--accent); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* Lab */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lab); color: #fff; font: 600 12px var(--mono); }
.ltable { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.ltable table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ltable th, .ltable td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.ltable tr:last-child td { border-bottom: 0; }
.ltable th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.ltable td a { font-weight: 600; }
.ltable td a:hover { color: var(--accent); }
.ltable time { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.ltable .num { font: 700 18px var(--mono); white-space: nowrap; }
.ltable .num span { display: block; font: 400 12.5px var(--sans); color: var(--muted); white-space: normal; margin-top: 2px; }
.labrow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.labrow h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; }
.labrow h2 a:hover { color: var(--accent); }
.labrow p { color: var(--ink2); }
@media (max-width: 860px) { .labrow { grid-template-columns: 1fr; gap: 24px; } }

/* một nội dung */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { display: inline-block; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ihead { padding: 56px 0 36px; }
.ihead h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.035em; }
.l-article .ihead h1, .l-video .ihead h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.025em; }
.ihead--lab { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.ihead--lab .eyebrow { color: var(--lab); font-family: var(--mono); }
.ihead__sum { margin-top: 20px; font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink2); }
.imeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.imeta > span:first-child { color: var(--ink); font-weight: 600; }
.metrics--head { margin-top: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .metrics--head { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.player { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.player video { width: 100%; border-radius: var(--r-sm); background: #000; aspect-ratio: 16 / 9; }
.chapters { list-style: none; margin: 0; padding: 0; max-height: 100%; overflow: auto; }
.chapters a { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--on-dark); font-size: 15px; }
.chapters a:hover, .chapters a.is-on { background: rgba(255,255,255,.08); }
.chapters time { font-family: var(--mono); color: #a9bcff; }
@media (max-width: 860px) { .player { grid-template-columns: 1fr; } }
.article { display: block; padding-top: 8px; padding-bottom: 72px; }
.article.has-toc { display: grid; grid-template-columns: 220px minmax(0, var(--narrow)); gap: 56px; justify-content: center; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.toc a:hover, .toc a.is-on { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 980px) { .article.has-toc { display: block; } .toc { display: none; } }
.md-table { max-width: 100%; }
.prose { max-width: var(--narrow); margin: 0 auto; font-size: 18.5px; line-height: 1.72; color: var(--ink2); }
.article:not(.has-toc) .prose { margin: 0 auto; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink); }
.prose h2 { margin-top: 2.2em; font-size: 28px; color: var(--ink); letter-spacing: -0.025em; }
.prose h3 { margin-top: 1.8em; font-size: 21px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ol > li::marker { font-weight: 700; color: var(--ink); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink); }
.prose code { font: 500 .88em var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r-sm); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.md-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.md-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.md-table th, .md-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table th { background: var(--soft); color: var(--ink); font-weight: 600; font-size: 14px; }
.md-table td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-table th.num { text-align: right; }
.article > *, .prose { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.md-table th, .md-table td { overflow-wrap: normal; word-break: normal; }
.md-table td:first-child { min-width: 6.5em; font-weight: 600; color: var(--ink); }
.prose--lab h2 { font-family: var(--mono); font-size: 22px; letter-spacing: -0.04em; display: flex; align-items: center; gap: 10px; }
.prose--lab h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lab); }
.md-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .md-roles { grid-template-columns: 1fr; } }
.md-ceo, .md-cto, .md-start, .md-note, .md-scene, .md-evidence { padding: 20px 22px; border-radius: var(--r-sm); background: var(--soft); border: 1px solid var(--line); font-size: 17px; }
.md-ceo > * + *, .md-cto > * + *, .md-start > * + *, .md-note > * + *, .md-evidence > * + * { margin-top: .6em; }
.md-label { font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.md-start { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.md-start .md-label { color: #a9bcff; }
.md-start p { color: #e6e6ec; }
.md-note, .md-scene { font-size: 15px; color: var(--muted); background: transparent; }
.md-scene { padding: 10px 14px; font-style: italic; }
.md-evidence ul { font-size: 15.5px; }
.repro { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2em; padding: 16px 18px; border-radius: var(--r-sm); background: var(--dark); color: var(--on-dark); }
.repro span { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--lab); }
.repro code { background: transparent; border: 0; color: #fff; font-size: 15px; }
.sources { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 15px; }
.sources h2 { font-size: 18px !important; margin: 0 0 .6em !important; }
.sources ol { padding-left: 1.3em; }
.itopics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.itopics a { padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; color: var(--ink2) !important; text-decoration: none !important; }

/* Liên hệ */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact__side h2 { font-size: 24px; margin: 8px 0 18px; }
.contact__side h2:not(:first-child) { margin-top: 44px; }
.process { list-style: none; margin: 0 0 16px; padding: 0; }
.process li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.process li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 13px var(--mono); }
.process p, .services p { color: var(--ink2); font-size: 15.5px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.services li { padding: 18px 20px; border-radius: var(--r-sm); background: var(--soft); }
.services b { display: block; font-size: 17px; margin: 4px 0 6px; }
.services__for { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.small { font-size: 14px; color: var(--muted); }
.form { position: sticky; top: 84px; padding: 32px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.form h2 { font-size: 26px; }
.form__lead { color: var(--ink2); margin-top: -6px; }
.kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--soft); font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.frow { display: flex; flex-direction: column; gap: 6px; }
.frow label { font-size: 14px; font-weight: 600; }
.req { color: #d14; }
.in { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.in:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea.in { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--ink2); align-items: flex-start; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__status { font-size: 14.5px; }
.form__status.is-err { color: #d14; }
.form__done { text-align: center; padding: 40px 10px; }
.form__done span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--lab); color: #fff; font-size: 26px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } .form { position: static; padding: 22px; } }

/* ── Phase 2–3 ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.two-col h3 { font-size: 19px; margin-bottom: 14px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 6px 0 14px; }
.split__lead { color: #c9c9d2; font-size: 18px; }
.split video { width: 100%; border-radius: var(--r-sm); background: #000; aspect-ratio: 16 / 9; }
.band--dark .eyebrow { color: var(--on-dark-2); }
.band--dark .more a, .band--dark .more { color: #a9bcff; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.bigfig { display: flex; flex-direction: column; gap: 10px; padding: 36px; border-radius: var(--r); background: linear-gradient(135deg, #18203a, #0b0b0f); }
.bigfig b { font-size: clamp(72px, 10vw, 128px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.bigfig span { color: var(--on-dark-2); }
.empty { padding: 22px 24px; border-radius: var(--r-sm); border: 1px dashed var(--line); color: var(--ink2); }
.lead--tool .lead__fig { background: linear-gradient(135deg, #0d3b2a, #0b0b0f 70%); }
.cta--trial { background: var(--soft); }
.cta--trial .small { margin-top: 18px; }
.form__trial { padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.phead--hub h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; }
.rows--plain .row { grid-template-columns: 60px 1fr; }

/* công cụ */
.tool { margin: 1.6em 0; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); font-size: 16px; color: var(--ink); }
.tool input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%)); margin: 10px 0 4px; }
.tool input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.tool input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.tool--check { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.tool__qs { margin: 0; padding-left: 1.2em; }
.tool__qs li + li { margin-top: 16px; }
.tool__qs label { font-weight: 600; line-height: 1.4; }
.tool__ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.tool__out { display: flex; flex-direction: column; gap: 14px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; font-size: 14px; }
.bars a { color: var(--ink) !important; }
.bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s; }
.bar span[data-level="low"] { background: #e0484a; }
.bar span[data-level="mid"] { background: #e6a100; }
.bar span[data-level="high"] { background: var(--lab); }
.tool__result { font-size: 15px; }
@media (max-width: 760px) { .tool--check { grid-template-columns: 1fr; } .tool { padding: 18px; } }
.tool--calc .tool__inputs { display: grid; gap: 14px; margin-bottom: 18px; }
.tool__in span { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.tool__in output { font-family: var(--mono); }
.tool--calc .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .tool--calc .metrics { grid-template-columns: 1fr; } }
.tool .small { margin-top: 12px; }

.tool--tco { display: grid; gap: 18px; }
.tco__people { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tco__people input { width: 120px; }
.tool--tco input[type="number"] { width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-family: var(--mono); }
.tco__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tco__cols fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 12px; align-content: start; }
.tco__cols legend { font-weight: 700; padding: 0 6px; }
.tco__f { display: grid; gap: 4px; font-size: 14.5px; }
.tco__f small { color: var(--muted); font-size: 12.5px; }
.tco__out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .tco__cols, .tco__out { grid-template-columns: 1fr; } }

/* thử, hoặc xem video đã thử */
.trial { margin-top: 2.4em; padding: 26px; border-radius: var(--r); background: var(--dark); color: var(--on-dark); }
.prose .trial h2 { margin: 0; color: #fff; font-size: 24px; }
.prose .trial .trial__lead { margin-top: 6px; color: var(--on-dark-2); font-size: 15.5px; }
.trial__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.trial figcaption { display: flex; flex-direction: column; gap: 2px; }
.prose .trial figcaption b { color: #fff; font-size: 16px; }
.prose .trial figcaption span { color: var(--on-dark-2); font-size: 14px; line-height: 1.4; }
.trial .actions { margin-top: 20px; }
.trial .btn { background: #fff; color: #0b0b0f; text-decoration: none !important; }
.trial .btn--ghost { background: transparent; color: #fff; }
@media (max-width: 640px) { .trial { padding: 18px; } .trial__grid { grid-template-columns: 1fr; } }

/* bài con trong trang chuyên mục */
.kids { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .kids { padding-left: 0; }
.prose .kids li + li { margin-top: 0; }
.kids a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); color: var(--ink2) !important; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.kids a:hover { border-color: var(--accent); transform: translateY(-2px); }
.kids__n { font: 700 13px var(--mono); color: var(--accent); }
.kids b { font-size: 18px; color: var(--ink); line-height: 1.3; }
.kids span:not(.kids__n):not(.kids__go) { font-size: 15px; line-height: 1.5; }
.kids__go { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--accent); }
@media (max-width: 640px) { .kids { grid-template-columns: 1fr; } }

/* loạt bài có thứ tự */
.parts { margin-top: 2.4em; padding: 22px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); font-size: 16px; }
.parts__t { font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 10px; }
.parts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.parts li a, .parts li span { display: flex; gap: 12px; align-items: baseline; padding: 6px 8px; border-radius: 8px; color: var(--ink2) !important; text-decoration: none !important; }
.parts li a:hover { background: var(--card); color: var(--ink) !important; }
.parts li [aria-current] { background: var(--card); color: var(--ink) !important; font-weight: 700; }
.parts i { font: 600 13px var(--mono); color: var(--accent); min-width: 14px; font-style: normal; }
.parts__next { display: inline-block; margin-top: 12px; font-weight: 700; }

/* Transformation: bản đồ hệ thống */
.smap { display: grid; gap: 14px; }
.smap__layer { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.smap__n { font: 600 12.5px var(--mono); color: var(--muted); }
.smap__head b { display: block; font-size: 20px; margin: 4px 0 8px; }
.smap__head p { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.smap__nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-content: start; }
.smap__node { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.smap__node[open] { grid-column: 1 / -1; }
.smap__node summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.smap__node summary::-webkit-details-marker { display: none; }
.smap__node summary b { font-size: 16px; }
.smap__node summary b::after { content: " +"; color: var(--muted); font-weight: 400; }
.smap__node[open] summary b::after { content: " −"; }
.smap__node summary span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.smap__body { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 15px; color: var(--ink2); }
.smap__links { display: flex; flex-wrap: wrap; gap: 14px; }
.smap__links a { color: var(--accent); font-weight: 600; font-size: 14.5px; }
@media (max-width: 860px) { .smap__layer { grid-template-columns: 1fr; } }

/* Build */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.stage { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; }
.stage__head { display: flex; gap: 14px; align-items: center; }
.stage__n { font: 800 34px var(--mono); letter-spacing: -0.06em; color: var(--accent); }
.stage__head b { display: block; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase; }
.stage__en { font-size: 13px; color: var(--muted); }
.stage__what { color: var(--ink2); }
.stage__today { padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); font-size: 14.5px; }
.stage__lab { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stage__today ul { margin: 0; padding-left: 1.1em; color: var(--ink2); }
.stage__today li + li { margin-top: 4px; }
.stage__links { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.stage__links a { color: var(--accent); font-weight: 600; font-size: 14.5px; }
@media (max-width: 980px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stages { grid-template-columns: 1fr; } }
.flow { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.flow li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-sm); background: var(--card); border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); font-size: 14px; }
.flow__n { font: 700 13px var(--mono); color: var(--accent); }
.flow b { font-size: 15px; line-height: 1.3; }
.flow li > span:last-child { color: var(--muted); }
.flow--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bigfig--light { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.bigfig--light b { font-family: var(--mono); letter-spacing: -0.07em; font-size: clamp(56px, 8vw, 104px); }
.bigfig--light span { color: var(--muted); }
@media (max-width: 1100px) { .flow, .flow--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr 1fr; } }
.scale { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.scale b { font-size: 19px; }
.scale p { color: var(--ink2); font-size: 15px; }
.scale ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 14.5px; color: var(--ink2); }

/* Solutions */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.product h3 { font-size: 22px; }
.product blockquote { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.45; font-family: var(--serif); font-style: italic; }
.product ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; color: var(--ink2); }
.product__mine { font-size: 14.5px; color: var(--ink2); padding-top: 10px; border-top: 1px solid var(--line); }
.product__go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 15px; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.vdemo { margin: 0; }
.vdemo video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: #000; }
.vdemo figcaption { margin-top: 8px; font-size: 15px; font-weight: 600; }
/* Bảy tiêu chuẩn: video dọc 9:16 + cách kiểm tra (trang Giải pháp), dải video trong bài */
.stds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.std { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.std video, .vdemo--v video { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; }
.std__txt { padding: 16px 18px 18px; }
.std__n { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); }
.std h3 { margin: 4px 0 10px; font-size: 18px; line-height: 1.3; }
.std__k { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.std ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; color: var(--ink2); }
.stdstrip { margin: 40px 0 8px; }
.stdstrip h2 a { color: inherit; text-decoration: none; }
.stdstrip__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
/* 16:9 trên màn rộng, 9:16 trên điện thoại */
.std video.v-web, .vdemo--v video.v-web { aspect-ratio: 16 / 9; max-height: none; }
.v-phone { display: none !important; }
@media (max-width: 700px) { .v-web { display: none !important; } .v-phone { display: block !important; } .stdstrip__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stdstrip .vdemo figcaption { font-size: 13.5px; line-height: 1.35; }
.vdemo--v video { border-radius: var(--r-sm); max-height: 70vh; object-fit: contain; }
.vdemo--v figcaption a { color: inherit; }
.impl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.impl__card { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); height: 100%; }
.impl__card img, .impl__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--soft); display: block; }
.impl__card b { display: block; margin: 8px 0 6px; font-size: 17px; line-height: 1.3; }
.impl__card p { font-size: 14.5px; color: var(--ink2); }
a.impl__card:hover b { color: var(--accent); }
@media (max-width: 860px) { .impl { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .impl__card { grid-template-columns: 1fr; } }
.facts2 { margin: 0; display: grid; gap: 14px; }
.facts2 div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts2 dt { font-weight: 700; }
.facts2 dd { margin: 4px 0 0; color: var(--ink2); }
.limits { margin: 0 0 16px; padding-left: 1.2em; color: var(--ink2); }
.limits li + li { margin-top: 8px; }

/* Ngành */
.soon { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.soon li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); align-items: flex-start; }
.soon b { font-size: 18px; }
.soon p { font-size: 14px; color: var(--ink2); flex: 1; }
@media (max-width: 980px) { .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .soon { grid-template-columns: 1fr; } }
.ihero { padding: 48px 0 56px; background: var(--dark); color: var(--on-dark); }
.ihero__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.ihero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -0.045em; }
.ihero .phead__lead { color: #d6d6de; }
.ihero .eyebrow, .ihero .crumbs ol { color: var(--on-dark-2); }
.ihero__img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-size: 13.5px; color: var(--on-dark); }
.jump a span { font: 500 12px var(--mono); color: var(--on-dark-2); }
.jump a:hover { background: rgba(255,255,255,.08); }
@media (max-width: 860px) { .ihero__in { grid-template-columns: 1fr; gap: 28px; } }
.isec { border-bottom: 1px solid var(--line); }
.isec:nth-of-type(even) { background: var(--soft); }
.isec__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.isec__n { font: 700 15px var(--mono); color: var(--accent); }
.isec__head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.035em; }
.isec__lead { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 760px; margin-bottom: 26px; }
.isec__more { margin-top: 24px; }
.story { padding: 22px; border-radius: var(--r); background: var(--dark); color: var(--on-dark); }
.story__t { font-weight: 700; margin-bottom: 12px; }
.story ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.story li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 15px; color: #d6d6de; }
.story time { font-family: var(--mono); color: #a9bcff; }
.story .small { color: var(--on-dark-2); }
.plist { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; }
.plist li b { display: block; }
.plist li span { color: var(--ink2); font-size: 15.5px; }
.damage { margin-top: 20px; padding: 18px; border-radius: var(--r-sm); border: 1px solid rgba(224,72,74,.35); background: rgba(224,72,74,.06); font-size: 15px; }
.damage b { display: block; margin: 6px 0; color: #c0392b; }
.prompts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.prompts li { padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--line); font-size: 16px; }
.stack { display: flex; flex-direction: column; }
.sols { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sols li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.sols__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 15px var(--mono); }
.sols__pain { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.sols li p { color: var(--ink2); }
.sols__v { margin-top: 8px; color: var(--ink) !important; font-style: italic; }

/* chân trang */
.ftr { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 14.5px; background: var(--soft); }
.ftr__top { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.ftr__tag { margin-top: 10px; font-weight: 700; letter-spacing: -0.01em; }
.ftr__who { color: var(--muted); margin-top: 4px; }
.ftr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink2); }
.ftr__links a:hover { color: var(--ink); }
.ftr__legal { margin-top: 36px; color: var(--muted); font-size: 13px; }
.ftr__machine { margin-top: 6px; color: var(--muted); font-size: 12px; }
.ftr__machine a:hover { color: var(--ink); }
@media (max-width: 640px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__top > div:first-child { grid-column: 1 / -1; } }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .phead { padding: 56px 0 28px; }
  .band { padding: 52px 0; }
  .band--tight { padding: 28px 0; }
  .prose { font-size: 17.5px; }
  .prose > p:first-child { font-size: 19px; }
  .cta { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ── ngôn ngữ (01/12/2026) ─────────────────────────────────────────────────────────────────────────── */
.langs { position: relative; }
.langs--m { display: none; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2); border: 1px solid var(--line); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--ink); background: var(--soft); }
.langs__ic { font-size: 14px; filter: grayscale(1); }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.langs a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.langs a:hover { background: var(--soft); }
.langs a[aria-current] { font-weight: 700; color: var(--accent); }
.langs a[data-missing] { color: var(--muted); }
@media (max-width: 1080px) { .langs { margin-left: auto; } .mnav { margin-left: 0; } }
.langhint { margin: 0; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 44px 8px 16px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; position: relative; }
.langhint a { color: var(--accent); font-weight: 600; }
.langhint button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 20px; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--muted); }
:lang(ja), :lang(zh), :lang(ko) { word-break: normal; line-break: strict; }
:lang(ja) body, :lang(zh) body, :lang(ko) body, :lang(th) body { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif; }
:lang(ja) .hero__title, :lang(zh) .hero__title, :lang(ko) .hero__title, :lang(th) .hero__title { font-family: var(--sans); }
:lang(th) body { line-height: 1.75; }

/* ── hình minh hoạ động (site/visuals.js) ───────────────────────────────────────────────────────────── */
.vz { margin: 28px 0 32px; padding: 18px 18px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); }
.vz svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.vz figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.vz text { fill: var(--ink); }
.vz .vz-h { font-size: 17px; font-weight: 700; }
.vz .vz-s { font-size: 13.5px; font-weight: 600; }
.vz .vz-n { font-size: 20px; font-weight: 800; fill: var(--accent); }
.vz .vz-note { font-size: 13px; fill: var(--muted); }
.vz .vz-on { fill: var(--accent-ink); }
.vz-box { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.vz-box--ok { stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vz-box--warn { stroke: color-mix(in srgb, #e5484d 45%, var(--line)); }
.vz-box--accent { fill: var(--accent); stroke: var(--accent); }
.vz-frame { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 2; }
.vz-core { fill: var(--accent); }
.vz-ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.vz-link { stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 2; fill: none; }
.vz-link--dash { stroke-dasharray: 6 6; }
.vz-dot { fill: var(--accent); }
.vz-dot--warn { fill: #e5484d; }
.vz-line { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
.vz-check-c { fill: none; stroke: var(--lab); stroke-width: 3; }
.vz-check { fill: none; stroke: var(--lab); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.vz-layer { fill: color-mix(in srgb, var(--accent) 6%, var(--card)); stroke: color-mix(in srgb, var(--accent) 35%, var(--line)); stroke-width: 1.5; }
.vz .vz-layer-t { fill: var(--ink2); }
.vz-cyl { fill: color-mix(in srgb, var(--accent) 14%, var(--card)); stroke: var(--accent); stroke-width: 2; }
.vz-cyl-top { fill: color-mix(in srgb, var(--accent) 30%, var(--card)); stroke: var(--accent); stroke-width: 2; }
.vz-axis { stroke: var(--line); stroke-width: 2; }
.vz-bar--warn { fill: #e5484d; opacity: .85; }
.vz-bar--ok { fill: var(--accent); }
.vz-bar { transform-box: fill-box; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .vz.is-on .vz-tile, .vz.is-on .vz-node { animation: vz-pop 6s calc(var(--i) * .35s) infinite both; }
  .vz.is-on .vz-new { animation: vz-drop 5s infinite both; }
  .vz.is-on .vz-step--b { animation: vz-shift 5s infinite both; }
  .vz.is-on .vz-line { animation: vz-type 4.8s calc(var(--i) * .5s) infinite both; transform-box: fill-box; transform-origin: left; }
  .vz.is-on .vz-check, .vz.is-on .vz-check-c { animation: vz-fade 4.8s 2s infinite both; }
  .vz.is-on .vz-late { animation: vz-fade 4.8s 2.6s infinite both; }
  .vz.is-on .vz-layer { animation: vz-glow 4s infinite; }
  .vz.is-on .vz-layer--1 { animation-delay: .5s; } .vz.is-on .vz-layer--2 { animation-delay: 1s; } .vz.is-on .vz-layer--3 { animation-delay: 1.5s; }
  .vz.is-on .vz-bar { animation: vz-grow 1.2s calc(var(--i) * .3s) both cubic-bezier(.2,.8,.2,1); }
  .vz.is-on .vz-db { animation: vz-breathe 3s infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes vz-pop { 0%, 8% { opacity: .35; } 14%, 100% { opacity: 1; } }
@keyframes vz-drop { 0%, 20% { opacity: 0; transform: translateY(-46px); } 35%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vz-shift { 0%, 20% { transform: translateX(-120px); } 35%, 85% { transform: none; } 100% { transform: translateX(-120px); } }
@keyframes vz-type { 0% { transform: scaleX(0); } 25%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes vz-fade { 0%, 10% { opacity: 0; } 25%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vz-glow { 0%, 100% { stroke-width: 1.5; } 50% { stroke-width: 4; } }
@keyframes vz-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes vz-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (max-width: 760px) { .vz { padding: 10px 6px 8px; margin-left: -8px; margin-right: -8px; } .vz .vz-s { font-size: 15px; } }
.shot { margin: 24px 0; }
.shot img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }.vz .vz-xs { font-size: 11.5px; font-weight: 600; }
@media (max-width: 560px) { .vz { overflow-x: auto; -webkit-overflow-scrolling: touch; } .vz svg { min-width: 500px; } .vz figcaption { position: sticky; left: 0; } }
.l-home .langs summary { color: var(--on-dark-2); border-color: rgba(255,255,255,.22); }
.l-home .langs summary:hover { color: var(--on-dark); background: rgba(255,255,255,.08); }

/* ── CẢNH minh hoạ (site/visuals.js; công thức docs/CONG-THUC-HINH-MINH-HOA.md) ────────────────────────
   Tỉ lệ chuẩn: máy tính 16:10, điện thoại 9:19,5; khối thiết bị 16:11 (máy tính) / 4:3 (điện thoại). Thẻ xếp cột, chữ tự xuống dòng. */
.sc { margin: 32px 0 40px; container-type: inline-size; }
.sc__stage { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); gap: clamp(16px, 4cqw, 44px); align-items: center;
  padding: clamp(18px, 4cqw, 44px); border-radius: 18px; border: 1px solid var(--line); background: #0b0b0d radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 22px 22px; }
.sc__stage::before { content: ""; position: absolute; z-index: -1; inset: -25%; background: var(--bg) center / cover no-repeat; filter: blur(70px) saturate(1.25); opacity: .38; }
.sc figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.sc__dev { position: relative; aspect-ratio: 16 / 11; }
.sc__desk { position: absolute; left: 0; top: 0; width: 86%; aspect-ratio: 16 / 10; padding: 2.2%; border-radius: 14px; background: var(--bg) center / cover no-repeat; box-shadow: 0 24px 48px -12px rgba(0,0,0,.6); }
.sc__desk img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.sc__phone { position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 481 / 1020; display: flex; align-items: center; justify-content: center; border-radius: 16% / 7.6%; background: #050505; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.14); }
.sc__phone::after { content: ""; position: absolute; top: 2.6%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #050505; }
.sc__phone img { display: block; width: 95.84%; height: auto; aspect-ratio: 461 / 1000; object-fit: cover; object-position: top; border-radius: 14.4% / 6.6%; }
.sc__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px 9px 9px; border-radius: 12px; font-size: 14.5px; line-height: 1.3; font-weight: 500; color: #ececef;
  background: rgba(17,17,20,.78); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sc-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #13224a; color: #8fb0ff; }
.sc-ic svg { width: 16px; height: 16px; }
.sc-tx { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sc-tx small { font-size: 12.5px; font-weight: 400; color: #9a9aa6; }
.sc-ok { flex: none; margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(78,208,138,.16); color: #4ed08a; }
.sc-ok svg { width: 13px; height: 13px; }
.sc-card--accent { background: #fff; border-color: #fff; color: #080808; }
.sc-card--accent .sc-ic { background: #e8eefd; color: #1857e9; }
.sc-card--accent .sc-tx small { color: #55555e; }
.sc-card--warn { background: rgba(60,16,14,.7); border-color: rgba(255,123,112,.35); color: #ffc2bc; }
.sc-card--bubble { background: rgba(24,87,233,.2); border-color: rgba(122,166,255,.35); font-style: italic; font-weight: 450; border-bottom-left-radius: 4px; }
.sc-card--sub { margin-left: 18px; }
/* ghép nhiều phần mềm: cột trái là các ứng dụng rời */
.sc__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc__lab { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.sc__wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-win { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border-radius: 10px; background: #141417; border: 1px dashed rgba(255,255,255,.18); font-size: 13.5px; color: #d4d4d8; }
.sc-win b { font-weight: 500; overflow-wrap: anywhere; }
.sc-win:nth-child(odd) { transform: rotate(-1.5deg); } .sc-win:nth-child(even) { transform: rotate(1.5deg); }
.sc-copy { position: absolute; right: -6px; top: -9px; padding: 1px 6px; border-radius: 6px; background: #e5484d; color: #fff; font: 600 11px/1.5 var(--mono); }
/* biểu đồ chi phí */
.sc--tco .sc__stage { display: block; }
.sc-chart { display: flex; flex-direction: column; gap: 14px; aspect-ratio: 16 / 8; min-height: 260px; padding: clamp(16px, 3cqw, 32px); border-radius: 14px; background: rgba(17,17,20,.8); border: 1px solid rgba(255,255,255,.1); font-size: 14.5px; color: #ececef; }
.sc-chart__leg { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; }
.sc-chart__leg span { display: inline-flex; align-items: center; gap: 8px; }
.k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.k--warn, .bar--warn { background: #e5484d; } .k--ok, .bar--ok { background: #4f7dff; }
.sc-chart__bars { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; align-items: end; padding: 0 4% 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sc-chart__g { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 8%; }
.sc-chart__g .bar { width: 34%; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom; }
.sc-chart__g em { position: absolute; bottom: -26px; font-style: normal; font-size: 13px; color: #9a9aa6; }
.sc-chart p { margin: 0; color: #9a9aa6; font-size: 13px; }
/* chuyển động: chỉ khi cảnh vào màn hình (site.js: sc--wait → is-on) và người xem không chọn giảm chuyển động */
@media (prefers-reduced-motion: no-preference) {
  .sc--wait .sc-card, .sc--wait .sc-win { opacity: 0; }
  .sc--wait .sc-ok { opacity: 0; }
  .sc--wait.is-on .sc-card { animation: sc-in .6s calc(var(--d) + .2s) cubic-bezier(.2,.8,.2,1) both; }
  .sc--wait.is-on .sc-ok { animation: sc-pop .4s calc(var(--d) + .9s) cubic-bezier(.3,1.6,.5,1) both; }
  .sc--wait.is-on .sc-win { animation: sc-in .5s calc(var(--k) * .2s) both; }
  .sc.is-on .sc-copy { animation: sc-blink 2.2s calc(1s + var(--k, 0) * .5s) ease-in-out infinite; }
  .sc.is-on .sc__stage::before { animation: sc-drift 22s ease-in-out infinite alternate; }
  .sc.is-on .sc__phone { animation: sc-float 5s ease-in-out infinite alternate; }
  .sc.is-on .sc-chart__g .bar { animation: sc-grow 1.1s calc(.3s + var(--i) * .3s) cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes sc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes sc-float { to { translate: 0 -8px; } }
@keyframes sc-blink { 0%, 100% { opacity: .25; } 40%, 70% { opacity: 1; } }
@keyframes sc-drift { to { transform: translate(-3%, 2%) scale(1.08); } }
@keyframes sc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* điện thoại: thiết bị ở trên (khối 4:3), thẻ bên dưới rộng hết */
/* Điện thoại: nền là CHIẾC ĐIỆN THOẠI khung chuẩn ebig.io (thân 481:1020, màn 461:1000), to và nguyên máy; máy tính ẩn;
   thẻ nổi lên nửa dưới màn như thông báo trên màn khoá. */
@container (max-width: 600px) {
  .sc__stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s"; padding: 20px 14px 22px; gap: 0; border-radius: 16px; }
  .sc__dev, .sc__cards, .sc__side { grid-area: s; }
  .sc__dev { aspect-ratio: auto; align-self: start; display: flex; justify-content: center; }
  .sc__desk { display: none; }
  .sc__phone { position: relative; right: auto; bottom: auto; width: min(82%, 320px); }
  .sc__cards, .sc__side { position: relative; z-index: 1; align-self: start; justify-self: center; width: min(74%, 290px); margin-top: min(54cqw, 240px); gap: 6px; }
  .sc__side .sc__cards { width: 100%; margin-top: 0; }
  .sc-ic { width: 24px; height: 24px; border-radius: 7px; } .sc-ic svg { width: 14px; height: 14px; }
  .sc-ok { width: 20px; height: 20px; }
  .sc-card--sub { margin-left: 10px; }
  .sc__lab { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: rgba(28,28,32,.9); }
  .sc__wins { grid-template-columns: 1fr 1fr; gap: 6px; } .sc-win { padding: 8px 10px; font-size: 13px; } .sc-win .sc-ic { display: none; } .sc-win b { overflow-wrap: normal; }
  .sc-card { font-size: 13.5px; gap: 8px; padding: 7px 10px 7px 7px; border-radius: 14px; background: rgba(28,28,32,.88); border-color: rgba(255,255,255,.14); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
  .sc-card--accent { background: #fff; }
  .sc-card--warn { background: rgba(60,16,14,.9); }
  .sc-card--bubble { background: rgba(20,40,96,.9); }
  .sc__side { gap: 8px; }
  .sc__lab { color: #d4d4d8; }
  .sc-win { background: rgba(28,28,32,.9); }
  .sc-chart { aspect-ratio: 4 / 3.4; min-height: 0; }
  .sc-chart__bars { gap: 6%; }
}
/* ── Lớp giao diện theo ebig.io (01/12/2026). Đặt cuối để đè các quy tắc cũ; khi sửa, sửa ở đây. ───────── */
body { font-size: 17px; letter-spacing: -0.005em; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
::selection { background: #1857e9; color: #fff; }
.btn { background: #fff; color: #080808; font-weight: 500; font-size: 15px; min-height: 42px; padding: 0 20px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--light { background: #fff; color: #080808; }
.hdr, .l-home .hdr { background: rgba(8,8,8,.72); border-bottom: 1px solid var(--line); color: var(--ink); }
.hdr__in { height: 64px; }
.brand { font-weight: 600; letter-spacing: -0.03em; }
.nav a, .l-home .hdr .nav a { color: var(--ink2); font-size: 14.5px; font-weight: 450; }
.nav a:hover, .l-home .hdr .nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: #fff; font-weight: 500; }
.hdr .btn, .l-home .hdr .btn { background: #fff; color: #080808; }
.mnav summary span, .l-home .mnav summary span { background: #fff; }
.mnav nav, .l-home .mnav nav { top: 64px; background: #0b0b0c; color: var(--ink); }
.mnav a { font-weight: 500; border-color: var(--line); }
.langs summary, .l-home .langs summary { color: var(--ink2); border-color: var(--line2); }
.langs ul { background: #111113; border-color: var(--line2); }
.langs a:hover { background: rgba(255,255,255,.06); }
/* lưới chấm như hero ebig.io */
.dots, .hero, .phead { background-color: var(--bg); background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.2px); background-size: 22px 22px; background-position: center top; }
.phead { position: relative; padding: 96px 0 48px; overflow: hidden; }
.phead::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(24,87,233,.28), transparent); pointer-events: none; }
.phead > .wrap { position: relative; }
.phead h1, .phead--insights h1, .phead--lab h1 { font-family: var(--sans); font-size: clamp(40px, 6.2vw, 80px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
.phead h1 { background: linear-gradient(180deg, #fff 40%, #b9c6ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phead--lab, .phead--explore { background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.2px); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--accent); }
.phead__lead { color: var(--ink2); font-size: clamp(18px, 1.8vw, 21px); }
.phead .sc { margin: 44px 0 0; }
.hero { margin-top: -65px; padding-top: 150px; }
.hero::before { inset: -30% auto auto 50%; transform: translateX(-50%); width: 1100px; height: 700px; background: radial-gradient(closest-side, rgba(24,87,233,.36), transparent); }
.hero__title { font-weight: 600; letter-spacing: -0.05em; }
.hero__title span { background-image: linear-gradient(180deg, #fff 35%, #c7cfe6); }
.hero__title span:nth-child(2) { background-image: linear-gradient(180deg, #c9d6ff, #7aa6ff); }
.hero__lead { color: var(--ink2); }
.hero__stats { background: var(--line); border: 1px solid var(--line); border-radius: 0; max-width: none; }
.hero__stats div { background: var(--bg); align-items: center; text-align: center; }
.hero__stats dd { font-weight: 400; letter-spacing: -0.03em; }
.hero .sc { margin: 56px 0 0; }
.band--soft, .band--lab { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background-image: none; }
.band--dark, .band--about { background: #0c0c0e; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shead h2, .about h2, .cta h2 { font-weight: 450; letter-spacing: -0.04em; }
.shead h2 { font-size: clamp(28px, 3.4vw, 42px); }
.card, .labcard, .tile, .lead, .doors__list a, .q3 li, .ltable, .impl__card, .product, .scale, .stage, .smap__node, .tool, .form, .trial { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.card:hover, .labcard:hover, .tile:hover, .lead:hover { box-shadow: none; border-color: var(--line2); transform: translateY(-2px); }
.card__title, .l-insights .card__title, .l-insights .lead__title, .row b, .lead__title, .labcard > b, .tile b, .doors__k { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; }
.card__media.is-fig, .lead__fig { background: radial-gradient(120% 90% at 0% 100%, rgba(24,87,233,.35), transparent 60%), #0d0d10; color: var(--ink); }
.card__media.is-fig b, .lead__fig b { font-weight: 500; }
.card--flat { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.doors__k { font-weight: 500; }
.doors__list li:nth-child(2) .doors__k { font-family: var(--sans); letter-spacing: -0.045em; }
.q3 li { font-weight: 500; }
.tag { background: rgba(255,255,255,.04); border-color: var(--line2); color: var(--ink2); font-weight: 500; }
.tag[data-tone="plan"], .tag[data-tone="wait"] { color: #f5c46b; border-color: rgba(245,196,107,.35); background: rgba(245,196,107,.08); }
.metrics, .metrics div { background: var(--card); }
.metrics { background: var(--line); border-color: var(--line); }
.metrics dd { font-weight: 500; }
.chips a { background: transparent; border-color: var(--line2); }
.chips a[aria-current="page"] { background: #fff; color: #080808; border-color: #fff; }
.prose { color: var(--ink2); }
.prose h2, .prose h3 { font-weight: 500; }
.ihead { position: relative; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: 22px 22px; }
.ihead h1, .l-article .ihead h1, .l-video .ihead h1 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.04em; }
.ftr { background: #080808; border-top: 1px solid var(--line); }
.cta { background: radial-gradient(700px 300px at 50% 0%, rgba(24,87,233,.22), transparent 70%); border-top: 1px solid var(--line); }
input.in, select.in, textarea.in, .in { background: #0d0d0f; border-color: var(--line2); color: var(--ink); }
.trial { background: #0c0c0e; }

/* ── Khung 1440 (01/12/2026, theo ebig.io --container: 1440px): nội dung rộng tối đa 1440px, lề 16–80px co giãn.
   Cột chữ bài viết giữ ~780px (75–80 ký tự một dòng) — rộng thêm là cho trang chính, lưới thẻ, hình, tiêu đề. ───────── */
:root { --gutter: clamp(16px, 5.4vw, 80px); --wrap: calc(1440px + 2 * var(--gutter)); --narrow: 780px; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.article.has-toc { grid-template-columns: 240px minmax(0, var(--narrow)); gap: clamp(40px, 5vw, 96px); }
@media (min-width: 1600px) {
  body { font-size: 18px; }
  .prose { font-size: 19.5px; }
  .phead h1, .phead--insights h1, .phead--lab h1 { font-size: clamp(64px, 5.2vw, 100px); }
  .phead__lead { font-size: 23px; max-width: 820px; }
  .hero__title { font-size: clamp(120px, 8.6vw, 168px); }
  .hero__lead { font-size: 26px; max-width: 760px; }
  .shead h2 { font-size: clamp(40px, 2.8vw, 54px); }
  .shead p { max-width: 620px; font-size: 18px; }
  .card__title { font-size: 22px; } .card__sum { font-size: 16.5px; }
  .card--big .card__title { font-size: 38px; }
  .ihead h1 { font-size: clamp(56px, 3.6vw, 72px); }
  .grid2, .grid3, .doors__list, .tiles, .labs { gap: 28px; }
  .band { padding: 96px 0; } .band--tight { padding: 56px 0; }
  .sc-card { font-size: 15.5px; } .sc-tx small { font-size: 13.5px; }
}
/* tiêu đề bài thẳng cột với thân bài khi có mục lục; ô ứng dụng trong hình ghép phần mềm một cột */
:root { --tocw: 240px; --tocgap: clamp(40px, 5vw, 96px); }
.article.has-toc { grid-template-columns: var(--tocw) minmax(0, var(--narrow)); gap: var(--tocgap); }
@media (min-width: 981px) {
  .l-toc .ihead .wrap.narrow { max-width: calc(var(--tocw) + var(--tocgap) + var(--narrow) + 2 * var(--gutter)); padding-left: calc(var(--gutter) + var(--tocw) + var(--tocgap)); }
}
.sc__wins { grid-template-columns: minmax(0, 1fr); }
.sc-win b { overflow-wrap: normal; hyphens: manual; }
@container (min-width: 900px) { .sc__wins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 600px) { .sc__wins { grid-template-columns: 1fr 1fr; } }
/* Bài có mục lục: tiêu đề và thân bài chung một lưới; mục lục ở cột trái ngay từ đầu bài (sửa lỗi mục lục bị đẩy xuống dưới tiêu đề). */
.iband { background-image: linear-gradient(to bottom, transparent 0, var(--bg) 640px), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: auto, 22px 22px; }
.article.has-head { grid-template-rows: auto 1fr; row-gap: 0; padding-top: 0; }
.has-head > .toc { grid-column: 1; grid-row: 1 / span 2; margin-top: 64px; }
.has-head > .ihead--in { grid-column: 2; padding: 56px 0 36px; background: none; }
.has-head > .prose { grid-column: 2; }
@media (max-width: 980px) { .has-head > .ihead--in { padding-top: 40px; } }
/* clip thao tác Ebig trong cảnh: cùng khung với ảnh */
.sc__desk video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); background: #1e1e1e; }
.sc__phone video { display: block; width: 95.84%; height: auto; aspect-ratio: 461 / 1000; object-fit: cover; object-position: top; border-radius: 14.4% / 6.6%; background: #1e1e1e; }
.labs:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.lead__fig--img { padding: 0; min-height: 0; background: #0d0d10; } .lead__fig--img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; display: block; }
