/* =====================================================================
   On Corporation — landing page (việc #173250)
   Design Pattern "Vercel" · token đầy đủ (màu · chữ · góc cạnh · bóng/viền ·
   khoảng cách) · sáng/tối theo hệ thống + công tắc chủ đề · mobile-first
   0 request Google Fonts — phông tự lưu tại fonts/
   ===================================================================== */

/* ---------- Phông tự lưu (biến thiên — 1 tệp phủ 100..900) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Token chủ đề "neon" (mặc định) ---------- */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Bảng màu Neuron của OSS (web/src/neuron-theme.css): nền đêm, kính mờ, xanh băng = đang chạy, hổ phách = chờ, đỏ = cần xử lý */
  --bg: #05060a;
  --bg-elev: rgba(255,255,255,.018);
  --surface: rgba(11,16,28,.78);
  --surface-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.11);
  --line-soft: rgba(255,255,255,.07);
  --fg: #eef2f6;
  --fg-muted: #a6afba;
  --fg-faint: #8a94a0;

  --accent: #7fe7ff;
  --accent-2: #6ee7b7;
  --accent-3: #c4a5ff;
  --accent-contrast: #05060a;
  --ring: #7fe7ff;
  --ok: #6ee7b7;
  --danger: #ff7a6b;
  --warn: #ffb547;
  --st-run: #7fe7ff;
  --st-wait: #ffb547;
  --st-block: #ff5a4a;

  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --radius-input: 10px;
  --radius-tag: 8px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03) inset;
  --shadow-2: 0 12px 34px -12px rgba(0,0,0,.72);
  --shadow-glow: 0 0 40px -12px rgba(127,231,255,.45);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --section-y: clamp(48px, 9vw, 104px);
  --content: 1120px;

  --topbar-h: 68px;
  --hero-lh: 1.05;

  color-scheme: dark;
}

/* ---------- Chủ đề "sang" (sáng) ---------- */
[data-theme="sang"] {
  --danger: #b91c1c;
  --bg: #ffffff;
  --bg-elev: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --line: #e4e8ee;
  --line-soft: #eef1f5;
  --fg: #0b0e14;
  --fg-muted: #4b5563;
  --fg-faint: #6b7280;

  --accent: #2563eb;
  --accent-2: #0891b2;
  --accent-3: #7c5cf5;
  --accent-contrast: #ffffff;
  --ring: #2563eb;

  --radius-card: 18px;
  --radius-btn: 999px;
  --radius-pill: 999px;
  --radius-input: 12px;
  --radius-tag: 999px;

  --shadow-1: 0 1px 2px rgba(16,24,40,.06), 0 0 0 1px rgba(16,24,40,.04) inset;
  --shadow-2: 0 18px 40px -22px rgba(16,24,40,.28);
  --shadow-glow: 0 0 34px -14px rgba(47,107,255,.5);
  color-scheme: light;
}

/* ---------- Chủ đề "cochan" (chữ có chân, bo vuông) ---------- */
[data-theme="cochan"] {
  --danger: #b91c1c;
  --font-sans: Georgia, "Times New Roman", "Noto Serif", serif;
  --bg: #f6f2e9;
  --bg-elev: #fbf8f1;
  --surface: #fffdf8;
  --surface-2: #f3ecdd;
  --line: #e0d6c1;
  --line-soft: #ece3d2;
  --fg: #241f16;
  --fg-muted: #5c5344;
  --fg-faint: #6e6452;

  --accent: #8a5a24;
  --accent-2: #0f6d5c;
  --accent-3: #7a3f6a;
  --accent-contrast: #fffaf1;
  --ring: #8a5a24;

  --radius-card: 4px;
  --radius-btn: 3px;
  --radius-pill: 3px;
  --radius-input: 3px;
  --radius-tag: 3px;

  --shadow-1: 0 1px 0 rgba(36,31,22,.08);
  --shadow-2: 0 16px 30px -22px rgba(36,31,22,.4);
  --shadow-glow: 0 0 0 0 transparent;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 640; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: clamp(16px, 5vw, 32px); }

/* ---------- Nền trang trí (KHÔNG tham gia lưới — position:absolute) ---------- */
.bg-grid {
  position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 78% -8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(48% 40% at 6% 12%, color-mix(in srgb, var(--accent-3) 20%, transparent), transparent 72%),
    linear-gradient(to bottom, transparent 0, var(--bg) 60%);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0, transparent 85%);
          mask-image: radial-gradient(80% 60% at 50% 0%, #000 0, transparent 85%);
}

/* ---------- Thanh trên ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px -18px rgba(0,0,0,.45); }
.topbar-row { display: flex; align-items: center; gap: var(--space-5); width: 100%; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; flex: none; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.nav { display: none; align-items: center; gap: var(--space-1); margin-inline: auto; height: 100%; }
.nav a { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 14px; color: var(--fg-muted); font-size: 15px; font-weight: 520; transition: color .15s ease; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.topbar .actions .lang, .topbar .actions .btn { display: none; }
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang button { border: 0; background: transparent; color: var(--fg-faint); font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; min-width: 36px; min-height: 36px; border-radius: var(--radius-tag); cursor: pointer; }
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { color: var(--fg); background: var(--surface-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-btn);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  transition: background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--fg); border-radius: var(--radius-btn); cursor: pointer; }
.burger:hover { background: var(--surface-2); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .burger { display: none; }
  .topbar .actions .lang, .topbar .actions .btn { display: inline-flex; }
  .nav + .actions { margin-left: 0; }
}
/* công tắc giao diện (chân trang) */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.theme-switch button { border: 0; background: transparent; color: var(--fg-muted); cursor: pointer; min-height: 32px; padding: 0 12px; border-radius: var(--radius-pill); font: inherit; font-size: 13px; font-weight: 560; }
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); box-shadow: var(--shadow-1); }
/* menu khổ hẹp */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer .mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer .panel { position: absolute; inset: 0 0 0 auto; width: min(100vw, 420px); background: var(--bg); border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; padding: 0 clamp(16px, 5vw, 24px) calc(24px + env(safe-area-inset-bottom)); }
.drawer .panel-top { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); }
.drawer .panel-nav { display: flex; flex-direction: column; margin-top: var(--space-3); }
.drawer .panel-nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-soft); font-size: 18px; font-weight: 600; color: var(--fg); }
.drawer .panel-nav a[aria-current="page"] { color: var(--accent); }
.drawer .panel-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); }
/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(44px, 11vw, 120px) clamp(40px, 8vw, 84px); }
.hero h1 {
  margin-top: var(--space-5);
  font-size: clamp(34px, 7.4vw, 72px);
  line-height: var(--hero-lh); font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: var(--space-5); font-size: clamp(16px, 2.1vw, 20px); color: var(--fg-muted); max-width: 62ch; }
.hero .cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 12px; }
.hero .stats { margin: var(--space-7) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); max-width: 860px; }
.stat { padding: 18px 20px 0 0; }
.stat b { display: block; font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.stat span { color: var(--fg-muted); font-size: 14px; }
@media (min-width: 720px) { .hero .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } .stat + .stat { padding-left: 20px; border-left: 1px solid var(--line-soft); } }
/* ---------- Mục chung ---------- */
section { scroll-margin-top: calc(var(--topbar-h) + 12px); }
.band { padding-block: var(--section-y); }
.band.elev { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.head { max-width: 60ch; margin-bottom: clamp(28px, 5vw, 52px); }

.head h2 { margin-top: 12px; font-size: clamp(26px, 4.6vw, 42px); font-weight: 680; }
.head p { margin-top: 14px; color: var(--fg-muted); font-size: clamp(15.5px, 2vw, 18px); }

/* ---------- Lưới mảng ---------- */
.segments { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .segments { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .segments { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.seg {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card);
  padding: 22px; box-shadow: var(--shadow-1); min-width: 0;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.seg:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.seg .ico {
  width: 46px; height: 46px; border-radius: var(--radius-input); display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
}
.seg .ico svg { width: 24px; height: 24px; }
.seg h3 { font-size: 19px; font-weight: 660; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg p { color: var(--fg-muted); font-size: 14.8px; }
.seg .foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--fg-muted); background: var(--surface-2);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint); }
.tag.live { color: var(--fg); }
.tag.live::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.tag.soon::before { background: var(--warn); }
.seg .link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.seg .link:hover { text-decoration: underline; }

/* ---------- Khối 2 cột (về chúng tôi / công nghệ) ---------- */
.split { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }
.prose p { color: var(--fg-muted); margin-top: 16px; font-size: clamp(15.5px, 2vw, 17.5px); }
.prose p:first-child { margin-top: 0; }
.values { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: var(--space-5); }
.value { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 14px 15px; }
.value b { display: block; font-size: 15px; }
.value span { color: var(--fg-muted); font-size: 13px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.timeline li:first-child { border-top: 0; }
.timeline .no { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 13px; padding-top: 3px; }
.timeline h3 { font-size: 16.5px; }
.timeline p { color: var(--fg-muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- Công nghệ ---------- */
.tech { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: var(--space-5); }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 7px; }
.chip b { font-size: 14.5px; display: block; }
.chip span { color: var(--fg-muted); font-size: 13px; }

/* ---------- Liên hệ ---------- */
.contact { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact .card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-2); }
.contact a.mail { color: var(--accent); font-weight: 660; font-size: clamp(17px, 3vw, 22px); overflow-wrap: anywhere; }
.contact .muted { color: var(--fg-muted); font-size: 14.5px; margin-top: 10px; }
.contact-form { display: grid; gap: 14px; margin-top: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--fg-muted); min-width: 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; /* ≥16px: Safari iPhone không tự phóng to ô nhập */
  color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-input); padding: 11px 12px;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Chân trang ---------- */
footer { border-top: 1px solid var(--line-soft); background: var(--bg-elev); padding-block: var(--space-7) var(--space-5); }
.foot-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-col h2 { font-size: 14px; font-weight: 650; color: var(--fg); margin: 0 0 12px; }
.foot-col a:not(.brand) { display: block; color: var(--fg-muted); padding: 5px 0; font-size: 14.5px; }
.foot-col a:hover { color: var(--fg); }
.foot-chu { display: block; color: var(--fg-muted); padding: 5px 0; font-size: 14.5px; }
.foot-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--fg-faint); font-size: 13px; }

/* ---------- Hiện dần khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Trợ năng ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; background: var(--accent); color: var(--accent-contrast); padding: 10px 16px; border-radius: var(--radius-btn); transition: top .15s ease; }
.skip:focus { top: 8px; }

/* =====================================================================
   Bộ nhiều trang (trang chủ tập đoàn): mục đang xem, đầu trang con, thẻ, câu hỏi thường gặp
   ===================================================================== */
.foot-about { margin-top: 14px; color: var(--fg-muted); font-size: 14px; max-width: 36ch; }

.page-hero { padding-block: clamp(40px, 8vw, 88px) clamp(24px, 4vw, 40px); }
.page-hero h1 { margin-top: var(--space-4); font-size: clamp(30px, 5.6vw, 54px); font-weight: 700; letter-spacing: -0.03em; overflow-wrap: break-word; }
.page-hero .lead { margin-top: var(--space-4); font-size: clamp(16px, 2vw, 19px); color: var(--fg-muted); max-width: 62ch; }
.page-hero .cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 12px; }

.seg .link { min-height: 44px; }
.seg ul { margin: 0; padding-left: 18px; color: var(--fg-muted); font-size: 14.5px; display: grid; gap: 4px; }

.cta-band { display: grid; gap: var(--space-5); grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-card); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-2); }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; align-items: center; } }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); }
.cta-band p { margin-top: 10px; color: var(--fg-muted); }
.cta-band .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius-card); padding: clamp(20px, 4vw, 32px); background: var(--surface); }
.empty h3 { font-size: 19px; }
.empty p { margin-top: 8px; color: var(--fg-muted); }
.empty .btn { margin-top: 16px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; min-height: 44px; font-weight: 620; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--fg-muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 650; letter-spacing: .04em; color: var(--accent); }
.kicker::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.cta-more { margin-top: var(--space-5); }
.flush { margin-top: 0; }
.tech.one, .cta-band.one { grid-template-columns: 1fr; }
@media (max-width: 520px) {
  .hero .cta .btn, .page-hero .cta .btn, .cta-band .cta .btn { flex: 1 1 100%; }
}
.page-hero + .band { padding-top: clamp(16px, 3vw, 32px); }
.prose .head { margin-bottom: var(--space-4); }
.contact-form select { min-height: 46px; appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[hidden] { display: none !important; }
.item-meta { margin-top: 6px; font-size: 13.5px; color: var(--fg-faint); }
.seg .item-meta:first-child { margin-top: 0; margin-bottom: 8px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-size: 14.5px; }
.form-done { display: grid; gap: var(--space-3); justify-items: start; }
.form-done h3 { font-size: 21px; }
.form-done p { color: var(--fg-muted); }

/* =====================================================================
   Giao diện Neuron (Mốc 4): nền nơ-ron chuyển động (assets/neuron.js), thẻ kính, khối "bộ não"
   ===================================================================== */
[data-theme="sang"], [data-theme="cochan"] { --st-run: #0e7490; --st-wait: #b45309; --st-block: #b91c1c; --ok: #047857; }
:root:not([data-theme="sang"]):not([data-theme="cochan"]) body { background: radial-gradient(120% 60% at 70% 0%, #0b1424 0%, #05060a 60%) fixed #05060a; }
:root:not([data-theme="sang"]):not([data-theme="cochan"]) .bg-grid { display: none; }
.neuron-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
  /* quầng sáng sau khối nơ-ron: vẽ bằng CSS một lần thay vì tô lại cả màn mỗi khung */
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--st-run) 10%, transparent), transparent 55%); }
@media (min-width: 901px) { .neuron-bg { background: radial-gradient(circle at 74% 50%, color-mix(in srgb, var(--st-run) 10%, transparent), transparent 42%); } }
@media (min-width: 900px) {
  :root:not([data-theme="sang"]):not([data-theme="cochan"]) :is(.seg, .value, .chip, .contact .card, .oss-panel, .mind) {
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
}
.hero h1 .grad { background-image: linear-gradient(100deg, var(--accent), var(--accent-3) 60%, var(--accent-2)); }

/* Khối bộ não: bảng điều hành OSS + bốn khối nơ-ron */
.brain { display: grid; gap: var(--space-5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .brain { grid-template-columns: 1.05fr 1fr; } }
.oss-panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-2), var(--shadow-glow); overflow: hidden; min-width: 0; }
.oss-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.oss-logo { width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--st-run) 0 22%, transparent 24%), radial-gradient(circle, color-mix(in srgb, var(--st-run) 35%, transparent) 0 60%, transparent 62%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--st-run) 55%, transparent); animation: thong 2.4s ease-in-out infinite; }
.oss-title { color: var(--fg-muted); }
.oss-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 18px 4px; }
.chip-st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.chip-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.chip-st.run { --c: var(--st-run); } .chip-st.wait { --c: var(--st-wait); } .chip-st.block { --c: var(--st-block); }
.feed { list-style: none; margin: 0; padding: 6px 10px 4px; display: grid; }
.feed li { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px; border-radius: 12px; transition: background .4s ease; }
.feed li + li { border-top: 1px solid var(--line-soft); }
.feed .who { display: grid; min-width: 0; }
.feed .who b { font-size: 14.5px; font-weight: 640; }
.feed .who span { font-size: 13.5px; color: var(--fg-muted); }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-faint); opacity: .5; }
.feed .state { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.feed .st { display: none; }
.feed li[data-s="todo"] .st-todo, .feed li[data-s="run"] .st-run, .feed li[data-s="done"] .st-done, .feed li[data-s="wait"] .st-wait { display: inline; }
.feed .st-todo { color: var(--fg-faint); }
.feed .st-run { color: var(--st-run); } .feed .st-wait { color: var(--st-wait); } .feed .st-done { color: var(--ok); }
.feed li[data-s="run"] { background: color-mix(in srgb, var(--st-run) 8%, transparent); }
.feed li[data-s="run"] .dot { background: var(--st-run); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-run) 25%, transparent); animation: thong 1.2s ease-in-out infinite; }
.feed li[data-s="wait"] .dot { background: var(--st-wait); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-wait) 25%, transparent); animation: thong 2.4s ease-in-out infinite; }
.feed li[data-s="done"] .dot { background: var(--ok); opacity: 1; }
.oss-note { padding: 10px 18px 16px; font-size: 12.5px; color: var(--fg-faint); }
@keyframes thong { 50% { transform: scale(.82); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .oss-logo, .feed .dot { animation: none !important; } }
.minds { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .minds { grid-template-columns: 1fr 1fr; } }
.mind { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-card); padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; min-width: 0; box-shadow: var(--shadow-1); }
.mind:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.neuron-mini { width: 100%; height: 132px; display: block; }
.mind h3 { font-size: 17px; font-weight: 660; }
.mind p { color: var(--fg-muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 559px) { .mind { grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 12px; padding: 12px 14px; } .neuron-mini { height: 96px; } }
/* Vùng chạm ≥ 44px cho mọi liên kết/nút nhỏ (chân trang, đổi ngôn ngữ, đổi giao diện, logo) */
.foot-col a:not(.brand) { display: flex; align-items: center; min-height: 44px; padding: 0; }
.brand { min-height: 44px; }
.lang button { min-width: 44px; min-height: 44px; }
.theme-switch button { min-height: 44px; }
.btn-sm { min-height: 44px; }
