/* ==========================================================
   BUM789 Landing – coded from landing_bumdoc.psd (1920 x 3400)
   ========================================================== */

@font-face {
  font-family: "UTM Avo";
  src: url("../fonts/utm-avo.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "UTM Avo";
  src: url("../fonts/utm-avobold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000712;
  --white: #fff;
  --text: rgba(255, 255, 255, .92);
  --gold-bar: #fbd494;
  --pink-bar: #e57ba5;
  --blue-line: rgba(71, 136, 201, .6);
  --container: 1208px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "UTM Avo", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- gold gradient text (PSD gradient overlays) ---------- */
.gold-1, .gold-2, .gold-3 {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f4dca7;
}
.gold-1 { background-image: linear-gradient(180deg, #fffdf8 0%, #fffdf8 28%, #f4dca7 41%, #d99f59 110%); }
.gold-2 { background-image: linear-gradient(180deg, #fffff8 0%, #fefaba 47%, #ebbf70 74%, #f8cc7e 100%); }
.gold-3 { background-image: linear-gradient(180deg, #f8e7ae 0%, #e8be49 60%, #ebaa39 100%); }
.gold-1, .gold-2 { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.gold-3 { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28)); }

/* ---------- pill (CSKH / Nhóm / badges) ---------- */
.pill, .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  padding: 0 22px;
  border-radius: 19px;
  border: 2px solid #2f8cff;
  background: linear-gradient(180deg, rgba(10, 32, 74, .75), rgba(3, 12, 34, .75));
  box-shadow: 0 0 10px rgba(47, 140, 255, .55), inset 0 0 8px rgba(47, 140, 255, .45);
  color: #fff;
  white-space: nowrap;
}
.pill { width: 122px; font-size: 14.4px; transition: transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 0 16px rgba(47, 140, 255, .9), inset 0 0 8px rgba(47, 140, 255, .6); }
.pill img { flex: none; }
.badge { min-width: 151px; font-size: 14.4px; font-weight: 700; padding: 0 16px; }
.badge small { font-size: 12px; margin-right: -6px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero-wrap {
  position: relative;
  min-height: 1140px;
  background: var(--bg) url("../img/hero-bg.jpg") center top / 1920px 1160px no-repeat;
}
.hero { position: relative; padding-top: 21px; }
.hero-2 { position: relative; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
}
.logo img { width: 239px; }

.tagline {
  margin-top: -6px;
  text-align: center;
  font-size: 14px;
  line-height: 21px;
}

.hero-main {
  position: relative;
  display: grid;
  grid-template-columns: 261px 1fr 261px;
  align-items: start;
  margin-top: 4px;
  padding: 0 4px;
}
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 4px -30px 0;
  pointer-events: none;
}
.hero-visual img { width: 720px; max-width: none; }

/* side panels */
.panel {
  position: relative;
  z-index: 1;
  width: 261px;
  min-height: 332px;
  padding: 12px 6px 12px 14px;
  background: url("../img/panel.png") center / 100% 100% no-repeat;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 26px;
  font-size: 20.3px;
  line-height: 1;
}
.steps { margin-top: 16px; }
.steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 0 0 12px 5px;
}
.steps li + li { padding-top: 13px; border-top: 3px solid var(--blue-line); margin-right: 8px; }
.num {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 53px;
  margin-top: -2px;
  background: url("../img/num.png") center / contain no-repeat;
  font-weight: 700;
  font-size: 24.4px;
  line-height: 1;
}
.steps p {
  font-size: 14px;
  line-height: 21px;
  padding-top: 1px;
}
.steps p b { display: block; font-size: 15px; }
.steps .domain { display: block; font-size: 20.3px; line-height: 26px; margin-top: 2px; }
.dl { margin: -3px 12px 0 auto; transition: transform .2s; }
.dl:hover { transform: scale(1.08); }

.panel--right .steps { margin-top: 12px; }
.panel--right .steps li { padding-bottom: 7px; }
.panel--right .steps li + li { padding-top: 10px; }
.panel--right .steps p { padding-top: 4px; }
.panel-note {
  padding: 8px 5px 0;
  font-size: 12px;
  line-height: 21px;
  border-top: 3px solid var(--blue-line);
  margin-right: 8px;
}

/* CTA buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin-top: 22px;
}
.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 283px;
  height: 63px;
  padding: 0 20px 0 26px;
  background: center / 100% 100% no-repeat;
  transition: transform .2s, filter .2s;
}
.cta-btn:hover { transform: translateY(-3px); filter: brightness(1.12); }
.cta-btn--web { background-image: url("../img/cta-web.png"); }
.cta-btn--android { background-image: url("../img/cta-android.png"); color: #1a0c0a; padding-left: 31px; }
.cta-btn span { flex: 1; text-align: center; line-height: 1; }
.cta-btn b { display: block; font-size: 16px; }
.cta-btn small { display: block; margin-top: 5px; font-size: 11px; }
.cta-btn--android small { color: #341c12; }
.cta-btn--ios { background-image: url("../img/cta-ios.png"); }
.show-ios .cta-btn--android,
.show-android .cta-btn--ios { display: none; }
.cta-arrow { flex: none; }

/* What's inside */
.what {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 53px;
  margin-top: 18px;
  font-size: 26px;
  line-height: 36px;
}
.what::before, .what::after {
  content: "";
  width: 173px;
  height: 3px;
  background: url("../img/divider.png") center / 100% 100% no-repeat;
}
.what::after { transform: scaleX(-1); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 289px);
  justify-content: space-between;
  margin-top: -6px;
}
.card {
  height: 186px;
  padding: 104px 12px 0;
  text-align: center;
  background: center top / 100% 100% no-repeat;
}
.card:nth-child(1) { background-image: url("../img/card-1.png"); }
.card:nth-child(2) { background-image: url("../img/card-2.png"); }
.card:nth-child(3) { background-image: url("../img/card-3.png"); padding-top: 94px; }
.card:nth-child(4) { background-image: url("../img/card-4.png"); }
.card h4 { font-size: 17px; line-height: 24px; }
.card p { margin-top: 6px; font-size: 13px; line-height: 16px; }

.banner {
  width: 1536px;
  max-width: calc(100% - 32px);
  margin: 34px auto 0;
}

/* ==========================================================
   FEATURE SECTIONS
   ========================================================== */
.feature { padding: 0; }
.feature--live { padding-top: 58px; }
.feature--movie { padding-top: 62px; padding-bottom: 120px; }

.feature-grid {
  display: grid;
  grid-template-columns: 650px 1fr;
  align-items: start;
}
.feature-grid--rev { grid-template-columns: 1fr 650px; }

.feature-text { padding-left: 4px; }
.feature-text h2 {
  margin-top: 26px;
  font-size: 47px;
  line-height: 60px;
  font-weight: 700;
}
.feature-text .lead {
  margin-top: 14px;
  font-size: 17.6px;
  line-height: 27px;
  color: var(--text);
  max-width: 632px;
}
.feature--live .lead { max-width: 600px; }

.items { margin-top: 36px; display: grid; gap: 12px; }
.items li {
  position: relative;
  padding: 16px 20px 15px;
  font-size: 15px;
  line-height: 24px;
  border-left: 4px solid var(--gold-bar);
  background: linear-gradient(90deg, rgba(255, 253, 248, .045) 0%, rgba(255, 253, 248, .035) 60%, rgba(255, 253, 248, 0) 100%);
  transition: background .25s;
}
.items li:hover { background: linear-gradient(90deg, rgba(255, 253, 248, .09), rgba(255, 253, 248, 0)); }
.items li b { display: block; font-size: 17.6px; }
.items--pink li { border-left-color: var(--pink-bar); }

.checks { margin-top: 24px; }
.checks li {
  position: relative;
  padding-left: 33px;
  font-size: 17px;
  line-height: 34px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 22px;
  height: 22px;
  background: url("../img/check.png") center / contain no-repeat;
}

.feature-media { display: flex; justify-content: center; }
.feature:not(.feature--live) .feature-media { justify-content: flex-end; padding-right: 70px; }
.feature--live .feature-media { justify-content: flex-start; padding-left: 94px; }
.feature.feature--movie .feature-media { padding-right: 0; gap: 22px; }
.feature-media img { width: 321px; }
.feature-media--duo img { width: 213px; }

/* reveal on scroll (enabled by main.js) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1260px) {
  .hero-main { grid-template-columns: 240px 1fr 240px; }
  .panel { width: 240px; }
  .hero-visual { margin: 4px -60px 0; }
  .hero-visual img { width: 620px; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .card { background-size: 100% 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .feature-grid--rev { grid-template-columns: 1fr 1fr; }
  .feature:not(.feature--live) .feature-media { padding-right: 0; justify-content: center; }
  .feature--live .feature-media { padding-left: 0; justify-content: center; }
}

@media (max-width: 991px) {
  .hero-wrap { min-height: 0; padding-bottom: 40px; background-size: auto 1160px; }
  /* mobile/tablet: logo -> ảnh chính -> nút tải -> 2 bảng */
  .hero > .container { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; justify-items: center; }
  .hero > .container > * { grid-column: 1 / -1; }
  .hero-main { display: contents; }
  .hero-visual { grid-column: 1 / -1; order: 1; margin: 4px 0 0; }
  .cta { order: 2; margin: 16px 0 24px; width: 100%; }
  .panel { order: 3; grid-column: auto; margin-bottom: 20px; }
  .hero-visual img { width: 100%; max-width: 720px; }
  .panel { width: 100%; max-width: 320px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 10px; }
  .card { height: auto; aspect-ratio: 289 / 186; }
  .banner { margin-top: 30px; }

  .feature-grid, .feature-grid--rev { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid--rev .feature-media { order: 2; }
  .feature-text h2 { font-size: 38px; line-height: 50px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { gap: 12px; }
  .pill { width: auto; height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .logo img { width: 150px; }
  .tagline { margin-top: 4px; font-size: 13px; }

  .hero > .container { grid-template-columns: 1fr; }
  .panel { max-width: 340px; grid-column: 1 / -1; }

  .cta { flex-direction: column; align-items: center; gap: 12px; }
  .cta-btn { width: 100%; max-width: 320px; height: 63px; }

  .what { gap: 12px; font-size: 21px; white-space: nowrap; }
  .what::before, .what::after { width: 40px; flex: none; }

  .cards { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .card { padding-top: 32%; padding-top: calc(104 / 289 * 100%); }
  .card:nth-child(3) { padding-top: calc(94 / 289 * 100%); }

  .feature { padding-top: 40px; }
  .feature--movie { padding-bottom: 70px; }
  .feature-text h2 { margin-top: 20px; font-size: 29px; line-height: 38px; }
  .feature-text .lead { font-size: 15.5px; line-height: 24px; }
  .items { margin-top: 24px; }
  .items li { padding: 12px 14px; font-size: 14px; line-height: 22px; }
  .items li b { font-size: 16px; }
  .checks li { font-size: 15px; line-height: 30px; }
  .checks li::before { top: 4px; }
  .feature-media img { width: 72%; max-width: 321px; }
  .feature-media--duo { gap: 12px !important; }
  .feature-media--duo img { width: 48%; }
}

/* ==========================================================
   KÉO THEO TỪNG PHẦN – mỗi lần kéo nhảy tới đầu phần kế tiếp (bật bởi main.js)
   ========================================================== */
html.fp-on, html.fp-on body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.fp-on .fp {
  transition: transform .8s cubic-bezier(.77, 0, .18, 1);
}

/* chấm điều hướng bên phải */
.fp-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}
html.fp-on .fp-dots { display: flex; }
@media (max-width: 991px) { html.fp-on .fp-dots { display: none; } }
.fp-dots button {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all .3s;
}
.fp-dots button:hover { border-color: #fbd494; }
.fp-dots button.is-active {
  border-color: #fbd494;
  background: #fbd494;
  box-shadow: 0 0 10px rgba(251, 212, 148, .8);
  transform: scale(1.2);
}
.fp-dots button span {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(6px, -50%);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(3, 12, 34, .9);
  color: #fff;
  font: 700 12px/1.4 "UTM Avo", sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
}
.fp-dots button:hover span { opacity: 1; transform: translate(0, -50%); }

/* mũi tên gợi ý kéo xuống */
.fp-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  display: none;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: fpBounce 1.6s ease-in-out infinite;
}
.fp-hint::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #fbd494;
  border-bottom: 3px solid #fbd494;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(251, 212, 148, .7));
}
html.fp-on .fp-hint { display: block; }
html.fp-on .fp-hint.is-hidden { opacity: 0; pointer-events: none; }
@keyframes fpBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html.fp-on .fp { transition-duration: .3s; }
  .fp-hint { animation: none; }
}
