/* DesignClone — website tĩnh. Không nạp tài nguyên bên thứ ba nào. */

:root {
  --bg: #0b0d14;
  --bg-soft: #10131d;
  --panel: #141824;
  --panel-2: #191d2b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #e9ecf5;
  --muted: #98a1b8;
  --dim: #6f7891;
  --accent: #6366f1;
  --accent-2: #0ea5e9;
  --ok: #34d399;
  --fig-green: #0acf83;
  --fig-blue: #1abcfe;
  --fig-purple: #a259ff;
  --fig-red: #f24e1e;
  --fig-orange: #ff7262;
  --radius: 16px;
  --shell: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nền phát sáng nhẹ phía sau hero */
body::before {
  content: "";
  position: fixed;
  inset: -30% 0 auto 0;
  height: 700px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 22% 18%, rgba(99, 102, 241, .22), transparent 68%),
    radial-gradient(600px 340px at 82% 8%, rgba(14, 165, 233, .16), transparent 66%);
}

a { color: inherit; }
img, svg { max-width: 100%; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- song ngữ */
[data-lang] { display: none; }
html[data-site-lang="vi"] [data-lang="vi"],
html[data-site-lang="en"] [data-lang="en"] { display: revert; }

/* ---------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head .shell {
  display: flex; align-items: center; gap: 18px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-size: 16.5px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a.navlink {
  padding: 7px 12px; border-radius: 9px; text-decoration: none;
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav a.navlink:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
@media (max-width: 720px) { .nav a.navlink { display: none; } }

.langswitch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03);
}
.langswitch button {
  border: 0; background: none; cursor: pointer; color: var(--dim);
  font: inherit; font-size: 12.5px; font-weight: 650;
  padding: 4px 9px; border-radius: 7px; line-height: 1.4;
  transition: color .15s ease, background .15s ease;
}
.langswitch button:hover { color: var(--text); }
.langswitch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------- nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px;
  font-size: 14.5px; font-weight: 650; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--text);
  background: rgba(255, 255, 255, .04);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px -10px rgba(99, 102, 241, .8);
}
.btn.primary:hover { background: linear-gradient(135deg, #7376f5, #29b0f0); }

/* ---------------------------------------------------------- hero */
.hero { padding: 76px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .dots { display: inline-flex; gap: 3px; }
.eyebrow .dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }

h1.hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 780;
}
.grad {
  background: linear-gradient(105deg, #a5b4fc 0%, #7dd3fc 48%, #6ee7b7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 30px; font-size: 17.5px; line-height: 1.62; color: var(--muted); max-width: 47ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 13.5px; color: var(--dim); margin: 0; }
.hero-note b { color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------- mockup popup */
.mock {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #12151f, #0e1119);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: block; }
.mock-bar span { margin-left: 6px; font-size: 12px; color: var(--dim); font-weight: 600; }
.mock-body { padding: 16px; display: grid; gap: 12px; }

.mock-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 13px 14px; }
.mock-sample { font-size: 24px; line-height: 1.2; font-weight: 600; margin-bottom: 9px; letter-spacing: -.015em; }
.mock-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .04);
}
.chip.ok { color: #6ee7b7; border-color: rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .14); }
.chip.ac { color: #a5b4fc; border-color: rgba(99, 102, 241, .42); background: rgba(99, 102, 241, .16); }

.mock-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mock-metrics div { background: var(--panel-2); padding: 8px 11px; }
.mock-metrics dt { font-size: 10.5px; color: var(--dim); margin: 0 0 2px; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.mock-metrics dd { margin: 0; font-size: 13.5px; font-weight: 650; font-family: var(--mono); }

.mock-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; margin: 0 0 8px; }
.sug { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); }
.sug + .sug { margin-top: 6px; }
.sug .rank { font-size: 10.5px; font-family: var(--mono); color: var(--dim); width: 16px; flex: none; }
.sug .nm { font-size: 13.5px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug .sc { font-size: 11px; font-weight: 700; color: var(--ok); font-family: var(--mono); flex: none; }

.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatches i { width: 26px; height: 26px; border-radius: 7px; display: block; border: 1px solid rgba(255, 255, 255, .13); }

/* ---------------------------------------------------------- section chung */
section.band { padding: 84px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 660px; margin: 0 0 46px; }
.sec-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h2.sec-title { margin: 0 0 14px; font-size: clamp(27px, 3.5vw, 37px); line-height: 1.15; letter-spacing: -.025em; font-weight: 730; }
.sec-lead { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.66; }

/* ---------------------------------------------------------- tính năng */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.feature {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  padding: 24px 22px 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 15px; font-size: 19px;
  background: rgba(99, 102, 241, .14); border: 1px solid rgba(99, 102, 241, .3);
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 680; letter-spacing: -.012em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* ---------------------------------------------------------- các bước */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .022); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font-size: 14px; font-weight: 750; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { margin: 0 0 7px; font-size: 16.5px; font-weight: 680; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
kbd {
  font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  background: rgba(255, 255, 255, .07); color: var(--text); white-space: nowrap;
}

/* ---------------------------------------------------------- token split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg); border-radius: 1px;
}
.ticks li b { color: var(--text); font-weight: 650; }

.code {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0a0c13;
}
.code header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  font-size: 12px; color: var(--dim); font-weight: 650; font-family: var(--mono);
}
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.72; }
.code .k { color: #a5b4fc; }
.code .s { color: #6ee7b7; }
.code .n { color: #fcd34d; }
.code .c { color: var(--dim); }

/* ---------------------------------------------------------- privacy nổi bật */
.privacy-band {
  border: 1px solid rgba(52, 211, 153, .26); border-radius: 20px;
  background: linear-gradient(140deg, rgba(16, 185, 129, .1), rgba(255, 255, 255, .015));
  padding: 40px 38px;
}
@media (max-width: 620px) { .privacy-band { padding: 30px 22px; } }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
@media (max-width: 800px) { .privacy-grid { grid-template-columns: 1fr; gap: 20px; } }
.privacy-grid h4 { margin: 0 0 6px; font-size: 15px; font-weight: 680; }
.privacy-grid p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------- ngôn ngữ */
.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.langs span {
  padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035); font-size: 14.5px; font-weight: 600;
}

/* ---------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; max-width: 800px; }
details.qa { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .022); overflow: hidden; }
details.qa summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-size: 15.5px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; font-size: 19px; color: var(--dim); font-weight: 400; line-height: 1; flex: none;
}
details.qa[open] summary::after { content: "\2212"; }
details.qa[open] summary { border-bottom: 1px solid var(--line); }
details.qa .a { padding: 15px 20px 19px; color: var(--muted); font-size: 14.5px; line-height: 1.66; }
details.qa .a p { margin: 0 0 10px; }
details.qa .a p:last-child { margin: 0; }

/* ---------------------------------------------------------- cta cuối */
.final { text-align: center; padding: 90px 0 100px; }
.final h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; font-weight: 740; }
.final p { margin: 0 auto 28px; color: var(--muted); max-width: 52ch; font-size: 16.5px; }
.final .hero-cta { justify-content: center; }

/* ---------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 44px; background: var(--bg-soft); }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.copy { color: var(--dim); font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------- trang văn bản */
.doc { padding: 56px 0 90px; max-width: 760px; }
.doc .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 26px; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -.028em; margin: 0 0 12px; font-weight: 750; line-height: 1.12; }
.doc .updated { color: var(--dim); font-size: 14px; margin: 0 0 8px; }
.doc h2 {
  font-size: 21px; font-weight: 690; letter-spacing: -.016em;
  margin: 46px 0 14px; padding-top: 26px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 16.5px; font-weight: 670; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 650; }
.doc a { color: #a5b4fc; }
.doc code {
  font-family: var(--mono); font-size: 13px; padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: #c7d2fe;
}
.callout {
  border: 1px solid rgba(52, 211, 153, .3); background: rgba(16, 185, 129, .09);
  border-radius: 14px; padding: 20px 22px; margin: 0 0 30px;
}
.callout p { margin: 0; color: #d6f5e7; font-size: 15.5px; }
.callout p + p { margin-top: 10px; }

.tablewrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table.perm { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
table.perm th, table.perm td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.perm th { background: rgba(255, 255, 255, .04); font-weight: 670; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .045em; }
table.perm tr:last-child td { border-bottom: 0; }
table.perm td { color: var(--muted); }
table.perm td code { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
