@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%), var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  letter-spacing: -0.015em;
  margin: 0;
}

a {
  color: var(--color-accent-300);
  text-decoration: none;
}

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

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  border-bottom: 1px solid var(--color-neutral-800);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  font: 500 17px/1 var(--font-heading);
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
}

.main-nav a {
  color: var(--color-neutral-300);
}

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

.lang-switch a {
  color: var(--color-neutral-400);
  font-size: 13px;
  border: 1px solid var(--color-neutral-800);
  border-radius: 999px;
  padding: 5px 12px;
}

.lang-switch a:hover {
  color: var(--color-text);
  border-color: var(--color-accent-700);
}

.btn-install {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.btn-install:hover {
  background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  color: var(--color-text);
}

/* hero */
.hero {
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 {
  font: 500 clamp(40px, 5.6vw, 68px)/1.06 var(--font-heading);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-neutral-300);
  max-width: 44ch;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  color: var(--color-text);
  box-shadow: 0 0 24px color-mix(in srgb, var(--color-accent) 22%, transparent);
  margin-top: 6px;
  width: fit-content;
}

.btn-store:hover {
  background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  color: var(--color-text);
}

.btn-store .label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.btn-store .label .small {
  font-size: 11px;
  color: var(--color-neutral-400);
}

.btn-store .label .big {
  font-size: 16px;
  font-weight: 500;
}

/* hero mockups (CSS-drawn, in place of real screenshots) */
.hero-shots {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: flex-end;
}

.mock-card {
  width: min(38%, 220px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-neutral-800);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 80px color-mix(in srgb, var(--color-accent) 18%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}

.mock-card.side {
  width: min(30%, 170px);
  opacity: .8;
  transform: translateY(-24px);
  box-shadow: none;
}

.mock-card img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mock-card .mock-word {
  font: 500 20px/1.2 var(--font-heading);
}

.mock-card .mock-sub {
  font-size: 12px;
  color: var(--color-neutral-400);
}

/* sections */
section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-neutral-800) 48px, var(--color-neutral-800) calc(100% - 48px), transparent);
  margin-bottom: 72px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
  margin-bottom: 48px;
}

.section-intro h2 {
  font: 500 clamp(30px, 3.6vw, 44px)/1.12 var(--font-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-neutral-300);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 12px;
  background: var(--color-neutral-900);
  border: 1px solid var(--color-neutral-800);
}

.feature-card:hover {
  border-color: var(--color-accent-700);
}

.feature-card .num {
  font-size: 13px;
  color: var(--color-accent);
  font-feature-settings: 'tnum' 1;
}

.feature-card h3 {
  font: 500 19px/1.3 var(--font-heading);
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-neutral-400);
}

/* terms */
#dieu-khoan, #terms {
  padding-bottom: 96px;
}

.terms-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.terms-sidebar {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.terms-sidebar h2 {
  font: 500 clamp(28px, 3.2vw, 38px)/1.15 var(--font-heading);
  letter-spacing: -0.02em;
}

.terms-effective {
  font-size: 14px;
  color: var(--color-neutral-400);
}

.terms-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 14px;
}

.terms-toc a {
  padding: 6px 0;
  color: var(--color-neutral-400);
}

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

.terms-content {
  flex: 3 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 68ch;
}

.terms-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-neutral-300);
}

.terms-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 88px;
}

.terms-item h3 {
  font: 500 19px/1.35 var(--font-heading);
  display: flex;
  gap: 12px;
}

.terms-item h3 .n {
  color: var(--color-accent);
  font-feature-settings: 'tnum' 1;
}

.terms-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-neutral-300);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--color-neutral-800);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 14px;
  color: var(--color-neutral-400);
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  color: var(--color-neutral-400);
}

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

@media (max-width: 760px) {
  .terms-sidebar {
    position: static;
  }
}
