@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-vietnamese-400-normal.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: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-vietnamese-600-normal.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: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-vietnamese-700-normal.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; }

:root {
  color-scheme: dark;
  --bg: #0B1424;
  --bg-deep: #08101D;
  --surface: #0F1A2C;
  --surface-2: #101C30;
  --line: #16233A;
  --edge: #1B2A44;
  --edge-2: #24324A;
  --text: #F2F6FC;
  --muted: #A3B1C7;
  --faint: #8C9BB3;
  --blue: #0068FF;
  --blue-edge: #3D8BFF;
  --blue-soft: #4D94FF;
  --link: #8DBBFF;
  --green: #00875A;
  --live: #2BD47D;
  --ok: #3DDC97;
  --warn: #F5A524;
  --warn-text: #F5C46B;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.3, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
code { font: 13px var(--mono); color: #DDE7F5; }
svg { flex: 0 0 auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(11, 20, 36, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(30, 45, 71, .7); }
.header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.lockup { display: inline-flex; align-items: flex-end; gap: 3px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.lockup span { font-size: 20px; line-height: 22px; }
.spacer { flex: 1 1 auto; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid #1E2D47; }
.lang button { min-width: 44px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); font: 600 13px Inter, sans-serif; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease), background-color 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px var(--blue-edge) inset, 0 14px 40px -10px rgba(0, 104, 255, .7); }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--blue-edge) inset, 0 18px 48px -10px rgba(0, 104, 255, .85); }
.btn-ghost { background: var(--surface-2); border: 1px solid #1E2D47; color: var(--text); }
.btn-small { height: 40px; padding: 0 14px; font-size: 14px; gap: 8px; background: transparent; }
.brand { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -10px; border-radius: 999px; background: #fff; }

/* Hero */
.hero { position: relative; overflow-x: clip; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.glow { position: absolute; left: 50%; width: 1200px; height: 760px; margin-left: -600px; background: radial-gradient(closest-side, rgba(0, 104, 255, .3), rgba(0, 104, 255, 0)); pointer-events: none; }
.hero .glow { top: 380px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px 4px 6px; border-radius: 999px; background: rgba(0, 104, 255, .12); border: 1px solid rgba(61, 139, 255, .35); color: #BBD5FF; font-size: 13px; font-weight: 600; }
.pill b { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.hero h1 { margin-top: 28px; max-width: 900px; font-size: clamp(46px, 7.4vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.accent { color: var(--blue-soft); }
.lead { margin-top: 24px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Demo */
.demo { position: relative; width: 100%; max-width: 1040px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.browser { border-radius: 16px; border: 1px solid #1E2D47; background: #0A1220; overflow: hidden; box-shadow: 0 50px 140px -50px rgba(0, 104, 255, .55), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.tabbar { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px 0; background: #070E1A; }
.lights { display: flex; gap: 6px; padding: 0 8px 14px 2px; }
.lights i { width: 10px; height: 10px; border-radius: 999px; background: #26344D; }
.tab { flex: 0 1 200px; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px 10px 0 0; font-size: 13px; color: var(--faint); }
.tab.active { background: var(--surface-2); color: var(--text); }
.tab .fav { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }
.tab .name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 999px; background: var(--live); box-shadow: 0 0 0 3px rgba(43, 212, 125, .18); transition: background-color 220ms ease, box-shadow 220ms ease; }
.is-off .kickable .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 165, 36, .18); }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid #1E2D47; }
.address { flex: 1 1 auto; min-width: 0; height: 32px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #0A1220; color: var(--faint); font: 13px var(--mono); }
.ext { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 104, 255, .16); transition: opacity 220ms ease; }
.ext .count { position: absolute; right: -5px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--green); border: 2px solid var(--surface-2); color: #fff; font-size: 10px; font-weight: 700; line-height: 12px; text-align: center; }
.is-off .ext { opacity: .45; }
.is-off .ext .count, .is-off .popup .count { visibility: hidden; }
.page { position: relative; display: flex; height: 460px; background: var(--bg); }
.sidebar { flex: 0 0 34%; max-width: 300px; border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; }
.row::before { content: ""; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: #16243B; }
.row span { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.row span::before, .row span::after { content: ""; display: block; height: 9px; border-radius: 6px; background: #1C2C47; width: var(--a); }
.row span::after { height: 8px; background: #142238; width: var(--b); }
.chat { flex: 1 1 auto; min-width: 0; padding: 28px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.chat i { height: 34px; border-radius: 14px; background: #16243B; width: var(--w); }
.chat i.me { align-self: flex-end; background: #0B3D91; }
.kicked { position: absolute; inset: 0; background: rgba(7, 14, 26, .82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 260ms; }
.is-off .kicked { opacity: 1; visibility: visible; }
/* Mirrors Zalo Web's own "open in another tab" dialog. */
.kicked-card { position: absolute; left: 24px; bottom: 24px; width: 560px; max-width: calc(100% - 48px); border-radius: 12px; background: #242528; border: 1px solid #3B3C40; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); overflow: hidden; color: #E9E9EB; }
.kicked-card strong { display: block; padding: 18px 22px; border-bottom: 1px solid #3B3C40; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kicked-card p { padding: 18px 22px 0; font-size: 15px; line-height: 1.4; color: #DCDCDF; }
.kicked-btn { display: block; width: max-content; margin: 18px 22px 20px auto; padding: 11px 22px; border-radius: 10px; background: #2F6BF5; color: #fff; font-size: 16px; font-weight: 600; }
.popup { position: absolute; top: 98px; right: clamp(10px, 2vw, 22px); width: 280px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--edge-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.popup-head { height: 48px; display: flex; align-items: center; gap: 8px; }
.popup-head .lockup span { font-size: 18px; line-height: 20px; }
.popup .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
.popup-body { position: relative; height: 150px; display: grid; place-items: center; }
.try { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity 200ms ease; }
.try::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); }
.touched .try { opacity: 0; }
.switch::after { content: ""; position: absolute; inset: -7px; border-radius: 999px; border: 2px solid rgba(77, 148, 255, .8); opacity: 0; pointer-events: none; }
.switch { position: relative; width: 128px; height: 68px; padding: 0; border-radius: 999px; cursor: pointer; border: 1px solid var(--blue-edge); background: var(--blue); box-shadow: 0 0 0 6px rgba(0, 104, 255, .1), 0 14px 40px -6px rgba(0, 104, 255, .6); transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.knob { position: absolute; top: 5px; left: 65px; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: left 220ms var(--ease), background-color 220ms ease, color 220ms ease; }
.switch[aria-checked="false"] { border-color: var(--edge-2); background: #18243A; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.switch[aria-checked="false"] .knob { left: 5px; background: #2C3A52; color: #7F8EA8; }
.status { padding-bottom: 14px; text-align: center; font-size: 13px; color: var(--link); }
.is-off .status { color: var(--warn-text); }
.status-off, .is-off .status-on { display: none; }
.is-off .status-off { display: inline; }
.popup-foot { height: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--faint); }
.popup-foot b { color: var(--link); font-weight: 600; }
.hint { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section.deep { background: var(--bg-deep); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--link); text-transform: uppercase; }
.section h2 { margin-top: 14px; max-width: 720px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.card { border-radius: 20px; background: var(--surface); border: 1px solid var(--edge); padding: 28px; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.grid { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }
.grid > * { flex: 1 1 280px; min-width: 0; }

.flow { display: flex; align-items: center; justify-content: center; gap: 12px; }
.flow-stack { display: flex; flex-direction: column; gap: 10px; }
.node { width: 150px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--edge-2); font-size: 15px; font-weight: 600; text-align: center; }
.node small { display: block; margin-top: 4px; font: 400 12px var(--mono); color: var(--faint); }
.node.hub { width: 190px; padding-block: 18px; background: linear-gradient(180deg, #0D3B8F, #0A2A66); border-color: var(--blue-edge); box-shadow: 0 20px 50px -20px rgba(0, 104, 255, .8); font-size: 16px; font-weight: 700; }
.node.hub small { color: #BBD5FF; }
.node.server { width: 170px; padding-block: 18px; }
.link { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 160px; color: var(--blue-edge); }
.link span { font: 12px var(--mono); color: var(--link); }
.link svg { width: 100%; height: 12px; }
:lang(vi) .link span, :lang(vi) .node small { font-family: inherit; }

.bento { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.bento-row { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 260px; min-width: 0; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.tile h3 { font-size: 22px; }
.hub-tile { gap: 40px; }
.hub-tile p { max-width: 680px; }
.badge-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(0, 104, 255, .16); color: var(--blue-soft); }
.big { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--blue-soft); }
.tab-count { display: flex; align-items: center; gap: 10px; height: 48px; font-size: 15px; color: var(--faint); }
.tab-count b { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 18px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > :first-child { flex: 1 1 380px; min-width: 0; }
.split > :last-child { flex: 1 1 420px; min-width: 0; }
.split .lead-sm { margin-top: 20px; max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.more { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.checks { border-radius: 24px; padding: 8px 28px; }
.check { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--edge); }
.check:last-child { border-bottom: 0; }
.check svg { margin-top: 2px; color: var(--ok); }
.check strong { display: block; font-size: 16px; font-weight: 600; }
.check p { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--faint); }

.limits > * { flex-basis: 420px; background: transparent; }
.limits h3 { font-size: 18px; }
.limits p { margin-top: 8px; }

.install > * { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: 24px; }
.install h3 { font-size: 22px; }
.install p { margin-top: 0; }
.install .btn { margin-top: auto; }
.steps { margin: 0 0 8px; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.steps li + li { margin-top: 8px; }
.install .note { font-size: 14px; color: var(--faint); }

.footer { border-top: 1px solid var(--line); }
.footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--faint); }
.footer-brand .lockup span { font-size: 17px; line-height: 19px; }
.footer-brand a:not(.lockup) { text-decoration: none; font-weight: 600; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

/* Privacy page */
.doc { padding: clamp(56px, 8vw, 96px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-top: 14px; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.doc h2 { margin-top: 40px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc li b { color: var(--text); font-weight: 600; }
.doc .intro { margin-top: 20px; font-size: 18px; }

@media (max-width: 760px) {
  .flow { flex-direction: column; }
  .link { width: 100%; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 0 12px; }
  .link span { grid-column: 3; grid-row: 1; }
  .link svg { grid-column: 2; grid-row: 1; width: 40px; transform: rotate(90deg); }
  .flow-stack { flex-direction: row; }
  .flow-stack .node { width: 130px; }
}
@media (max-width: 560px) {
  .page { height: 520px; }
  .sidebar { flex-basis: 30%; padding-inline: 10px; }
  .row { gap: 8px; }
  .row::before { width: 28px; height: 28px; }
  .chat { padding: 20px 14px; }
  .popup { right: 8px; }
  .kicked-card { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .kicked-card strong { padding: 14px 16px; font-size: 15px; }
  .kicked-card p { padding: 14px 16px 0; font-size: 14px; }
  .kicked-btn { margin: 14px 16px 16px auto; padding: 9px 18px; font-size: 15px; }
  .tile, .card { padding: 24px; }
  .checks { padding: 4px 20px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.28, 1.5); } }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
@keyframes nudge { 0%, 78%, 100% { transform: none; } 84% { transform: translateX(-8px); } 90% { transform: translateX(3px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise 700ms var(--ease) both; }
  .hero .wrap > :nth-child(2) { animation-delay: 60ms; }
  .hero .wrap > :nth-child(3) { animation-delay: 120ms; }
  .hero .wrap > :nth-child(n+4) { animation-delay: 180ms; }
  .demo:not(.touched) .switch::after { animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
  .demo:not(.touched) .try { animation: bob 1.4s ease-in-out infinite; }
  .demo:not(.touched) .knob { animation: nudge 3.6s ease-in-out 1.2s infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
