/* LUMIQ — lumiq.com.vn (bản đầy đủ, 06/10/2026) */
:root {
  --nen: #050B16;
  --nen2: #081226;
  --nen3: #0C1A33;
  --chu: #F3F5F9;
  --mo: #A9B4C8;
  --mo2: #7D8AA3;
  --vach: rgba(255, 255, 255, .1);
  --vang: #F5B841;
  --vang2: #FFD98A;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --le: clamp(16px, 5vw, 72px);
  --rong: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --thanh: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--thanh) + 8px); }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

/* ---------- Thanh trên cùng ---------- */
.thanh {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--thanh) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--le) 0; display: flex; align-items: center; gap: 28px;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.thanh.dac { background: rgba(5, 11, 22, .985); border-bottom-color: var(--vach); }
.logo {
  display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; flex: none;
  font-size: clamp(28px, 2.5vw, 36px); line-height: 1;
}
.logo img { width: 1.5em; height: auto; align-self: center; }
.logo span { font-weight: 800; letter-spacing: .26em; margin-right: -.26em; }
/* biểu tượng: phần hình (đỉnh mặt trời → vạch dưới cùng) cao đúng bằng chữ hoa, đáy trùng chân chữ */
/* chữ hoa Be Vietnam Pro 800 cao .74em; hình chiếm 39/42 chiều cao khung → khung .797em, hạ .0285em để vạch dưới trùng chân chữ */
.lg { height: .797em; width: auto; flex: none; overflow: visible; position: relative; top: .0285em; }
.lg-dien path { stroke-dasharray: 100 100; stroke-dashoffset: 100; }
@media (prefers-reduced-motion: no-preference) {
  .lg-quang { transform-box: fill-box; transform-origin: 50% 100%; animation: lg-tho 2.6s ease-in-out infinite alternate; }
  .lg-tia { transform-box: fill-box; transform-origin: center; animation: quay 12s linear infinite; }
  .lg-tia line { animation: lg-tia 1.6s ease-in-out infinite alternate; }
  .lg-tia line:nth-of-type(2n) { animation-delay: -.8s; }
  .lg-mt { transform-box: fill-box; transform-origin: 50% 100%; animation: lg-moc 1.4s var(--ease) both .2s; }
  .lg-dien path { animation: lg-dien 3.4s ease-in-out infinite; }
  .lg-dien path:nth-child(2) { animation-delay: .22s; }
  .lg-dien path:nth-child(3) { animation-delay: .44s; }
  .logo:hover .lg-quang { animation-duration: .9s; }
}
@keyframes lg-tho { from { opacity: .45; transform: scale(.82); } to { opacity: 1; transform: scale(1.18); } }
@keyframes lg-tia { from { opacity: .25; } to { opacity: 1; } }
@keyframes lg-moc { from { transform: translateY(40%); } }
@keyframes lg-dien { 0% { stroke-dashoffset: 100; opacity: 1; } 38% { stroke-dashoffset: 0; opacity: 1; } 62% { stroke-dashoffset: 0; opacity: 1; } 82%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.menu { display: flex; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; color: #C9D2E2; white-space: nowrap; transition: color .2s; }
.menu a:hover, .menu a.dang { color: var(--vang2); }
.thanh .nut-nho { margin: 0; height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 11px; transition: opacity .3s, transform .25s var(--ease); }
.thanh .nut-nho.an-di { opacity: 0; pointer-events: none; transform: translateY(-4px); }
.mo-menu { display: none; }

/* ---------- Khung đầu: cảnh bình minh ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: clip;
  display: grid; grid-template-rows: 1fr; isolation: isolate;
  padding: calc(var(--thanh) + env(safe-area-inset-top)) var(--le) 0;
  /* chiều cao "sân khấu" 16:9 phủ kín màn; chân trời cách đáy 32% của nó */
  --r: clamp(60px, min(6.6vw, 11.5svh), 132px);
  --duoi: calc(max(56.25vw, 100svh) * .32);
}
.canh { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #040913; }
/* "san" giữ đúng tỉ lệ 16:9 của ảnh, phủ kín khung (như cover), neo đáy và giữa → mặt trời luôn ở giữa chân trời */
.san {
  --sw: max(100vw, 177.78svh);
  position: absolute; left: 50%; bottom: 0; width: var(--sw); aspect-ratio: 16 / 9; transform: translateX(-50%);
}
.san-anh { width: 100%; height: 100%; }
.canh::after { /* làm tối nhẹ phía trên & dưới để chữ rõ */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, .55) 0%, rgba(5, 11, 22, 0) 30%),
    linear-gradient(0deg, rgba(5, 11, 22, 1) 0%, rgba(5, 11, 22, 0) 22%);
}

/* Mặt trời: chỉ nửa trên chân trời hiện ra (khung .mt cắt ở đường chân trời 68%) */
.mt {
  --tia: calc(var(--r) * 4.6);          /* bán kính vùng tia (--r: bán kính đĩa, đặt ở .hero) */
  position: absolute; left: 50%; top: 68%;
  width: calc(var(--tia) * 2); height: var(--tia);
  transform: translate(-50%, -100%); overflow: hidden; pointer-events: none;
}
.mt-tam { position: absolute; left: 50%; top: 100%; width: 0; height: 0; }
.mt-tam > * { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; }
.mt-dia {
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  background: radial-gradient(circle at 50% 50%, #FFF8E2 0%, #FFE39A 38%, #FFC24B 72%, #F59A1F 100%);
  box-shadow: 0 0 calc(var(--r) * .5) rgba(255, 196, 92, .75), 0 0 calc(var(--r) * 1.6) rgba(245, 150, 40, .45);
}
.mt-quang {
  width: calc(var(--tia) * 2); height: calc(var(--tia) * 2);
  background: radial-gradient(circle, rgba(255, 205, 110, .42) 0%, rgba(245, 150, 45, .16) 30%, rgba(245, 150, 45, 0) 62%);
  animation: tho 7s ease-in-out infinite alternate;
}
.mt-tia {
  width: calc(var(--tia) * 2); height: calc(var(--tia) * 2);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(var(--r) * 1.12), #000 calc(var(--r) * 1.3), rgba(0, 0, 0, .55) 46%, transparent 70%);
          mask: radial-gradient(circle, transparent 0 calc(var(--r) * 1.12), #000 calc(var(--r) * 1.3), rgba(0, 0, 0, .55) 46%, transparent 70%);
  will-change: transform;
}
.mt-tia1 {
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 128, .34) 0deg 1.1deg, rgba(255, 214, 128, 0) 1.1deg 7.5deg);
  animation: quay 120s linear infinite;
}
.mt-tia2 {
  background: repeating-conic-gradient(from 3deg, rgba(255, 236, 190, .16) 0deg 3.2deg, rgba(255, 236, 190, 0) 3.2deg 15deg);
  animation: quay 200s linear infinite reverse;
}
.mt-vong { width: calc(var(--r) * 3.1); height: calc(var(--r) * 3.1); animation: quay 90s linear infinite; will-change: transform; }
.mt-vong2 { width: calc(var(--r) * 4.4); height: calc(var(--r) * 4.4); animation-duration: 150s; animation-direction: reverse; }
.mt.dung * { animation-play-state: paused !important; }   /* cuộn khỏi khung đầu → dừng quay cho nhẹ máy */
@keyframes quay { to { rotate: 360deg; } }
@keyframes tho { from { opacity: .75; } to { opacity: 1; } }

/* ---------- Chữ khung đầu ---------- */
.hero-noi {
  align-self: end; justify-self: center; text-align: center; max-width: 980px;
  padding-top: 24px; margin-bottom: calc(var(--duoi) + var(--r) + clamp(18px, 3svh, 34px));
}
.nho {
  margin: 0 0 16px; font-size: clamp(12px, 1vw, 14px); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--vang2);
}
h1 {
  margin: 0; font-weight: 800; font-size: clamp(32px, min(6.2vw, 10.5svh), 96px); line-height: 1.06; letter-spacing: -.025em;
  text-shadow: 0 2px 30px rgba(5, 11, 22, .55);
}
h1 span, h1 em { white-space: nowrap; }
h1 em, .vang-chu {
  font-style: normal;
  background: linear-gradient(180deg, #FFF1C9 0%, #FFD27A 45%, #F5A524 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mo {
  margin: clamp(16px, 2.2svh, 24px) auto 0; max-width: 40em; color: #C9D2E2;
  font-size: clamp(15px, 1.22vw, 19px); line-height: 1.65; text-shadow: 0 1px 16px rgba(5, 11, 22, .8);
  text-wrap: balance;
}
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: clamp(20px, 3.2svh, 34px); padding: 0 28px; height: 54px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--sans); color: #1A1204; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #FFE19A 0%, #F5B841 100%);
  box-shadow: 0 10px 30px -8px rgba(245, 170, 50, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .3s;
}
.nut svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.nut:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(245, 170, 50, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.nut:hover svg { transform: translateX(3px); }
.nut:focus-visible, .menu a:focus-visible, .chip button:focus-visible, summary:focus-visible { outline: 2px solid var(--vang2); outline-offset: 3px; }

.linh-vuc {
  position: absolute; left: var(--le); right: var(--le); bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px), 3svh);
  list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0;
  font-size: clamp(12px, .95vw, 14px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #D7DEEA;
}
.linh-vuc li { white-space: nowrap; }
.linh-vuc li + li::before { content: '·'; margin: 0 .9em; color: var(--vang); }
.linh-vuc .ngat { display: none; }
.linh-vuc .ngat::before { content: none; }

/* ---------- Khung mục chung ---------- */
.muc { max-width: calc(var(--rong) + 2 * var(--le)); margin: 0 auto; padding: clamp(72px, 11svh, 128px) var(--le); }
.muc-toi { max-width: none; background: linear-gradient(180deg, var(--nen2), #060E1E); }
.muc-toi > * { max-width: var(--rong); margin-left: auto; margin-right: auto; }
.dau-muc { max-width: 1240px; margin: 0 auto clamp(36px, 5svh, 56px); text-align: center; }
h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.dan { margin: 16px auto 0; max-width: 760px; color: var(--mo); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; text-wrap: balance; }
h3 { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -.005em; text-wrap: balance; }
.dau-tick { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.dau-tick li { position: relative; padding-left: 26px; font-size: 15px; color: #D3DAE6; line-height: 1.5; }
.dau-tick li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(245, 184, 65, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23FFD27A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Hiện dần khi cuộn tới (chỉ một lần) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .rv.hien { opacity: 1; transform: none; }
}

/* ---------- Giải pháp ---------- */
.gp-truot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gp {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #0C1A33, #08132A); border: 1px solid var(--vach);
  transition: transform .35s var(--ease), border-color .35s;
}
.gp:hover { transform: translateY(-4px); border-color: rgba(245, 184, 65, .35); }
.gp-hinh { background: radial-gradient(ellipse at 70% 0%, rgba(245, 184, 65, .12), transparent 60%), #0A1730; border-bottom: 1px solid var(--vach); }
.gp-hinh img { width: 100%; height: auto; aspect-ratio: 360 / 230; }
.gp-noi { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gp-noi > p:first-of-type { margin: 10px 0 0; color: var(--mo); font-size: 15px; line-height: 1.6; }
.gp-quy { margin: auto 0 0; padding-top: 18px; font-size: 13px; color: var(--mo2); border-top: 1px solid var(--vach); margin-top: 20px; }
.gp-quy b { display: block; margin-top: 2px; font-size: 16px; color: var(--vang2); font-weight: 700; }
.cham { display: none; }

/* ---------- Hình minh hoạ động (SVG nội tuyến, vẽ bởi tools/minhhoa.py) ---------- */
.hh { display: block; width: 100%; height: auto; aspect-ratio: 360 / 230; }
.hh-dat { stroke: #22385F; stroke-width: .6; }
.hh-tg { fill: #0E1D38; stroke: #2B4776; stroke-width: .8; }
.hh-tp { fill: #132748; stroke: #2B4776; stroke-width: .8; }
.hh-noc { fill: #16305A; stroke: #2B4776; stroke-width: .8; }
.hh-mai { fill: #0B1730; stroke: #3A5C93; stroke-width: .8; }
.hh-maisau { fill: #1A3157; stroke: #2B4776; stroke-width: .8; }
.hh-pin { stroke: #0A1428; stroke-width: .35; }
.hh-nok { stroke: #FFD27A; stroke-width: 1.1; stroke-linecap: round; }
.hh-cua { fill: #FFD27A; opacity: .85; }
.hh-cuachinh { fill: #1F3B68; }
.hh-tutg { fill: #1B2F52; stroke: #4A6FA8; stroke-width: .6; }
.hh-tutp { fill: #233C66; stroke: #4A6FA8; stroke-width: .6; }
.hh-tunoc { fill: #2D4B7C; stroke: #4A6FA8; stroke-width: .6; }
.hh-led { fill: #3DDC84; }
.hh-day { fill: none; stroke: rgba(255, 210, 122, .22); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hh-dien { fill: none; stroke: #FFE7A3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2.5 8.5; }
.hh-hat circle { fill: #FFE3A0; opacity: 0; }
.hh-tia line { stroke: #FFD27A; stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.hh-chum { opacity: .55; }
.hh-loe { opacity: 0; }
.hh-duong { fill: #0C172C; stroke: #22385F; stroke-width: .6; }
.hh-vach { stroke: #3A5C93; stroke-width: .8; stroke-linecap: round; opacity: .7; }
.hh-xetg { fill: #C9D5E8; stroke: #7F93B5; stroke-width: .4; }
.hh-xetp { fill: #A9B9D3; stroke: #7F93B5; stroke-width: .4; }
.hh-xenoc { fill: #EEF3FA; stroke: #7F93B5; stroke-width: .4; }
.hh-cabtg { fill: #E7A93A; } .hh-cabtp { fill: #C88A22; } .hh-cabnoc { fill: #FFD27A; }
.hh-kinh { fill: #1C3A66; stroke: #3A5C93; stroke-width: .6; }
.hh-cot { stroke: #7F93B5; stroke-width: 1.2; stroke-linecap: round; }
.hh-sac { fill: #3DDC84; }
.hh-hang { stroke: #2E6B5E; stroke-width: 1.2; stroke-linecap: round; }
.hh-kinh2 { fill: #7FB0E6; fill-opacity: .16; stroke: #7FB0E6; stroke-opacity: .55; stroke-width: .7; }
.hh-khung { stroke: #7FB0E6; stroke-opacity: .45; stroke-width: .6; }
.hh-am { fill: #FFD27A; opacity: .16; }
.hh-than { stroke: #2E6B5E; stroke-width: 1.6; stroke-linecap: round; }
.hh-tan { fill: #1C4A40; stroke: #3C8A74; stroke-width: .8; }
@media (prefers-reduced-motion: no-preference) {
  /* tấm pin bay vào mái lần lượt (lần đầu thấy thẻ); --d do JS đặt theo cột/hàng */
  .js .gp:not(.vao) .hh-pin { opacity: 0; transform: translateY(-16px); }
  .gp.vao .hh-pin { transition: opacity .4s var(--ease), transform .65s cubic-bezier(.3, 1.45, .5, 1); transition-delay: var(--d, 0ms); }
  .gp.chay .hh-tia { transform-box: fill-box; transform-origin: center; animation: quay 24s linear infinite; }
  .gp.chay .hh-quang { transform-box: fill-box; transform-origin: center; animation: hh-tho 3.6s ease-in-out infinite alternate; }
  .gp.chay .hh-chum { animation: hh-chum 5.4s ease-in-out infinite; }
  .gp.chay .hh-chum2 { animation-delay: -1.8s; }
  .gp.chay .hh-chum3 { animation-delay: -3.6s; }
  .gp.chay .hh-loe { animation: hh-loe 4.8s ease-in-out infinite 1.4s; }
  .gp.chay .hh-dien { animation: hh-dien 1.1s linear infinite; }
  .gp.chay .hh-hat circle { animation: hh-hat 3s ease-out infinite; }
  .gp.chay .hh-hat circle:nth-child(2) { animation-delay: .5s; }
  .gp.chay .hh-hat circle:nth-child(3) { animation-delay: 1.1s; }
  .gp.chay .hh-hat circle:nth-child(4) { animation-delay: 1.6s; }
  .gp.chay .hh-hat circle:nth-child(5) { animation-delay: 2.2s; }
  .gp.chay .hh-hat circle:nth-child(6) { animation-delay: .8s; }
  .gp.chay .hh-hat circle:nth-child(7) { animation-delay: 2.6s; }
  .gp.chay .hh-led { animation: nhay 1.4s ease-in-out infinite; }
  .gp.chay .hh-den { animation: hh-den 3.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
  .gp.chay .hh-xe { animation: hh-xe 9s linear infinite; }
  .gp.chay .hh-kinh { animation: hh-tang 4.2s ease-in-out infinite; animation-delay: var(--dl, 0s); }
  .gp.chay .hh-sac { animation: nhay 1s ease-in-out infinite; }
  .gp.chay .hh-am { animation: hh-am 3.2s ease-in-out infinite alternate; }
  .gp.chay .hh-cay { transform-box: fill-box; transform-origin: 50% 100%; animation: hh-cay 4s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
}
@keyframes hh-tho { from { opacity: .55; transform: scale(.9); } to { opacity: 1; transform: scale(1.12); } }
@keyframes hh-chum { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes hh-loe { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 50% { transform: translateX(400px); opacity: 1; } 55%, 100% { transform: translateX(400px); opacity: 0; } }
@keyframes hh-dien { to { stroke-dashoffset: -22; } }
@keyframes hh-hat { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
@keyframes hh-den { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes hh-xe { 0% { transform: translate(-8px, -5px); opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(128px, 74px); opacity: 0; } }
@keyframes hh-tang { 0%, 100% { fill: #1C3A66; } 45% { fill: #F5C35A; } }
@keyframes hh-am { from { opacity: .08; } to { opacity: .34; } }
@keyframes hh-cay { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }

/* ---------- Quy trình EPC ---------- */
.qt {
  --so: 6; list-style: none; margin: 0 auto; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; counter-reset: b;
}
.qt-khung { position: relative; }
.qt li { position: relative; text-align: center; padding-top: 0; }
.qt-ray { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 3px; background: rgba(245, 184, 65, .16); pointer-events: none; display: none; }
.qt-ray.co { display: block; }
.qt-tien {
  position: absolute; inset: 0; border-radius: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #C98A22, #FFD27A 70%, #FFF1C9); box-shadow: 0 0 14px rgba(255, 200, 100, .55);
}
.qt-sao {
  position: absolute; left: calc(var(--p, 0) * 100%); top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: radial-gradient(circle, #FFFDF4 0 18%, rgba(255, 222, 140, .95) 32%, rgba(255, 180, 60, 0) 70%); opacity: var(--sao, 0);
}
.qt-sao::before {
  content: ''; position: absolute; right: 50%; top: 50%; width: 110px; height: 4px; margin-top: -2px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 210, 122, 0), rgba(255, 236, 190, .95));
}
.qt-ray.doc .qt-tien { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, #C98A22, #FFD27A 70%, #FFF1C9); }
.qt-ray.doc .qt-sao { left: 50%; top: calc(var(--p, 0) * 100%); margin: -13px 0 0 -13px; }
.qt-ray.doc .qt-sao::before { right: auto; left: 50%; top: auto; bottom: 50%; width: 4px; height: 90px; margin: 0 0 0 -2px; background: linear-gradient(180deg, rgba(255, 210, 122, 0), rgba(255, 236, 190, .95)); }
.qt-so {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  font-weight: 800; font-size: 17px; color: var(--vang2); background: #0B1830; border: 1px solid rgba(245, 184, 65, .45);
  box-shadow: 0 0 0 6px var(--nen2), 0 0 26px -4px rgba(245, 184, 65, .45);
  transition: background .45s var(--ease), color .45s, border-color .45s, box-shadow .45s, transform .45s var(--ease);
}
.qt b { transition: color .45s; }
.qt li.sang .qt-so {
  background: linear-gradient(180deg, #FFE7A8, #F5B841); color: #1A1204; border-color: #FFF1C9; transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--nen2), 0 0 34px 4px rgba(245, 184, 65, .7);
}
.qt li.sang b { color: var(--vang2); }
.qt li.sang .qt-so::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 220, 140, .9);
  animation: qt-lan 1.1s ease-out both;
}
@keyframes qt-lan { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.qt b { display: block; font-size: 18px; font-weight: 700; }
.qt p { margin: 8px 0 0; color: var(--mo); font-size: 14.5px; line-height: 1.6; }

/* ---------- Mô hình đầu tư ---------- */
.dt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.dt-the {
  border-radius: 22px; padding: clamp(24px, 2.4vw, 34px); background: linear-gradient(180deg, #0C1A33, #08132A); border: 1px solid var(--vach);
}
.dt-the h3 { font-size: 22px; }
.dt-the > p:not(.dt-loai) { margin: 10px 0 0; color: var(--mo); font-size: 15px; }
.dt-loai {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vang2);
  background: rgba(245, 184, 65, .1); border: 1px solid rgba(245, 184, 65, .25);
}
.dt-noi { background: linear-gradient(180deg, #1A2A45, #0D1A33); border-color: rgba(245, 184, 65, .4); box-shadow: 0 24px 60px -30px rgba(245, 170, 50, .45); }

/* ---------- Ước tính ---------- */
.ut {
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 36px); border-radius: 24px; background: linear-gradient(180deg, #0D1B36, #091429); border: 1px solid var(--vach);
}
.ut-nhap { display: grid; gap: 26px; align-content: start; }
.ut-o { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ut-o > span, .ut-o legend { font-size: 14px; font-weight: 600; color: #C3CCDC; padding: 0; }
.ut-o legend { margin-bottom: 10px; float: left; width: 100%; }
.ut-o output { font-weight: 800; font-size: 20px; color: var(--chu); white-space: nowrap; }
.ut-o input[type=range] { grid-column: 1 / -1; width: 100%; margin: 0; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; touch-action: pan-y; }
.ut-o input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--vang) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
.ut-o input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.ut-o input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--vang); }
.ut-o input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #FFF3D1; border: 4px solid var(--vang); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.ut-o input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #FFF3D1; border: 4px solid var(--vang); }
.ut-o input[type=range]:focus-visible { outline: 2px solid var(--vang2); outline-offset: 4px; border-radius: 6px; }
.chip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; clear: both; }
.chip button {
  height: 44px; padding: 0 8px; border-radius: 11px; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: 14px; font-weight: 600; color: #C9D2E2;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip button[aria-pressed="true"] { background: rgba(245, 184, 65, .14); border-color: var(--vang); color: var(--vang2); }
.ut-kq { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ut-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ut-so { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--vach); min-width: 0; }
.ut-so span { display: block; font-size: 13px; color: var(--mo2); font-weight: 500; }
.ut-so b { display: block; margin-top: 4px; font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ut-chinh { background: linear-gradient(180deg, rgba(245, 184, 65, .16), rgba(245, 184, 65, .05)); border-color: rgba(245, 184, 65, .4); }
.ut-chinh b { color: var(--vang2); }
.ut-so small { display: block; margin-top: 2px; font-size: 12px; color: var(--mo2); }
.ut-bd { padding: 16px 18px 12px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--vach); }
.ut-bd-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--mo2); }
.ut-bd-dau b { font-size: 18px; color: var(--chu); white-space: nowrap; }
.ut-bd svg { width: 100%; height: 130px; margin-top: 10px; overflow: visible; }
.ut-bd-truc { display: flex; justify-content: space-between; font-size: 12px; color: var(--mo2); margin-top: 4px; }
.ut-bd-truc span:nth-child(2) { color: var(--vang2); font-weight: 600; }
.ut-gui {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; color: var(--vang2); border-bottom: 1px solid rgba(255, 217, 138, .4); padding-bottom: 2px;
}
.ut-gui svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ut-gui:hover svg { transform: translateX(3px); }
.ut-gia { margin: 18px auto 0; font-size: 12.5px; line-height: 1.7; color: var(--mo2); text-align: center; max-width: 980px; }

/* ---------- Công nghệ & giám sát ---------- */
.cn { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tru { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.tru li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.tru svg {
  width: 48px; height: 48px; padding: 11px; color: var(--vang2);
  border: 1px solid rgba(245, 184, 65, .28); border-radius: 14px; background: rgba(245, 184, 65, .06);
}
.tru b { display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.tru span { color: var(--mo); font-size: 15px; }
.gs {
  border-radius: 24px; padding: clamp(18px, 2vw, 26px); background: linear-gradient(180deg, #0F1F3D, #0A152C);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.gs-dau { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gs-dau b { display: block; font-size: 18px; }
.gs-dau span { font-size: 13px; color: var(--mo2); }
.gs-tt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #8FE3B4 !important; background: rgba(46, 204, 113, .1); border: 1px solid rgba(46, 204, 113, .3); white-space: nowrap; }
.gs-tt i, .gs-chan i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; display: inline-block; }
.gs-tt i { animation: nhay 2s ease-in-out infinite; }
@keyframes nhay { 50% { opacity: .35; } }
.gs-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.gs-so div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--vach); min-width: 0; }
.gs-so span { display: block; font-size: 12px; color: var(--mo2); }
.gs-so b { display: block; margin-top: 2px; font-size: clamp(17px, 1.5vw, 22px); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gs-bd { width: 100%; height: auto; }
.gs-luoi line { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.gs-mo { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; stroke-dasharray: 3 5; }
.gs-duong { fill: none; stroke: #FFD27A; stroke-width: 2.5; stroke-linejoin: round; }
.gs-cham { fill: #FFF3D1; stroke: #F5B841; stroke-width: 3; }
.gs-truc { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mo2); margin-top: 6px; }
.gs-chan { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--vach); font-size: 13px; color: #C3CCDC; }
.gs-chan span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Hỏi đáp ---------- */
.hd { max-width: 900px; display: grid; gap: 12px; }
.hd details { border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--vach); transition: border-color .25s, background-color .25s; }
.hd details[open] { border-color: rgba(245, 184, 65, .35); background: rgba(245, 184, 65, .04); }
.hd summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 600; font-size: 16.5px;
}
.hd summary::-webkit-details-marker { display: none; }
.hd summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--vang2); border-bottom: 2px solid var(--vang2); transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease);
}
.hd details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.hd details p { margin: 0; padding: 0 22px 20px; color: var(--mo); font-size: 15.5px; line-height: 1.7; }

/* ---------- Khung tư vấn ---------- */
.tu-van {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(32px, 6vw, 110px); align-items: center;
  max-width: calc(var(--rong) + 2 * var(--le)); margin: 0 auto; padding: clamp(72px, 11svh, 128px) var(--le);
}
.tv-trai h2 { margin-bottom: clamp(28px, 4svh, 40px); }
.the {
  background: linear-gradient(180deg, rgba(14, 26, 50, .92), rgba(8, 16, 34, .92));
  border: 1px solid var(--vach); border-radius: 22px; padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.the h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.phu { margin: 6px 0 20px; color: var(--mo); font-size: 14.5px; }
.form { display: grid; gap: 14px; }
.form .phu { margin-bottom: 6px; }
.o { display: grid; gap: 6px; min-width: 0; }
.o span { font-size: 13px; font-weight: 600; color: #C3CCDC; }
.o input, .o select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .045); color: var(--chu);
  font: 500 16px var(--sans); transition: border-color .2s, background-color .2s;
}
.o select {
  -webkit-appearance: none; appearance: none; padding-right: 36px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A9B4C8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.o select option { color: #111; }
.o input::placeholder { color: #6E7A90; }
.o input:focus, .o select:focus { outline: none; border-color: var(--vang); background-color: rgba(245, 184, 65, .06); }
.o input[aria-invalid="true"] { border-color: #FF7A6B; }
.hai { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.an { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.loi { margin: 0; color: #FF9C8F; font-size: 14px; }
.kem { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; color: var(--vang2); background: rgba(245, 184, 65, .08); border: 1px dashed rgba(245, 184, 65, .35); }
.nut-gui { width: 100%; margin-top: 6px; }
.nut-gui[disabled] { opacity: .7; cursor: progress; transform: none; }
.goi { margin: 2px 0 0; text-align: center; color: var(--mo); font-size: 14px; }
.goi a { color: var(--vang2); font-weight: 700; text-decoration: none; white-space: nowrap; }
.xong { text-align: center; padding: 28px 8px; }
.xong svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--vang); }
.xong p { color: var(--mo); margin: 8px 0 0; }

/* ---------- Chân trang ---------- */
.chan { border-top: 1px solid rgba(255, 255, 255, .07); background: #040913; }
.chan-tren {
  max-width: calc(var(--rong) + 2 * var(--le)); margin: 0 auto; padding: 56px var(--le) 36px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px;
}
.chan-thuong p { margin: 16px 0 0; max-width: 30em; color: var(--mo2); font-size: 14.5px; }
.chan-cot { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.chan-cot b { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--vang2); margin-bottom: 4px; }
.chan-cot a, .chan-cot span { color: #C3CCDC; text-decoration: none; }
.chan-cot a:hover { color: var(--vang2); }
.chan-duoi {
  max-width: calc(var(--rong) + 2 * var(--le)); margin: 0 auto; padding: 18px var(--le) calc(22px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .06); color: #5F6B82; font-size: 13px;
}

/* ---------- Hiệu ứng lúc tải ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-noi > *, .linh-vuc, .thanh { animation: len .9s var(--ease) both; }
  .hero-noi > :nth-child(2) { animation-delay: .08s; }
  .hero-noi > :nth-child(3) { animation-delay: .16s; }
  .hero-noi > :nth-child(4) { animation-delay: .24s; }
  .linh-vuc { animation-delay: .32s; }
  .mt { animation: moc 1.6s var(--ease) both; }
}
@keyframes len { from { opacity: 0; transform: translateY(14px); } }
@keyframes moc { from { opacity: 0; transform: translate(-50%, -88%); } }
@media (prefers-reduced-motion: reduce) {
  .mt-tia, .mt-vong, .mt-quang, .gs-tt i, .lg *, .hh * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1180px) {
  .gp-truot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ut { grid-template-columns: 1fr; }
  .menu { gap: 18px; }
  .menu a { font-size: 14px; }
}
@media (max-width: 980px) {
  :root { --thanh: 64px; }
  .menu {
    position: fixed; top: calc(var(--thanh) + env(safe-area-inset-top)); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--le) 18px; background: rgba(5, 11, 22, .98); border-bottom: 1px solid var(--vach);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .menu.mo { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .menu a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .thanh .nut-nho { margin-left: auto; }
  .mo-menu {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer;
  }
  .mo-menu i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--chu); transition: transform .25s var(--ease), opacity .2s; }
  .mo-menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mo-menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .mo-menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .thanh.co-menu { background: rgba(5, 11, 22, .98); border-bottom-color: var(--vach); }
  .qt { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .dt { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .cn { grid-template-columns: 1fr; }
  .tu-van { grid-template-columns: 1fr; }
  .chan-tren { grid-template-columns: 1fr 1fr 1fr; }
  .chan-thuong { grid-column: 1 / -1; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 640px) {
  h1 { font-size: min(8.9vw, 44px); }
  .mo { font-size: 15px; }
  .logo { font-size: 27px; }
  .logo span { letter-spacing: .2em; margin-right: -.2em; }
  .hero { --r: clamp(52px, 15vw, 76px); }
  .mt { --tia: calc(var(--r) * 4.2); }
  .hero .nut { width: 100%; max-width: 360px; }
  .thanh .nut-nho { height: 38px; padding: 0 14px; font-size: 14px; }
  .linh-vuc { letter-spacing: .14em; font-size: 11.5px; }
  .linh-vuc li + li::before { margin: 0 .6em; }
  .linh-vuc .ngat { display: block; flex-basis: 100%; height: 0; }
  .linh-vuc .ngat + li::before { content: none; }
  .dau-muc { text-align: left; margin-left: 0; }
  .dan { margin-left: 0; text-wrap: pretty; }

  /* Giải pháp: thẻ lướt ngang, rộng gần hết màn, chấm chỉ vị trí */
  .gp-truot {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--le)); padding: 0 var(--le) 4px; scroll-padding: 0 var(--le);
  }
  .gp-truot::-webkit-scrollbar { display: none; }
  .gp { flex: 0 0 calc(100% - 18px); scroll-snap-align: start; }
  .gp:hover { transform: none; }
  .cham { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .cham i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: width .3s var(--ease), background-color .3s; }
  .cham i.dang { width: 22px; background: var(--vang); }

  /* Quy trình: dọc, đường nối bên trái */
  .qt { grid-template-columns: 1fr; row-gap: 0; }
  .qt li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; padding-bottom: 24px; }
  .qt li:last-child { padding-bottom: 0; }
  .qt-so { grid-row: span 2; width: 48px; height: 48px; margin: 0; font-size: 15px; box-shadow: 0 0 0 5px var(--nen2), 0 0 20px -4px rgba(245, 184, 65, .45); }
  .qt b { padding-top: 2px; }
  .qt p { margin-top: 4px; }

  .ut { padding: 18px; border-radius: 20px; }
  .ut-luoi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ut-chinh { grid-column: 1 / -1; }
  .ut-so { padding: 13px 14px; }
  .ut-so b { font-size: clamp(16px, 4.9vw, 19px); }
  .ut-chinh b { font-size: 26px; }
  .ut-so:last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
  .ut-so:last-child b { margin: 0; }
  .chip button { font-size: 13px; padding: 0 4px; }
  .ut-gia { text-align: left; }

  .gs-so { grid-template-columns: 1fr 1fr; }
  .gs-dau { flex-wrap: wrap; }
  .gs-dau b { white-space: nowrap; }
  .gs-so div:first-child { grid-column: 1 / -1; }
  .tru li { grid-template-columns: 44px 1fr; gap: 14px; }
  .tru svg { width: 44px; height: 44px; padding: 10px; }
  .hd summary { padding: 16px 48px 16px 18px; font-size: 16px; }
  .hd summary::after { right: 18px; }
  .hd details p { padding: 0 18px 18px; font-size: 15px; }
  .chan-tren { grid-template-columns: 1fr 1fr; padding-top: 44px; }
  .chan-cot:last-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .logo { font-size: 23px; }
  .hai { grid-template-columns: 1fr; }
  .chip button { font-size: 12px; }
}

/* Trang phụ (cảm ơn / 404) */
.trang-don { min-height: 100svh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 120%, rgba(245, 160, 50, .22), transparent 60%), var(--nen); }
.don { width: min(440px, calc(100% - 32px)); display: grid; gap: 28px; justify-items: center; padding: 32px 0; }
.don .the { width: 100%; }
.don .nut { margin-top: 22px; }
