/* Binozium: nền trắng, hình sản phẩm thật, chuyển động có chủ đích.
   Tránh khuôn sáo "trang AI" (gradient tím xanh, quầng sáng, lưới nền); sức sống đến từ ảnh thật và chuyển động.
   Font tự chứa: Google Fonts từng chặn vẽ trang ~1,2 giây (đo 2026-11-12). */

@font-face { font-family: "BVP"; font-weight: 400; font-display: swap; src: url(/assets/fonts/bvp-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "BVP"; font-weight: 600; font-display: swap; src: url(/assets/fonts/bvp-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "BVP"; font-weight: 700; font-display: swap; src: url(/assets/fonts/bvp-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "BVP"; font-weight: 400; font-display: swap; src: url(/assets/fonts/bvp-vietnamese-400.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "BVP"; font-weight: 600; font-display: swap; src: url(/assets/fonts/bvp-vietnamese-600.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "BVP"; font-weight: 700; font-display: swap; src: url(/assets/fonts/bvp-vietnamese-700.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "BVP"; font-weight: 400; font-display: swap; src: url(/assets/fonts/bvp-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "BVP"; font-weight: 600; font-display: swap; src: url(/assets/fonts/bvp-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "BVP"; font-weight: 700; font-display: swap; src: url(/assets/fonts/bvp-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff;
  --soft: #f5f5f4;     /* nền khối phụ, khung ảnh */
  --soft-2: #eeedeb;
  --text: #0c0a09;
  --muted: #57534e;    /* 7,6:1 trên trắng */
  --faint: #78716c;    /* 4,8:1: nhãn nhỏ */
  --line: #e7e5e4;
  --accent: #2448ff;   /* xanh điện: màu riêng của Binozium, chỉ dùng cho điểm nhấn */
  --accent-soft: #eef1ff;
  --max: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --sec: clamp(80px, 11vw, 140px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "BVP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(12,10,9,.04), 0 12px 32px -12px rgba(12,10,9,.18);
  --shadow-lg: 0 2px 4px rgba(12,10,9,.04), 0 30px 60px -20px rgba(12,10,9,.28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Đầu trang: trong suốt, cuộn xuống thì mờ kính + viền ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.75); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 26px; height: 26px; }
.brand svg circle { transition: r .3s var(--ease); }
.brand:hover svg circle { r: 4.5; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; font-size: .9375rem; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--soft); }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: .875rem; }
.lang a { text-decoration: none; color: var(--faint); padding: 8px 4px; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); font-weight: 600; }
.lang span { color: var(--line); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; background: var(--text); color: #fff; font: 600 1rem/1 var(--font); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .2s var(--ease), box-shadow .3s; }
/* Lớp màu nhấn trượt lên khi rê chuột */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .35s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 10px 30px -10px rgba(36,72,255,.6); }
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost::before { background: var(--soft); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--soft-2); }

/* ---------- Phần mở đầu ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--muted); padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--soft); }
.eyebrow b { background: var(--text); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.hero h1 { font-size: clamp(2.25rem, 4.3vw, 3.5rem); /* lớn hơn 3,5rem thì "cho doanh nghiệp," không vừa cột ở màn ≥ 1400px */ line-height: 1.02; letter-spacing: -.045em; margin: 24px 0 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Bộ thiết bị: trình duyệt + điện thoại chứa sản phẩm thật */
.stage { position: relative; aspect-ratio: 1 / .92; }
.stage .browser { position: absolute; left: 0; top: 4%; width: 86%; }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 34%; }
.stage .tag { position: absolute; left: 6%; bottom: 6%; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 600; }
.stage .tag i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.stage .tag small { display: block; font-weight: 400; color: var(--faint); font-size: .78rem; }

.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(12,10,9,.06); }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d3d1; }
.browser .bar span { margin-left: 12px; flex: 1; max-width: 60%; height: 18px; border-radius: 6px; background: #fff; font-size: .7rem; line-height: 18px; color: var(--faint); padding: 0 8px; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; height: auto; }
.phone { background: #0c0a09; border-radius: 34px; padding: 8px; box-shadow: var(--shadow-lg); z-index: 2; }
/* height:auto: thuộc tính height="880" của ảnh đè aspect-ratio, ảnh thành cao 880px và bị cắt giữa */
.phone > * { width: 100%; height: auto; border-radius: 27px; overflow: hidden; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; background: #1c1917; }
.phone.tall > * { aspect-ratio: 412 / 880; }

/* Con số */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 7vw, 88px); padding-top: 32px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 10px; color: var(--muted); font-size: .9375rem; }

/* Dải chữ chạy */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -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; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mục chung ---------- */
section { scroll-margin-top: 72px; }
.sec { padding: var(--sec) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.sec h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.035em; max-width: 16ch; }
.sec-head p { color: var(--muted); max-width: 30em; }

/* ---------- Dịch vụ: danh sách bên trái, hình đổi theo bên phải ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-item button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 24px; gap: 16px; align-items: baseline; padding: 26px 0; }
.svc-item .n { font-size: .875rem; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; transition: color .3s; }
.svc-item h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); color: var(--faint); transition: color .3s; }
.svc-item .plus { width: 24px; height: 24px; position: relative; align-self: center; }
.svc-item .plus::before, .svc-item .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--faint); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .35s var(--ease), background .3s; }
.svc-item .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-item .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.svc-item .body > div { overflow: hidden; padding-left: 60px; }
.svc-item .body p { color: var(--muted); padding-bottom: 8px; }
.svc-item .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 28px; }
.svc-item .chips span { font-size: .8125rem; color: var(--muted); padding: 5px 12px; border-radius: 999px; background: var(--soft); }
.svc-item .media-m { display: none; }
.svc-item.on .n, .svc-item.on h3 { color: var(--text); }
.svc-item.on .n { color: var(--accent); }
.svc-item.on .plus::before, .svc-item.on .plus::after { background: var(--text); }
.svc-item.on .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-item.on .body { grid-template-rows: 1fr; }
.svc-item button:hover h3 { color: var(--text); }

.svc-media { position: sticky; top: 96px; aspect-ratio: 1 / .86; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.svc-media .pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.svc-media .pane.on { opacity: 1; transform: none; }
.svc-media .browser { width: 100%; }

/* Hình minh hoạ dịch vụ dựng bằng HTML (khung nhận dạng, OCR) */
.vision { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.vision img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.det { position: absolute; border: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
/* Nhãn nằm dưới khung: phía trên là bảng tên nhân vật của game, đặt trên sẽ đè */
.det::before { content: attr(data-l); position: absolute; left: -2px; top: 100%; margin-top: 4px; white-space: nowrap; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 7px; border-radius: 5px; }
.pane.on .det { animation: det .7s var(--ease) both; }
@keyframes det { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
.vision .hud { position: absolute; left: 12px; top: 12px; background: rgba(12,10,9,.75); color: #fff; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: flex; gap: 6px; align-items: center; }
.vision .hud i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.ocr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; align-items: center; }
.doc { position: relative; background: #fff; border-radius: 10px; padding: 18px 16px; box-shadow: var(--shadow-lg); font-size: .62rem; line-height: 1.5; color: #44403c; overflow: hidden; transform: rotate(-2deg); }
.doc h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .02em; }
.doc .r { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.doc .hl { background: rgba(36,72,255,.1); outline: 1.5px solid var(--accent); border-radius: 3px; padding: 0 3px; }
.doc .scanline { position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, rgba(36,72,255,.18)); border-bottom: 2px solid var(--accent); animation: scan 3s var(--ease) infinite; }
@keyframes scan { 0% { top: -40px; } 100% { top: 100%; } }
.fields { background: #0c0a09; color: #e7e5e4; border-radius: 12px; padding: 16px; font: 500 .72rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; box-shadow: var(--shadow-lg); }
.fields .k { color: #a8a29e; }
.fields .v { color: #93b4ff; }
.fields .ok { color: #4ade80; }

/* Phụ đề Live Interpreter: dùng lại đúng CSS của app (overlay.html) */
.meet { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #1c1917; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.meet .cam { border-radius: 10px; background: linear-gradient(160deg, #3f3a36, #292524); position: relative; display: grid; place-items: center; }
.meet .cam::after { content: attr(data-n); position: absolute; left: 10px; bottom: 8px; font-size: .7rem; color: #e7e5e4; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 6px; }
.meet .av { width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: #fff; }
.sub { position: absolute; left: 6%; right: 6%; bottom: 7%; background: rgba(12,14,20,.72); border-radius: 12px; padding: 10px 14px; font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif; }
.sub .ln { border-left: 3px solid #5aa9ff; padding-left: 10px; }
.sub .ln + .ln { margin-top: 6px; }
.sub .ln.me { border-left-color: #6fdc8c; }
.sub .o { color: rgba(255,255,255,.72); font-size: .72rem; line-height: 1.3; }
.sub .t { color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.3; text-shadow: 0 1px 3px rgba(0,0,0,.9); }

/* ---------- Dự án ---------- */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 24px); }
.card { grid-column: span 6; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card.wide { grid-column: span 7; }
.card.narrow { grid-column: span 5; }
.card.third { grid-column: span 4; }
.card .media { position: relative; border-radius: var(--radius); background: var(--soft); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8% 8% 0; align-items: end; }
.card .media.center { align-items: center; padding: 8%; }
/* Thẻ hẹp cao hơn để cùng hàng bằng chiều cao thẻ rộng (5/7 cột × 4/3) */
.card.narrow .media { aspect-ratio: .95; }
.card .media > * { transition: transform .7s var(--ease); }
.card:hover .media > * { transform: translateY(-6px) scale(1.02); }
.card .media .browser { width: 100%; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); }
.card .media.center .browser { border-radius: 12px; }
.card .media .pair { position: relative; width: 100%; }
/* Điện thoại neo từ trên, phần dưới bị khung cắt: neo từ dưới thì máy dọc cao hơn khung và tràn lên trên */
.card .media .pair .phone { position: absolute; right: -1%; top: 16%; width: 27%; }
.card .info { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px 0; }
.card h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.card .kind { display: block; color: var(--faint); font-size: .9375rem; font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.card p { color: var(--muted); margin-top: 10px; padding: 0 4px; max-width: 36em; }
.card .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0 4px; }
.card .stack span { font-size: .8125rem; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.card .go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); transition: background .3s, color .3s, transform .4s var(--ease); }
.card .go svg { width: 18px; height: 18px; }
a.card:hover .go { background: var(--accent); color: #fff; transform: rotate(-45deg); }
.card .live { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: .8125rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.card .live i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1.4s infinite; }
.card .media.video { padding: 0; background: #e8e1d6; }
.card .media.video video { width: 100%; height: 100%; object-fit: cover; }
.card .media.dark { background: #1c1917; }

/* Bảng repo DevForge dựng bằng HTML */
.table { width: 100%; background: #fff; border-radius: 12px; box-shadow: var(--shadow); font-size: .78rem; overflow: hidden; }
.table .tr { display: grid; grid-template-columns: 1.6fr 1fr .9fr; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.table .tr:last-child { border-bottom: 0; }
.table .th { color: var(--faint); font-weight: 600; background: var(--soft); }
.table .up { color: #16a34a; font-weight: 600; }
.table .pill { justify-self: start; font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* ---------- Quy trình: đường kẻ chạy theo cuộn ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; margin: 0; padding: 40px 0 0; }
.steps::before, .steps .fill { content: ""; position: absolute; left: 0; top: 0; height: 2px; background: var(--line); width: 100%; }
.steps .fill { background: var(--accent); width: calc(var(--p, 0) * 100%); transition: width .1s linear; }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -47px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: border-color .3s, background .3s; }
.steps li.done::before { border-color: var(--accent); background: var(--accent); }
.steps .n { font-size: .875rem; font-weight: 600; color: var(--faint); }
.steps h3 { font-size: 1.375rem; margin: 10px 0 10px; }
.steps p { color: var(--muted); font-size: .9875rem; }
.steps .t { display: inline-block; margin-top: 14px; font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); }

/* ---------- Liên hệ ---------- */
.contact { background: var(--soft); border-radius: clamp(24px, 3vw, 36px); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.contact h2 { max-width: 12ch; }
.contact .lead { color: var(--muted); margin-top: 20px; max-width: 26em; }
.contact .mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); overflow-wrap: anywhere; }
.contact .mail:hover { background-size: 100% 2px; color: var(--accent); }
.contact .meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--muted); font-size: .9375rem; }
.contact .meta span { display: flex; align-items: center; gap: 8px; }
.contact .meta svg { width: 18px; height: 18px; color: var(--accent); }
form.box { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
input, textarea { width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 400 1rem/1.5 var(--font); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
input:hover, textarea:hover { border-color: #d6d3d1; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36,72,255,.12); }
input::placeholder, textarea::placeholder { color: #a8a29e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; margin: 4px 0 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.note { font-size: .875rem; color: var(--faint); }
.status { margin-top: 16px; font-size: .9375rem; padding: 12px 14px; border-radius: 12px; }
.status:empty { display: none; }
.status.ok { background: #f0fdf4; color: #166534; }
.status.err { background: #fef2f2; color: #991b1b; }

/* ---------- Chân trang ---------- */
.foot { padding: 56px 0 48px; color: var(--faint); font-size: .9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); }

/* 404 */
.nf { padding-top: 18vh; padding-bottom: 18vh; } /* không dùng padding gộp: sẽ xoá lề trái/phải của .wrap */
.nf h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.04em; }
.nf p { color: var(--muted); margin: 16px 0 32px; }

/* ---------- Chuyển động khi cuộn (chỉ khi JS chạy) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .hero.ready h1 .line > span { transform: none; }
.js .hero .fade { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .hero.ready .fade { opacity: 1; transform: none; }
.js .stage .browser, .js .stage .phone, .js .stage .tag { opacity: 0; transition: opacity 1s var(--ease), translate 1.1s var(--ease); translate: 0 40px; }
.js .hero.ready .stage .browser { opacity: 1; translate: 0 0; transition-delay: .25s; }
.js .hero.ready .stage .phone { opacity: 1; translate: 0 0; transition-delay: .45s; }
.js .hero.ready .stage .tag { opacity: 1; translate: 0 0; transition-delay: .8s; }

/* ---------- Màn hẹp ---------- */
@media (max-width: 1024px) {
  .card.wide, .card.narrow { grid-column: span 6; }
  .card.narrow .media { aspect-ratio: 4 / 3; }
  .card.third { grid-column: span 6; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .top-right { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 620px; width: 100%; margin: 8px auto 0; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .svc { grid-template-columns: 1fr; }
  .svc-media { display: none; }
  .svc-item .media-m { display: block; margin: 4px 0 28px; border-radius: 16px; background: var(--soft); aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
  .svc-item .media-m .pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 7%; }
  .svc-item .body > div { padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps .fill { display: none; }
  .steps li::before { display: none; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top .btn-sm { display: none; }
  .card, .card.wide, .card.narrow, .card.third { grid-column: 1 / -1; }
  .card.narrow .media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .stage .tag { left: 0; bottom: 2%; font-size: .78rem; padding: 8px 10px; }
  .ocr { gap: 10px; }
  .sub .t { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .hero .fade, .js .stage .browser, .js .stage .phone, .js .stage .tag { opacity: 1; transform: none; translate: none; }
  .js .hero h1 .line > span { transform: none; }
}
