:root {
  color-scheme: light;
  --navy: #2e1065;
  --navy-soft: #4c1d95;
  --blue: #7c3aed;
  --blue-dark: #6d28d9;
  --blue-pale: #f3eeff;
  --mint: #20c997;
  --ink: #102033;
  --muted: #65758b;
  --line: #dce5ef;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --shadow: 0 24px 70px rgba(46, 16, 101, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body[data-language="en"] [data-copy="vi"],
body[data-language="vi"] [data-copy="en"] {
  display: none !important;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 229, 239, 0.8);
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-actions,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
}

.nav-actions {
  gap: 22px;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.language-switcher {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switcher button {
  min-width: 37px;
  border: 0;
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher button.is-active {
  color: #fff;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 98px;
  background:
    radial-gradient(circle at 82% 20%, rgba(124, 58, 237, 0.22), transparent 27%),
    radial-gradient(circle at 16% 90%, rgba(32, 201, 151, 0.16), transparent 24%),
    linear-gradient(145deg, #f8fbff 0%, #eef3fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.hero h1 span,
.page-hero h1 span {
  color: var(--blue);
}

.hero-copy {
  max-width: 625px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.14rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 13px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.26);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.phone-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  width: min(378px, 100%);
  margin-inline: auto;
}

.phone {
  width: 100%;
  overflow: hidden;
  border: 4px solid #0b1725;
  border-radius: 26px;
  background: #0b1725;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  border-radius: 22px;
}

.phone-primary {
  transform: rotate(3deg);
}

.phone-secondary {
  margin-top: 32px;
  transform: rotate(-5deg);
}

.stat-card {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(46, 16, 101, 0.18);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  color: var(--mint);
  font-size: 1.4rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section-white {
  background: var(--surface);
}

.section-dark {
  color: #fff;
  background: var(--navy);
}

.section-heading {
  max-width: 690px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-dark .section-heading p {
  color: #aebfd1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.info-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(46, 16, 101, 0.06);
}

.feature-card {
  padding: 30px;
}

.feature-card .icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature-card p,
.info-card p,
.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
  max-width: 588px;
  margin-inline: auto;
}

.screenshot-card {
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #0b1725;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.screenshot-card img {
  width: 100%;
}

.screenshot-card:nth-child(2) {
  transform: translateY(-22px);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  border-radius: 32px;
  padding: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #6a50e7);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.28);
}

.cta-panel h2 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-panel p {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .button {
  color: var(--ink);
  background: #fff;
}

.page-hero {
  padding: 86px 0 66px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.18), transparent 42%),
    linear-gradient(180deg, #f8fbff, var(--canvas));
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  margin-inline: auto;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.info-card {
  padding: 30px;
}

.contact-card {
  position: sticky;
  top: 104px;
}

.contact-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 18px;
}

.contact-card h2,
.info-card h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.contact-card .button {
  width: 100%;
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 9px 30px rgba(46, 16, 101, 0.05);
}

.faq-list summary {
  position: relative;
  padding: 23px 56px 23px 24px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 22px;
  color: var(--blue);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 23px;
  color: var(--muted);
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 46px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--blue);
}

.legal-document {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(46, 16, 101, 0.06);
}

.legal-document section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.legal-document h3 {
  margin: 25px 0 8px;
  font-size: 1.08rem;
}

.legal-document p,
.legal-document li {
  color: #4f6074;
}

.legal-document li + li {
  margin-top: 8px;
}

.notice {
  margin: 0 0 30px;
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  color: var(--navy);
  background: var(--blue-pale);
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .support-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card,
  .legal-toc {
    position: static;
  }

  .legal-toc {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header .nav {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  .nav-actions {
    gap: 10px;
  }

  .hero,
  .section {
    padding: 70px 0;
  }

  .hero-grid {
    gap: 45px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .phone-stage {
    width: min(320px, 100% - 24px);
  }

  .phone {
    border-width: 3px;
    border-radius: 20px;
  }

  .phone img {
    border-radius: 16px;
  }

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

  .screenshots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 8px 24px;
    scroll-snap-type: x proximity;
  }

  .screenshot-card {
    scroll-snap-align: center;
  }

  .screenshot-card:nth-child(2) {
    transform: none;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 32px 25px;
  }

  .cta-panel .button {
    width: 100%;
  }

  .page-hero {
    padding: 62px 0 45px;
  }

  .legal-document {
    border-radius: 22px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
