:root {
  --brand: #ff3f1f;
  --brand-2: #ff8a1f;
  --brand-3: #ff214d;
  --green: #64d96d;
  --ink: #172033;
  --muted: #647084;
  --line: #edf0f5;
  --soft: #fff5ee;
  --paper: #ffffff;
  --shadow: 0 20px 50px rgba(255, 80, 32, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

@keyframes phoneFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}

@keyframes softPulse {
  0%, 100% { opacity: .48; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: .74; transform: translate3d(0, -8px, 0) scale(1.04); }
}

@keyframes sheen {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(180%) skewX(-18deg); }
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(237,240,245,.88);
  backdrop-filter: blur(16px);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
}

.brand span {
  display: block;
  line-height: 1.1;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #4b5568;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  line-height: 1.15;
  transition: color .22s ease, transform .22s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.nav-links a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a span {
  line-height: 1.15;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #ffd2c6;
  border-radius: 999px;
  background: #fff;
}

.lang-switch button {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #8b3a22;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: color .22s ease, background .22s ease, transform .18s ease;
}

.lang-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
}

.lang-switch button:hover { transform: translateY(-1px); }
.lang-switch button:active { transform: translateY(0) scale(.96); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.45), transparent 26%),
    linear-gradient(135deg, #ff6b43 0%, #ff2b4c 54%, #ff8b2b 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 80px;
}

.hero::after {
  width: 320px;
  height: 320px;
  left: -150px;
  bottom: -60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.button::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 34%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity: 0;
  pointer-events: none;
}

.button.primary {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 12px 28px rgba(85, 26, 20, .18);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.1);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(85, 26, 20, .22);
}

.button:hover::before {
  opacity: 1;
  animation: sheen .72s ease;
}

.button:active { transform: translateY(-1px) scale(.98); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat-card {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.42);
}

.stat-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.16;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 1.28;
}

.phone-stage {
  position: relative;
  min-height: 580px;
}

.phone-stage.single {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone {
  position: relative;
  width: min(440px, 88vw);
  isolation: isolate;
  filter: drop-shadow(0 34px 54px rgba(36, 18, 12, .34));
  transform: translate3d(0, 0, 0);
  animation: phoneFloat 6.5s ease-in-out infinite;
}

.hero-phone::before,
.hero-phone::after {
  content: "";
  position: absolute;
  inset: 9% 2% 6%;
  z-index: -1;
  border-radius: 42% / 24%;
  pointer-events: none;
}

.hero-phone::before {
  background: radial-gradient(circle at 55% 22%, rgba(255,255,255,.58), transparent 34%),
    radial-gradient(circle at 55% 72%, rgba(255, 158, 65, .62), transparent 45%);
  filter: blur(26px);
  animation: softPulse 5.8s ease-in-out infinite;
}

.hero-phone::after {
  inset: 0 -3% -2%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 32px rgba(255,255,255,.18);
  filter: blur(.2px);
}

.hero-phone img {
  width: 100%;
  transform: translateZ(0);
}

.phone-card {
  position: absolute;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(36, 18, 12, .28);
  background: #fff;
}

.phone-card.main {
  width: 360px;
  right: 60px;
  top: 0;
  transform: rotate(-2deg);
}

.phone-card.side {
  width: 210px;
  left: 0;
  bottom: 16px;
  transform: rotate(6deg);
  opacity: .96;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: linear-gradient(180deg, #fff, #fff7f1);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.step-card,
.qa-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(24, 32, 51, .05);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.info-card:hover,
.step-card:hover,
.qa-card:hover {
  transform: translateY(-6px);
  border-color: #ffd4c5;
  box-shadow: 0 22px 44px rgba(255, 80, 32, .12);
}

.info-card b {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 22px;
  line-height: 1.18;
}

.info-card span,
.step-card p,
.qa-card p {
  display: block;
  color: var(--muted);
  line-height: 1.48;
}

.step-card h3 {
  margin: 0 0 8px;
  line-height: 1.22;
}

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

.step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transition: transform .24s ease, box-shadow .24s ease;
}

.step-card:hover .step-number {
  transform: rotate(-5deg) scale(1.08);
  box-shadow: 0 10px 20px rgba(255, 80, 32, .22);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.gallery img:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 26px 56px rgba(255, 80, 32, .22);
  filter: saturate(1.06);
}

.trust-band {
  padding: 54px 0;
  background: #162033;
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.trust-grid p { color: rgba(255,255,255,.74); }

.legal-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legal-links a {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  line-height: 1.28;
  text-align: center;
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.legal-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.14);
}

.legal-links a span {
  line-height: 1.28;
  text-align: center;
}

.site-footer {
  padding: 42px 0;
  color: #6a7384;
  background: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
}

.footer-grid a {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
  transition: color .2s ease, transform .2s ease;
}

.footer-grid a:hover {
  color: var(--brand);
  transform: translateX(3px);
}

.copyright,
.footer-simple {
  border-top: 1px solid var(--line);
  color: #7a8495;
  font-size: 14px;
  line-height: 1.45;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
}

.footer-simple {
  padding-top: 20px;
}

.copyright p,
.footer-simple p {
  margin: 4px 0;
}

.doc-body {
  background: #f6f7fb;
}

.doc-shell {
  width: min(820px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 44px;
  background: #fff;
}

.doc-card {
  padding: 8px 0 0;
}

.doc-title {
  margin: 12px 0 6px;
  font-size: 28px;
  line-height: 1.16;
}

.doc-content h1 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.doc-meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.doc-lang {
  justify-content: flex-end;
  display: flex;
}

.doc-content h2 {
  margin: 28px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.doc-content h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}

.doc-content p,
.doc-content li {
  color: #334155;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.doc-content th,
.doc-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.doc-content th {
  background: #fff6f1;
}

.help-hero {
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
}

.help-hero h1 {
  margin: 0 0 10px;
  line-height: 1.16;
}

.help-hero p {
  margin: 0;
  line-height: 1.55;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.faq details:hover,
.faq details[open] {
  border-color: #ffd4c5;
  box-shadow: 0 14px 30px rgba(255, 80, 32, .08);
}

.faq details:hover { transform: translateY(-2px); }

.faq summary::marker { color: var(--brand); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(255, 138, 31, .38);
  outline-offset: 3px;
}

.faq details + details { margin-top: 10px; }

.faq summary {
  display: block;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.35;
  padding-right: 6px;
}

[data-lang] { display: none; }
html[lang="vi"] [data-lang="vi"],
html[lang="en"] [data-lang="en"] { display: revert; }
html[lang="vi"] tr[data-lang="vi"],
html[lang="en"] tr[data-lang="en"] { display: table-row; }
html[lang="vi"] .eyebrow[data-lang="vi"],
html[lang="en"] .eyebrow[data-lang="en"] { display: inline-flex; }
html[lang="vi"] .nav-links a[data-lang="vi"],
html[lang="en"] .nav-links a[data-lang="en"] { display: inline-flex; }
html[lang="vi"] .nav-links a span[data-lang="vi"],
html[lang="en"] .nav-links a span[data-lang="en"] { display: block; }
html[lang="vi"] .button[data-lang="vi"],
html[lang="en"] .button[data-lang="en"] { display: inline-flex; }
html[lang="vi"] .info-card b[data-lang="vi"],
html[lang="en"] .info-card b[data-lang="en"],
html[lang="vi"] .info-card span[data-lang="vi"],
html[lang="en"] .info-card span[data-lang="en"],
html[lang="vi"] .stat-card span[data-lang="vi"],
html[lang="en"] .stat-card span[data-lang="en"] { display: block; }
html[lang="vi"] .legal-links a[data-lang="vi"],
html[lang="en"] .legal-links a[data-lang="en"] { display: flex; }
html[lang="vi"] .legal-links a span[data-lang="vi"],
html[lang="en"] .legal-links a span[data-lang="en"] { display: block; }
html[lang="vi"] .footer-grid a[data-lang="vi"],
html[lang="en"] .footer-grid a[data-lang="en"],
html[lang="vi"] .footer-grid h4[data-lang="vi"],
html[lang="en"] .footer-grid h4[data-lang="en"],
html[lang="vi"] .footer-grid p[data-lang="vi"],
html[lang="en"] .footer-grid p[data-lang="en"] { display: block; }

@media (max-width: 860px) {
  .container { width: min(100% - 28px, 720px); }
  .nav { height: auto; padding: 14px 0; align-items: flex-start; }
  .nav-links { display: none; }
  .hero { min-height: 0; padding: 52px 0 48px; }
  .hero-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 220px; min-height: 52px; padding: 0 18px; }
  .stat-card { min-height: 84px; }
  .phone-stage { min-height: 420px; margin-top: 18px; }
  .phone-stage.single { min-height: 0; }
  .hero-phone { width: min(340px, 92vw); }
  .phone-card.main { width: 260px; right: 20px; }
  .phone-card.side { width: 170px; }
  .info-grid, .steps, .gallery, .legal-links { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .doc-shell { padding: 14px 14px 34px; }
  .doc-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
