:root {
  color-scheme: light;
  --ink: #112244;
  --muted: #4b5d7a;
  --blue: #215bd9;
  --line: #dce5f7;
  --canvas: #f7f9fe;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #184ebc; outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { background: #fff; border-bottom: 1px solid #e5ecfa; }
.masthead-inner, .brand, nav { display: flex; align-items: center; }
.masthead-inner { min-height: 82px; justify-content: space-between; gap: 20px; }
.brand { gap: 12px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.28rem; letter-spacing: -.045em; line-height: 1.2; }
.brand small { font-size: .75rem; color: var(--muted); margin-top: 4px; }
nav { gap: 28px; }
.nav-link, .nav-action { font-size: .88rem; font-weight: 650; }
.nav-link { color: var(--muted); }
.nav-link:hover, .footer a:hover { color: var(--blue); }
.nav-action { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding-inline: 15px; border: 1px solid #d8e3fa; border-radius: 10px; color: var(--blue); background: #f4f7ff; }
.nav-action:hover { background: #eaf1ff; }

.hero {
  overflow: hidden;
  border-bottom: 1px solid #dfe9fc;
  background: radial-gradient(ellipse at 83% 38%, #cddfff 0%, transparent 52%), linear-gradient(119deg, #f7faff 11%, #ecf3ff 67%, #e6efff);
}
.hero-inner { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 58px; padding-block: 72px; }
.eyebrow { color: #214da6; margin: 0 0 16px; font-size: .72rem; font-weight: 750; letter-spacing: .11em; line-height: 1.6; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span, .register-bottom span { width: 8px; height: 8px; border-radius: 50%; background: #2966ed; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.2vw, 4.65rem); line-height: 1.04; font-weight: 760; }
h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 440px; color: var(--muted); font-size: 1.06rem; line-height: 1.7; margin: 23px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font-size: .89rem; font-weight: 700; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.button:active, .nav-action:active { transform: scale(.98); }
.primary { color: #fff; background: var(--blue); box-shadow: 0 6px 16px #245bcf29; }
.primary:hover { background: #174cbd; }
.secondary { color: #2b4878; border-color: #dae5f8; background: #ffffffb5; }
.secondary:hover { background: #fff; }
.hero-note { color: #536788; font-size: .85rem; margin: 19px 0 0; }

.preview { position: relative; margin: 0; padding: 15px; border-radius: 28px; background: #a3c0fb32; border: 1px solid #b4ccfa80; box-shadow: 0 23px 50px #2f539322; }
.register { overflow: hidden; border-radius: 17px; border: 1px solid #d5e0f4; background: #fff; box-shadow: 0 13px 38px #234b9221; }
.register-bar { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 9px 15px; border-bottom: 1px solid #e5ecf7; }
.register-bar strong { font-size: .92rem; letter-spacing: -.025em; }
.register-demo { margin-left: auto; padding: 6px 8px; border-radius: 6px; background: #eaf1ff; color: #275098; font-size: .57rem; font-weight: 750; letter-spacing: .04em; }
.register-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(136px, .67fr); gap: 12px; padding: 18px 14px 14px; background: #f8faff; }
.register-list, .register-total { padding: 15px 12px; border: 1px solid #e1e9f8; border-radius: 12px; background: #fff; }
.register-title, .register-item, .register-bottom { display: flex; align-items: center; }
.register-title { justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.register-title small, .register-item small { display: block; color: #526686; margin-bottom: 4px; }
.register-title small, .register-total small { font-size: .61rem; font-weight: 750; letter-spacing: .07em; }
.register-title strong { display: block; font-size: 1.02rem; letter-spacing: -.035em; }
.register-title > span { display: grid; place-items: center; border-radius: 8px; width: 26px; height: 26px; font-size: .73rem; background: #edf3ff; color: var(--blue); font-weight: 700; }
.register-item { gap: 7px; min-height: 56px; border-top: 1px solid #eef2f9; }
.register-item > div:nth-child(2) { min-width: 0; }
.register-item strong { display: block; font-size: .72rem; line-height: 1.25; }
.register-item small { font-size: .65rem; margin: 4px 0 0; white-space: nowrap; }
.register-item b { margin-left: auto; font-size: .73rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; background: #eef4ff; color: #245bce; border-radius: 8px; }
.item-icon svg, .feature-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.register-total { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #fff; background: linear-gradient(145deg, #245ddc, #1743a9); border-color: #224db2; }
.register-currency { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; margin-bottom: 4px; background: #ffffff25; font-weight: 700; }
.register-total small { color: #e6eeff; }
.register-total strong { white-space: nowrap; font-size: clamp(1.15rem, 2.15vw, 1.83rem); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.register-total strong span { font-size: .66em; margin-left: 3px; }
.register-pay { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: auto; width: 100%; padding: 8px; border-radius: 7px; color: #1c46a5; background: #fff; font-size: .67rem; font-weight: 700; }
.register-bottom { gap: 8px; padding: 11px 15px 14px; color: #526686; font-size: .69rem; }
.register-bottom span { width: 6px; height: 6px; }

.features { padding-block: 58px 44px; }
.section-title { margin-bottom: 22px; }
.section-title .eyebrow, .store .eyebrow { margin-bottom: 8px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); line-height: 1.18; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.feature-grid article { border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 13px; border-radius: 11px; background: #eaf1ff; color: #245cd3; }
.feature-icon svg { width: 21px; height: 21px; }
h3 { font-size: 1.05rem; }
.feature-grid p, .store p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.store { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; gap: 30px; padding: 32px; border: 1px solid #cfddfa; border-radius: 18px; background: linear-gradient(110deg,#edf4ff,#e6eeff); }
.store form { display: grid; gap: 8px; min-width: 0; }
.store label { color: #294673; font-size: .82rem; font-weight: 700; }
.store-entry { display: flex; align-items: center; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #baccef; border-radius: 9px; background: #fff; }
.store-entry:focus-within { outline: 2px solid #215bd9; outline-offset: 2px; }
.store-entry input { flex: 1; width: 0; min-width: 0; align-self: stretch; padding: 9px 10px; border: 0; background: transparent; color: var(--ink); outline: none; }
.store-entry span { padding: 0 10px; border-left: 1px solid var(--line); color: #536788; font-size: .8rem; white-space: nowrap; }
.store .button { justify-self: start; min-height: 44px; }
.store p.store-status { color: #973421; font-size: .82rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 32px; color: var(--muted); font-size: .82rem; }
.footer > span { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.footer strong { color: var(--ink); }
.footer a { color: #2b4e8d; font-weight: 650; white-space: nowrap; }

@media (max-width: 1000px) {
  .hero-inner { gap: 30px; }
  .register-item .item-icon { display: none; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .masthead-inner { min-height: 70px; }
  nav { gap: 10px; }
  .nav-link { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 43px 35px; }
  .hero-description { margin: 16px 0 20px; }
  .hero-note { margin-top: 15px; }
  .preview { max-width: 540px; padding: 10px; border-radius: 21px; }
  .register-item .item-icon { display: grid; }
  .features { padding-block: 39px 30px; }
  .feature-grid, .store { grid-template-columns: 1fr; gap: 12px; }
  .store { padding: 21px; gap: 20px; }
  .footer { padding-block: 25px; }
}
@media (max-width: 440px) {
  .brand { gap: 8px; }
  .brand img { width: 37px; height: 37px; }
  .brand small { font-size: .62rem; }
  .nav-action { gap: 6px; padding-inline: 9px; font-size: .76rem; }
  .hero .eyebrow { font-size: .63rem; }
  .hero-description { font-size: .95rem; }
  .hero-actions .button { gap: 6px; padding-inline: 10px; font-size: .79rem; }
  .register-body { grid-template-columns: minmax(0,1fr) minmax(104px,.65fr); gap: 7px; padding: 10px 8px; }
  .register-list, .register-total { padding: 10px 7px; }
  .register-item .item-icon { display: none; }
  .register-item { gap: 4px; }
  .register-item b, .register-item strong { font-size: .65rem; }
  .register-item small { font-size: .58rem; }
  .register-total small { font-size: .54rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Trial Registration Section */
.trial-section { padding-block: 20px 60px; }
.trial-card {
  border: 1px solid #c7d8fb;
  border-radius: 24px;
  padding: 44px 36px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 20px 45px rgba(33, 91, 217, 0.08);
}
.trial-header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: 32px; }
.trial-header h2 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); line-height: 1.2; margin-top: 8px; }
.trial-subtitle { color: var(--muted); font-size: 1.02rem; margin-top: 12px; line-height: 1.6; }
.trial-form { max-width: 760px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
@media (max-width: 680px) {
  .form-grid { grid-template-columns: 1fr; }
  .trial-card { padding: 28px 18px; }
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.form-group .req { color: #ef4444; }
.form-group input, .form-group select {
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 91, 217, 0.15);
  outline: none;
}
.form-submit { text-align: center; margin-top: 8px; }
.trial-btn {
  width: 100%;
  max-width: 360px;
  font-size: 1.05rem;
  height: 52px;
  margin-inline: auto;
  border-radius: 12px;
}
.trial-error {
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
  margin-top: 14px;
}
.trial-guarantee {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}
.trial-guarantee span { display: inline-flex; align-items: center; gap: 6px; }

/* Success Box */
.trial-success {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: 24px;
  background: #fff;
  border: 2px solid #10b981;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.12);
}
.success-icon { font-size: 48px; margin-bottom: 8px; }
.trial-success h3 { font-size: 1.5rem; color: #065f46; margin-bottom: 8px; }
.success-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.success-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.success-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.92rem; }
.success-row .lbl { color: var(--muted); }
.success-row code { background: #e2e8f0; padding: 2px 8px; border-radius: 6px; font-weight: 700; color: #0f172a; }
.success-link { color: var(--blue); font-weight: 700; text-decoration: underline; }
.badge-trial {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin-inline: auto;
}
.success-btn { width: 100%; height: 46px; font-size: 0.95rem; }

/* Floating Zalo Button */
.floating-zalo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0068ff;
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0, 104, 255, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.floating-zalo:hover { transform: translateY(-3px); background: #0056d6; color: #fff; }
.floating-zalo .zalo-icon { font-size: 18px; }
