/* ==========================================================================
   Trustlayer — landing page
   Ngôn ngữ thị giác: "Ấn & Lớp" (seal & strata)
   Nền mực nguội · nhấn đồng thau ấm · đường kẻ mảnh kiểu bản vẽ kỹ thuật
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token — bảng màu SÁNG định nghĩa đầy đủ ở :root (mặc định của tài liệu)
   -------------------------------------------------------------------------- */
:root {
  /* nền và bề mặt */
  --bg:          #faf8f5;
  --bg-2:        #f2efea;
  --surface:     #ffffff;
  --surface-2:   #f6f3ee;
  --surface-3:   #ece7de;

  /* đường kẻ */
  --line:        rgba(17, 20, 26, .11);
  --line-2:      rgba(17, 20, 26, .20);

  /* chữ */
  --fg:          #15181d;
  --fg-2:        #4d535d;
  --fg-3:        #7c828d;

  /* đồng thau — nhấn chính */
  --brass:       #c9871c;   /* mảng, nét vẽ */
  --brass-ink:   #8e5d07;   /* chữ trên nền sáng */
  --brass-soft:  rgba(201, 135, 28, .13);
  --brass-line:  rgba(201, 135, 28, .38);

  /* xanh mực — nhấn phụ */
  --teal:        #0c7a72;
  --teal-soft:   rgba(12, 122, 114, .12);

  /* panel đảo màu (phần Nguyên tắc) */
  --panel-bg:    #14171c;
  --panel-fg:    #f2f0eb;
  --panel-fg-2:  #a8adb6;
  --panel-line:  rgba(255, 255, 255, .13);
  --panel-accent: #edb55e;

  /* nút chính */
  --btn-fg:      #1a1204;

  /* hạt nhiễu */
  --grain-o:     .055;

  /* thang chữ */
  --t-mono:  .75rem;
  --t-sm:    .875rem;
  --t-body:  1.0625rem;
  --t-lead:  clamp(1.0625rem, .98rem + .42vw, 1.25rem);
  --t-lg:    1.375rem;
  --t-xl:    clamp(1.5rem, 1.28rem + 1.1vw, 2rem);
  --t-2xl:   clamp(2rem, 1.55rem + 2.2vw, 3.1rem);
  --t-3xl:   clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);

  /* nhịp */
  --gut:     clamp(20px, 5vw, 56px);
  --sec:     clamp(64px, 8vw, 116px);
  --max:     1240px;

  /* họ chữ */
  --f-display: "Archivo", "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Be Vietnam Pro", "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

/* bảng màu TỐI — theo hệ điều hành, trừ khi người xem chọn sáng */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0b0d11;
    --bg-2:       #0e1116;
    --surface:    #13171e;
    --surface-2:  #171c24;
    --surface-3:  #1e242e;

    --line:       rgba(255, 255, 255, .09);
    --line-2:     rgba(255, 255, 255, .18);

    --fg:         #e9eaee;
    --fg-2:       #aeb4bf;
    --fg-3:       #767d8a;

    --brass:      #e0a445;
    --brass-ink:  #edb55e;
    --brass-soft: rgba(224, 164, 69, .13);
    --brass-line: rgba(224, 164, 69, .40);

    --teal:       #3fb6ac;
    --teal-soft:  rgba(63, 182, 172, .14);

    --panel-bg:   #141921;
    --panel-fg:   #e9eaee;
    --panel-fg-2: #a2a9b5;
    --panel-line: rgba(255, 255, 255, .11);
    --panel-accent: #edb55e;

    --btn-fg:     #14100a;
    --grain-o:    .04;

    color-scheme: dark;
  }
}

/* và lần nữa cho công tắc thủ công, để nút bấm luôn thắng */
:root[data-theme="dark"] {
  --bg:         #0b0d11;
  --bg-2:       #0e1116;
  --surface:    #13171e;
  --surface-2:  #171c24;
  --surface-3:  #1e242e;

  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .18);

  --fg:         #e9eaee;
  --fg-2:       #aeb4bf;
  --fg-3:       #767d8a;

  --brass:      #e0a445;
  --brass-ink:  #edb55e;
  --brass-soft: rgba(224, 164, 69, .13);
  --brass-line: rgba(224, 164, 69, .40);

  --teal:       #3fb6ac;
  --teal-soft:  rgba(63, 182, 172, .14);

  --panel-bg:   #141921;
  --panel-fg:   #e9eaee;
  --panel-fg-2: #a2a9b5;
  --panel-line: rgba(255, 255, 255, .11);
  --panel-accent: #edb55e;

  --btn-fg:     #14100a;
  --grain-o:    .04;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Nền tảng
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* hạt giấy — chi tiết xúc giác, rất nhẹ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "wdth" 104;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass); color: var(--btn-fg); }

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -140%;
  z-index: 200;
  background: var(--brass);
  color: var(--btn-fg);
  padding: 10px 18px;
  font: 500 var(--t-sm)/1 var(--f-mono);
  border-radius: 0 0 6px 6px;
  transition: translate .18s ease;
}
.skip:focus-visible { translate: -50% 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   3. Khối dùng chung
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { position: relative; z-index: 1; padding-block: var(--sec); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }

/* đường kẻ ngăn section, có vạch đồng ở mép nội dung — như thước đo */
.rule {
  position: relative;
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.rule::after {
  content: "";
  position: absolute;
  left: var(--gut);
  top: -3px;
  width: 26px;
  height: 7px;
  background: var(--brass);
  clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%);
}

/* nhãn mono trên đầu mỗi section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.sec-head {
  display: grid;
  gap: 18px;
  max-width: 62ch;
  margin-bottom: clamp(38px, 4.4vw, 62px);
}
.sec-head h2 { font-size: var(--t-2xl); }
.sec-head p {
  color: var(--fg-2);
  font-size: var(--t-lead);
  max-width: 58ch;
}

/* nút */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 var(--t-sm)/1 var(--f-body);
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, translate .18s ease, box-shadow .18s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--brass {
  background: var(--brass);
  color: var(--btn-fg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset;
}
.btn--brass:hover { translate: 0 -2px; box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 22px -8px var(--brass-line); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-ink); translate: 0 -2px; }

.btn--sm { padding: 9px 15px; font-size: var(--t-mono); }

/* chip mono */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 500 var(--t-mono)/1.4 var(--f-mono);
  letter-spacing: .04em;
  color: var(--fg-2);
}
.chip--live { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.chip--rc   { border-color: var(--brass-line); color: var(--brass-ink); background: var(--brass-soft); }
.chip--soon { border-style: dashed; color: var(--fg-3); }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* số liệu canh cột */
.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. Thanh trên cùng
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  scale: 0 1;
  background: linear-gradient(90deg, var(--brass), var(--teal));
  z-index: 120;
  pointer-events: none;
}

.hdr {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 110;
  border-bottom: 1px solid transparent;
  transition: background-color .22s ease, border-color .22s ease, backdrop-filter .22s ease;
}
.hdr.is-stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "wdth" 102;
  font-size: 1.14rem;
  letter-spacing: -.03em;
}

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 9px 13px;
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-2);
  border-radius: 3px;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--fg); background: var(--surface-2); }

.hdr__tools { display: flex; align-items: center; gap: 8px; flex: none; }

/* công tắc ngôn ngữ */
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  overflow: hidden;
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  padding: 7px 10px;
  font: 600 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--brass); color: var(--btn-fg); }

.icon-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.icon-btn:hover { color: var(--brass-ink); border-color: var(--brass-line); }
.icon-btn svg { width: 18px; height: 18px; }

.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}

.burger { display: none; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding-block: clamp(54px, 7vw, 104px) clamp(56px, 7vw, 100px); }

.hero__grid-bg,
.hero__glow { position: absolute; inset: 0; pointer-events: none; }

.hero__grid-bg {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(115% 78% at 50% 4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(115% 78% at 50% 4%, #000 0%, transparent 72%);
}
.hero__glow {
  background:
    radial-gradient(52% 46% at 80% 26%, var(--brass-soft), transparent 68%),
    radial-gradient(44% 40% at 12% 8%, var(--teal-soft), transparent 70%);
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(46px, 5vw, 70px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}

.hero__copy { display: grid; gap: 26px; justify-items: start; }

.hero h1 {
  font-size: var(--t-3xl);
  font-variation-settings: "wdth" 100;
  font-weight: 800;
  letter-spacing: -.036em;
  line-height: 1.02;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass-ink);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: 3px;
  background: var(--brass);
  opacity: .34;
}

.hero__lead {
  color: var(--fg-2);
  font-size: var(--t-lead);
  max-width: 54ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 660px;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 var(--t-mono)/1.5 var(--f-mono);
  letter-spacing: .03em;
  color: var(--fg-3);
}
.hero__facts svg { width: 14px; height: 14px; color: var(--brass); flex: none; }

/* sơ đồ chồng lớp */
.stack { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.stack svg { width: 100%; height: auto; overflow: visible; }
.stack__cap {
  margin-top: 16px;
  text-align: center;
  font: 400 var(--t-mono)/1.5 var(--f-mono);
  letter-spacing: .07em;
  color: var(--fg-3);
}

.plate { transform-box: fill-box; transform-origin: center; }
.plate--f1 { animation: float 7s ease-in-out infinite; }
.plate--f2 { animation: float 7s ease-in-out .5s infinite; }
.plate--f3 { animation: float 7s ease-in-out 1s infinite; }
.plate--f4 { animation: float 7s ease-in-out 1.5s infinite; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.seal-mark { transform-box: fill-box; transform-origin: center; animation: bob 5.5s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

.beam { animation: beam 6.5s ease-in-out infinite; }
@keyframes beam {
  0%, 62%, 100% { opacity: 0; translate: 0 0; }
  8%            { opacity: .85; }
  56%           { opacity: 0; translate: 0 264px; }
}

/* --------------------------------------------------------------------------
   6. Dải số liệu
   -------------------------------------------------------------------------- */
.facts {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) { .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.fact {
  padding: clamp(24px, 3vw, 38px) clamp(16px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.fact:nth-child(2n) { border-right: 0; }
@media (min-width: 860px) {
  .fact { border-bottom: 0; }
  .fact:nth-child(2n) { border-right: 1px solid var(--line); }
  .fact:last-child { border-right: 0; }
}
.fact__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 98;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brass-ink);
  font-variant-numeric: tabular-nums;
}
.fact__k {
  font: 500 var(--t-mono)/1.2 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
}
.fact__d { font-size: var(--t-sm); color: var(--fg-3); line-height: 1.5; }

/* --------------------------------------------------------------------------
   7. Băng chuyền khung tham chiếu
   -------------------------------------------------------------------------- */
.frames { padding-block: clamp(30px, 3.6vw, 46px); position: relative; z-index: 1; }
.frames__lbl {
  display: block;
  text-align: center;
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 22px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { translate: -50% 0; } }

.marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 22px;
  font: 500 .9rem/1 var(--f-mono);
  letter-spacing: .02em;
  color: var(--fg-2);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
  opacity: .55;
}

/* --------------------------------------------------------------------------
   8. Sản phẩm — dải ngang, không phải rổ thẻ
   -------------------------------------------------------------------------- */
.prod { border-top: 1px solid var(--line); }
.prod:last-of-type { border-bottom: 1px solid var(--line); }

.prod__in {
  display: grid;
  gap: clamp(26px, 3vw, 44px);
  padding-block: clamp(34px, 4vw, 54px);
  position: relative;
}
@media (min-width: 1000px) {
  .prod__in { grid-template-columns: 172px minmax(0, 1fr) minmax(0, 300px); align-items: start; }
}

/* vệt đồng chạy từ mép trái khi rê chuột */
.prod::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brass-soft), transparent 46%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.prod:hover::before { opacity: 1; }
.prod { position: relative; }

.prod__id { display: grid; gap: 14px; justify-items: start; position: relative; z-index: 1; }
.prod__glyph {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--brass-ink);
}
.prod__glyph svg { width: 24px; height: 24px; }

.prod__body { display: grid; gap: 16px; position: relative; z-index: 1; }
.prod__name {
  font-size: var(--t-xl);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.prod__name .prod__cat {
  font: 400 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.prod__tag {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: .02em;
  color: var(--brass-ink);
}
.prod__desc { color: var(--fg-2); max-width: 60ch; }

.prod__feat {
  display: grid;
  gap: 9px 26px;
  margin-top: 4px;
}
@media (min-width: 620px) { .prod__feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prod__feat li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: var(--t-sm);
  color: var(--fg-2);
  line-height: 1.55;
}
.prod__feat svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brass); }

.prod__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.prod__aside { position: relative; z-index: 1; display: grid; gap: 10px; }
.mock {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 15px;
  display: grid;
  gap: 11px;
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .5);
}
.mock__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.mock__row { display: grid; gap: 4px; }
.mock__ttl { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--fg); }
.mock__sub { font: 400 var(--t-mono)/1.5 var(--f-mono); color: var(--fg-3); }

.meter { display: grid; gap: 6px; }
.meter__bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brass), #d1553f); }
.meter__scale {
  display: flex;
  justify-content: space-between;
  font: 400 .68rem/1 var(--f-mono);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.bubble {
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  border-radius: 10px 10px 10px 3px;
  padding: 9px 12px;
  font-size: var(--t-sm);
  color: var(--fg);
  justify-self: start;
}
.parsed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  font: 400 var(--t-mono)/1.5 var(--f-mono);
  font-size: .78rem;
}
.parsed dt { color: var(--fg-3); letter-spacing: .04em; }
.parsed dd { margin: 0; color: var(--fg); }

.mock--soon {
  border-style: dashed;
  background: transparent;
  min-height: 132px;
  place-content: center;
  text-align: center;
  color: var(--fg-3);
  box-shadow: none;
}
.mock__note { font: 400 var(--t-mono)/1.6 var(--f-mono); font-size: .72rem; color: var(--fg-3); }

.prod--soon .prod__name, .prod--soon .prod__glyph { color: var(--fg-2); }
.prod--soon .prod__glyph { border-style: dashed; }

/* --------------------------------------------------------------------------
   9. Nền tảng chung — lưới ô kiểu bảng thông số
   -------------------------------------------------------------------------- */
.plat { background: var(--bg-2); border-block: 1px solid var(--line); }
.cells {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
@media (min-width: 640px)  { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cell {
  background: var(--bg-2);
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  gap: 11px;
  align-content: start;
  transition: background-color .22s ease;
}
.cell:hover { background: var(--surface); }
.cell__ic { width: 26px; height: 26px; color: var(--brass-ink); }
.cell h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; }
.cell p { font-size: var(--t-sm); color: var(--fg-2); line-height: 1.6; }

/* --------------------------------------------------------------------------
   10. Quy trình — đây là thứ tự thật, nên mới đánh số
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.step {
  background: var(--bg);
  padding: clamp(24px, 2.8vw, 34px) clamp(20px, 2.4vw, 28px);
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.step__n {
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--brass-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.step__n::after { content: ""; height: 1px; flex: 1; background: var(--brass-line); }
.step h3 { font-size: 1.125rem; }
.step p { font-size: var(--t-sm); color: var(--fg-2); line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. Nguyên tắc — panel mực đảo màu
   -------------------------------------------------------------------------- */
.creed {
  background: var(--panel-bg);
  color: var(--panel-fg);
  position: relative;
  z-index: 1;
  overflow: clip;
}
.creed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 52% at 88% 12%, rgba(224, 164, 69, .12), transparent 66%);
  pointer-events: none;
}
.creed .eyebrow { color: var(--panel-accent); }
.creed .eyebrow::before { background: var(--panel-accent); }
.creed .sec-head p { color: var(--panel-fg-2); }
.creed h2 { color: var(--panel-fg); }

.creed__list { display: grid; gap: 0; position: relative; }
.creed__item {
  display: grid;
  gap: 14px clamp(28px, 4vw, 64px);
  padding-block: clamp(28px, 3.2vw, 42px);
  border-top: 1px solid var(--panel-line);
  align-items: start;
}
.creed__item:last-child { border-bottom: 1px solid var(--panel-line); }
@media (min-width: 860px) {
  .creed__item { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.creed__item h3 {
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.05rem);
  font-weight: 700;
  font-variation-settings: "wdth" 100;
  letter-spacing: -.028em;
  color: var(--panel-fg);
  text-wrap: balance;
}
.creed__item h3 mark { background: none; color: var(--panel-accent); }
.creed__item p { color: var(--panel-fg-2); font-size: var(--t-sm); line-height: 1.7; max-width: 52ch; }
.creed__item code {
  font-family: var(--f-mono);
  font-size: .78rem;
  padding: 2px 6px;
  border: 1px solid var(--panel-line);
  border-radius: 3px;
  color: var(--panel-accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Hỏi đáp
   -------------------------------------------------------------------------- */
.faq { display: grid; max-width: 860px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.012em;
  line-height: 1.45;
  transition: color .16s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brass-ink); }
.qa__pm {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  transition: border-color .18s ease, rotate .22s ease;
}
.qa__pm::before, .qa__pm::after {
  content: "";
  position: absolute;
  inset: 50% 5px;
  height: 1px;
  background: var(--fg-2);
  translate: 0 -50%;
}
.qa__pm::after { rotate: 90deg; transition: opacity .18s ease; }
.qa[open] .qa__pm { border-color: var(--brass); rotate: 90deg; }
.qa[open] .qa__pm::after { opacity: 0; }
.qa__a { padding-bottom: 24px; color: var(--fg-2); font-size: var(--t-sm); line-height: 1.72; max-width: 66ch; }
.qa__a a { color: var(--brass-ink); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   13. Kêu gọi hành động
   -------------------------------------------------------------------------- */
.cta { border-top: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; overflow: clip; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 62% at 50% 0%, var(--brass-soft), transparent 70%);
  pointer-events: none;
}
.cta__in { position: relative; display: grid; gap: 24px; justify-items: center; text-align: center; }
.cta__seal { width: 62px; height: 62px; }
.cta h2 { font-size: var(--t-2xl); max-width: 19ch; }
.cta p { color: var(--fg-2); max-width: 54ch; font-size: var(--t-lead); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__fine { font: 400 var(--t-mono)/1.6 var(--f-mono); font-size: .72rem; color: var(--fg-3); }

/* --------------------------------------------------------------------------
   14. Chân trang
   -------------------------------------------------------------------------- */
.ft { border-top: 1px solid var(--line); padding-block: clamp(44px, 5vw, 66px) 26px; position: relative; z-index: 1; }
.ft__top {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 38px;
}
@media (min-width: 780px) { .ft__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }

.ft__about { display: grid; gap: 14px; align-content: start; max-width: 38ch; }
.ft__about p { font-size: var(--t-sm); color: var(--fg-3); line-height: 1.65; }

.ft__col { display: grid; gap: 12px; align-content: start; }
.ft__col h4 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ft__col a { font-size: var(--t-sm); color: var(--fg-2); transition: color .16s ease; }
.ft__col a:hover { color: var(--brass-ink); }

.ft__bar {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  font: 400 var(--t-mono)/1.6 var(--f-mono);
  font-size: .72rem;
  color: var(--fg-3);
}

.totop {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: calc(clamp(16px, 3vw, 30px) + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity .22s ease, translate .22s ease, color .16s ease, border-color .16s ease;
}
.totop.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop:hover { color: var(--brass-ink); border-color: var(--brass-line); }
.totop svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   15. Màn hình hẹp — menu tràn
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .burger { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 115;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gut) 40px;
    background: var(--bg);
    border-left: 1px solid var(--line);
    translate: 100% 0;
    visibility: hidden;
    transition: translate .3s cubic-bezier(.22, 1, .36, 1), visibility .3s;
  }
  .nav.is-open { translate: 0 0; visibility: visible; }
  .nav a {
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.028em;
    text-transform: none;
    color: var(--fg);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav a:hover { background: transparent; color: var(--brass-ink); }
  .hdr__tools { margin-left: auto; }
  .hdr__tools .btn--cta { display: none; }
}
@media (max-width: 480px) {
  .seg button { padding: 7px 8px; }
}

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   16. Xuất hiện khi cuộn — chỉ bật khi JS chạy, không có JS vẫn đọc được hết
   -------------------------------------------------------------------------- */
.js-reveal [data-rise] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), translate .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
}
.js-reveal [data-rise].is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-rise] { opacity: 1; translate: 0; transition: none; }
  .marquee__track,
  .plate, .seal-mark, .beam { animation: none !important; }
  .beam { opacity: 0; }
  .btn:hover, .totop, .icon-btn { transition: none; }
}

/* neo cuộn — chừa chỗ cho thanh điều hướng dính trên đầu */
[id] { scroll-margin-top: 92px; }
