:root {
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --green: #15803d;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--primary-dark);
  line-height: 1.15;
}
.brand-tag {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn-lg { padding: 13px 22px; font-size: 0.98rem; }
.btn-block { width: 100%; padding: 12px 18px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #bfdbfe;
}
.btn-soft:hover { background: #dbeafe; }

/* Hero */
.hero {
  padding: 54px 0 64px;
  background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.55rem;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.text-gradient, .text-blue { color: var(--primary); }
.hero-desc {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 24px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
}

/* Word Ribbon Mockup */
.word-mockup {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.word-titlebar {
  background: #1e3a8a;
  color: #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.word-doc-name { margin-left: 8px; opacity: 0.92; }
.word-tabs {
  background: #f1f5f9;
  padding: 6px 10px 0;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 0.76rem;
}
.w-tab { padding: 5px 10px; color: #475569; border-radius: 6px 6px 0 0; }
.w-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-bottom-color: #fff;
}
.word-ribbon {
  background: #fff;
  padding: 10px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}
.r-group {
  border-right: 1px solid #e2e8f0;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.r-group:last-child { border-right: none; padding-right: 0; }
.r-btns { display: flex; gap: 6px; }
.r-btn-lg {
  font-size: 0.7rem;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  line-height: 1.25;
  min-width: 64px;
}
.r-btn-lg.highlight {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--primary-dark);
  font-weight: 700;
}
.r-col { display: inline-flex; flex-direction: column; gap: 3px; margin-right: 4px; }
.r-btn-sm { font-size: 0.68rem; white-space: nowrap; color: #334155; }
.r-label {
  text-align: center;
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 6px;
}
.word-canvas {
  background: #e2e8f0;
  padding: 16px;
}
.doc-mini-header, .doc-mini-body {
  background: #fff;
  padding: 14px 18px;
  font-family: 'Times New Roman', Times, serif;
  color: #000;
  font-size: 0.78rem;
}
.doc-mini-header {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 8px;
  text-align: center;
  border-bottom: 1px dashed #e2e8f0;
}
.dm-line { height: 1px; background: #000; width: 45%; margin: 4px auto; }
.dm-line.wide { width: 65%; }
.dm-num, .dm-vv, .dm-date { font-size: 0.72rem; margin-top: 4px; }
.dm-kg { text-align: center; margin: 0 0 8px; }
.dm-p { text-indent: 20px; text-align: justify; margin: 0; }

/* Stats Bar */
.stats-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: 22px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item strong { display: block; font-size: 1.55rem; font-weight: 800; }
.stat-item span { font-size: 0.88rem; color: #dbeafe; }

/* Sections */
.section { padding: 68px 0; }
.bg-light { background: var(--bg-light); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}
.section-head h2 {
  font-size: 1.95rem;
  margin: 0 0 10px;
  font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; }

/* Demo Before / After */
.demo-switch-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.demo-tab {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.94rem;
}
.demo-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.demo-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}
.hidden { display: none !important; }
.demo-paper {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.demo-paper.messy { font-family: Arial, sans-serif; font-size: 0.88rem; }
.demo-paper.messy .m-red { color: #dc2626; font-weight: 700; }
.demo-paper.messy .m-calibri { font-family: Calibri, sans-serif; margin: 4px 0; }
.demo-paper.clean { font-family: 'Times New Roman', Times, serif; font-size: 0.94rem; color: #000; }
.c-tbl { display: grid; grid-template-columns: 44% 56%; text-align: center; gap: 10px; margin-bottom: 14px; }
.c-line { height: 1px; background: #000; width: 42%; margin: 4px auto; }
.c-line.wide { width: 64%; }
.c-title { text-align: center; font-weight: 700; margin-top: 6px; }
.c-sub { text-align: center; font-weight: 700; margin-bottom: 10px; }
.c-italic { font-style: italic; text-indent: 26px; margin-bottom: 4px; }
.c-cmd { text-align: center; font-weight: 700; margin: 10px 0; }
.c-body { text-indent: 26px; text-align: justify; margin-bottom: 6px; }
.c-tbl.footer { margin-top: 16px; margin-bottom: 0; }
.c-rec { text-align: left; font-size: 0.85rem; }
.c-sig { text-align: center; }

.demo-issues {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 22px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  font-size: 0.94rem;
}
.demo-issues.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

/* Feature Cards */
.group-heading {
  font-size: 1.25rem;
  margin: 0 0 18px;
}
.group-heading span { color: var(--primary); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.65rem; margin-bottom: 10px; }
.card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}
.p-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.p-name { font-weight: 700; font-size: 1.12rem; margin-bottom: 8px; }
.p-price { font-size: 2.1rem; font-weight: 800; color: var(--primary-dark); }
.p-price span { font-size: 1rem; font-weight: 600; }
.p-sub { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}
.price-card li { margin-bottom: 9px; font-size: 0.92rem; color: #334155; }

/* Checkout Box */
.checkout-box {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.checkout-header { margin-bottom: 22px; }
.checkout-header h3 { margin: 0 0 6px; font-size: 1.35rem; }
.checkout-header p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.checkout-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 12px 0 6px;
}
.field-label:first-child { margin-top: 0; }
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
}
.input.mono { font-family: Consolas, monospace; text-transform: uppercase; }
.field-hint { display: block; color: #64748b; font-size: 0.8rem; margin-top: 5px; }

.checkout-qr-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.qr-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.qr-card img {
  width: 100%;
  max-width: 196px;
  height: auto;
  border-radius: 8px;
}
.qr-caption { font-size: 0.76rem; color: var(--green); font-weight: 700; margin-top: 6px; }

.bank-info { font-size: 0.9rem; }
.bi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bi-row span { color: var(--muted); min-width: 96px; }
.bi-row .amt { color: var(--green); font-size: 1.05rem; }
.bi-row .memo { color: var(--red); font-family: Consolas, monospace; font-size: 1.02rem; }
.copy-mini {
  margin-left: auto;
  padding: 3px 9px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
}
.copy-mini:hover { border-color: var(--primary); color: var(--primary); }

.status-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}
.status-box.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.status-box.success { background: var(--green-soft); color: #14532d; border: 1px solid #86efac; }
.status-box.warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

.license-result {
  margin-top: 12px;
  padding: 12px;
  background: var(--green-soft);
  border: 1px solid #86efac;
  border-radius: 10px;
  color: #14532d;
}
.key-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.key-display code {
  flex: 1;
  background: #fff;
  padding: 8px 10px;
  font-size: 0.96rem;
  font-weight: 700;
  border: 1px solid #86efac;
}

/* Steps & FAQ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step-card h4 { margin: 0 0 8px; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.faq-wrap { max-width: 820px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  font-family: inherit;
}
.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.93rem;
}
.faq-item.open .faq-a { display: block; }

/* Footer */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer strong { color: #fff; }
.footer a { color: #93c5fd; }
.footer p { margin: 6px 0 0; }

.zalo-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #0068ff;
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.35);
  z-index: 99;
}
.zalo-float:hover { background: #0054cc; }

@media (max-width: 960px) {
  .hero-grid, .demo-panel, .checkout-grid { grid-template-columns: 1fr; }
  .cards-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .checkout-qr-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .hero h1 { font-size: 1.9rem; }
  .stats-grid, .cards-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
}
