:root {
  --navy: #0e3d68;
  --navy-deep: #082744;
  --navy-soft: #e7eef6;
  --gold: #c49a32;
  --gold-bright: #e0bc5a;
  --teal: #1b7d72;
  --sky: #2d7ab5;
  --ink: #1c2836;
  --muted: #5b6b7c;
  --line: rgba(14, 61, 104, 0.12);
  --bg: #f4f7fb;
  --paper: #ffffff;
  --shadow: 0 12px 32px rgba(14, 61, 104, 0.08);
  --radius: 18px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--bg);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  left: 8px;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: #d7e7f7;
  top: -120px;
  right: -80px;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: #f3e7c4;
  top: 180px;
  left: -140px;
  animation-delay: -6s;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: #d4ece7;
  bottom: 10%;
  right: 12%;
  animation-delay: -11s;
}

.grid-overlay {
  display: none;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -16px) scale(1.05); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(22px) saturate(160%);
  background: rgba(244, 247, 251, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  filter: drop-shadow(0 4px 10px rgba(14, 61, 104, 0.16));
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.company {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.portal {
  font-size: 11px;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(14, 61, 104, 0.06),
    0 8px 18px rgba(14, 61, 104, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  font-variant-numeric: tabular-nums;
}

.chip-ico {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex: 0 0 18px;
}

.chip-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-text {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
  white-space: nowrap;
}

#chipWeather .chip-text {
  font-weight: 600;
}

main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 72px;
  isolation: isolate;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.contours {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: min(1440px, 118%);
  height: auto;
  transform: translateX(-50%);
}

.contour {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: contourDrift 16s ease-in-out infinite;
}

.c1 { stroke: #8eafd0; stroke-width: 1.6; opacity: 0.85; }
.c2 { stroke: #c9a227; stroke-width: 1.2; opacity: 0.42; animation-duration: 20s; animation-direction: reverse; }
.c3 { stroke: #6f96bb; stroke-width: 1.35; opacity: 0.55; animation-duration: 18s; }
.c4 { stroke: #b7cde3; stroke-width: 1.7; opacity: 0.7; animation-duration: 24s; animation-direction: reverse; }

@keyframes contourDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8c96a;
  box-shadow: 0 0 0 5px rgba(232, 201, 106, 0.16);
  animation: spark 5.5s ease-in-out infinite;
}

.s1 { left: 18%; bottom: 22%; animation-delay: 0s; }
.s2 { left: 62%; bottom: 16%; animation-delay: -1.8s; }
.s3 { left: 84%; bottom: 28%; animation-delay: -3.2s; }

@keyframes spark {
  0%, 100% { transform: scale(0.7); opacity: 0.35; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.dx-card.reveal,
.section-head.reveal {
  animation: none;
}

.reveal.in {
  animation: rise 0.7s ease forwards;
}

.dx-card.reveal.in:nth-child(2) { animation-delay: 0.08s; }
.dx-card.reveal.in:nth-child(3) { animation-delay: 0.16s; }
.dx-card.reveal.in:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy.reveal { animation-delay: 0.05s; }
.hero-ornament.reveal { animation-delay: 0.18s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 154, 50, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196, 154, 50, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(196, 154, 50, 0.08); }
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.035em;
  color: var(--navy-deep);
}

.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.lead {
  margin: 16px 0 28px;
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #14558a, var(--navy));
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 61, 104, 0.22);
}

.btn-ghost {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-ornament {
  position: relative;
  min-height: 268px;
  overflow: visible;
}

.orbit-scene {
  display: block;
  width: 100%;
  height: 280px;
  overflow: visible;
}

.orbit-ring {
  stroke: rgba(14, 61, 104, 0.28);
  stroke-width: 1.2;
  fill: none;
}

.orbit-ring.gold {
  stroke: rgba(196, 154, 50, 0.55);
}

.sat-gold {
  fill: #e0bc5a;
  filter: drop-shadow(0 0 4px rgba(224, 188, 90, 0.7));
}

.sat-navy {
  fill: #0e3d68;
}

.orbit-scene image {
  filter: drop-shadow(0 6px 14px rgba(14, 61, 104, 0.18));
}

.globe-wrap {
  animation: globePulse 7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes globePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

#he-thong,
#tac-vu,
#ho-tro,
#chuyen-doi-so {
  scroll-margin-top: 84px;
}

.dx {
  position: relative;
  padding: 8px 24px 8px;
}

.dx-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 0 48px;
}

.dx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.dx-grid::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 154, 50, 0.45), transparent);
  pointer-events: none;
}

.dx-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dx-card::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 61, 104, 0.08), transparent 68%);
  transition: transform 0.4s ease;
}

.dx-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.dx-card:hover,
.dx-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(14, 61, 104, 0.2);
  box-shadow: var(--shadow);
}

.dx-card:hover::after,
.dx-card:focus-within::after {
  transform: scaleX(1);
}

.dx-card:hover::before {
  transform: scale(1.25) translate(-12px, -8px);
}

.dx-index {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 50, 0.35);
  background: #fff8e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9a7218;
}

.dx-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--navy-deep);
}

.dx-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.apps,
.quick {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 8px;
}

.apps {
  background: #fff;
  max-width: none;
  padding: 56px 24px 28px;
  border-top: 1px solid var(--line);
}

.apps .section-head,
.apps .app-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(14, 61, 104, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(196, 154, 50, 0.45);
  box-shadow: 0 18px 36px rgba(14, 61, 104, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.icon svg,
.qicon svg,
.mail svg,
.brand-mark svg {
  width: 100%;
  height: 100%;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-navy { background: #e8f0f8; color: var(--navy); }
.icon-gold { background: #f8efd6; color: #9a7218; }
.icon-teal { background: #e5f4f1; color: var(--teal); }
.icon-sky { background: #e4f1fb; color: var(--sky); }
.icon-slate { background: #eceff3; color: #4d5d6e; }
.icon-green { background: #e7f6ee; color: #2f7d52; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--navy-soft);
  padding: 4px 8px;
  border-radius: 999px;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--navy-deep);
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.open i {
  transition: transform 0.2s ease;
}

.app-card:hover .open i {
  transform: translate(2px, -2px);
}

.open em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #8a6918;
  background: #f7edd2;
  padding: 3px 8px;
  border-radius: 999px;
}

.quick {
  padding-top: 36px;
  padding-bottom: 64px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(14, 61, 104, 0.22);
  box-shadow: var(--shadow);
}

.qicon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}

.qicon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-card strong {
  display: block;
  font-size: 14px;
  color: var(--navy-deep);
}

.quick-card small {
  color: var(--muted);
  font-size: 12px;
}

footer {
  background: #0c3356;
  color: #d7e4f1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
}

.footer-brand .company {
  color: #fff;
  font-size: 16px;
  margin: 0 0 8px;
}

.footer-brand p,
.phone {
  margin: 0 0 8px;
  color: #b7c9db;
  font-size: 14px;
}

.addr {
  color: #e8c96a !important;
}

.help-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8c96a;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.mail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #93a9bf;
  font-size: 13px;
}

.footer-bar p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-inner,
  .app-grid,
  .quick-grid,
  .dx-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .hero-inner,
  .app-grid,
  .quick-grid,
  .dx-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    padding: 8px 16px;
    gap: 10px;
  }

  .status {
    gap: 6px;
  }

  .glass-chip {
    min-height: 30px;
    padding: 0 9px 0 7px;
  }

  .chip-text {
    font-size: 11.5px;
  }

  .hero {
    padding: 36px 16px 48px;
  }

  .dx-grid::before {
    display: none;
  }

  .footer-bar {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in,
  .contour,
  .spark,
  .orb,
  .dot,
  .globe-wrap {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
