/* boivela.com — trang giới thiệu + pháp lý. Cùng bộ token với app
   (frontend/src/theme.css). Tĩnh hoàn toàn, không build, không hiệu ứng chạy
   liên tục (CLAUDE.md mục Giao diện). */

:root {
  --bg: #071417;
  --bg-2: #040e11;
  --surface: #0e2126;
  --surface-2: #0a1a1e;
  --border: #1d3a3f;
  --neon: #2ff5d6;
  --neon-lt: #7cffe8;
  --neon-dim: #16a894;
  --amber: #ffb45c;
  --violet: #a78bfa;
  --text: #e8fffb;
  --muted: #8fb3b0;
  --dim: #5d807e;
  --radius: 16px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--neon-lt); }
a:hover { color: var(--neon); }
img, svg { display: block; }

/* Song ngữ: mỗi đoạn mang lang="vi" hoặc lang="en", <html data-lang> chọn bên hiện. */
html[data-lang="vi"] [lang="en"]:not(html),
html[data-lang="en"] [lang="vi"]:not(html) { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--doc { max-width: 780px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 20, 23, 0.94);
  border-bottom: 1px solid rgba(29, 58, 63, 0.7);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; color: #3fe08f; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--neon-lt); }
.lang {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang button {
  background: none; border: 0; color: var(--muted); font: 600 12px/1 inherit; padding: 7px 11px; cursor: pointer;
}
html[data-lang="vi"] .lang [data-set="vi"],
html[data-lang="en"] .lang [data-set="en"] { background: var(--surface); color: var(--neon); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  text-decoration: none; color: #04221d;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-lt) 100%);
  border: 0; transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 24px rgba(47, 245, 214, 0.18);
}
.btn:hover { color: #04221d; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(47, 245, 214, 0.28); }
.btn--ghost { background: none; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn--ghost:hover { color: var(--neon-lt); border-color: var(--neon-dim); box-shadow: none; }
.nav .btn { padding: 8px 14px; font-size: 13.5px; color: #04221d; }

/* ---------------------------------------------------------------- trang chủ */
.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--neon-lt); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.025em; }
.grad {
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon-lt) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero small { display: block; margin-top: 16px; color: var(--dim); font-size: 13px; }

.section { padding: 48px 0; }
.section h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 8px; letter-spacing: -0.015em; }
.section .sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; min-width: 0;
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .tag { font-size: 12px; font-weight: 700; color: var(--neon); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; display: block; }

.steps { counter-reset: s; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--neon-dim); color: var(--neon);
  font-weight: 700; font-size: 14px; margin-bottom: 12px;
}

.models { display: flex; flex-wrap: wrap; gap: 8px; }
.models span {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 13.5px;
}

.band {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; text-align: center;
}
.band h2 { margin-bottom: 8px; }
.band p { color: var(--muted); margin: 0 auto 22px; max-width: 560px; }

/* ---------------------------------------------------------------- văn bản pháp lý */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .meta { color: var(--dim); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; color: var(--neon-lt); letter-spacing: -0.005em; }
.doc h3 { font-size: 16.5px; margin: 22px 0 6px; }
.doc p, .doc li { color: #cfe9e5; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 14.5px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.doc .box {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--neon);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0;
}
.doc .box p { margin: 0; }
.toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px 14px 36px; margin: 0 0 8px; font-size: 14.5px; }
.toc li { margin: 2px 0; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid rgba(29, 58, 63, 0.7); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 32px; font-size: 13.5px; color: var(--dim); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--neon-lt); }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 56px 0 36px; }
  .band { padding: 24px 18px; }
  .foot .links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
