/* Trang chủ + trang /demo/ của Kết Nhịp — hệ màu "Lụa đêm".
   Toàn trang nền tối liền mạch; nền sóng nhịp tin nhắn WebGL (/fx/kn-gl.js) chạy suốt phía sau, nội dung đặt trên kính tối viền mảnh.
   Màu nhấn chính: vàng sâm panh. Xanh ngọc chỉ dùng điểm xuyết. Tiêu đề: Playfair Display; nội dung: Be Vietnam Pro. */

/* Font tự host (Be Vietnam Pro + Playfair Display, bộ chữ latin, latin-ext, tiếng Việt), lấy từ Google Fonts. */
/* Be Vietnam Pro · vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/bvp-c4f367306f.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;
}
/* Be Vietnam Pro · latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/bvp-15c8383bfc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Be Vietnam Pro · latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/bvp-aa210c0a62.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;
}
/* Be Vietnam Pro · vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/bvp-83f8c68f24.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;
}
/* Be Vietnam Pro · latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/bvp-698bf1567b.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Be Vietnam Pro · latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/bvp-1375e457bc.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;
}
/* Be Vietnam Pro · vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/bvp-8962b9ca14.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;
}
/* Be Vietnam Pro · latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/bvp-188b27967b.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Be Vietnam Pro · latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/bvp-813dca14c2.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;
}
/* Be Vietnam Pro · vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/bvp-d0f5e45cc0.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;
}
/* Be Vietnam Pro · latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/bvp-24057c0f62.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Be Vietnam Pro · latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/bvp-d0dfb81fa4.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;
}
/* Playfair Display · vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/pfd-a8d741edbe.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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/pfd-d8ab75c9b6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/pfd-46289fbad7.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;
}
/* Playfair Display · vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pfd-a8d741edbe.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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pfd-d8ab75c9b6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pfd-46289fbad7.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;
}
/* Playfair Display · vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/pfd-49f22872c0.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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/pfd-74f6892108.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/pfd-fdd6c39166.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;
}
/* Playfair Display · vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pfd-49f22872c0.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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pfd-74f6892108.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/pfd-fdd6c39166.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;
}
/* Playfair Display · vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pfd-49f22872c0.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;
}
/* Playfair Display · latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pfd-74f6892108.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display · latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pfd-fdd6c39166.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;
}

:root {
  --bg: #04100d;
  --ivory: #f3eee4;
  --ivory-2: rgba(243, 238, 228, .76);
  --muted: rgba(243, 238, 228, .52);
  --gold: #e8c98f;
  --gold-2: #f7e6bf;
  --gold-d: #b48f56;
  --jade: #5fe0b5;
  --jade-d: #1d9e7c;
  --panel: rgba(7, 22, 18, .66);
  --panel-2: rgba(11, 30, 25, .78);
  --hair: rgba(232, 201, 143, .2);
  --hair-2: rgba(243, 238, 228, .09);
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font: 16.5px/1.65 var(--sans); color: var(--ivory); overflow-x: hidden;
  /* Nền dự phòng khi không có WebGL: quầng sáng tĩnh */
  background:
    radial-gradient(1100px 760px at 85% -5%, rgba(29, 158, 124, .32), transparent 62%),
    radial-gradient(900px 700px at -5% 45%, rgba(232, 201, 143, .09), transparent 60%),
    radial-gradient(900px 800px at 90% 95%, rgba(29, 158, 124, .18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
/* Tiêu đề chia dòng cân nhau, đoạn văn tránh chữ mồ côi (không để một chữ rơi xuống dòng cuối). */
h1, h2, h3, .title, .final-title { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
p { margin: 0 0 12px; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(232, 201, 143, .35); color: #fff; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ivory); color: var(--bg); }
.skip:focus { left: 8px; }

/* ---------- Nút ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px; font: 600 15.5px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-glow { color: #1d1407; background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, #c9a46a);
  box-shadow: 0 10px 34px -6px rgba(232, 201, 143, .45), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-glow:hover { box-shadow: 0 16px 44px -6px rgba(232, 201, 143, .6), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-glass, .btn-line { color: var(--ivory); background: rgba(243, 238, 228, .05); border: 1px solid rgba(243, 238, 228, .22); }
.btn-glass:hover, .btn-line:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 201, 143, .07); }
.link-btn { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(232, 201, 143, .5); text-underline-offset: 4px; cursor: pointer; }

/* ---------- Đầu trang ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.header-in { display: flex; align-items: center; gap: 30px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ivory); font: 600 21px/1 var(--serif); text-decoration: none; letter-spacing: .005em; }
.brand-mark { width: 34px; height: 34px; color: var(--gold); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--ivory-2); font-size: 15px; text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--gold-2); }
.header.solid { background: rgba(4, 16, 13, .72); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--hair); }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 42px; height: 34px; margin-left: -8px; padding: 0 11px; border: 1px solid var(--hair); border-radius: 999px;
  color: var(--ivory-2); font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-decoration: none; transition: border-color .2s, color .2s;
}
.lang-switch:hover { color: var(--gold-2); border-color: var(--gold); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact-alt { margin-top: 18px; color: var(--ivory-2); font-size: 15px; }
.contact-alt a { color: var(--gold-2); text-underline-offset: 3px; }

/* ---------- Mở đầu ---------- */
.hero { position: relative; padding: 140px 0 0; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; min-height: min(780px, calc(100svh - 200px)); }
.pill-live { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; padding: 8px 16px; border-radius: 999px;
  background: rgba(4, 16, 13, .5); border: 1px solid var(--hair); color: var(--ivory-2); font-size: 13.5px; letter-spacing: .02em; backdrop-filter: blur(8px); }
.pill-live b { color: var(--gold-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--jade); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--jade); opacity: 0; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.h1-a { display: block; margin-bottom: 14px; font: 500 clamp(18px, 2vw, 24px)/1.3 var(--sans); color: var(--ivory-2); letter-spacing: .01em; }
.h1-b { display: block; font: 600 clamp(48px, 7vw, 94px)/1.02 var(--serif); color: var(--ivory); letter-spacing: -.015em; }
.h1-b em, .title em, .final-title em { font-weight: 500; background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, var(--gold-d));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.lead { max-width: 32em; margin: 30px 0 38px; color: var(--ivory-2); font-size: clamp(17px, 1.4vw, 19px); }
.lead strong { color: var(--ivory); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 46px 0 0; padding: 0; list-style: none; }
.hero-trust li { display: flex; flex-direction: column; padding: 0 30px; border-left: 1px solid var(--hair); }
.hero-trust li:first-child { padding-left: 0; border-left: 0; }
.hero-trust b { font: 600 25px/1.2 var(--serif); color: var(--ivory); }
.hero-trust span { color: var(--muted); font-size: 13.5px; letter-spacing: .02em; }

/* Sân khấu: điện thoại + thông báo Telegram + chip nổi */
.stage { position: relative; display: grid; place-items: center; padding: 30px 0 60px; perspective: 1400px; }
.stage-tilt { position: relative; transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .7s var(--ease); }
.phone { position: relative; width: 330px; height: 640px; padding: 12px; border-radius: 52px; background: linear-gradient(145deg, #2a2a26, #0b0b0a);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .75), 0 0 0 1.5px rgba(232, 201, 143, .35), inset 0 0 0 2px rgba(255, 255, 255, .06), 0 0 120px -30px rgba(232, 201, 143, .35);
  display: flex; flex-direction: column; overflow: hidden; }
.phone::before { content: ""; position: absolute; inset: 12px; border-radius: 41px; background: #f1f2ee; }
.phone > * { position: relative; }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; margin-left: -48px; border-radius: 14px; background: #0b0b0a; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 30px 4px; color: #14110c; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.status-icons { display: inline-flex; gap: 2px; align-items: flex-end; }
.status-icons i { width: 3px; background: #14110c; border-radius: 1px; }
.status-icons i:nth-child(1) { height: 4px; } .status-icons i:nth-child(2) { height: 6px; } .status-icons i:nth-child(3) { height: 8px; } .status-icons i:nth-child(4) { height: 10px; }
.phone-head { display: flex; align-items: center; gap: 10px; margin: 14px 10px 0; padding: 12px 14px; border-radius: 22px 22px 6px 6px; color: #fff; background: var(--shop, #8a4f57); transition: background .6s; }
.shop-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-weight: 800; }
.phone-head b { display: block; font-size: 15px; }
.phone-head small { display: flex; align-items: center; gap: 6px; opacity: .9; font-size: 12px; }
.phone-head .dot { width: 6px; height: 6px; background: #8dffc9; }
.phone-head .dot::after { display: none; }
.phone-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin: 0 10px; padding: 12px 10px; overflow: hidden; background: #f7f7f4; }
.pb { max-width: 84%; margin: 0; padding: 9px 13px; border-radius: 18px; font-size: 13.8px; line-height: 1.45; color: #1b1712; animation: bubble .45s var(--ease) both; }
.pb.them { align-self: flex-end; color: #fff; background: var(--shop, #8a4f57); border-bottom-right-radius: 6px; }
.pb.bot { align-self: flex-start; background: #fff; border: 1px solid #e6e4dd; border-bottom-left-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }
.pb.typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.pb.typing i { width: 7px; height: 7px; border-radius: 50%; background: #a39f96; animation: hop 1.1s infinite; }
.pb.typing i:nth-child(2) { animation-delay: .15s; } .pb.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.phone-chat.fade { transition: opacity .5s; opacity: 0; }
.phone-input { display: flex; gap: 8px; margin: 0 10px 10px; padding: 8px; border-radius: 6px 6px 26px 26px; background: #fff; border-top: 1px solid #e8e6e0; }
.phone-input input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #e2dfd7; border-radius: 20px; font: 13.5px var(--sans); color: #1b1712; background: #f7f7f4; }
.phone-input input:focus { outline: 2px solid var(--gold-d); outline-offset: 0; }
.phone-input button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: var(--shop, #8a4f57); cursor: pointer; display: grid; place-items: center; transition: background .6s; }

.tg { position: absolute; left: -96px; bottom: 112px; width: 282px; padding: 14px 16px; border-radius: 20px; color: var(--ivory); z-index: 4;
  background: rgba(8, 22, 18, .86); border: 1px solid var(--hair); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translate3d(-20px, 24px, 60px) scale(.9);
  transition: opacity .5s var(--ease), transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.tg.show { opacity: 1; transform: translate3d(0, 0, 60px) scale(1); }
.tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.tg-head small { margin-left: auto; color: var(--muted); }
.tg-ava { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #2aa3df, #1b7fc1); color: #fff; font-weight: 800; font-size: 12px; }
.tg-title { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
.tg-body { margin: 0; color: var(--ivory-2); font-size: 13.2px; line-height: 1.55; white-space: pre-line; }

.chip { position: absolute; z-index: 5; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  color: var(--ivory); font-size: 13.5px; font-weight: 500; background: rgba(6, 18, 15, .86); border: 1px solid var(--hair); backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .6); transform: translateZ(90px); animation: float 6s ease-in-out infinite; }
.chip i { font-style: normal; }
.chip b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.chip-a { top: 18px; left: -70px; }
.chip-b { top: 210px; right: -86px; animation-delay: -2s; }
.chip-c { bottom: 150px; right: -64px; animation-delay: -4s; }
.chip-b.bump b { display: inline-block; animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); color: var(--gold); } }
@keyframes float { 50% { translate: 0 -10px; } }

.marquee { position: relative; margin-top: 40px; padding: 24px 0; border-block: 1px solid var(--hair); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { padding: 0 28px; color: var(--ivory-2); font: italic 500 20px/1.2 var(--serif); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 56px; color: var(--gold); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Các phần ---------- */
.section { position: relative; padding: 130px 0; }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.kicker span { font: italic 500 22px/1 var(--serif); letter-spacing: 0; color: var(--gold-2); text-transform: none; }
.kicker::after { content: ""; flex: 0 0 64px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.kicker-light { color: var(--gold); }
.title { max-width: 18em; font: 600 clamp(34px, 4.6vw, 60px)/1.1 var(--serif); letter-spacing: -.01em; color: var(--ivory); margin-bottom: 22px; }
.title-light { color: var(--ivory); }
.sub { max-width: 42em; margin-bottom: 52px; color: var(--ivory-2); font-size: 18px; }
.sub-light { color: var(--ivory-2); }

/* Kính tối dùng chung cho thẻ */
.pain, .card, .plan, .own-list li, .extras div, .own-card, .lead-form {
  background: var(--panel); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.pain { position: relative; padding: 36px 30px; border-radius: var(--radius); transition: transform .4s var(--ease), border-color .4s; }
.pain::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.pain:hover { transform: translateY(-6px); border-color: var(--hair); }
.pain-big { display: block; margin-bottom: 20px; font: italic 500 44px/1.1 var(--serif);
  background: linear-gradient(100deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pain h3 { font: 600 21px/1.3 var(--sans); margin-bottom: 10px; }
.pain p { margin: 0; color: var(--ivory-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); gap: 22px; margin-top: 56px; }
.card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 26px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: var(--hair); }
.card h3 { font: 600 22px/1.3 var(--sans); margin-bottom: 10px; }
.card p { color: var(--ivory-2); margin: 0 0 20px; }
.c-wide { grid-column: span 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: rgba(243, 238, 228, .05); border: 1px solid var(--hair-2); }
.mc { max-width: 88%; margin: 0; padding: 9px 13px; border-radius: 16px; font-size: 14px; }
.mc.them { align-self: flex-end; color: #fff; background: #8a4f57; border-bottom-right-radius: 5px; }
.mc.bot { align-self: flex-start; color: #1b1712; background: var(--ivory); border-bottom-left-radius: 5px; }
.mc.bot b { color: #8a5a1c; }
.c-dark { background: radial-gradient(420px 240px at 85% 0%, rgba(232, 201, 143, .16), transparent 70%), var(--panel-2); border-color: var(--hair); }
.mini-tg { display: flex; gap: 12px; align-items: flex-start; margin-top: auto; padding: 14px; border-radius: 16px; background: rgba(243, 238, 228, .05); border: 1px solid var(--hair-2); }
.mini-tg div { display: flex; flex-direction: column; font-size: 14px; }
.mini-tg span { color: var(--ivory-2); }
.handoff { display: flex; align-items: center; margin-top: auto; }
.handoff > span:not(.ho-line) { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-weight: 600; font-size: 14px; }
.ho-bot { border: 1px solid rgba(95, 224, 181, .45); color: var(--jade); }
.ho-you { border: 1px solid var(--gold); color: var(--gold-2); background: rgba(232, 201, 143, .08); }
.ho-line { position: relative; flex: 1; height: 1px; margin: 0 12px; background: repeating-linear-gradient(90deg, rgba(243, 238, 228, .3) 0 6px, transparent 6px 12px); }
.ho-line { container-type: inline-size; }
.ho-line i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: travel 2.6s ease-in-out infinite; }
/* Chạy bằng transform (GPU) thay vì left; 100cqi = bề rộng vạch nối. */
@keyframes travel { 50% { transform: translateX(calc(100cqi - 9px)); } }
.mini-table { display: grid; gap: 8px; margin-top: auto; }
.mini-table span { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 12px; background: rgba(243, 238, 228, .05); border: 1px solid var(--hair-2); font-size: 14px; color: var(--ivory-2); }
.mini-table b { color: var(--ivory); font-weight: 600; }
.st { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; }
.st.new { background: rgba(232, 201, 143, .16); color: var(--gold-2); } .st.call { background: rgba(120, 170, 255, .15); color: #b8d0ff; } .st.won { background: rgba(95, 224, 181, .15); color: var(--jade); }
.c-accent { background: radial-gradient(380px 220px at 0% 100%, rgba(95, 224, 181, .12), transparent 70%), var(--panel); }
.devices { position: relative; height: 98px; margin-top: auto; }
.dv-desk { position: absolute; left: 0; bottom: 0; width: 66%; height: 90px; border-radius: 10px; border: 1px solid var(--hair); overflow: hidden; }
.dv-phone { position: absolute; right: 8%; bottom: 0; width: 22%; height: 98px; border-radius: 12px; border: 1px solid var(--gold); overflow: hidden; }
.devices i { position: absolute; inset: 10px; overflow: hidden; border-radius: 4px; background: rgba(243, 238, 228, .05); }
/* Vệt sáng lướt qua: một dải gradient trượt bằng transform thay vì đổi background-position. */
.devices i::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, rgba(232, 201, 143, .2) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* Demo */
.demos-glow { display: none; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shot { display: flex; flex-direction: column; gap: 14px; color: var(--ivory); text-decoration: none; }
.shot-frame { display: block; overflow: hidden; border-radius: 14px; background: #0b1c17; border: 1px solid var(--hair-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.shot:hover .shot-frame, .shot:focus-visible .shot-frame { transform: translateY(-8px); border-color: rgba(232, 201, 143, .55); box-shadow: 0 40px 70px -30px rgba(232, 201, 143, .3); }
.bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(243, 238, 228, .05); border-bottom: 1px solid var(--hair-2); }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 238, 228, .22); }
.bar em { flex: 1; margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: rgba(243, 238, 228, .06); color: var(--muted); font-style: normal; font-size: 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1c17; }
/* Ảnh chụp sẵn cả trang demo (1280×2000), rê chuột thì trượt lên như đang cuộn trang. */
.shot-view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transition: transform 2.6s cubic-bezier(.3, .6, .2, 1); }
.shot:hover .shot-view img { transform: translateY(-58%); }
.shot-meta { display: flex; flex-direction: column; padding: 0 4px; }
.shot-meta b { font: 600 19px/1.3 var(--serif); }
.shot-meta span { color: var(--muted); font-size: 13.5px; letter-spacing: .02em; }
.note-light { margin: 48px 0 0; color: var(--ivory-2); }

/* Bảng giá */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 26px; border-radius: 24px; transition: transform .4s var(--ease), border-color .4s; }
.plan:hover { transform: translateY(-6px); border-color: var(--hair); }
.plan h3 { font: 600 19px/1.3 var(--sans); color: var(--ivory); }
.price { margin: 16px 0 4px; font: 600 33px/1.15 var(--serif); color: var(--ivory); letter-spacing: -.01em; }
.price small { font: 500 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.plan-sub { color: var(--muted); font-size: 14.5px; }
.plan ul { flex: 1; margin: 14px 0 28px; padding: 0; list-style: none; }
.plan li { position: relative; padding: 9px 0 9px 24px; font-size: 15px; color: var(--ivory-2); border-top: 1px solid var(--hair-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); }
.plan li b { color: var(--gold-2); font-weight: 600; }
.plan-best { background: radial-gradient(320px 220px at 80% 0%, rgba(232, 201, 143, .2), transparent 70%), var(--panel-2); border: 1px solid rgba(232, 201, 143, .6);
  box-shadow: 0 40px 90px -40px rgba(232, 201, 143, .45); transform: translateY(-12px); }
.plan-best:hover { transform: translateY(-18px); }
.plan-best .price { background: linear-gradient(100deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { position: absolute; top: -13px; left: 26px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(120deg, var(--gold-2), var(--gold)); color: #1d1407; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.extras div { padding: 20px 22px; border-radius: 18px; }
.extras b { display: block; margin-bottom: 4px; color: var(--gold-2); font-weight: 600; }
.extras span { color: var(--ivory-2); font-size: 14.5px; }

/* Quy trình */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 60px 0 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(232, 201, 143, .15)); }
.steps li { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%;
  font: italic 500 20px/1 var(--serif); color: var(--gold-2); background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 0 6px rgba(4, 16, 13, .9); }
.steps h3 { font: 600 18px/1.35 var(--sans); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ivory-2); font-size: 15px; }

/* Người làm + cam kết */
.own-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.own-card { padding: 42px 36px; border-radius: 30px; text-align: center; background: radial-gradient(360px 240px at 50% 0%, rgba(232, 201, 143, .18), transparent 70%), var(--panel-2); border-color: var(--hair); }
.own-card h2 { font: 600 28px/1.2 var(--serif); margin: 22px 0 12px; }
.own-card p { color: var(--ivory-2); margin-bottom: 26px; }
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); box-shadow: 0 0 0 8px rgba(232, 201, 143, .08), 0 20px 50px -10px rgba(0, 0, 0, .6); }
.own-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; }
.own-list li { padding: 24px; border-radius: 20px; color: var(--ivory-2); font-size: 15.5px; }
.own-list b { display: block; margin-bottom: 6px; color: var(--ivory); font: 600 19px/1.3 var(--serif); }

/* Hỏi đáp */
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary { position: relative; padding: 24px 46px 24px 0; font: 500 20px/1.4 var(--serif); list-style: none; cursor: pointer; transition: color .2s; }
.faq summary:hover { color: var(--gold-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-right: 30px; padding-bottom: 10px; color: var(--ivory-2); }

/* Kết */
.final-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.final-title { font: 600 clamp(38px, 5.2vw, 70px)/1.08 var(--serif); letter-spacing: -.01em; margin-bottom: 22px; }
.grad { background: linear-gradient(100deg, var(--gold-2), var(--gold), var(--gold-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-sub { color: var(--ivory-2); font-size: 18px; margin-bottom: 34px; }
.lead-form { padding: 34px; border-radius: 26px; background: rgba(7, 22, 18, .5); border-color: var(--hair); backdrop-filter: blur(18px); }
.lead-form h3 { font: 600 24px/1.25 var(--serif); margin-bottom: 8px; }
.lead-form label { display: block; margin: 16px 0 6px; color: var(--ivory-2); font-weight: 500; font-size: 14px; letter-spacing: .02em; }
.lead-form input, .lead-form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid rgba(243, 238, 228, .16); border-radius: 14px;
  font: inherit; color: var(--ivory); background: rgba(0, 0, 0, .28); transition: border-color .2s; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(243, 238, 228, .35); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); }
.lead-form textarea { resize: vertical; }
.lead-form .btn { width: 100%; margin-top: 22px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--jade); }
.form-msg.bad { color: #ffa597; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }
.form-note a { color: var(--ivory-2); text-underline-offset: 3px; }

.footer { position: relative; padding: 64px 0 30px; color: var(--ivory-2); background: rgba(2, 8, 6, .82); border-top: 1px solid var(--hair); }
.footer a { color: var(--ivory); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer p { margin: 6px 0; }
.footer .muted { color: var(--muted); font-family: var(--serif); font-style: italic; }
.footer .copy { margin: 38px auto 0; padding-top: 20px; border-top: 1px solid var(--hair-2); color: var(--muted); font-size: 13.5px; }

.mbar { display: none; }

/* Trang /demo/ */
.demos-page { min-height: 100vh; padding-top: 160px; }

/* Hiện dần khi cuộn (chỉ khi có JS) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover, .js .pain.reveal.in:hover, .js .plan.reveal.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .plan-best.reveal.in { transform: translateY(-12px); }
.js .plan-best.reveal.in:hover { transform: translateY(-18px); }

/* ---------- WebGL (/fx/kn-gl.js): nền sóng nhịp cố định sau toàn trang ---------- */
.kn-bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.gl-bg main, .gl-bg .footer { position: relative; z-index: 1; }
.js-gl img.avatar:not(.kn-gl-ready) { opacity: 0; }
.kn-gl-photo { position: absolute; display: block; pointer-events: none; }

/* ---------- Màn hình vừa ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .stage { margin-top: 10px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-wide { grid-column: span 2; }
  .shots, .plans, .extras { grid-template-columns: repeat(2, 1fr); }
  .plan-best, .js .plan-best.reveal.in { transform: none; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .own-in, .final-in { grid-template-columns: 1fr; }
}

/* ---------- Tên Kelvin dưới ảnh, câu dẫn của form ---------- */
.own-name { margin: 14px 0 -8px; color: var(--gold-2); font: 600 18px/1.3 var(--serif); }
.own-name span { color: var(--muted); font: 500 13.5px var(--sans); }
.form-lead { margin: -4px 0 14px; color: var(--ivory-2); font-size: 14.5px; }

/* ---------- Ưu đãi khai trương ---------- */
.promo { max-width: 760px; margin: -6px 0 34px; padding: 14px 18px; line-height: 1.7; border: 1px solid rgba(232, 201, 143, .35); border-radius: 16px; background: rgba(232, 201, 143, .08); color: var(--ivory-2); font-size: 15.5px; }
.promo b { color: var(--ivory); }
.hero-off { font-style: normal; color: var(--jade); font-weight: 600; }
.promo-tag { display: inline-block; margin-right: 6px; padding: 3px 11px; line-height: 1.5; border-radius: 999px; background: linear-gradient(120deg, var(--gold-2), var(--gold)); color: #1d1407; font-weight: 700; font-size: 14px; }
.price-was { margin: 0 0 2px; color: var(--muted); font-size: 14.5px; }
.price-was s { text-decoration-thickness: 1.5px; }
.off { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(95, 224, 181, .14); color: var(--jade); font-weight: 700; font-size: 12.5px; }
.plan-sub s { color: var(--muted); }

/* ---------- Trang chính sách bảo mật ---------- */
.legal-page { padding-top: 150px; }
.legal { color: var(--ivory-2); font-size: 16.5px; line-height: 1.75; }
.legal .title { margin-bottom: 10px; }
.legal-date { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal h2 { margin: 44px 0 12px; font: 600 24px/1.25 var(--serif); color: var(--ivory); }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold); }
.legal b { color: var(--ivory); font-weight: 600; }
.legal a { color: var(--gold-2); text-underline-offset: 3px; }

/* ---------- Điện thoại ---------- */
@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 78px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .header-in { justify-content: flex-start; gap: 12px; min-height: 64px; }
  .lang-switch { margin-left: auto; }
  .hero { padding-top: 104px; }
  .pill-live { font-size: 12.5px; margin-bottom: 22px; }
  .lead { margin: 22px 0 28px; }
  .cta-row .btn { width: 100%; }
  .hero-trust { grid-template-columns: repeat(3, 1fr); }
  .hero-trust li { padding: 0 12px; }
  .hero-trust b { font-size: 19px; }
  .hero-trust span { font-size: 12px; }
  .stage { padding: 20px 0 30px; }
  .stage-tilt { transform: none !important; }
  .phone { width: 290px; height: 560px; }
  .tg { left: -14px; right: auto; bottom: 86px; width: 250px; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .chip-a { left: -10px; top: 0; }
  .chip-b { right: -12px; top: 170px; }
  .chip-c { display: none; }
  .marquee-track span { font-size: 17px; }
  .section { padding: 86px 0; }
  .pain-grid, .bento, .shots, .plans, .extras, .steps, .own-list, .footer-in { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .pain-big { font-size: 38px; }
  .lead-form { padding: 24px; }
  .demos-page, .legal-page { padding-top: 120px; }
  /* Màn hẹp: bỏ ngắt dòng cố định trong tiêu đề để trình duyệt tự chia dòng cân nhau. */
  .title br, .final-title br { display: none; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 88px 10px 12px;
    background: rgba(4, 16, 13, .9); border-top: 1px solid var(--hair); backdrop-filter: blur(12px); }
  .mbar a { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 999px; color: var(--ivory); font-weight: 600; text-decoration: none; border: 1px solid rgba(243, 238, 228, .22); }
  .mbar a + a { color: #1d1407; border: 0; background: linear-gradient(120deg, var(--gold-2), var(--gold)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tg { opacity: 1; transform: none; }
}
