/* SKYMAX landing — design tokens lấy từ logo (xanh SKYMAX + graphite) */
:root {
  --ink: #14171c;          /* graphite – nền tối, chữ chính */
  --ink-2: #1d222a;
  --navy: #0a1424;         /* xanh đêm cho section tính năng */
  --paper: #f2f4f7;        /* nền sáng lạnh */
  --white: #ffffff;
  --sky: #1e9bf0;          /* xanh sáng trong logo */
  --blue: #0b55d6;         /* xanh đậm trong logo */
  --blue-d: #0841a6;
  --muted: #5b6574;
  --muted-light: #a9b3c1;
  --line: #dde2e9;
  --line-dark: rgba(255, 255, 255, .13);
  --warn: #e0a800;
  --c: 18px;               /* góc vát – lấy từ hình lục giác của logo */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --topbar-h: 38px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Góc vát */
.cham { clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }

/* Placeholder nội dung chờ khách cung cấp */
.ph { display: inline-block; padding: 0 .5em; border: 1px dashed var(--warn); border-radius: 4px; background: rgba(224, 168, 0, .12); color: inherit; font-weight: 500; font-size: .92em; line-height: 1.5; white-space: nowrap; cursor: help; }
.sec-dark .ph, .sec-ink .ph, .hero .ph, .topbar .ph, .site-footer .ph, .evaluation .ph, .company-card .ph { color: #ffd65c; }

/* Nút */
.btn { --c: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 24px; font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1.2; text-align: center; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background-color .25s, color .25s; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--sky); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky); color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--blue); }
.link-arrow .ico { transition: transform .25s var(--ease); }
a:hover > .link-arrow .ico, .link-arrow:hover .ico { transform: translateX(4px); }

/* Tiêu đề section */
.sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.sec-dark { background: var(--ink); color: #e6eaf0; }
.sec-ink { background: var(--navy); color: #e6eaf0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 18px; height: 11px; background: linear-gradient(90deg, var(--sky), var(--blue)); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.sec-dark .eyebrow, .sec-ink .eyebrow, .evaluation .eyebrow { color: var(--sky); }
.h2 { font-size: clamp(32px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.028em; font-weight: 700; text-wrap: balance; }
.h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -.01em; font-weight: 650; font-weight: 600; }
.sec-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; margin-top: 18px; }
.sec-dark .sec-lead, .sec-ink .sec-lead { color: var(--muted-light); }
.sec-head.center { text-align: center; margin: 0 auto; max-width: 900px; }
.sec-head.center .eyebrow { justify-content: center; }
.split-head { display: grid; gap: 20px 60px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head .sec-lead { margin-top: 0; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Topbar & header ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }

.topbar { display: none; position: absolute; inset: 0 0 auto; z-index: 60; height: var(--topbar-h); color: rgba(255, 255, 255, .78); font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.topbar-name { font-weight: 600; letter-spacing: .02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-contacts { display: flex; gap: 22px; }
.topbar-contacts a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-contacts a:hover { color: #fff; }
.topbar .ico { color: var(--sky); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 80; height: var(--header-h); color: #fff; }
/* Trên banner: header trong suốt, cuộn theo trang. Qua hết banner: header trắng cố định trượt xuống */
.site-header.is-scrolled { position: fixed; animation: header-drop .45s var(--ease) both; }
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: none; } }
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { position: relative; display: block; width: 168px; flex: none; }
.brand .logo { width: 100%; height: auto; transition: opacity .3s; }
.brand .logo-color { position: absolute; inset: 0; opacity: 0; }
.main-nav { display: none; margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: 15px; font-weight: 500; position: relative; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link.is-current::after, .has-mega.is-open > .nav-link::after { transform: scaleX(1); }
.caret { width: 14px; height: 14px; transition: transform .25s; }
.has-mega.is-open .caret { transform: rotate(180deg); }
.header-cta { display: none; min-height: 44px; }
.menu-toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; }
.menu-toggle .ico { width: 26px; height: 26px; }

.site-header.is-scrolled { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(20, 23, 28, .35); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); --header-h: 66px; }
.site-header.is-scrolled .logo-white { opacity: 0; }
.site-header.is-scrolled .logo-color { opacity: 1; }

/* Mega menu */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(10, 20, 36, .45); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 32px var(--gutter) 36px; display: grid; grid-template-columns: 300px minmax(0, 720px); gap: 48px; }
.mega-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.mega-intro p:not(.mega-title) { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.mega-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 18px; }
.mega-card { display: block; }
.mega-img { --c: 12px; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.mega-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease); }
.mega-card:hover img { transform: scale(1.06); }
.mega-tag { display: block; font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 12px; }
.mega-name { display: block; font-weight: 600; }

/* Menu mobile */
.mobile-menu { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 36, .55); opacity: 0; transition: opacity .3s; }
.mm-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
.mobile-menu.is-open .mm-backdrop { opacity: 1; }
.mobile-menu.is-open .mm-panel { transform: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mm-head img { width: 140px; height: auto; }
.mm-close { width: 44px; height: 44px; display: grid; place-items: center; }
.mm-close .ico { width: 24px; height: 24px; }
.mm-nav { padding: 12px 20px; }
.mm-nav > li > a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mm-sub { padding: 6px 0 10px 14px; border-bottom: 1px solid var(--line); }
.mm-sub a { display: block; padding: 7px 0; color: var(--muted); font-size: 15px; }
.mm-contact { margin-top: auto; padding: 20px; display: grid; gap: 14px; background: var(--paper); }
.mm-contact > a:not(.btn) { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; color: #fff; overflow: hidden; background: var(--ink); outline: none; }
.hero-slides, .hero-slide, .hero-media { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 8s cubic-bezier(.25, .5, .3, 1); }
.hero-slide.is-active .hero-media img { transform: scale(1.0); }
.hero-media::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10, 14, 20, .62) 0%, rgba(10, 14, 20, .12) 30%, rgba(10, 14, 20, .25) 55%, rgba(10, 14, 20, .88) 100%),
  linear-gradient(90deg, rgba(10, 14, 20, .55) 0%, rgba(10, 14, 20, 0) 65%); }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(150px, 22vh, 210px); }
.hero-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); }
.hero.is-ready .hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-copy > :nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .38s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .52s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .66s; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .85); margin-bottom: 18px; }
.hero-index { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 8px; font-size: 13px; font-weight: 700; background: var(--blue); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.hero-title { font-size: clamp(38px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 15ch; text-wrap: balance; }
.hero-slide:first-child .hero-title { max-width: none; white-space: pre-line; }
.hero-text { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 46ch; margin-top: 22px; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-aside { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(44px, 7vh, 72px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; pointer-events: none; }
.hero-aside > * { pointer-events: auto; }
.hero-tagline { display: none; max-width: 340px; padding-left: 18px; border-left: 2px solid var(--sky); }
.hero-tag-main { font-weight: 600; font-size: 17px; line-height: 1.45; }
.hero-tag-sub { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 6px; }
.hero-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hc-btn { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .2s; }
.hc-btn:hover { background: var(--blue); }
.hc-btn[hidden] { display: none; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { display: grid; gap: 6px; padding: 6px 4px; min-width: 52px; text-align: left; }
.dot-num { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .55); transition: color .3s; }
.hero-dots [aria-current] .dot-num { color: #fff; }
.dot-bar { display: block; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.dot-bar i { display: block; height: 100%; width: 100%; background: var(--sky); transform: scaleX(0); transform-origin: left; }
.hero-dots [aria-current] .dot-bar i { transform: scaleX(1); }
.hero.is-timing .hero-dots [aria-current] .dot-bar i { animation: fillbar var(--dur) linear both; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* ---------- Giới thiệu ---------- */
.intro .sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.intro-media { display: grid; gap: 20px; }
.intro-fig { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); --c: 26px; }
.intro-fig > div { height: 130%; margin-top: -15%; }
.intro-fig img { width: 100%; height: 100%; object-fit: cover; }
.intro-body { display: grid; gap: 28px 64px; margin-top: clamp(48px, 6vw, 88px); }
.intro-lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; letter-spacing: -.015em; font-weight: 600; color: #fff; text-wrap: pretty; }
.intro-cols { display: grid; gap: 18px; color: var(--muted-light); }
.company-card { --c: 22px; margin-top: clamp(56px, 7vw, 96px); padding: clamp(24px, 3vw, 40px); background: linear-gradient(135deg, rgba(30, 155, 240, .14), rgba(11, 85, 214, .06) 60%), var(--ink-2); display: grid; gap: 28px; align-items: center; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.company-card > img { width: 170px; }
.company-card dl { display: grid; gap: 18px 28px; }
.company-card dt { font-size: 13px; color: var(--muted-light); margin-bottom: 4px; }
.company-card dd { font-weight: 600; color: #fff; line-height: 1.4; }
.company-card .btn { justify-self: start; }
@media (min-width: 900px) {
  .intro-media { grid-template-columns: 1fr 1fr; gap: 28px; }
  .intro-fig-2 { margin-top: 90px; }
  .intro-body { grid-template-columns: 1fr 1.1fr; }
  .company-card { grid-template-columns: 170px 1fr auto; }
  .company-card dl { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Lợi ích ---------- */
.benefits-grid { display: grid; gap: 56px; align-items: start; }
.benefit-list { display: grid; gap: 0 40px; margin-top: 44px; }
.benefit-list li { padding: 26px 0; border-top: 1px solid var(--line-dark); }
.benefit-list h3 { color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.benefit-list h3::before { content: ''; width: 10px; height: 10px; background: var(--sky); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); flex: none; }
.benefit-list p { color: var(--muted-light); font-size: 16px; }
.benefits-media { --p: 1; --c: 30px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); transform: scale(calc(.9 + .1 * var(--p))); transform-origin: 50% 100%; }
.benefits-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.15 - .15 * var(--p))); }
@media (min-width: 640px) { .benefit-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } .benefits-media { position: sticky; top: 110px; } }

/* ---------- Tính năng ---------- */
.features-grid { display: grid; gap: 56px; align-items: center; }
.accordion { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line-dark); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; text-align: left; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; color: #fff; }
.acc-ico { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-dark); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.acc-item.is-open .acc-ico { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); }
.acc-btn:hover .acc-ico { border-color: var(--sky); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: var(--muted-light); padding: 0 52px 26px 0; max-width: 60ch; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.feat-stack { --c: 30px; position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--ink-2); }
.feat-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s var(--ease); }
.feat-img.is-active { opacity: 1; transform: none; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-img.is-contain { background: #fff; }
.feat-img.is-contain img { object-fit: contain; padding: 24px; }
.screen-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; color: var(--muted-light); font-size: 15px; max-width: 56ch; }
.screen-note .ico { width: 32px; height: 32px; padding: 7px; color: #fff; background: var(--blue); flex: none; }
@media (min-width: 1000px) { .features-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; } }

/* ---------- Nền tảng ---------- */
.platform { background: var(--paper); }
.platform-grid { display: grid; gap: 48px; }
.platform-copy .sec-head { display: grid; gap: 0 60px; align-items: end; }
.platform-copy .h2 { max-width: 16ch; }
.platform-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.platform-list li { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
.pl-ico { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; color: var(--blue); background: #fff; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.pl-ico .ico { width: 26px; height: 26px; }
.platform-list h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.platform-list p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 640px) { .platform-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1100px) {
  .platform-copy .sec-head { grid-template-columns: 1.1fr 1fr; }
  .platform-copy .sec-head .eyebrow { grid-column: 1 / -1; }
  .platform-copy .sec-lead { margin: 0 0 8px; }
  .platform-list { grid-template-columns: repeat(5, 1fr); border-top: 0; column-gap: 0; }
  .platform-list li { display: block; padding: 6px 22px 10px; border-bottom: 0; border-left: 1px solid var(--line); }
  .pl-ico { margin-bottom: 22px; }
}

/* ---------- Không gian ---------- */
.coverage { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--ink); font-weight: 500; }
.coverage .ico { color: var(--blue); margin-top: 3px; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
.bento li { overflow: hidden; position: relative; }
.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento figure { position: absolute; inset: 0; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento li:hover img { transform: scale(1.05); }
.bento figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 20, .78)); }
.bento figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.3; }
.bento-1 { --c: 26px; clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.bento-6 { --c: 26px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
  .bento-2, .bento-5, .bento-6 { grid-column: span 2; }
}

/* ---------- Vì sao ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; gap: 48px; }
.why-list { display: grid; gap: 20px; }
.why-list li { --c: 18px; background: #fff; padding: 30px 28px 32px; position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
.why-list li::before { content: ''; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.why-list h3 { margin-bottom: 10px; }
.why-list p { color: var(--muted); font-size: 16px; }
@media (min-width: 700px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } .why .sec-head { position: sticky; top: 120px; } }

/* ---------- Khảo sát ---------- */
.evaluation { position: relative; overflow: hidden; color: #fff; padding: clamp(110px, 16vw, 200px) 0; background: var(--ink); }
.eval-bg { position: absolute; left: 0; right: 0; top: -18%; height: 136%; }
.eval-bg img { width: 100%; height: 100%; object-fit: cover; }
.evaluation::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 14, 20, .86) 0%, rgba(10, 14, 20, .55) 55%, rgba(10, 14, 20, .25) 100%); }
.eval-in { position: relative; z-index: 2; }
.eval-box { max-width: 640px; }
.eval-box > p { color: rgba(255, 255, 255, .82); margin-top: 22px; font-size: 18px; }
.eval-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.eval-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.eval-phone .ico { width: 40px; height: 40px; padding: 10px; background: rgba(255, 255, 255, .14); }

/* ---------- Liên hệ ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; gap: 48px; }
.contact-list { display: grid; gap: 18px; margin-top: 36px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.ci { width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--blue); flex: none; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.ci .ico { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a, .contact-list span:not(.ci):not(.ph) { font-weight: 600; }
.contact-form { --c: 26px; background: #fff; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; }
.f-row { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 16px; width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfd; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 85, 214, .15); background: #fff; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.is-ok { color: #11804b; }
.form-status.is-error { color: #c0392b; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: 80px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
.f-brand img { width: 190px; margin-bottom: 22px; }
.f-brand p { margin-top: 6px; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.f-brand .ico { margin-top: 4px; color: var(--sky); }
.f-legal { color: #fff; font-weight: 700; font-size: 16px; }
.f-about { margin-top: 18px !important; max-width: 44ch; }
.f-h { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a:hover { color: #fff; }
.f-contact a { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-contact .ico { color: var(--sky); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line-dark); font-size: 14px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; } }


/* ---------- Nút phụ ---------- */
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-outline { background: #e8f0fd; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.h3-lg { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin-bottom: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ico { width: 22px; height: 22px; padding: 3px; flex: none; color: #fff; background: var(--blue); margin-top: 2px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.check-list.inline { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; font-size: 14px; background: var(--paper); border: 1px solid var(--line); }

/* ---------- Dòng sản phẩm (trang chủ, giới thiệu) ---------- */
.lines { background: var(--white); }
.lines-all { margin-top: 18px; }
.line-list { display: grid; gap: clamp(72px, 9vw, 120px); }
.line { display: grid; gap: 40px; align-items: center; }
.line-media { position: relative; padding-bottom: 12%; }
.line-scene { --c: 28px; aspect-ratio: 16 / 11; overflow: hidden; background: var(--paper); width: 86%; }
.line-scene > div { height: 128%; margin-top: -14%; }
.line-scene img { width: 100%; height: 100%; object-fit: cover; }
.line-cut { --c: 16px; position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; padding: 14px; box-shadow: 0 30px 60px -30px rgba(10, 20, 36, .45); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.line-cut img { width: 100%; height: 100%; object-fit: contain; }
.line-tag { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.line-name { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.line-desc { color: var(--muted); font-size: 18px; margin: 16px 0 22px; max-width: 46ch; }
.line-copy .check-list { margin-bottom: 30px; }
.line-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) {
  .line { grid-template-columns: 1.15fr .85fr; gap: 72px; }
  .line.is-flip .line-media { order: 2; }
  .line.is-flip .line-scene { margin-left: auto; }
  .line.is-flip .line-cut { right: auto; left: 0; }
}

/* ---------- Banner trang con ---------- */
.page-hero { position: relative; min-height: clamp(380px, 58vh, 560px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.ph-media { position: absolute; inset: 0; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; animation: ph-zoom 9s cubic-bezier(.25, .5, .3, 1) both; }
@keyframes ph-zoom { from { transform: scale(1.1); } to { transform: none; } }
.ph-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 20, .7) 0%, rgba(10, 14, 20, .35) 40%, rgba(10, 14, 20, .88) 100%); }
.ph-in { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.ph-title { font-size: clamp(36px, 5vw, 68px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.ph-text { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 255, 255, .84); max-width: 56ch; margin-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; margin-bottom: 20px; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 500; }
.pd .crumbs ol { color: var(--muted); }
.pd .crumbs a:hover, .pd .crumbs [aria-current] { color: var(--ink); }

/* ---------- Danh sách sản phẩm ---------- */
.catalog { background: var(--paper); padding-top: 48px; }
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 15px; font-weight: 600; background: #fff; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.chip span { font-size: 12px; min-width: 22px; padding: 1px 6px; background: var(--paper); color: var(--muted); border-radius: 10px; }
.chip:hover { border-color: var(--blue); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on span { background: var(--blue); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #fff; border: 1px solid var(--line); min-width: min(320px, 100%); }
.search .ico { color: var(--muted); }
.search input { border: 0; outline: 0; font: inherit; font-size: 15px; padding: 11px 0; width: 100%; background: none; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 85, 214, .14); }
.cat-intro { margin-bottom: 28px; padding: 20px 24px; background: #fff; border-left: 3px solid var(--blue); }
.p-grid { display: grid; gap: 24px; }
.p-card { background: #fff; display: flex; flex-direction: column; }
.p-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.p-media img { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.p-media img[style*="contain"] { padding: 20px; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-badge { position: absolute; left: 14px; top: 14px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.p-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.p-cat { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.p-body .h3 a:hover { color: var(--blue); }
.p-desc { color: var(--muted); font-size: 15.5px; margin: 10px 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.p-empty { padding: 48px 24px; text-align: center; background: #fff; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
@media (min-width: 640px) { .p-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
.quote-band { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.quote-in { display: grid; gap: 28px; align-items: center; }
.quote-in p { color: var(--muted-light); margin-top: 12px; max-width: 56ch; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .quote-in { grid-template-columns: 1fr auto; gap: 60px; } }

/* ---------- Chi tiết sản phẩm ---------- */
.no-banner .topbar { display: none; }
.pd { padding: calc(66px + 28px) 0 clamp(56px, 7vw, 88px); background: var(--white); }
.pd-grid { display: grid; gap: 40px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.g-main { --c: 26px; position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.g-main img { width: 100%; height: 100%; }
.g-main img[style*="contain"] { padding: 28px; }
.g-zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(20, 23, 28, .75); color: #fff; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.g-thumb { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); opacity: .7; transition: opacity .2s, border-color .2s; }
.g-thumb img { width: 100%; height: 100%; }
.g-thumb img[style*="contain"] { padding: 6px; }
.g-thumb:hover { opacity: 1; }
.g-thumb.is-on { opacity: 1; border: 2px solid var(--blue); }
.pd-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin-top: 4px; }
.pd-lead { font-size: 18px; color: var(--muted); margin: 16px 0 24px; }
.pd-info .check-list { margin-bottom: 28px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-zalo { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--blue); }
.pd-apps { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-apps > p { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pd-detail { background: var(--paper); }
.pd-detail-grid { display: grid; gap: 48px; }
.pd-desc p { color: #3b4350; margin-bottom: 16px; max-width: 66ch; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-table th { width: 42%; font-weight: 600; color: var(--muted); }
.spec-empty { display: grid; gap: 12px; padding: 24px; background: #fff; border: 1px dashed #b9c4d3; }
.spec-empty .ico { width: 36px; height: 36px; padding: 8px; color: #fff; background: var(--blue); }
.spec-empty p { color: var(--muted); }
.related { background: var(--white); }
@media (min-width: 1000px) {
  .pd-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .pd-info { position: sticky; top: 96px; }
  .pd-detail-grid { grid-template-columns: 1.2fr .8fr; gap: 72px; }
}
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 20, .94); }
.lightbox::backdrop { background: rgba(10, 14, 20, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; background: #fff; }
.lightbox button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox button:hover { background: var(--blue); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ---------- Liên hệ & bản đồ ---------- */
.contact-page { padding-top: clamp(64px, 8vw, 110px); }
.map-wrap { position: relative; height: clamp(320px, 45vw, 480px); background: var(--paper); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.map-link { position: absolute; left: var(--gutter); bottom: 20px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; align-items: center; padding: 140px 0 80px; background: var(--paper); }
.nf-in { display: grid; gap: 18px; justify-items: start; }
.nf-code { font-size: clamp(80px, 14vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--blue); }
.nf-in > p:not(.nf-code) { color: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Thanh hành động mobile ---------- */
.mobile-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; box-shadow: 0 -8px 24px -10px rgba(10, 20, 36, .3); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: 12px; font-weight: 600; color: var(--ink); }
.mobile-bar .ico { width: 21px; height: 21px; color: var(--blue); }
.mobile-bar .mb-primary { background: var(--blue); color: #fff; }
.mobile-bar .mb-primary .ico { color: #fff; }

/* Trạng thái tải */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); background: var(--ink); }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  body { padding-bottom: 60px; font-size: 16px; }
  .hero { min-height: 600px; }
  .hero-copy { padding-bottom: 160px; }
  .hero-aside { bottom: 84px; }
  .hero-controls { margin-left: 0; }
  .hero-dots button { min-width: 40px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (min-width: 1024px) {
  .topbar { display: block; }
  .site-header { top: var(--topbar-h); }
  .site-header.is-scrolled { top: 0; }
  .hero-tagline { display: block; }
}
@media (min-width: 1180px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 1179px) { .header-cta { display: none; } }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .8s ease, transform .9s var(--ease); }
.js [data-reveal="up"] { transform: translateY(28px); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.95); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

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