/*
  Trang chờ 12work.asia — một màn, nền video đường hầm. Token, chữ và nút lấy từ hero tối
  của 12work-thu/assets/site.css để lúc đổi sang site thật không bị lệch tông.
  Stack Sans Notch (.brand) không có dấu tiếng Việt — chỉ gắn vào chữ không dấu.
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #05080B;
  --line: rgba(255,255,255,.14);
  --fg: #FFFFFF;
  --fg-2: rgba(255,255,255,.66);
  --fg-3: rgba(255,255,255,.42);
  --accent: #58B5DC;
  --pad: 16px;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: 'Be Vietnam Pro', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.brand { font-family: 'Stack Sans Notch', 'Be Vietnam Pro', sans-serif; font-weight: 600; letter-spacing: -.01em; }
.dot { color: var(--accent); }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: fadeSlideUp .8s ease both; }
.d1 { animation-delay: .2s; } .d2 { animation-delay: .4s; } .d3 { animation-delay: .7s; } .d4 { animation-delay: .9s; } .d5 { animation-delay: 1.1s; }

/* ── Khung một màn ── */
.root { position: relative; background: #000; }
.first { position: relative; z-index: 10; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% center; }
/* Phủ tối phía trái + đáy để chữ đọc được trên mọi khung video */
.root::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,8,11,.72) 0%, rgba(5,8,11,.25) 55%, transparent 80%),
              linear-gradient(transparent 60%, rgba(5,8,11,.85)),
              rgba(5,8,11,.4); }
@media (min-width: 768px) {
  .root::after { background: linear-gradient(90deg, rgba(5,8,11,.72) 0%, rgba(5,8,11,.25) 55%, transparent 80%),
                             linear-gradient(transparent 60%, rgba(5,8,11,.85)); }
}

.nav, .hero, .foot { position: relative; z-index: 10; width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.logo { height: 39px; width: auto; display: block; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.links { list-style: none; display: flex; gap: 16px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
/* logo to nên màn hẹp không đủ chỗ xếp ngang: hai tab xuống dưới logo */
@media (max-width: 767px) { .nav { grid-template-columns: 1fr; row-gap: 12px; } }

.hero { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 56px; padding-bottom: 28px; }
.top { max-width: 720px; }
.badge { font-size: 12px; color: rgba(255,255,255,.9); margin-bottom: 16px; }
h1 { font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
h1 em { font-style: normal; color: var(--accent); }
.sub { margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--fg-2); max-width: 420px; }

.acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta, .ghost { display: inline-flex; align-items: center; gap: 8px; height: 42px; border-radius: 999px; padding: 0 20px; font-size: 14px; font-weight: 500; transition: transform .2s, background .2s, border-color .2s; }
.cta { background: #fff; color: #000; }
.ghost { border: 1px solid var(--line); color: #fff; background: rgba(5,8,11,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cta:hover, .ghost:hover { transform: scale(1.04); }
.ghost:hover { border-color: rgba(255,255,255,.4); }
.cta:focus-visible, .ghost:focus-visible, .social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Chân trang: ba cột như trang thật (6fr 2fr 2fr), một cột trên mobile ── */
/* Nền video cố định phía sau; footer có lớp nền tối riêng để chữ không chìm vào ảnh khi cuộn tới */
.foot-wrap { position: relative; z-index: 10; padding-top: 120px; background: linear-gradient(to bottom, rgba(5,8,11,0), rgba(5,8,11,.94) 120px); }
.foot { padding-top: 56px; padding-bottom: 36px; }
.foot-row { display: grid; grid-template-columns: 1fr; gap: 32px; }
.foot-logo { height: 40px; width: auto; display: block; }
.foot-slogan { margin-top: 20px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.foot-desc { margin-top: 14px; max-width: 46ch; font-size: 15px; line-height: 1.6; }
.social { list-style: none; display: flex; gap: 12px; margin-top: 28px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.social a:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-col h3 { font-weight: 600; font-size: 16px; margin-bottom: 20px; }
.foot-col ul { list-style: none; }
.foot-col li { font-size: 15px; line-height: 1.4; }
.foot-col li + li { margin-top: 12px; }
.foot-col a, .foot-col .copy-mail { transition: color .2s; }
.foot-col a:hover, .foot-col .copy-mail:hover { color: var(--accent); }
.foot-col .copy-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.4; text-align: left; }
.foot-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.copy { color: var(--fg-3); }
.foot-end a { color: #fff; white-space: nowrap; }

@media (min-width: 768px) {
  :root { --pad: 32px; }
  .logo { height: 42px; }
  .hero { padding-top: 80px; padding-bottom: 48px; gap: 80px; }
  h1 { font-size: 56px; }
  .sub { font-size: 16px; }
  .foot-row { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  /* tiêu đề 4 dòng trên mobile, gộp còn 2 dòng trên màn rộng */
  .br-m { display: none; }
}
@media (min-width: 1000px) {
  .foot-row { grid-template-columns: 6fr 2fr 2fr; gap: 48px; }
  .foot-brand { grid-column: auto; }
}
@media (min-width: 1200px) {
  :root { --pad: 48px; }
  .top { max-width: 960px; }
  h1 { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .cta:hover, .ghost:hover { transform: none; }
}
