@import url("../fonts/fonts.css");

/* ============================================================
   CAMERA ĐÓNG HÀNG — hệ thiết kế
   Ngôn ngữ thị giác: "hồ sơ bằng chứng"
   PAPER (nền xám lạnh ngả navy) = thế giới của seller
   MONITOR (navy-đen) = thước phim camera — luôn tối ở cả 2 theme,
            vì một cái màn hình giám sát thì luôn là màn hình.
   ============================================================ */

:root {
  /* --- màu cố định (không đổi theo theme) --- */
  --ink:        #081521;
  --ink-2:      #0C2033;
  --ink-3:      #12314C;
  --navy:       #103959;   /* lấy trực tiếp từ logo */
  --steel:      #5E7E99;
  --signal:     #FF6A00;   /* cam Imou thật — toàn bộ độ chói dồn vào đây */
  --signal-2:   #FF8C33;
  --signal-deep:#C24E00;
  --on-signal:  #0A1520;

  /* --- token theo theme (mặc định: sáng) --- */
  --bg:        #F1F4F7;
  --bg-raise:  #FFFFFF;
  --bg-sunk:   #E7ECF1;
  --fg:        #0B1C2B;
  --fg-mute:   #47607A;
  --fg-dim:    #6E869C;
  --rule:      #D2DBE4;
  --rule-soft: #E4EAF0;
  --shadow:    0 1px 2px rgba(8,21,33,.05), 0 8px 24px -12px rgba(8,21,33,.16);
  --shadow-lg: 0 2px 4px rgba(8,21,33,.06), 0 24px 60px -24px rgba(8,21,33,.28);

  /* --- chữ --- */
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body:    "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-hero: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-h2:   clamp(1.75rem, 3.4vw, 2.85rem);
  --fs-h3:   clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  /* --- nhịp --- */
  --pad:  clamp(1.15rem, 4vw, 2rem);
  --gap:  clamp(1rem, 2.2vw, 1.5rem);
  --sect: clamp(4rem, 9vw, 7.5rem);
  --maxw: 1200px;
  --r:    3px;          /* bo góc rất nhỏ: đây là thiết bị, không phải app hộp bo tròn */
  --r-lg: 5px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #081521;
    --bg-raise:  #0E2436;
    --bg-sunk:   #050E17;
    --fg:        #E9EFF5;
    --fg-mute:   #A0B5C7;
    --fg-dim:    #7C95AA;
    --rule:      #1E3B54;
    --rule-soft: #16304A;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 24px 60px -24px rgba(0,0,0,.75);
  }
}
:root[data-theme="dark"] {
  --bg:        #081521;
  --bg-raise:  #0E2436;
  --bg-sunk:   #050E17;
  --fg:        #E9EFF5;
  --fg-mute:   #A0B5C7;
  --fg-dim:    #7C95AA;
  --rule:      #1E3B54;
  --rule-soft: #16304A;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 24px 60px -24px rgba(0,0,0,.75);
}
:root[data-theme="light"] {
  --bg:        #F1F4F7;
  --bg-raise:  #FFFFFF;
  --bg-sunk:   #E7ECF1;
  --fg:        #0B1C2B;
  --fg-mute:   #47607A;
  --fg-dim:    #6E869C;
  --rule:      #D2DBE4;
  --rule-soft: #E4EAF0;
  --shadow:    0 1px 2px rgba(8,21,33,.05), 0 8px 24px -12px rgba(8,21,33,.16);
  --shadow-lg: 0 2px 4px rgba(8,21,33,.06), 0 24px 60px -24px rgba(8,21,33,.28);
}

/* ---------- nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto BẮT BUỘC đi kèm max-width:100%.
   Thiếu nó, thuộc tính height="1350" trong HTML sẽ thắng và ảnh bị kéo giãn dọc
   (ảnh vuông 1000x1000 render thành 351x1000). Có height:auto, trình duyệt lấy
   tỷ lệ từ cặp width/height trong HTML → vừa đúng hình, vừa không giật layout. */
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* trình duyệt mặc định cho figure margin 1em 40px — bỏ sạch, nhịp do layout quyết định */
figure, blockquote, dl, dd { margin: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* RÀO CHỐNG PHÌNH GRID — đừng bỏ dòng này.
   Mặc định, một grid/flex item không co nhỏ hơn min-content của nó. Với <img>,
   min-content = chiều rộng GỐC của ảnh (vd 1000px). Nên một track "1fr" chứa ảnh
   1000px sẽ phình thành 1000px trên điện thoại, ảnh render nguyên cỡ gốc và bị
   body{overflow-x:hidden} cắt cụt — người dùng chỉ thấy một góc ảnh phóng to,
   trong khi scrollWidth vẫn báo "vừa khít" nên rất dễ lọt kiểm tra.
   min-width:0 cho phép item co lại đúng theo cột. */
.hero__in > *, .lens-split > *, .video-split > *, .spec-split > *, .cta-split > *,
.gal > *, .footer__grid > *, .proof-grid > *, .pain-grid > *, .steps > *,
.who-grid > *, .row2 > *, .sync__row > *, .monitor__panes > * { min-width: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- kiểu chữ dùng chung ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--signal);
  flex: none;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
.lead {
  font-size: var(--fs-lead);
  color: var(--fg-mute);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}
.hl { color: var(--signal); }
.sect { padding-block: var(--sect); }
.sect-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ============================================================
   THANH ĐẦU TRANG
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar__in { display: flex; align-items: center; gap: var(--gap); height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__icon { width: 34px; height: 34px; object-fit: contain; }
.brand__icon--dark { display: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__top {
  font-family: var(--f-mono); font-size: 8.5px; font-weight: 700;
  letter-spacing: .17em; color: var(--fg-dim); text-transform: uppercase;
}
.brand__name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.02rem;
  letter-spacing: -.015em; margin-top: 3px; color: var(--fg);
}
.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  color: var(--fg-mute); white-space: nowrap; transition: color .18s;
}
.nav a:hover { color: var(--signal); }
@media (max-width: 900px) { .nav { display: none; } }

/* ---------- nút ---------- */
.btn {
  --btn-bg: var(--signal);
  --btn-fg: var(--on-signal);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .14s ease, filter .18s ease, background .18s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--zalo { --btn-bg: #0068FF; --btn-fg: #fff; }
.btn--onink { --btn-bg: rgba(255,255,255,.07); --btn-fg: #E9EFF5; border-color: rgba(255,255,255,.2); }
.btn--onink:hover { border-color: var(--signal); color: var(--signal); }
.btn--sm { padding: .6rem 1rem; font-size: .875rem; }

/* ============================================================
   MONITOR — khung màn hình giám sát (luôn tối)
   ============================================================ */
.monitor {
  background: linear-gradient(180deg, #0A1B2A, #060F19);
  border: 1px solid #1B3A55;
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.05);
}
.monitor__head {
  display: flex; align-items: center; gap: .6rem;
  padding: .1rem .3rem .65rem;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: #6E8CA6;
}
.monitor__dev { color: #B9CCDC; }
.monitor__rec { display: flex; align-items: center; gap: .4rem; margin-left: auto; color: var(--signal); }
.rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); flex: none;
  animation: rec 1.9s ease-in-out infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,106,0,.55); } 50% { opacity: .45; box-shadow: 0 0 0 5px rgba(255,106,0,0); } }

.monitor__panes { display: flex; flex-direction: column; gap: 6px; }
.pane { background: #05101A; border-radius: 2px; overflow: hidden; }
.pane__view { position: relative; overflow: hidden; background: #000; }
.pane__view img { width: 100%; height: auto; }
/* footage gốc đã có sẵn nhãn ống kính, timestamp và watermark do camera đóng vào.
   Không vẽ đè lên bằng chứng — chỉ phủ một lớp quét rất nhẹ cho ra chất màn hình. */
.pane__view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
/* nhãn tiếng Việt nằm dưới khung, không che footage */
.pane__tag {
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .65rem;
  border-top: 1px solid #16304A;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #7E97AC;
}
.pane__tag b { color: var(--signal); font-weight: 700; }

/* thanh timeline — dựng lại đúng thanh phát lại của app Imou:
   vạch cam = mốc có chuyển động, tức là mốc có người đang đóng hàng */
.rail { margin-top: .7rem; padding: 0 .3rem; }
.rail__track {
  position: relative; height: 22px; border-radius: 2px;
  background: #12293D; overflow: hidden;
  border: 1px solid #1B3A55;
}
.rail__marks { position: absolute; inset: 0; }
.rail__mark { position: absolute; top: 0; bottom: 0; background: var(--signal); opacity: .8; }
.rail__head {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.85);
  animation: scrub 26s linear infinite;
}
@keyframes scrub { from { left: 4%; } to { left: 96%; } }
.rail__scale {
  display: flex; justify-content: space-between; margin-top: .4rem;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; color: #56748E;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: #E9EFF5;
  overflow: hidden;
  border-bottom: 1px solid #16304A;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 78% 12%, rgba(255,106,0,.14), transparent 62%),
    radial-gradient(900px 700px at 8% 88%, rgba(22,73,111,.55), transparent 66%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6.5vw, 5.5rem);
}
@media (max-width: 980px) { .hero__in { grid-template-columns: 1fr; } }

.hero__flag {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .8rem; margin-bottom: 1.4rem;
  border: 1px solid rgba(255,106,0,.4);
  background: rgba(255,106,0,.1);
  border-radius: 100px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal-2);
}
.hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--fs-hero); line-height: .98; letter-spacing: -.032em;
  margin: 0 0 1.15rem; color: #fff; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__sub { font-size: var(--fs-lead); color: #A9C0D2; max-width: 46ch; margin: 0 0 1.9rem; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.9rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero__trust li { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); color: #8FA9BE; }
.hero__trust svg { width: 15px; height: 15px; color: var(--signal); flex: none; }
.hero ul { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   NỖI ĐAU — dải tối, dạng biên bản
   ============================================================ */
.pain { background: var(--ink-2); color: #E9EFF5; }
.pain .lead { color: #9DB4C7; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1px; background: #1B3A55; border: 1px solid #1B3A55; border-radius: var(--r-lg); overflow: hidden; }
.pain-card { background: var(--ink-2); padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: .6rem; transition: background .2s; }
.pain-card:hover { background: #102943; }
.pain-card__ico { width: 30px; height: 30px; color: var(--signal); }
.pain-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; margin: .3rem 0 0; color: #fff; letter-spacing: -.01em; }
.pain-card p { margin: 0; font-size: var(--fs-sm); color: #94ADC1; line-height: 1.6; }

/* ============================================================
   HAI MẮT
   ============================================================ */
.lens-split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .lens-split { grid-template-columns: 1fr; } }
.lens-fig { margin: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raise); box-shadow: var(--shadow); }
.lens-fig img { width: 100%; }
.lens-fig figcaption { padding: .7rem .9rem; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--fg-dim); border-top: 1px solid var(--rule-soft); letter-spacing: .04em; }

.lens-list { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; margin-top: 1.75rem; }
.lens-item { background: var(--bg-raise); padding: 1.35rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 0 1.1rem; }
.lens-item__no {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--signal); padding-top: .3rem;
}
.lens-item h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); margin: 0 0 .35rem; letter-spacing: -.01em; }
.lens-item p { margin: 0; font-size: var(--fs-sm); color: var(--fg-mute); grid-column: 2; }

/* ============================================================
   BẰNG CHỨNG
   ============================================================ */
.proof { background: var(--ink); color: #E9EFF5; }
.proof .lead { color: #9DB4C7; }
.proof-lead-note {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  padding: .5rem .85rem; border: 1px dashed #2A4C69; border-radius: var(--r);
  font-family: var(--f-mono); font-size: var(--fs-xs); color: #9DB4C7;
}
.proof-lead-note b { color: var(--signal); font-weight: 700; }

.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--gap); }
.shot { margin: 0; display: flex; flex-direction: column; }
/* Mọi khung cao bằng nhau, ảnh căn giữa và letterbox trên nền tối.
   Ảnh nguồn lẫn lộn ngang (960x444) và dọc (544x960) — nếu để tự do thì khung
   và chú thích so le nhau. Letterbox vừa đều hàng, vừa đúng chất màn hình. */
.shot__frame {
  position: relative; background: #05101A; border: 1px solid #1B3A55;
  border-radius: var(--r); overflow: hidden;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.shot__frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.shot figcaption { padding: .85rem .1rem 0; font-size: var(--fs-sm); color: #9DB4C7; }
.shot figcaption b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: .2rem; letter-spacing: -.01em; }
@media (max-width: 640px) { .shot__frame { height: 290px; } }

/* cặp khung cùng mốc giờ */
/* Hai khung xếp chồng như đúng cách app Imou hiển thị.
   Không xếp cạnh nhau: hai ảnh lệch tỷ lệ (16:9 và 2.4:1) sẽ sinh viền đen,
   mà cắt cho bằng nhau thì mất timestamp ở góc — tức là mất chính bằng chứng. */
.sync { border: 1px solid #1B3A55; border-radius: var(--r-lg); overflow: hidden; background: #05101A; max-width: 780px; margin-inline: auto; }
.sync__row { display: flex; flex-direction: column; gap: 1px; background: #1B3A55; }
.sync__cell { position: relative; background: #000; }
.sync__cell img { width: 100%; height: auto; }
/* nhãn nằm dưới khung, không đè lên chữ "Cam Xa"/"Cam Gần" camera đã đóng sẵn vào ảnh */
.sync__cell .pane__tag { background: #0A1B2A; }
.sync__foot {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .7rem; background: #0A1B2A; border-top: 1px solid #1B3A55;
  font-family: var(--f-mono); font-size: var(--fs-xs); color: #9DB4C7;
  text-align: center; flex-wrap: wrap;
}
.sync__foot b { color: var(--signal); font-variant-numeric: tabular-nums; }

/* ============================================================
   VIDEO
   ============================================================ */
.video-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .video-split { grid-template-columns: 1fr; } }
.vidbox { max-width: 330px; margin-inline: auto; }
.vidbox video { width: 100%; border-radius: 2px; background: #000; }

/* ============================================================
   THÔNG SỐ
   ============================================================ */
.spec-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .spec-split { grid-template-columns: 1fr; } }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.spec-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem 1.2rem; padding: .95rem 0; border-bottom: 1px solid var(--rule-soft); font-size: var(--fs-sm); }
.spec-list dt, .spec-list__k {
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--fg-dim); padding-top: .15rem;
}
.spec-list__v { color: var(--fg); }
.spec-list__v b { color: var(--signal); font-weight: 600; }
@media (max-width: 520px) { .spec-list li { grid-template-columns: 1fr; } }
.spec-fig { margin: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ============================================================
   LẮP ĐẶT
   ============================================================ */
.install { background: var(--bg-sunk); }
/* Lưới 2x2: bốn ảnh lấp vừa khít, không tấm nào đứng lẻ.
   Từng thử cho ảnh kho chiếm trọn hàng đầu, nhưng khung 3.6:1 cắt mất phần lớn
   ảnh và chỉ còn lại mảng tường xám. Ô 2x2 gần tỷ lệ gốc hơn nên cắt ít hơn. */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.gal figure { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--bg-raise); }
/* 40% từ trên: camera trong các ảnh này đều nằm ở khoảng trên-giữa khung */
.gal img { width: 100%; height: 320px; object-fit: cover; object-position: center 40%; }
.gal figcaption { padding: .75rem .9rem; font-size: var(--fs-xs); color: var(--fg-mute); border-top: 1px solid var(--rule-soft); }
@media (max-width: 900px) { .gal img { height: 260px; } }
@media (max-width: 520px) { .gal { grid-template-columns: 1fr; } }

/* ============================================================
   QUY TRÌNH — đánh số vì đây thật sự là một chuỗi có thứ tự
   ============================================================ */
.flow { background: var(--ink-2); color: #E9EFF5; }
.flow .lead { color: #9DB4C7; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); counter-reset: s; }
.step { position: relative; padding: 1.6rem 1.4rem; background: #0A1B2A; border: 1px solid #1B3A55; border-radius: var(--r-lg); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; margin-bottom: .8rem;
  font-family: var(--f-mono); font-size: 1.6rem; font-weight: 700;
  color: var(--signal); letter-spacing: -.02em; line-height: 1;
}
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 .45rem; color: #fff; letter-spacing: -.01em; }
.step p { margin: 0; font-size: var(--fs-sm); color: #94ADC1; }

/* ============================================================
   ĐỐI TƯỢNG
   ============================================================ */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: var(--gap); }
.who { padding: 1.5rem 1.4rem; background: var(--bg-raise); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.who h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.who p { margin: 0; font-size: var(--fs-sm); color: var(--fg-mute); }
/* cùng thẻ .who nhưng là link (dải dẫn sang bài viết) — phải trông bấm được */
a.who { display: block; text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s; }
a.who:hover { border-color: var(--signal); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
a.who h3::after { content: " →"; color: var(--signal); }
.who__ico { width: 26px; height: 26px; color: var(--signal); margin-bottom: .8rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { border-top: 1px solid var(--rule); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.03rem;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-family: var(--f-mono); font-size: 1.3rem; font-weight: 400;
  color: var(--signal); line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__q { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--fg-dim); padding-top: .28rem; flex: none; letter-spacing: .06em; }
.faq-item__a { padding: 0 .25rem 1.4rem 3.05rem; margin: 0; color: var(--fg-mute); font-size: var(--fs-sm); max-width: 68ch; }
@media (max-width: 560px) { .faq-item__a { padding-left: .25rem; } }

/* ============================================================
   FORM
   ============================================================ */
.cta { background: var(--ink); color: #E9EFF5; }
.cta-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
@media (max-width: 920px) { .cta-split { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; }
.cta .lead { color: #9DB4C7; }
.cta__bullets { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.cta__bullets li { display: flex; gap: .65rem; font-size: var(--fs-sm); color: #A9C0D2; }
.cta__bullets svg { width: 17px; height: 17px; color: var(--signal); flex: none; margin-top: .22rem; }
.cta__or { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); }
.cta__or p { margin: 0 0 .9rem; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: #7E97AC; }
.cta__direct { display: flex; flex-wrap: wrap; gap: .7rem; }

.card-form {
  background: var(--bg-raise); color: var(--fg);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg);
}
.card-form__head { margin-bottom: 1.4rem; }
.card-form__head h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; margin: 0 0 .3rem; letter-spacing: -.015em; }
.card-form__head p { margin: 0; font-size: var(--fs-sm); color: var(--fg-mute); }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field > label { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); }
.field > label span { color: var(--signal); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--rule); border-radius: var(--r);
  font-family: var(--f-body); font-size: var(--fs-body);
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255,106,0,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); opacity: .75; }
.field__err { font-size: var(--fs-xs); color: #E5484D; min-height: 0; }
.field.is-bad input, .field.is-bad select { border-color: #E5484D; }
.field.is-bad .field__err { min-height: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.card-form .btn { width: 100%; margin-top: .4rem; }
.form-note { margin: .9rem 0 0; font-size: var(--fs-xs); color: var(--fg-dim); text-align: center; }

.done { text-align: center; padding: 1.5rem .5rem; }
.done__ico { width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--signal); }
.done h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; margin: 0 0 .5rem; letter-spacing: -.015em; }
.done p { margin: 0 auto 1.3rem; font-size: var(--fs-sm); color: var(--fg-mute); max-width: 40ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #8FA9BE; border-top: 1px solid #16304A; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer__logo { width: 168px; margin-bottom: 1.1rem; }
.footer p { margin: 0 0 .6rem; font-size: var(--fs-sm); max-width: 44ch; }
.footer h4 { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #E9EFF5; margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer a { color: #8FA9BE; text-decoration: none; font-size: var(--fs-sm); transition: color .18s; }
.footer a:hover { color: var(--signal); }
.footer__kw { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #16304A; font-size: var(--fs-xs); color: #4E6A82; line-height: 1.8; }
.footer__bar { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #16304A; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: #4E6A82; }

/* ============================================================
   NÚT NỔI
   ============================================================ */
.fab { position: fixed; right: 20px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; gap: .6rem; }
.fab a {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px -4px rgba(8,21,33,.5);
  transition: transform .16s;
}
.fab a:hover { transform: scale(1.07); }
.fab a svg { width: 25px; height: 25px; }
.fab__zalo { background: #0068FF; }
.fab__tel  { background: var(--signal); color: var(--on-signal) !important; }
.fab__mes  { background: #A334FA; }
@media (max-width: 720px) { .fab { display: none; } }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 1px; background: #16304A;
  border-top: 1px solid #16304A;
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .65rem .3rem; background: var(--ink); color: #C6D7E4;
  text-decoration: none; font-family: var(--f-mono); font-size: 10px;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.dock a svg { width: 19px; height: 19px; }
.dock .dock__tel { background: var(--signal); color: var(--on-signal); }
@media (max-width: 720px) {
  .dock { display: flex; }
  body { padding-bottom: 62px; }
}

/* ============================================================
   TINH CHỈNH MÀN HÌNH NHỎ
   Mục tiêu: hero đừng ăn hết màn hình đầu tiên bằng chữ —
   phải để cái monitor 2 khung ló lên, vì đó mới là thứ bán hàng.
   ============================================================ */
@media (max-width: 640px) {
  .topbar__in   { height: 60px; }
  .brand__icon  { width: 30px; height: 30px; }
  .brand__name  { font-size: .95rem; }

  .hero__in     { padding-block: 2rem 2.25rem; gap: 1.6rem; }
  .hero__flag   { margin-bottom: .9rem; padding: .35rem .7rem; font-size: 10px; }
  .hero h1      { margin-bottom: .8rem; }
  .hero__sub    { font-size: 1rem; margin-bottom: 1.3rem; }
  .hero__cta    { gap: .55rem; margin-bottom: 1.3rem; }
  .hero__cta .btn { width: 100%; }
  .hero__trust  { padding-top: 1rem; gap: .4rem 1.1rem; }
  .hero__trust li { font-size: .875rem; }
  .btn--lg      { padding: .9rem 1.4rem; font-size: 1rem; }

  .sect-head    { margin-bottom: 1.75rem; }
  .lens-item    { padding: 1.15rem 1.15rem; }
  .step         { padding: 1.3rem 1.15rem; }
  .who          { padding: 1.25rem 1.15rem; }
  .gal img,
  .gal figure:first-child img { height: 240px; }
}

/* màn hình rất hẹp: tên thương hiệu xuống dòng sẽ vỡ header */
@media (max-width: 380px) {
  .brand__name { font-size: .88rem; }
  .brand__top  { font-size: 8px; }
  .btn--sm     { padding: .55rem .8rem; font-size: .82rem; }
}

/* ---------- lộ dần khi cuộn ----------
   Chỉ ẩn khi JS thật sự chạy (class .js do inline script gắn vào <html>).
   Nếu không có rào này, JS lỗi hoặc bị chặn là cả trang trắng bóc. */
.js .rise { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; } }
