:root {
  --vnpay-bg-soft: #f7fbff;
  --vnpay-black: #141414;
  --vnpay-blue: #045ba7;
  --vnpay-blue-deep: #015ba7;
  --vnpay-gray: #5d5d5d;
  --vnpay-body: #676767;
  --vnpay-gray-bg: #e4eaf0;
  --vnpay-gray-border: #e9eef3;
  --vnpay-red: #ea1f27;
  --vnpay-shadow-1: 0 4px 4px rgba(91, 160, 194, .25);
  --vnpay-shadow-2: 0 12px 16px -4px rgba(91, 160, 194, .15);
  --vnpay-gradient: linear-gradient(100.73deg, #ea1f27 2.48%, #842679 50%, #049bd8 97.52%);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--vnpay-black);
  background: #fff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: #0092ff;
  text-decoration: none;
}

a:hover {
  color: var(--vnpay-blue);
  text-decoration: none;
}

.landing-container {
  width: 100%;
}

@media (min-width: 1200px) {
  .landing-container {
    max-width: 1280px;
  }
}

.bg-soft {
  background: var(--vnpay-bg-soft);
}

.section {
  position: relative;
}

.section-heading h2 {
  margin: 0;
  color: var(--vnpay-black);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--vnpay-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

/* Header */
.site-header {
  z-index: 1030;
}

.site-header .navbar {
  min-height: 80px;
  padding: 16px 0;
  box-shadow: var(--vnpay-shadow-1);
}

.brand-logo {
  width: 120px;
  height: 36px;
  object-fit: contain;
}

.site-header .nav-link {
  padding: 4px 0 !important;
  color: var(--vnpay-gray) !important;
  font-size: 16px;
  line-height: 40px;
  letter-spacing: .16px;
  font-weight: 500;
  white-space: nowrap;
}

.site-header .nav-item+.nav-item {
  margin-left: 36px;
}

.site-header .nav-link.active,
.site-header .nav-link:hover {
  color: var(--vnpay-blue) !important;
}

.site-header .nav-link.active {
  font-weight: 700;
}

.language-item .nav-link {
  color: #999 !important;
}

.language-flag {
  width: 31px;
  height: 16px;
  object-fit: cover;
}

.btn-vnpay {
  border: 0;
  color: #fff !important;
  background: var(--vnpay-gradient);
  border-radius: 40px;
  font-weight: 700;
  box-shadow: none;
}

.btn-header-download {
  width: 174px;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 20px;
  line-height: 28px;
}

/* Hero */
.hero-section {
  height: 700px;
  overflow: hidden;
  background: rgba(24, 53, 217);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 53, 217, .84) 0%, rgba(24, 53, 217, .2) 43%, rgba(24, 53, 217, 0) 65%);
  pointer-events: none;
}

.hero-content-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero-content {
  position: absolute;
  left: 20px;
  top: 154px;
  width: 390px;
  color: #fff;
}

/* Tiếng Hàn: hai câu hero dài hơn bản tiếng Anh nên cần cột rộng hơn để giữ đúng 2 dòng. */
html[lang="ko"] .hero-content {
  width: 460px;
  max-width: calc(100vw - 40px);
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: 52px;
  line-height: 48px;
  font-weight: 700;
}

.hero-content p {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  opacity: .75;
}

.hero-btn {
  min-width: 168px;
  height: 40px;
  padding: 5px 21px;
  border-radius: 20px;
  color: var(--vnpay-blue) !important;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  border: 0;
}

/* Highlights */
.highlights-section {
  padding: 96px 0 100px;
}

.highlight-row {
  margin-top: 40px;
}

.benefit-card {
  overflow: hidden;
  min-height: 360px;
  border-radius: 24px;
  background: #f4faff;
}

.benefit-media {
  height: 230px;
  background: var(--vnpay-gray-bg);
}

.benefit-body {
  padding: 13px 14px 12px;
}

.benefit-body h3 {
  margin: 0 auto 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.benefit-body p {
  margin: 0 auto;
  max-width: 235px;
  color: var(--vnpay-gray);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}

/* How to use */
.howto-section {
  min-height: 894px;
  padding: 72px 0 78px;
}

.howto-tabs {
  margin: 0 auto;
  max-width: 980px;
  gap: 20px;
}

.howto-tabs .nav-item {
  margin: 0 0 0;
}

.howto-tabs .nav-link {
  padding: 6px 14px;
  border-radius: 40px;
  background: var(--vnpay-gray-bg);
  color: var(--vnpay-gray);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  white-space: nowrap;
  border: 0;
}

.howto-tabs .nav-link.active {
  color: #fff;
  background: var(--vnpay-gradient);
  font-weight: 700;
}

.howto-main {
  max-width: 926px;
  margin: 0 auto;
}

.phone-stage {
  width: 258px;
  max-width: 100%;
}

.phone-shot {
  max-height: 521px;
  object-fit: contain;
  transition: opacity .15s ease;
}

.phone-shot.is-changing {
  opacity: .35;
}

.step-list {
  position: relative;
}

.step-list::before {
  content: "";
  position: absolute;
  top: 0px;
  bottom: 50px;
  left: 25px;
  width: 1px;
  background: #b6c7d7;
}

.step-item {
  position: relative;
  min-height: 100px;
}

.step-button {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: 0 !important;
}

.step-button:focus-visible .step-index {
  box-shadow: 0 0 0 3px rgba(4, 91, 167, .18);
}

.step-index {
  position: relative;
  z-index: 2;
  flex: 0 0 51px;
  height: 51px;
  margin-right: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #9aaab8;
  color: #fff;
  font-size: 32px;
  line-height: 28px;
  font-weight: 700;
}

.step-item.active .step-index {
  background: var(--vnpay-red);
}

.step-copy {
  margin: 0;
  padding-top: 2px;
  color: #6c6c6c;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.step-item.active .step-copy {
  color: var(--vnpay-blue-deep);
}

.step-item strong {
  font-weight: 700;
}

.empty-tab {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vnpay-gray);
  font-size: 20px;
}

/* Offers */
.offers-section {
  padding: 92px 0 80px;
}

.offer-row {
  margin-top: 60px;
}

.offer-card {
  margin: 0 auto;
}

.offer-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
}

.offer-card h3 {
  margin: 12px 0 7px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.offer-card p {
  margin: 0;
  color: var(--vnpay-gray);
  font-size: 14px;
  line-height: 18px;
}

.full-divider {
  height: 1px;
  background: #dce5ec;
}

/* Partner */
.partner-section {
  padding: 60px 0 86px;
  overflow: hidden;
}

.network-copy {
  max-width: 960px;
  font-size: 24px;
  line-height: 52px;
  font-weight: 500;
}

.network-copy>strong:first-child {
  font-size: 52px;
  font-weight: 700;
  color: var(--vnpay-black);
}

.network-copy .network-number {
  color: var(--vnpay-blue);
  font-size: 52px;
  font-weight: 700;
}

.brand-heading {
  margin-top: 48px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 17px;
  margin-top: 35px;
}

.brand-placeholder {
  height: 119px;
  border-radius: 20px;
  background: var(--vnpay-gray-bg);
}

.brand-note {
  margin: 7px 24px 0;
  color: var(--vnpay-gray);
  font-size: 16px;
  line-height: 28px;
}

/* FAQ */
.faq-section {
  padding: 0 0 112px;
}

.faq-accordion {
  margin-top: 58px;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--vnpay-gray-border);
  background: #fff;
}

.faq-item.is-open {
  background: var(--vnpay-bg-soft);
  border-color: transparent;
}

.faq-button {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  text-align: left;
  outline: 0 !important;
}

.faq-answer {
  min-height: 64px;
  padding: 0 12px 20px;
  color: var(--vnpay-body);
  font-size: 16px;
  line-height: 20px;
}

.faq-icon {
  width: 16px;
  height: 16px;
  margin-left: 16px;
  color: var(--vnpay-blue);
  font-size: 18px;
  line-height: 14px;
  transition: transform .2s ease;
  text-align: center;
}

.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Footer */
.site-footer {
  padding: 86px 0 60px;
}

.footer-brand-block {
  max-width: 380px;
}

.footer-logo {
  width: 163px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-brand-block h2 {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

.footer-divider {
  margin: 45px 0 24px;
  border: 0;
  border-top: 1px solid #cbd9e3;
}

.footer-content h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
}

.footer-content p {
  margin: 0 0 12px;
  color: var(--vnpay-body);
  font-size: 16px;
  line-height: 28px;
  font-weight: 500;
}

.footer-content p strong {
  color: #000;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  margin-bottom: 4px;
  color: var(--vnpay-black);
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--vnpay-blue);
}

/* Floating contact */
.floating-contact {
  position: fixed;
  z-index: 1020;
  right: calc((100vw - 1360px) / 2);
  top: 722px;
  width: 122px;
  flex-direction: column;
  align-items: flex-end;
}

.float-action {
  height: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #fff;
}

.float-action>span:first-child {
  height: 24px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  background: linear-gradient(90deg, #015ba7, #049bd8);
  font-size: 15px;
  line-height: 28px;
  font-weight: 700;
}

.float-circle {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--vnpay-blue-deep);
  border-radius: 50%;
  background: #fff;
  color: var(--vnpay-blue-deep);
}

.float-qr {
  width: 122px;
  height: 122px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #00a0df;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--vnpay-shadow-2);
}

.float-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adaptation. Desktop is source-of-truth; mobile layout is inferred from the Figma desktop frame. */
@media (max-width: 1199.98px) {
  .landing-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header .navbar {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header .navbar-collapse {
    padding: 18px 0 8px;
  }

  .site-header .nav-item+.nav-item {
    margin-left: 0;
  }

  .site-header .nav-link {
    line-height: 32px;
  }

  .btn-header-download {
    width: auto;
    min-width: 160px;
  }

  .hero-content {
    left: 20px;
  }

  .howto-tabs {
    gap: 10px;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .section-heading h2 {
    font-size: 34px;
  }

  .hero-section {
    height: 600px;
  }

  .hero-content {
    top: 120px;
    width: 360px;
  }

  .hero-content h1 {
    font-size: 46px;
    line-height: 44px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .howto-section {
    min-height: auto;
  }

  .step-item {
    min-height: 90px;
  }

  .network-copy,
  .network-copy>strong:first-child,
  .network-copy .network-number {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 767.98px) {
  .site-header .navbar {
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    width: 105px;
    height: auto;
  }

  .hero-section {
    height: 560px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(24, 53, 217, .93) 0%, rgba(24, 53, 217, .68) 52%, rgba(24, 53, 217, .15) 100%);
  }

  .hero-content {
    left: 20px;
    right: 20px;
    top: 90px;
    width: auto;
    max-width: 390px;
  }

  .hero-content h1 {
    font-size: 42px;
    line-height: 42px;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 25px;
  }

  .hero-btn {
    min-width: 138px;
    font-size: 18px;
  }

  .highlights-section,
  .offers-section,
  .partner-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .highlight-row,
  .offer-row {
    margin-top: 36px;
  }

  .howto-section {
    padding: 62px 0;
  }

  .howto-tabs {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 4px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .howto-tabs .nav-link {
    font-size: 16px;
    line-height: 24px;
  }

  .step-index {
    margin-right: 22px;
  }

  .step-copy {
    font-size: 16px;
    line-height: 24px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .brand-placeholder {
    height: 96px;
  }

  .brand-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 14px;
    line-height: 22px;
  }

  .network-copy,
  .network-copy>strong:first-child,
  .network-copy .network-number {
    font-size: 30px;
    line-height: 40px;
  }

  .faq-section {
    padding-bottom: 70px;
  }

  .faq-accordion {
    margin-top: 38px;
  }

  .site-footer {
    padding-top: 62px;
  }
}

@media (max-width: 479.98px) {
  .hero-section {
    height: 520px;
  }

  .hero-content h1 {
    font-size: 38px;
    line-height: 39px;
  }

  .hero-actions {
    display: block !important;
  }

  .hero-btn {
    width: 100%;
    margin: 0 0 10px !important;
  }

  .benefit-card {
    min-height: 340px;
  }

  .brand-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block h2 {
    font-size: 21px;
  }
}

@media (max-width: 374.98px) {
  .landing-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    left: 16px;
    right: 16px;
  }
}