/* ==========================================================================
   XCORP - Công Ty Cổ Phần XCORP (xcorp.vn)
   Sáng tạo nội dung · Quản lý & Vận hành các Website · Thành lập 2012 · Đội ngũ >20 nhân sự
   High-End Swiss Editorial Corporate & Modern Tech SaaS Aesthetic
   Typography Enlarged for Superior Readability & Executive Polish
   ========================================================================== */

:root {
  --canvas-white: #ffffff;
  --canvas-subtle: #f8fafc;
  --canvas-muted: #f1f5f9;
  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --border-light: #e2e8f0;
  --border-card: #cbd5e1;
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 1.025rem; /* ~16.4px - noticeably larger & clearer */
  line-height: 1.75;
  color: #1e293b;
}

/* ==========================================================================
   Executive Vietnamese Typography & Vertical Rhythm
   Prevents tone mark collision (hỏi, ngã, sắc, huyền, nặng) & ensures breathability
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  letter-spacing: normal;
}

h1 {
  line-height: 1.36 !important;
}

h2 {
  line-height: 1.38 !important;
}

.hero-title {
  line-height: 1.36 !important;
  letter-spacing: -0.005em !important;
  text-wrap: balance;
}

@media (max-width: 640px) {
  .hero-title {
    line-height: 1.38 !important;
  }
}

.hero-desc {
  line-height: 1.85 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Editorial Dot Grid Pattern */
.editorial-dot-bg {
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}

/* Glassmorphism Navigation */
.editorial-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

/* ══════════════════════════════════════════════════════════════════════
   NHẬN DIỆN THƯƠNG HIỆU — Thanh 12/10/2026
   Chữ hiệu và slogan là CHỮ HTML chứ không nằm trong SVG, nên cỡ chữ là
   cỡ thật. Đo bản cũ: chữ XCORP render 16,6px, slogan render 4,64px.
   ══════════════════════════════════════════════════════════════════════ */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.brand-wordmark {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1;
  white-space: nowrap;
}
.brand-tld {
  color: #1d4ed8;
  font-weight: 800;
}
.brand-slogan {
  margin-top: 5px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1;
  white-space: nowrap;
}
/* Bản dùng trên nền tối (chân trang) */
.brand-lockup--dark .brand-wordmark { color: #ffffff; }
.brand-lockup--dark .brand-tld      { color: #60a5fa; }
.brand-lockup--dark .brand-slogan   { color: #94a3b8; }

/* ══════════════════════════════════════════════════════════════════════
   DÀN MENU
   🔴 Bản cũ: mọi mục đều `font-bold` (700) + Viết Hoa Từng Chữ kiểu
   "Năng Lực Cốt Lõi", "Đội Ngũ & Lịch Sử" — tiếng Việt viết vậy trông
   nghiệp dư, và 5 mục chữ đậm cạnh nhau thì nặng mắt, không có mục nào
   nổi lên. Nay: nhãn một từ, đậm vừa (600), màu nhạt hơn, và có gạch
   chân đánh dấu MỤC ĐANG XEM khi cuộn trang.
   ══════════════════════════════════════════════════════════════════════ */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #475569;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: #1d4ed8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}
.nav-link.is-active {
  color: #0f172a;
}
.nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.nav-link.is-active .nav-count {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

/* Menu trên điện thoại */
.nav-link-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  transition: background-color .16s ease, color .16s ease;
}
.nav-link-mobile:hover,
.nav-link-mobile.is-active {
  background: #f1f5f9;
  color: #0f172a;
}

/* Nút kêu gọi hành động ở đầu trang */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
  transition: background-color .18s ease, transform .18s ease;
}
.nav-cta:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════
   CHÂN TRANG — Thanh 12/10/2026
   ══════════════════════════════════════════════════════════════════════ */
.ft-company {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.ft-tax {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}
.ft-tax b {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  color: #60a5fa;
}
.ft-dot { color: #475569; margin: 0 5px; }

.ft-contact {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 400px;
}
.ft-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ft-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #475569;
}

.ft-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 11px;
}
.ft-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
}
.ft-a {
  color: #94a3b8;
  transition: color .16s ease;
}
.ft-a:hover { color: #ffffff; }

.ft-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.ft-bottom b { color: #e2e8f0; font-weight: 700; }
.ft-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Bộ chuyển ngôn ngữ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* Premium Card System */
.editorial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -4px rgba(15, 23, 42, 0.09), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
}

/* Filter Tab Pills */
.filter-pill-light {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 12px;
}

.filter-pill-light:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.filter-pill-light.active {
  background-color: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

/* Modal and Drawers */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Browser Mockup Window Header */
.browser-header-light {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* Language Switcher */
.lang-btn {
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  line-height: 1;
  transition: background-color .16s ease, color .16s ease;
}
.lang-btn:hover:not(.active) {
  color: #0f172a;
  background: #e2e8f0;
}
.lang-btn.active {
  background-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Live Pulse Animation */
.live-pulse {
  position: relative;
  display: inline-flex;
}
.live-pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: currentColor;
  opacity: 0.4;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* Feature tags */
.feature-chip {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.825rem;
  color: #475569;
  font-weight: 600;
}

/* Floating Back to Top Button */
#back-to-top {
  box-shadow: 0 10px 25px -3px rgba(29, 78, 216, 0.35), 0 4px 6px -2px rgba(29, 78, 216, 0.2);
}

/* Logo Concept Card */
.logo-concept-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.25s ease;
  background: #ffffff;
}
.logo-concept-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}
.logo-concept-card.active-concept {
  border-color: #1d4ed8;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Smooth Focus States for A11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
