:root {
  --bg: #0b0b0e;
  --bg-2: #121217;
  --surface: #17171d;
  --surface-2: #1f1f27;
  --line: #2a2a33;
  --text: #f2f2f5;
  --muted: #a3a3b0;
  --red: #e3141d;
  --red-2: #ff3b3f;
  --silver: #d9dbe1;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-red { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 10px 30px -10px rgba(227, 20, 29, .8); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { border-color: var(--red); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 15px; }
.brand img { width: 48px; height: auto; }
.brand b { color: var(--red-2); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 30%, rgba(227, 20, 29, .28), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(227, 20, 29, .12), transparent 70%),
    linear-gradient(115deg, transparent 55%, rgba(255, 59, 63, .12) 56%, transparent 58%);
}
.hero-inner > * { min-width: 0; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--silver); background: rgba(255, 255, 255, .03);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 10px var(--red-2); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 30%, #b9bcc6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { font-style: normal; color: var(--red-2); -webkit-text-fill-color: var(--red-2); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; color: var(--silver); font-size: 14px; font-weight: 500; }
.hero-points li::before { content: '✓'; color: var(--red-2); font-weight: 800; margin-right: 8px; }
.hero-logo { position: relative; }
.hero-logo img { width: 100%; max-width: 500px; margin-inline: auto; filter: drop-shadow(0 24px 50px rgba(227, 20, 29, .45)) drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }

.brands { position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px dashed var(--line); }
.brands-label { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.brands ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.brands li { padding: 7px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--silver); font-size: 14px; }
.brands li:last-child { font-weight: 500; color: var(--muted); background: transparent; border-style: dashed; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { margin: 0 0 10px; color: var(--red-2); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.section h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.section-head .muted { margin: 12px 0 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.service:hover { border-color: rgba(227, 20, 29, .6); transform: translateY(-3px); }
.tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--red); padding: 3px 9px; border-radius: 999px; }
.service-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: rgba(227, 20, 29, .12); color: var(--red-2); margin-bottom: 18px; }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 18px; font-weight: 700; }
.service p { color: var(--muted); font-size: 14.5px; margin: 10px 0 20px; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-weight: 800; font-size: 17px; color: var(--text); }
.price.is-contact { color: var(--red-2); }
.link { font-size: 14px; font-weight: 600; color: var(--silver); text-decoration: none; white-space: nowrap; }
.link:hover { color: var(--red-2); }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reason { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reason .num { display: block; font-size: 30px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--red-2); margin-bottom: 12px; }
.reason h3 { font-size: 17px; }
.reason p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-card { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-list { margin: 26px 0 28px; display: grid; gap: 16px; }
.contact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list div[hidden] { display: none; }
.contact-list dt { color: var(--muted); font-size: 14px; }
.contact-list dd { margin: 0; font-weight: 700; }
.contact-list a { color: var(--red-2); text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* Footer */
.footer { padding: 32px 0 100px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand img { width: 40px; }
.footer p { margin: 0; font-size: 14px; }

/* Blog */
.section-head-wide { max-width: none; }
.section-more { display: flex; justify-content: center; margin-top: 32px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: rgba(227, 20, 29, .6); transform: translateY(-3px); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover.is-empty {
  display: grid; place-items: center; text-decoration: none;
  background:
    radial-gradient(260px 160px at 80% 20%, rgba(227, 20, 29, .35), transparent 70%),
    linear-gradient(135deg, #1d1d25, #101014);
}
.post-cover-text { font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; color: var(--silver); padding: 0 20px; text-align: center; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.post-cat { color: var(--red-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; text-decoration: none; }
.post-card h3 { font-size: 18px; font-weight: 700; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--red-2); }
.post-excerpt { color: var(--muted); font-size: 14.5px; margin: 10px 0 16px; flex: 1; }

.page-hero { position: relative; overflow: hidden; padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.page-hero .lead { margin-bottom: 0; }
.section-tight { padding-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips:empty { display: none; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--silver); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.article { max-width: 760px; padding: 40px 0 24px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article-head h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; margin: 10px 0 14px; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 24px 0 8px; border: 1px solid var(--line); }
.article-lead { font-size: 19px; color: var(--silver); margin: 24px 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-weight: 500; }
.article-empty { padding: 40px 0; display: grid; gap: 14px; justify-items: start; }
.prose { font-size: 17px; line-height: 1.8; color: #d6d6de; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red-2); }
.prose strong { color: var(--text); }
.prose a { color: var(--red-2); }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--red); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--silver); }
.prose blockquote p { margin: 0; }
.prose figure { margin: 28px 0; }
.prose figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.article-cta { max-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px; margin-bottom: 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(227, 20, 29, .18), var(--surface) 60%); border: 1px solid rgba(227, 20, 29, .35); }
.article-cta h2 { font-size: 20px; }
.article-cta p { margin: 6px 0 0; }

/* Trang 404 */
.notfound { position: relative; overflow: hidden; min-height: calc(100svh - 68px - 100px); display: grid; place-items: center; padding: 64px 0; }
.notfound-inner { position: relative; max-width: 680px; text-align: center; }
.notfound-inner .hero-cta { justify-content: center; }
.notfound-code {
  margin: 0; font-size: clamp(110px, 22vw, 200px); font-weight: 800; line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--red-2);
  text-shadow: 0 0 60px rgba(227, 20, 29, .35);
}
.notfound h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin: 18px 0 0; }
.notfound .lead { margin: 16px auto 28px; }
.notfound-help { margin: 24px 0 0; font-size: 15px; }
.notfound-help a { color: var(--red-2); font-weight: 600; text-decoration: none; }

/* Hiệu ứng xuất hiện khi cuộn tới (xem initReveal trong shared.js) */
:root { --reveal-delay: 0s; --reveal-step: 90ms; --reveal-duration: .7s; }
/* Phần đầu trang ẩn sẵn từ lúc tải (class js-reveal gắn trong <head>) để không bị nháy */
.js-reveal :is(.hero-copy > *, .brands, .page-hero .container > *, .notfound-inner > *):not([data-revealed]) { opacity: 0; }
.js-reveal .reveal { opacity: 0; transform: translateY(26px); }
/* Chỉ có chuyển động ở bước hiện ra, bước ẩn thì tức thì */
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--reveal-duration) cubic-bezier(.2, .7, .2, 1), transform var(--reveal-duration) cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--reveal-delay) + var(--reveal-i, 0) * var(--reveal-step));
}

/* Floating CTA */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-weight: 800; font-size: 13px; color: #fff; box-shadow: var(--shadow); }
.float-btn svg { width: 24px; height: 24px; }
.float-btn.zalo { background: #0068ff; }
.float-btn.fb { background: #1877f2; }
.float-cta [hidden], .hero-cta [hidden] { display: none; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--silver); margin-left: auto; }
.social:hover { color: #fff; background: #1877f2; border-color: #1877f2; }
.social svg { width: 18px; height: 18px; }
.social[hidden] { display: none; }
.float-btn.call { background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 20, 29, .6); }
  70% { box-shadow: 0 0 0 16px rgba(227, 20, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 20, 29, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-btn.call { animation: none; }
  .btn, .service { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 300px; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Dịch vụ: 2 cột, thẻ gọn lại */
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service { padding: 16px 14px; }
  .tag { top: 14px; right: 12px; font-size: 10px; padding: 2px 7px; }
  .service-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
  .service-icon svg { width: 22px; height: 22px; }
  .service h3 { font-size: 15px; }
  .service p { font-size: 13px; line-height: 1.5; margin: 6px 0 12px; }
  .service-foot { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; }
  .price { font-size: 15px; }
  .link { font-size: 13px; }
  .nav { display: none; }
  .topbar-inner { height: 60px; }
  .brand { font-size: 13px; }
  .brand img { width: 40px; }
  .hero { padding: 40px 0 32px; }
  .hero-logo img { max-width: 240px; }
  .lead { font-size: 16px; }
  .section { padding: 64px 0; }
  /* Vì sao chọn: 2 cột, thẻ gọn lại */
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reason { padding: 16px 14px; }
  .reason .num { font-size: 24px; margin-bottom: 8px; }
  .reason h3 { font-size: 15px; }
  .reason p { font-size: 13px; line-height: 1.5; margin-top: 6px; }
  .posts { grid-template-columns: 1fr; }
  .section-more { margin-top: 24px; }
  .section-more .btn { width: 100%; }
  .prose { font-size: 16px; }
  .article-cta .hero-cta { width: 100%; }
  .contact-card { padding: 24px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .hero-cta .btn { flex: 1 1 auto; white-space: normal; }
  .hero h1 { overflow-wrap: break-word; }
}
@media (max-width: 400px) {
  .topbar .btn-sm span { display: none; }
}
