/* SVN-Gilroy (Việt hoá) — tự host, lấy từ AzcamMarketing/fonts */
@font-face { font-family: 'Gilroy'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/gilroy-regular.woff2') format('woff2'); }
@font-face { font-family: 'Gilroy'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/gilroy-medium.woff2') format('woff2'); }
@font-face { font-family: 'Gilroy'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/gilroy-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Gilroy'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/gilroy-bold.woff2') format('woff2'); }
@font-face { font-family: 'Gilroy'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/gilroy-black.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f2;
  --ink: #0e1116;
  --ink-2: #535a63;
  --ink-3: #868d95;
  --line: #e3e5e0;
  --lime: #c6ff3d;
  --lime-deep: #a8e01f;
  --brand-blue: #2f62db;
  --radius: 12px;
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Gilroy', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 900; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 99; }

/* Chữ viền (text with stroke) */
.outline { color: transparent; -webkit-text-stroke: max(1.2px, .028em) var(--ink); paint-order: stroke fill; }
@supports not (-webkit-text-stroke: 1px black) { .outline { color: var(--ink); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: auto; height: 22px; }
.wordmark { font-weight: 900; font-size: 1.35rem; letter-spacing: .04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.wordmark.outline { color: var(--lime); -webkit-text-stroke: 1.5px var(--brand-blue); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .96rem; font-weight: 600; }
.nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .wordmark { font-size: 1rem; } .nav .btn { padding: 8px 12px; font-size: .84rem; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--lime); color: var(--ink) !important; border: 1.5px solid var(--ink);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--lime-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.sm { padding: 8px 16px; font-size: .92rem; }

/* Showcase video (dưới header) */
.showcase { padding: 24px 0 0; }
.player { position: relative; border-radius: 16px; overflow: hidden; background: #0e1116; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.spot {
  position: absolute; border: 3px solid var(--lime); border-radius: 10px; opacity: 0;
  box-shadow: 0 0 0 9999px rgba(8, 10, 14, .42);
  transition: left .6s cubic-bezier(.2, .7, .2, 1), top .6s cubic-bezier(.2, .7, .2, 1), width .6s cubic-bezier(.2, .7, .2, 1), height .6s cubic-bezier(.2, .7, .2, 1), opacity .3s;
  pointer-events: none;
}
.stage { position: relative; }
.stage.on .spot { opacity: 1; }
.callout {
  position: absolute; right: 20px; bottom: 20px; max-width: 380px; z-index: 2; display: flex; gap: 14px; align-items: flex-start;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.callout-n { flex: none; font-weight: 900; font-size: .9rem; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 9px; }
.callout strong { display: block; font-size: 1.08rem; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.callout .callout-d { display: block; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.pp { position: absolute; left: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; display: grid; place-items: center; }
.pp span { width: 12px; height: 14px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.stage.paused .pp span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.chapters { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 14px 0 0; }
.chapters button {
  position: relative; width: 100%; height: 100%; text-align: left; font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink-2);
  background: none; border: 0; border-top: 3px solid var(--line); padding: 10px 2px 0; cursor: pointer;
}
.chapters button span { display: block; font-weight: 800; color: var(--ink-3); font-size: .78rem; margin-bottom: 2px; }
.chapters button i { position: absolute; left: 0; top: -3px; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--ink); }
.chapters button[aria-current] { color: var(--ink); border-top-color: var(--lime-deep); }
.chapters button[aria-current] span { color: var(--ink); }
.chapters button:not([aria-current]) i { display: none; }
@media (max-width: 900px) {
  .player { border-radius: 12px; }
  .callout { position: static; max-width: none; box-shadow: none; border: 1px solid var(--line); margin-top: 12px; border-radius: 12px; }
  .chapters { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .chapters li { flex: 0 0 150px; scroll-snap-align: start; }
}
@media (max-width: 900px) { .showcase .player + .chapters { margin-top: 12px; } }

/* Hero text */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { margin: 0; }
@media (max-width: 900px) { .hero { padding: 32px 0 48px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--lime); padding: 3px 8px; margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 24px 0 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 600; }
.chips::before { content: 'Hỗ trợ:'; color: var(--ink-3); font-weight: 500; }
.chips a { text-decoration: none; border-bottom: 2px solid var(--lime-deep); }
.chips a:hover { background: var(--lime); }

/* Ảnh thực tế */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.photo { margin: 0; }
.photo.wide { grid-column: 1 / -1; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); background: var(--bg-soft); }
.photo.wide img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }
.photo figcaption { font-size: .92rem; color: var(--ink-2); margin-top: 10px; }
.photo figcaption strong { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .photos { grid-template-columns: minmax(0, 1fr); } .photo.wide img { aspect-ratio: auto; } }

/* Videos */
.video-card { margin: 0; }
.video-card video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #111; }
.video-card figcaption { padding: 14px 0 0; }
.video-card figcaption p { font-size: .94rem; }

/* Sections */
section { padding: 80px 0; }
.pics { padding-top: 0; }
.alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }

.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.videos { gap: 40px 28px; }
@media (max-width: 900px) { .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-2); margin: 0; }
.card h3 { margin-bottom: .35em; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* Feature blocks */
.feature { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; padding: 48px 0; border-top: 1px solid var(--line); }
.feature > * { min-width: 0; }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.feature .answer { color: var(--ink-2); }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 640px) { .feature ul { grid-template-columns: minmax(0, 1fr); } }
.feature li { padding: 18px 0; border-top: 1px solid var(--line); }
.feature li strong { display: block; font-weight: 700; margin-bottom: 4px; }
.feature li span { color: var(--ink-2); font-size: .96rem; }

.app-card { display: flex; gap: 14px; align-items: flex-start; }
.app-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.app-card small { color: var(--ink-3); font-size: .8rem; font-weight: 600; }

.model-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, background-color .15s; }
.model-card:hover { border-color: var(--ink); }
.model-card .type { font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.model-card h3 { font-size: 1.35rem; font-weight: 900; }
.model-card .more { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: .94rem; }
.model-card:hover .more { text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { font-weight: 700; color: var(--ink-2); font-size: .86rem; }
tbody th { font-weight: 600; }
td.y { text-align: center; font-weight: 900; }
td.y::first-letter { background: var(--lime); }
th.c { text-align: center; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { ol.steps { grid-template-columns: minmax(0, 1fr); } }
ol.steps li { counter-increment: s; border: 0; padding: 18px 0 0; border-top: 2px solid var(--ink); border-radius: 0; background: none; }
ol.steps li::before { content: '0' counter(s); display: block; font-size: 2.4rem; font-weight: 900; line-height: 1; margin-bottom: 12px; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; background: var(--lime); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 46em; }

.cta { background: var(--lime); border: 1.5px solid var(--ink); border-radius: 20px; padding: 48px 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; } }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--ink); margin: 0; }
.cta .hero-cta { margin-top: 0; justify-content: flex-end; }
.cta .btn { background: var(--ink); color: #fff !important; }
.cta .btn:hover { background: #262b33; }
.cta .btn.ghost { background: #fff; color: var(--ink) !important; }
@media (max-width: 760px) { .cta .hero-cta { justify-content: flex-start; } }

.crumbs { font-size: .88rem; color: var(--ink-3); padding-top: 20px; font-weight: 600; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs + section.showcase, .crumbs ~ .showcase { padding-top: 14px; }

.note { font-size: .88rem; color: var(--ink-3); }
.tldr { border-left: 4px solid var(--lime-deep); padding: 4px 0 4px 18px; margin: 20px 0 0; }
.tldr p { margin: 0; color: var(--ink-2); font-size: .96rem; }

.site-footer { border-top: 1px solid var(--line); padding: 56px 0; font-size: .92rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p a { color: var(--ink); font-weight: 700; }
.site-footer h3 { font-size: .92rem; font-weight: 700; color: var(--ink); }
