:root {
  --bg: #0d0520;
  --bg-2: #1a0a2e;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #ff6b9d;
  --accent-2: #c44dff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(196, 77, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 107, 157, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* Language: show only the active language */
html[lang="vi"] [data-lang="en"],
html[lang="en"] [data-lang="vi"] { display: none !important; }

/* Header */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }

/* Hero */
.hero { text-align: center; padding: 48px 0 40px; }
.hero .app-icon {
  width: 112px; height: 112px; border-radius: 28px;
  box-shadow: 0 18px 50px rgba(255, 107, 157, 0.35);
}
.hero h1 {
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.15;
  margin: 24px 0 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { max-width: 560px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 210px;
  padding: 12px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
}
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.store strong { display: block; font-size: 17px; line-height: 1.2; }
.store.play { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.store.play small { color: rgba(255, 255, 255, 0.85); }
.store.play:hover { filter: brightness(1.08); }
.store.soon { opacity: 0.6; cursor: not-allowed; position: relative; }

/* Features */
section { padding: 36px 0; }
section h2 { font-size: 28px; text-align: center; margin: 0 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}
.card .emoji { font-size: 28px; }
.card h3 { margin: 10px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Privacy page */
.doc { max-width: 760px; margin: 12px auto 40px; padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; }
.doc h1 { margin: 0 0 4px; font-size: 32px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc h2 { text-align: left; font-size: 18px; margin: 26px 0 6px; color: var(--accent); }
.doc p { margin: 0; color: rgba(255, 255, 255, 0.85); }

footer.site {
  text-align: center;
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
footer.site nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

@media (max-width: 480px) {
  .store { width: 100%; }
}
