:root {
  --navy-deep: #07223d;
  --navy-hero: #0a2e52;
  --blue-primary: #116ba3;
  --blue-hover: #0d5887;
  --blue-eyebrow: #1971a8;
  --blue-light: #60a5fa;
  --bg-soft: #f4f7fa;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #526377;
  --border: #e2e8f0;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
}

.brand-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #164e78, #071f36);
  border: 2px solid #38bdf8;
  color: #ffffff;
  line-height: 1;
}

.emblem-top {
  display: flex;
  gap: 2px;
  font-size: 8px;
  font-weight: 800;
}

.emblem-top .tag-a {
  background: #dc2626;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
}

.emblem-top .tag-x {
  background: #16a34a;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
}

.emblem-tqs {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.brand.light .brand-text strong {
  color: #ffffff;
}

.brand.light .brand-text small {
  color: #94a3b8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--blue-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--blue-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-eyebrow);
  margin-bottom: 8px;
}

.eyebrow.light {
  color: var(--blue-light);
}

/* Hero Section (Deep Navy) */
.hero {
  background:
    radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.16), transparent 45%),
    linear-gradient(135deg, #07223d 0%, #0b335a 55%, #072747 100%);
  color: #ffffff;
  padding: 68px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Right Promo Banner Card */
.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.28), transparent 60%),
    linear-gradient(145deg, #091e3a 0%, #0e3866 50%, #071930 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.promo-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.promo-chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  font-weight: 700;
  color: #bae6fd;
}

.promo-badges {
  display: flex;
  gap: 6px;
}

.mini-app {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.mini-app.cad { background: #dc2626; }
.mini-app.xls { background: #16a34a; }
.mini-app.tqs { background: #0284c7; padding: 0 4px; width: auto; }

.promo-center {
  text-align: center;
  margin-bottom: 18px;
}

.promo-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e2e8f0;
}

.promo-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
  margin-bottom: 16px;
}

.promo-grid-art {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.art-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.art-panel span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #bae6fd;
  margin-bottom: 8px;
}

.art-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.art-bars i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.art-bars i:nth-child(2) { width: 75%; }
.art-bars i:nth-child(3) { width: 55%; }

.art-core {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
}

.promo-footer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.8rem;
}

.promo-footer-pill strong {
  color: #ffffff;
}

.promo-footer-pill span {
  color: #facc15;
  font-weight: 700;
}

/* Sections */
.section-soft {
  background: var(--bg-soft);
  padding: 72px 0;
}

.section-white {
  background: var(--bg-white);
  padding: 72px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
}

.section-desc {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* Download & License Cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  gap: 24px;
}

.soft-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e6f2fa;
  color: var(--blue-primary);
  margin-bottom: 18px;
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.soft-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.soft-card p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* Guide Section */
.guide-block + .guide-block {
  margin-top: 38px;
}

.guide-subheading {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.steps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usage-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.step-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 10px;
}

.guide-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.usage-video-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.link-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.link-chip-btn:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
}

.guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.guide-card-head .step-num {
  margin-bottom: 0;
}

.guide-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.guide-badge svg {
  width: 20px;
  height: 20px;
}

.guide-badge.excel {
  background: #dcfce7;
  color: #15803d;
}

.guide-badge.youtube {
  background: #fee2e2;
  color: #dc2626;
}

.chip-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.chip-icon svg {
  width: 14px;
  height: 14px;
}

.chip-icon.excel {
  background: #16a34a;
  color: #ffffff;
}

.chip-icon.youtube {
  background: #dc2626;
  color: #ffffff;
}

.zalo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: border-color var(--transition), color var(--transition);
}

.zalo-icon-img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.zalo-pill:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
}

.form-feedback {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.copyright {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #ffffff;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 34, 61, 0.6);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.modal-card.modal-lg {
  width: min(600px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shortcut-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.order-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bg-soft);
  margin: 16px 0;
}

.order-total-box strong {
  font-size: 1.2rem;
  color: var(--blue-primary);
}

.order-success-box {
  text-align: center;
  padding: 12px 6px;
}

.order-success-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.qr-payment-box {
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  text-align: center;
}

.form-group.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.qr-payment-box img {
  width: min(130px, 100%);
  height: auto;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.qr-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid,
  .download-grid,
  .steps-grid-3,
  .usage-grid-2 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 20px;
  }
}
