/* antline.vn - trang "đang xây" (2026-10-30). Màu = DESIGN.md §17 (theme v4), tự đổi sáng/tối theo hệ máy. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(fonts/bevietnampro-400-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: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(fonts/bevietnampro-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(fonts/bevietnampro-400-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: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(fonts/bevietnampro-700-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: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(fonts/bevietnampro-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(fonts/bevietnampro-700-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: "Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibmplexmono-500-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: "Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibmplexmono-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibmplexmono-500-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; }

:root {
  color-scheme: light;
  --bg: #F2EFEE; --surface: #FDFBFA; --ink: #1C1B1F; --text: #3D3B40; --muted: #625D66;
  --line: #878586; --border: #E2E0E0; --brand: #00756C; --brand-soft: #DFEBE9;
  --trace-alpha: .22; --shadow: 0 10px 28px rgba(28, 27, 31, .10);
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141716; --surface: #1D2120; --ink: #ECE8DF; --text: #C8C6BE; --muted: #9FA39C;
    --line: #6F6F6A; --border: #2C302F; --brand: #409E94; --brand-soft: #1F2A28;
    --trace-alpha: .30; --shadow: 0 10px 28px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[lang="vi"] [lang="en"], html[lang="en"] [lang="vi"] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* nền: mạch kiến vẽ bằng app.js */
.field { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
body { position: relative; }
.field .tr { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: var(--trace-alpha); }
.field .via { fill: var(--bg); stroke: var(--line); stroke-width: 2; opacity: calc(var(--trace-alpha) + .12); transition: fill .4s, stroke .4s, opacity .4s; }
.field .via.lit { fill: var(--brand); stroke: var(--brand); opacity: .9; }
.field .ant circle, .ant-dots circle { fill: var(--brand); }
.field .trail { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 7; transition: opacity 1.2s; }
.field .trail.gone { opacity: 0; }
.field .crumb { fill: var(--bg); stroke: var(--brand); stroke-width: 2; }

.top, .stage, .foot { position: relative; z-index: 1; width: min(1120px, 100% - 40px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { height: 30px; width: auto; }
.logo .k { fill: var(--brand); }
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang button {
  min-width: 44px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 6vh, 72px) 0 40px; pointer-events: none; }
.stage > * { pointer-events: auto; max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: live 2.2s ease-out infinite; }
@keyframes live { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

h1 { margin: 18px 0 0; font-weight: 700; font-size: clamp(46px, 9.2vw, 120px); line-height: .98; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.ant-dots { display: inline-block; width: .62em; height: .372em; margin-left: .08em; vertical-align: baseline; overflow: visible; }
.ant-dots circle { animation: gait .9s steps(2) infinite; }
.ant-dots circle:nth-child(2) { animation-delay: .3s; }
.ant-dots circle:nth-child(3) { animation-delay: .6s; }
@keyframes gait { 50% { transform: translateY(-2.2px); } }
.lead { margin: 22px 0 0; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--text); text-wrap: pretty; }

.apps { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .apps { grid-template-columns: 1fr 1fr; } }
.app {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 92px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface); text-decoration: none;
  transition: transform .2s cubic-bezier(.2, 0, 0, 1), box-shadow .2s cubic-bezier(.2, 0, 0, 1), border-color .2s;
}
@media (hover: hover) { .app:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line); } }
.app:active { transform: scale(.99); }
.app svg { width: 46px; height: 46px; flex: none; color: var(--ink); overflow: visible; }
.hm-line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hm-dot { fill: var(--brand); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .app:hover .hm-dot { transform: translate(1.6px, -1.6px); } }
.app-name { display: block; font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.app-name small { margin-left: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.app-desc { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--text); }
.app-go { margin-left: auto; color: var(--brand); font-size: 20px; transition: transform .2s; }
.app:hover .app-go { transform: translateX(3px); }

.hint { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.hint svg { width: 34px; height: 12px; flex: none; }
.hint path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 6; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 18px 0 24px; font: 500 12px/1.5 var(--mono); color: var(--muted); letter-spacing: .03em; }

@media (prefers-reduced-motion: reduce) {
  .live::after, .ant-dots circle { animation: none; }
  .app, .app-go, .hm-dot, .lang button, .field .via, .field .trail { transition: none; }
}
.field .crumb { transition: fill .3s, opacity 1.2s; }
.field .crumb.lit { fill: var(--brand); }
.field .crumb.gone { opacity: 0; }
