:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --text: #17153a;
  --muted: #5b5a7a;
  --line: #e4e3f2;
  --brand: #4b3fd6;
  --brand-ink: #ffffff;
  --accent: #7cf3d2;
  --hero-1: #5b5bf7;
  --hero-2: #3a2fb8;
  --hero-3: #1e1a6b;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d24;
    --surface: #1a1838;
    --text: #eceaff;
    --muted: #a9a7cc;
    --line: #2c2a52;
    --brand: #8b84ff;
    --brand-ink: #0f0d24;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Thanh điều hướng */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hero-2) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav nav a { color: #dcdaff; font-size: 15px; }
.nav nav a:hover { color: #fff; text-decoration: none; }
.nav .lang { border: 1px solid #ffffff55; border-radius: 999px; padding: 3px 12px; }

/* Phần đầu trang */
.hero {
  background: linear-gradient(155deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, #7cf3d233, transparent);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: #dcdaff; margin: 0 0 30px; max-width: 34em; }
.hero .icon { width: 84px; height: 84px; margin-bottom: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #fff; color: var(--hero-3); }
.btn-ghost { color: #fff; border: 1px solid #ffffff66; }
.btn-ghost:hover { background: #ffffff1a; }
.note { font-size: 14px; color: #c5c2f5; margin-top: 14px; }
.hero .art { position: relative; z-index: 1; }

/* Khối nội dung */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.015em; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 40em; margin: 0 0 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--hero-1), var(--hero-2)); color: var(--accent);
}
.card .ico svg { width: 24px; height: 24px; }

.shots { display: grid; gap: 56px; }
.shot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.shot:nth-child(even) { grid-template-columns: 1.6fr 1fr; }
.shot:nth-child(even) .shot-text { order: 2; }
.shot h3 { font-size: 26px; margin: 0 0 10px; line-height: 1.2; }
.shot p { color: var(--muted); margin: 0; }
.shot img { border-radius: 14px; box-shadow: 0 30px 60px -20px #0b083066, 0 0 0 1px #0000001a; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}

.privacy-band { text-align: center; }
.privacy-band p { color: var(--muted); max-width: 36em; margin: 0 auto 20px; font-size: 19px; }

/* Trang văn bản (hỗ trợ, quyền riêng tư) */
.page-head {
  background: linear-gradient(155deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3)); color: #fff;
  padding: 64px 0 56px;
}
.page-head h1 { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.02em; }
.page-head p { margin: 0; color: #dcdaff; font-size: 19px; }
.prose { max-width: 760px; padding: 56px 24px 88px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose li { margin-bottom: 8px; }
.prose code { background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 15px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-top: 36px;
}
.contact h2 { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }

@media (max-width: 860px) {
  .hero .wrap, .shot, .shot:nth-child(even) { grid-template-columns: 1fr; }
  .shot:nth-child(even) .shot-text { order: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  section { padding: 64px 0; }
  .nav nav a:not(.lang) { display: none; }
}
