/* Chỉ trang chủ VI/EN: chỉnh sau review 2026-11-02. Nạp sau cùng; bỏ thẻ link là về như cũ. */

/* Thang chữ: H1 đậm 600, mọi H2 của section cùng một cỡ và độ đậm */
main .fold > .hero2--grad .hero2__title { font-weight: 600; letter-spacing: -0.02em; }

/* H1 chữ chạy: cả câu nằm chồng bên dưới để giữ chỗ và cho trình đọc màn hình */
.hero2__type { display: grid; justify-items: center; }
.hero2__full, .hero2__typed { grid-area: 1 / 1; }
.hero2__type.is-typing .hero2__full { opacity: 0; }
.hero2__typed::after { content: ""; display: inline-block; width: 3px; height: 0.82em; margin-left: 4px; background: currentColor; vertical-align: -0.06em; animation: hero2-caret 1s steps(2, jump-none) infinite; }
@keyframes hero2-caret { from { opacity: 1; } to { opacity: 0; } }
@media (min-width: 901px) {
  main .fold > .hero2--grad .hero2__copy, main .fold > .hero2--grad .hero2__title { max-width: 1120px; }
}

main .ctx__head h2,
main .real .real__head h2,
main .sol .sol__head h2,
main .mth__head h2,
main .ba__head h2,
main .aiB__head h2,
main .ind__head h2,
main .abt__body h2,
main .faq2__head h2,
main .closing h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

main .mth__got small { font-size: 12px; }

/* Đáy hero tan dần: hạ độ đậm vùng sáng để mép xanh không cắt ngang rồi trắng hẳn */
.fold .fold__blob--a { opacity: 0.55; }
.fold .fold__blob--b { opacity: 0.6; }

/* Dải khách hàng: thanh riêng có đường kẻ, nhãn cùng hàng với tên; hero không kéo giãn trên màn cao */
main .fold { min-height: min(100vh, 900px); min-height: min(100svh, 900px); }
main .fold > .logos--in-fade { padding: 0; background: #ffffff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
main .fold .logos .container { max-width: 1240px; padding-inline: 32px; }
main .fold .clients { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
main .fold .clients__lead { flex: none; margin: 0; }
main .fold .clients__track { flex: 1 1 auto; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
@media (max-width: 640px) {
  main .fold .logos .container { padding-inline: 16px; }
  main .fold .clients { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 0; }
  main .fold .clients__lead { text-align: center; }
}

/* Trước / Sau: gộp bối cảnh + so sánh. Nền trắng để nối liền đáy hero, không có vạch cắt. */
main section.ba--merged { background: #ffffff !important; padding-top: clamp(32px, 4vw, 48px); }
main .ba--merged .ba__head { max-width: 860px; }
main .ba--merged .ba__cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
main .ba--merged .ba__col--before { background: #e8edf5; border-color: transparent; box-shadow: none; }
main .ba--merged .ba__col--after { background: #ffffff; border: 1px solid #bfd3f5; box-shadow: 0 24px 48px -32px rgba(29, 78, 216, 0.45); }
.ba__rows { display: grid; gap: 0; margin: var(--space-8) 0 0; padding: 0; list-style: none; border-top: 1px solid #cfdaea; }
.ba__rows li { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: var(--space-5); align-items: center; padding: 18px 0; border-bottom: 1px solid #cfdaea; }
.ba__rows b { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.ba__rows span { display: block; margin-top: 2px; font-size: 0.95rem; line-height: 1.5; color: #475569; }
.ba__was b { color: #64748b; }
.ba__now b { color: #1d4ed8; }
.ba__arrow { width: 22px; height: 22px; color: #1d4ed8; }

/* Giải pháp: hàng ngang có đường kẻ thay cho ba thẻ */
main .sol--rows .sol__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: end; max-width: none; text-align: left; }
main .sol--rows .sol__head h2 { margin: 0; }
main .sol--rows .sol__head p { margin: 0; max-width: none; }
main .sol--rows .sol__grid { display: block; border-top: 2px solid #0b1633; }
main .sol--rows .sol__card { display: grid; grid-template-columns: 96px minmax(0, 4fr) minmax(0, 6fr) 190px; gap: var(--space-6); align-items: baseline; padding: 28px 0; background: none; border: 0; border-bottom: 1px solid #dbe3ef; border-radius: 0; box-shadow: none; transform: none; }
main .sol--rows .sol__card:hover { transform: none; box-shadow: none; }
main .sol--rows .sol__num { margin: 0; font-size: 2.25rem; line-height: 1; color: #1d4ed8; }
main .sol--rows .sol__card h3 { margin: 0; font-size: 1.3rem; color: #0b1633; }
main .sol--rows .sol__card p { margin: 0; color: #475569; }
main .sol--rows .sol__link { margin: 0; justify-self: end; text-align: right; color: #1d4ed8; }

/* Lĩnh vực: cột trái tiêu đề và số liệu, cột phải danh sách không khung */
main .ind--list .ind { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head list" "stats list" "foot list"; grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 6vw, 88px); }
main .ind--list .ind__head { grid-area: head; max-width: none; margin: 0; text-align: left; }
main .ind--list .ind__head p { margin-inline: 0; }
main .ind--list .stats--band { grid-area: stats; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: var(--space-6) 0; border-top: 1px solid #dbe3ef; }
main .ind--list .stats--band .stat-card { padding: 16px 0; background: none; border: 0; border-bottom: 1px solid #dbe3ef; border-radius: 0; box-shadow: none; transform: none; }
main .ind--list .stats--band .stat-card b { font-size: 2rem; color: #1d4ed8; }
main .ind--list .ind__grid { grid-area: list; display: block; margin: 0; border-top: 2px solid #0b1633; }
main .ind--list .icard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-4); padding: 15px 0; background: none; border: 0; border-bottom: 1px solid #dbe3ef; border-radius: 0; box-shadow: none; transform: none; }
main .ind--list .icard h3 { margin: 0; font-size: 1.05rem; color: #0b1633; }
main .ind--list .icard ul { margin: 0; padding: 0; gap: 2px; }
main .ind--list .icard li { display: block; padding: 0; font-size: 0.92rem; line-height: 1.45; color: #475569; }
main .ind--list .icard li::before { content: none; }
main .ind--list .ind__foot { grid-area: foot; display: flex; justify-content: flex-start; align-items: center; align-self: start; flex-wrap: wrap; gap: 12px 20px; margin: 0; }
main .ind--list .ind__foot .btn { width: auto; flex: none; }

/* Về BAMFLOW: ảnh thường, chú thích dưới ảnh, chữ là phần chính */
main .abt--plain .abt__grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
main .abt--plain .abt__photo { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
main .abt--plain .abt__photo img { height: auto; aspect-ratio: 1; border-radius: 12px; }
main .abt--plain .abt__photo figcaption { position: static; margin-top: 14px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #0b1633; }
main .abt--plain .abt__lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; color: #0b1633; }
.abt__legal { margin: var(--space-5) 0; font-size: 0.88rem; line-height: 1.55; color: #64748b; }

/* Hero hiện đủ trong khoảng 0,5 giây thay vì 1,4 giây */
.js .hero2 [data-anim] { animation-duration: 360ms; }
.js .hero2 [data-anim="1"] { animation-delay: 0ms; }
.js .hero2 [data-anim="2"] { animation-delay: 30ms; }
.js .hero2 [data-anim="3"] { animation-delay: 60ms; }
.js .hero2 [data-anim="4"] { animation-delay: 90ms; }
.js .hero2 [data-anim="5"] { animation-delay: 110ms; }
.js .hero2 [data-anim="6"] { animation-delay: 130ms; }

@media (max-width: 960px) {
  main .ba--merged .ba__cols,
  main .sol--rows .sol__head,
  main .ind--list .ind { grid-template-columns: minmax(0, 1fr); }
  main .ind--list .ind { grid-template-areas: "head" "stats" "list" "foot"; grid-template-rows: none; }
  main .ind--list .ind__head, main .ind--list .ind__head h2 { text-align: left; }
  main .ind--list .ind__foot { margin-top: var(--space-6); }
  main .sol--rows .sol__card { grid-template-columns: 64px minmax(0, 1fr); gap: 6px var(--space-4); }
  main .sol--rows .sol__num { grid-row: span 3; font-size: 1.75rem; }
  main .sol--rows .sol__link { justify-self: start; text-align: left; }
}

@media (max-width: 768px) {
  /* Vùng bấm tối thiểu 44px; nút header giữ nguyên hình, chỉ nới vùng bấm */
  .sol__link { padding-block: 10px; }
  .nav-toggle, .lang-toggle { position: relative; }
  .nav-toggle::after, .lang-toggle::after { content: ""; position: absolute; inset: -4px; }
}

@media (max-width: 640px) {
  /* Một nút Zalo nhỏ hơn để bớt che chữ */
  .socfab { right: 12px; bottom: 12px; }
  .socfab__btn { width: 48px; height: 48px; }
  .socfab__btn--fb { display: none; }
}

@media (max-width: 600px) {
  /* Đoạn dài đọc theo lề trái; hero vẫn căn giữa */
  main .ctx__head,
  main .sol .sol__head,
  main .mth__head,
  main .ba__head,
  main .aiB__head,
  main .ind__head,
  main .faq2__head { text-align: left; }

  main .sol .sol__head p,
  main .aiB__head p,
  main .ind__head p { margin-inline: 0; }

  /* Rút ngắn mobile: bớt ví dụ lộn xộn, so sánh xếp dọc, lĩnh vực một dòng */
  main .ba--merged .ba__mess li:nth-child(n + 4) { display: none; }
  .ba__rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }
  .ba__arrow { display: none; }
  .ba__now { padding-left: 12px; border-left: 2px solid #1d4ed8; }
  main .ind--list .icard { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
  main .ind--list .icard li:nth-child(n + 2) { display: none; }
  main .abt--plain .abt__grid { grid-template-columns: minmax(0, 1fr); }
  main .abt--plain .abt__photo { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
  main .abt--plain .abt__photo figcaption { margin: 0; }
}

/* Thẻ "Hiện tại": cùng một cỡ, thẳng hàng */
main .ba--merged .ba__mess .chip,
.js main .ba--merged.reveal.is-visible .ba__mess .chip { margin-left: 0; transform: none !important; }

/* Hệ thống thật: điện thoại không chạm nút CTA, không lố khỏi lề */
@media (min-width: 641px) {
  main .real__stage { padding-bottom: 112px; }
  main .real__phone { right: 0; bottom: 32px; }
}
@media (max-width: 640px) {
  main .real__foot { margin-top: 20px; }
}

/* Animation khi cuộn. home-polish.js bật .anim-on và thêm .in cho từng nhóm; giảm chuyển động thì không chạy. */
.anim-on { --ease: cubic-bezier(0.22, 1, 0.36, 1); }

.js.anim-on main .ba--merged .ba__mess .chip { opacity: 0; transform: translate(var(--dx, 0), 26px) rotate(var(--rot, 0deg)); transition: opacity 420ms var(--ease) calc(var(--i, 0) * 90ms), transform 700ms var(--ease) calc(var(--i, 0) * 90ms), box-shadow 200ms; }
.js.anim-on main .ba--merged .ba__mess.in .chip { opacity: 1; transform: none !important; }
.js.anim-on main .ba--merged .ba__mess.in .chip:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.4); }

.js.anim-on main .ba--merged .ba__col--after { opacity: 0; transform: translateX(36px); transition: opacity 700ms var(--ease) 260ms, transform 800ms var(--ease) 260ms; }
.js.anim-on main .ba--merged .ba__col--after.in { opacity: 1; transform: none; }
.anim-on main .ba--merged .ba__app .ph { opacity: 0; transform: translateY(44px); transition: opacity 600ms var(--ease) 620ms, transform 800ms var(--ease) 620ms; }
.anim-on main .ba--merged .ba__col--after.in .ba__app .ph { opacity: 1; transform: none; }

.anim-on .ba__rows li .ba__was { opacity: 0; transform: translateX(-18px); transition: opacity 500ms var(--ease) calc(var(--i, 0) * 140ms), transform 600ms var(--ease) calc(var(--i, 0) * 140ms); }
.anim-on .ba__rows li .ba__arrow { opacity: 0; transform: translateX(-14px) scale(0.7); transition: opacity 400ms var(--ease) calc(var(--i, 0) * 140ms + 200ms), transform 500ms var(--ease) calc(var(--i, 0) * 140ms + 200ms); }
.anim-on .ba__rows li .ba__now { opacity: 0; transform: translateX(18px); transition: opacity 500ms var(--ease) calc(var(--i, 0) * 140ms + 340ms), transform 600ms var(--ease) calc(var(--i, 0) * 140ms + 340ms); }
.anim-on .ba__rows.in li .ba__was, .anim-on .ba__rows.in li .ba__arrow, .anim-on .ba__rows.in li .ba__now { opacity: 1; transform: none; }

.anim-on main .real__stats li { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease) calc(var(--i, 0) * 90ms), transform 600ms var(--ease) calc(var(--i, 0) * 90ms); }
.anim-on main .real__stats.in li { opacity: 1; transform: none; }
.anim-on main .real__phone { opacity: 0; transform: translateY(56px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.anim-on main .real__phone.in { opacity: 1; transform: none; }

.anim-on main .mth__step { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease) calc(var(--i, 0) * 110ms), transform 600ms var(--ease) calc(var(--i, 0) * 110ms); }
.anim-on main .mth__grid.in .mth__step { opacity: 1; transform: none; }

.anim-on main .ind--list .stats--band .stat-card { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease) calc(var(--i, 0) * 90ms), transform 600ms var(--ease) calc(var(--i, 0) * 90ms); }
.anim-on main .ind--list .stats--band.in .stat-card { opacity: 1; transform: none; }
.js.anim-on main .ind--list .ind.reveal .icard { opacity: 0 !important; transform: translateX(22px) !important; transition: opacity 420ms var(--ease) calc(var(--i, 0) * 55ms), transform 520ms var(--ease) calc(var(--i, 0) * 55ms) !important; }
.js.anim-on main .ind--list .ind.reveal .ind__grid.in .icard { opacity: 1 !important; transform: none !important; }

.anim-on main .abt__list li { opacity: 0; transform: translateX(-14px); transition: opacity 450ms var(--ease) calc(var(--i, 0) * 120ms + 200ms), transform 550ms var(--ease) calc(var(--i, 0) * 120ms + 200ms); }
.anim-on main .abt__list.in li { opacity: 1; transform: none; }

/* Hover hàng Giải pháp và Lĩnh vực */
@media (hover: hover) {
  main .sol--rows .sol__num { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
  main .sol--rows .sol__card:hover .sol__num { transform: translateX(6px); }
  main .sol--rows .sol__card:hover h3 { color: #1d4ed8; }
  main .ind--list .icard h3 { transition: color 160ms, transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
  main .ind--list .icard:hover h3 { color: #1d4ed8; transform: translateX(6px); }
}

/* Về BAMFLOW: không còn ảnh (ảnh giám đốc nằm trong mục Đội ngũ) → một cột, căn giữa khối chữ */
main .abt--plain .abt__grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
