/* bia.ai.vn: trang giới thiệu trình duyệt BIA. Màu lấy từ logo cốc vại:
   xanh thuỷ tinh, vàng bia, trắng bọt. Không dùng font hay tài nguyên ngoài. */

:root {
  color-scheme: light;
  --green-950: #08261a;
  --green-900: #0d3b23;
  --green-800: #11542f;
  --green-600: #2e9a63;
  --green-400: #6fd6a8;
  --green-100: #e3f5ec;
  --beer: #f6b726;
  --beer-hi: #ffd84a;
  --beer-lo: #e3960f;
  --foam: #fff8e6;
  --foam-2: #f6eccd;
  --ink: #15211b;
  --ink-2: #3c4b43;
  --muted: #66766d;
  --line: #e4e9e5;
  --card: #ffffff;
  --page: #fbfaf5;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(8 38 26 / 6%), 0 12px 32px -8px rgb(8 38 26 / 16%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.18;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--beer);
  color: var(--green-950);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--beer);
  outline-offset: 3px;
}

/* --- Nút --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 15px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 18px;
}

.btn-beer {
  background: linear-gradient(180deg, var(--beer-hi), var(--beer) 55%, var(--beer-lo));
  box-shadow: 0 1px 0 rgb(255 255 255 / 45%) inset, 0 8px 22px -6px rgb(227 150 15 / 55%);
  color: var(--green-950);
}

.btn-beer:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 45%) inset, 0 12px 28px -6px rgb(227 150 15 / 70%);
}

.btn-ghost {
  border: 1.5px dashed #c8d3cc;
  color: var(--muted);
  cursor: default;
}

.ic {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Thanh trên --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 59 35 / 0%);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.nav.solid {
  background: rgb(13 59 35 / 92%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}

.nav .brand {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: rgb(255 255 255 / 82%);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

/* --- Hero --- */

.hero {
  position: relative;
  margin-top: -68px;
  padding: 132px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(46 154 99 / 45%), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
  color: #fff;
}

.hero-glow {
  position: absolute;
  right: -10%;
  bottom: -35%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(246 183 38 / 32%), rgb(246 183 38 / 0%));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--green-400);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 4.7vw, 60px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hl {
  background: linear-gradient(180deg, var(--beer-hi), var(--beer) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34em;
  margin-top: 22px;
  color: rgb(255 255 255 / 80%);
  font-size: 19px;
}

.cta {
  margin-top: 34px;
}

.cta-meta {
  margin-top: 12px;
  color: rgb(255 255 255 / 64%);
  font-size: 14px;
}

.os-note {
  max-width: 30em;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 86%);
  font-size: 14px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
  font-weight: 600;
}

.platforms li.on {
  border-color: rgb(111 214 168 / 60%);
  color: #fff;
}

.platforms em {
  color: rgb(255 255 255 / 48%);
  font-style: normal;
  font-weight: 500;
}

/* Cửa sổ minh hoạ */

.hero-shot {
  position: relative;
}

.window {
  position: relative;
  border-radius: 14px;
  background: #f3f5f2;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 40px 80px -20px rgb(0 0 0 / 55%);
  color: var(--ink);
}

.win-top {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 40px;
  padding: 0 12px;
  border-radius: 14px 14px 0 0;
  background: #e2e8e3;
}

.dots {
  display: flex;
  gap: 7px;
  align-self: center;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 62%;
  padding: 7px 14px;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  background: #f3f5f2;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab img {
  width: 14px;
  height: 14px;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #dde3de;
}

.url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lock {
  flex: none;
  width: 9px;
  height: 11px;
  border-radius: 2px;
  background: #8a978f;
}

.shield {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 12px;
}

.shield svg {
  width: 14px;
  height: 14px;
  fill: var(--green-600);
}

.win-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 18px;
  background: #fff;
}

.pg-title {
  width: 80%;
  height: 16px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: #cfd8d2;
}

.pg-line {
  height: 8px;
  border-radius: 4px;
  background: #e7ece8;
}

.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }
.w95 { width: 95%; }

.ad-slot {
  display: grid;
  place-items: center;
  height: 70px;
  border: 1.5px dashed #b9d9c7;
  border-radius: 10px;
  background:
    repeating-linear-gradient(-45deg, rgb(46 154 99 / 5%) 0 8px, transparent 8px 16px);
  color: var(--green-600);
  font-size: 11px;
  font-weight: 700;
}

.ad-slot.short {
  height: 44px;
}

.pg-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 13px;
  font-weight: 700;
}

.map-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--beer);
  color: var(--green-950);
  font-size: 10px;
  font-weight: 800;
}

.panel {
  border-left: 1px solid #dde3de;
  background: #eef0ec;
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shields-pop {
  position: absolute;
  left: -28px;
  bottom: 28px;
  width: 230px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -10px rgb(0 0 0 / 35%);
  font-size: 13px;
}

.sp-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-800);
  font-weight: 700;
}

.sp-head svg {
  width: 16px;
  height: 16px;
  fill: var(--green-600);
}

.sp-num {
  margin-top: 6px;
  color: var(--ink-2);
  line-height: 1.4;
}

.sp-num b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
}

/* --- Ba điểm chính --- */

.pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -44px;
}

.pillars article {
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.pi-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--foam);
}

.pi-ic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pillars h2 {
  font-size: 21px;
}

.pillars p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* --- Tính năng --- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  padding: 110px 0 0;
}

.feature-rev .f-copy {
  order: 2;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--green-600);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.soon {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--foam-2);
  color: #8a5a00;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
}

.feature h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.015em;
}

.f-copy > p:not(.kicker) {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 18px;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
}

.ticks li::before {
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%232e9a63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  content: "";
}

.f-visual {
  display: flex;
  justify-content: center;
}

.card {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Shields */

.shields-card {
  background:
    radial-gradient(400px 200px at 100% 0, rgb(246 183 38 / 14%), transparent 70%),
    var(--card);
}

.sc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-head img {
  width: 40px;
  height: 40px;
}

.sc-head div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sc-head span {
  color: var(--green-600);
  font-size: 14px;
  font-weight: 600;
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--green-600);
}

.switch::after {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.sc-count {
  margin: 22px 0 10px;
  color: var(--ink-2);
}

.sc-count b {
  margin-right: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.sc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sc-list em {
  color: var(--muted);
  font-style: normal;
}

/* Bản đồ */

.map-frame {
  position: relative;
  width: min(100%, 430px);
}

.map-frame img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  aspect-ratio: 860 / 1075;
}

.ai-bubble {
  position: absolute;
  left: -40px;
  bottom: 40px;
  width: min(300px, 80%);
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--green-900);
  box-shadow: 0 18px 40px -12px rgb(8 38 26 / 50%);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.ai-bubble .q {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  background: rgb(255 255 255 / 12%);
}

.ai-bubble .a b {
  margin-right: 6px;
  color: var(--beer-hi);
}

/* Thanh địa chỉ + đồng bộ */

.omni {
  padding: 16px;
}

.omni-input {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--green-600);
  border-radius: 14px;
  font-size: 17px;
}

.caret {
  width: 2px;
  height: 20px;
  margin-left: 1px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.omni ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.omni li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 15px;
}

.omni li.sel {
  background: var(--green-100);
}

.o-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.omni small {
  color: var(--muted);
  font-size: 12px;
}

.o-ic {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9aa79f;
  border-radius: 50%;
}

.o-ic.hist {
  border-color: var(--green-600);
  background: conic-gradient(from 0deg, transparent 0 75%, rgb(46 154 99 / 25%) 75% 100%);
}

.o-ic.search {
  border-radius: 50% 50% 50% 0;
}

.sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--foam);
  font-size: 13px;
  font-weight: 700;
}

.dev {
  padding: 6px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(8 38 26 / 12%);
}

.lockline {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 2px dashed #e0c98a;
  padding-top: 0;
  color: #8a5a00;
  font-weight: 600;
  transform: translateY(1px);
}

.lockline svg {
  width: 16px;
  height: 16px;
  margin-top: -2px;
  padding: 1px;
  border-radius: 4px;
  background: var(--foam);
  fill: none;
  stroke: #8a5a00;
  stroke-width: 2;
}

/* --- Tính năng nhỏ --- */

.extras {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 110px 0 0;
}

.extras article {
  padding-top: 18px;
  border-top: 3px solid var(--beer);
}

.extras h3 {
  font-size: 19px;
}

.extras p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* --- Tải về --- */

.download {
  margin-top: 120px;
  padding: 96px 0 104px;
  background:
    radial-gradient(800px 400px at 50% 0, rgb(46 154 99 / 40%), transparent 70%),
    var(--green-950);
  color: #fff;
  text-align: center;
}

.dl-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.download h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
}

.dl-lede {
  margin-top: 10px;
  color: rgb(255 255 255 / 72%);
  font-size: 19px;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.dl-card.main {
  border-color: rgb(246 183 38 / 45%);
  background: rgb(255 255 255 / 7%);
}

.dl-card h3 {
  font-size: 24px;
}

.req {
  margin-bottom: 8px;
  color: rgb(255 255 255 / 66%);
  font-size: 15px;
}

.dl-card .btn-ghost {
  border-color: rgb(255 255 255 / 22%);
  color: rgb(255 255 255 / 60%);
}

.ver {
  color: rgb(255 255 255 / 56%);
  font-size: 13px;
}

.steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: rgb(255 255 255 / 78%);
  font-size: 15px;
}

.steps li + li {
  margin-top: 4px;
}

.steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 10%);
  font: 14px ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Chân trang --- */

.foot {
  padding: 40px 0 48px;
  background: var(--green-950);
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 64%);
  font-size: 14px;
}

.foot-inner {
  display: grid;
  gap: 8px;
}

.foot .brand {
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
}

.foot .small {
  color: rgb(255 255 255 / 44%);
  font-size: 13px;
}

/* --- Màn hình hẹp --- */

@media (max-width: 1080px) {
  .shields-pop {
    left: 12px;
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 112px 0 80px;
  }

  .hero-inner,
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .feature {
    padding-top: 88px;
  }

  .feature-rev .f-copy {
    order: 0;
  }

  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 88px;
  }

  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-bubble {
    left: 12px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .lede,
  .f-copy > p:not(.kicker) {
    font-size: 17px;
  }

  .btn-lg {
    width: 100%;
  }

  .win-body {
    grid-template-columns: minmax(0, 1fr);
    height: 340px;
  }

  .page {
    display: none;
  }

  .panel {
    border-left: 0;
  }

  .shields-pop {
    left: auto;
    right: 10px;
    bottom: 10px;
    width: 200px;
  }

  .extras {
    grid-template-columns: minmax(0, 1fr);
  }

  .download {
    margin-top: 88px;
    padding: 72px 0 80px;
  }

  .dl-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .caret {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* --- Trang 404 --- */

.notfound {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  color: #fff;
}

.nf {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px 16px;
  text-align: center;
}

.nf h1 {
  font-size: clamp(32px, 6vw, 48px);
}

.nf p {
  margin-bottom: 14px;
  color: rgb(255 255 255 / 72%);
}

.nf .btn {
  width: auto;
}
