:root {
  color-scheme: dark;
  --background: #0a0a0f;
  --surface: #14141c;
  --surface-high: #1e1e2a;
  --neon-pink: #ff2d95;
  --neon-pink-light: #ff6ec7;
  --magenta: #8a2be2;
  --error-pink: #ff1f5a;
  --text: #f5f5fa;
  --text-muted: #8a8aa0;
  --locked-dim: #3a3a4a;
  --line: rgba(255, 110, 199, 0.24);
  --shadow: 0 24px 80px rgba(255, 45, 149, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html.embedded-policy {
  scroll-padding-top: calc(62px + env(safe-area-inset-top));
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 45, 149, 0.11), transparent 30rem),
    radial-gradient(circle at 80% 0%, rgba(138, 43, 226, 0.13), transparent 28rem),
    linear-gradient(180deg, #0a0a0f 0%, #101018 48%, #0a0a0f 100%);
  color: var(--text);
  line-height: 1.6;
}

.privacy-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 45, 149, 0.1), transparent 24rem),
    radial-gradient(circle at 96% 18%, rgba(255, 110, 199, 0.08), transparent 22rem),
    linear-gradient(180deg, #09090e 0%, #101018 52%, #09090e 100%);
}

a {
  color: var(--neon-pink-light);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.24);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lang-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.lang-toggle button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

html[data-lang="en"] .lang-toggle [data-set-lang="en"],
html[data-lang="vi"] .lang-toggle [data-set-lang="vi"] {
  background: var(--neon-pink);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 96px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--neon-pink-light);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 7.4rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(255, 45, 149, 0.35);
}

.tagline {
  margin-bottom: 18px;
  color: var(--neon-pink-light);
  font-size: 2rem;
  font-weight: 800;
}

.lead {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.14rem;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 78px));
  gap: 10px;
  margin: 34px 0;
}

.code-cell {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 20, 28, 0.78);
  box-shadow: inset 0 0 24px rgba(255, 45, 149, 0.1), 0 0 28px rgba(255, 45, 149, 0.12);
  color: var(--text);
  font-size: 2.35rem;
  font-weight: 900;
}

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

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  border-radius: 11px;
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.18);
}

.store-badge img {
  width: min(220px, 100%);
  height: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.button.primary {
  border-color: var(--neon-pink);
  background: var(--neon-pink);
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.32);
}

.button[aria-disabled="true"] {
  color: var(--text-muted);
  cursor: not-allowed;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 5% -8% -6% 7%;
  z-index: -1;
  border: 1px solid rgba(255, 45, 149, 0.18);
  border-radius: 28px;
  background: rgba(255, 45, 149, 0.05);
  content: "";
  transform: rotate(4deg);
}

.phone-shot {
  width: min(100%, 430px);
  height: auto;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

h2 {
  margin-bottom: 12px;
  font-size: 3.2rem;
  line-height: 1.05;
}

.muted {
  color: var(--text-muted);
}

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

.feature-card,
.step-card,
.policy-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(20, 20, 28, 0.86);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.feature-card {
  padding: 22px;
}

.feature-card h3,
.step-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.feature-card p,
.step-card p,
.policy-card p,
.policy-card li {
  color: var(--text-muted);
}

.feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 45, 149, 0.12);
  color: var(--neon-pink-light);
  font-weight: 900;
}

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

.step-card {
  padding: 20px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--neon-pink);
  color: white;
  font-weight: 900;
}

.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
}

.screenshot {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface);
}

.screenshot img {
  width: 100%;
  height: auto;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

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

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

.policy-hero {
  max-width: 820px;
  padding: 42px 0 24px;
}

.policy-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.75rem, 6vw, 4.4rem);
  line-height: 1;
  text-transform: none;
}

.policy-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 64px;
}

.policy-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: rgba(20, 20, 28, 0.78);
}

.policy-toc a {
  display: block;
  padding: 7px 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.35;
}

.policy-card {
  margin-bottom: 12px;
  padding: clamp(18px, 3vw, 26px);
}

.policy-card h2 {
  margin-bottom: 10px;
  font-size: 1.75rem;
  line-height: 1.18;
  text-transform: none;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

html.embedded-policy .privacy-page .site-header,
html.embedded-policy .privacy-page .site-footer {
  display: none;
}

html.embedded-policy .policy-hero {
  padding-top: calc(22px + env(safe-area-inset-top));
}

html.embedded-policy .policy-toc {
  top: env(safe-area-inset-top);
}

[data-i18n] {
  display: none;
}

html[data-lang="en"] [data-i18n="en"],
html[data-lang="vi"] [data-i18n="vi"] {
  display: revert;
}

@media (prefers-reduced-motion: no-preference) {
  .code-cell {
    animation: pulse 3.6s ease-in-out infinite;
  }

  .code-cell:nth-child(2) {
    animation-delay: 0.25s;
  }

  .code-cell:nth-child(3) {
    animation-delay: 0.5s;
  }

  .code-cell:nth-child(4) {
    animation-delay: 0.75s;
  }
}

@keyframes pulse {
  0%,
  100% {
    border-color: rgba(255, 110, 199, 0.22);
  }
  50% {
    border-color: rgba(255, 110, 199, 0.72);
  }
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .screens,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .tagline {
    font-size: 1.65rem;
  }

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

  .policy-toc {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top));
    display: flex;
    z-index: 2;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 10px 16px;
    background: rgba(10, 10, 15, 0.94);
    scrollbar-width: none;
  }

  .policy-toc::-webkit-scrollbar {
    display: none;
  }

  .policy-toc a {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 110, 199, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(20, 20, 28, 0.8);
    white-space: nowrap;
  }

  html.embedded-policy .policy-toc {
    top: env(safe-area-inset-top);
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 120px;
  }

  .shell {
    width: min(100% - 24px, 1120px);
  }

  .privacy-page .site-header {
    position: sticky;
  }

  .privacy-page .nav {
    min-height: 58px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 0;
  }

  .privacy-page .brand {
    min-width: 0;
    gap: 9px;
    letter-spacing: 0.08em;
  }

  .privacy-page .brand-logo {
    width: 34px;
    height: 34px;
  }

  .privacy-page .brand span {
    overflow: hidden;
    max-width: 128px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .privacy-page .nav-links {
    display: none;
  }

  .privacy-page .lang-toggle button {
    min-width: 38px;
    min-height: 32px;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .code-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-visual::before {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .tagline {
    font-size: 1.35rem;
  }

  .code-cell {
    font-size: 1.75rem;
  }

  .policy-card h2 {
    font-size: 1.24rem;
  }

  .policy-hero {
    padding: 18px 0 12px;
  }

  .policy-hero h1 {
    margin-bottom: 10px;
    font-size: 1.92rem;
    line-height: 1.06;
  }

  .policy-hero .eyebrow {
    display: none;
  }

  .policy-hero .lead {
    margin-bottom: 0;
    font-size: 0.94rem;
  }

  .policy-layout {
    gap: 14px;
    padding-bottom: 46px;
  }

  .policy-toc {
    top: calc(59px + env(safe-area-inset-top));
    margin: 0 -12px;
    padding: 9px 12px;
  }

  html.embedded-policy {
    scroll-padding-top: calc(56px + env(safe-area-inset-top));
  }

  html.embedded-policy .policy-hero {
    padding-top: calc(18px + env(safe-area-inset-top));
  }

  html.embedded-policy .policy-toc {
    top: env(safe-area-inset-top);
  }

  .policy-toc a {
    padding: 7px 11px;
    font-size: 0.86rem;
  }

  .policy-card {
    margin-bottom: 10px;
    padding: 16px 15px;
  }

  .policy-card p,
  .policy-card li {
    font-size: 0.95rem;
    line-height: 1.62;
  }

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

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