/* ==========================================================================
   BJ88 Đá Gà — one-screen landing page
   Arena-noir: charcoal night, gold lacquer, blood red.
   ========================================================================== */
:root {
  --ink: #070908;
  --bone: #f6f1e7;
  --bone-dim: #d3ccbc;
  --muted: #9aa39c;
  --dim: #7d8781;
  --red: #e5202f;
  --red-2: #ff4a54;
  --red-soft: #ff8a8f;
  --gold: #f3c55a;
  --line: rgba(246, 241, 231, 0.1);
  --line-2: rgba(246, 241, 231, 0.16);
  --line-gold: rgba(243, 197, 90, 0.28);
  --line-red: rgba(229, 32, 47, 0.36);
  --font-display: 'Barlow Condensed', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shell: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fine film grain over the whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

h1,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--gold);
  color: #1b1305;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ page */
.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.topbar__logo {
  width: auto;
  height: 34px;
}

.topbar__divider {
  width: 1px;
  height: 18px;
  background: var(--line-2);
}

.topbar__label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.topbar__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-2);
  animation: pulse 2.2s ease-out infinite;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media .hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  transform: scale(1.02);
  animation: drift 36s ease-in-out infinite alternate;
}

/* brand mark sitting inside the hero photograph */
.hero__mark {
  position: absolute;
  right: clamp(18px, 3.4vw, 56px);
  bottom: clamp(20px, 4.4vh, 52px);
  z-index: 2;
  width: clamp(132px, 15vw, 232px);
  height: auto;
  opacity: 0.24;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 26px rgba(243, 197, 90, 0.18));
  pointer-events: none;
  animation: rise 1.2s 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__scrim--left {
  background: linear-gradient(
    90deg,
    rgba(7, 9, 8, 0.86) 0%,
    rgba(7, 9, 8, 0.66) 26%,
    rgba(7, 9, 8, 0.34) 46%,
    rgba(7, 9, 8, 0.08) 64%,
    rgba(7, 9, 8, 0) 82%
  );
}

.hero__scrim--vertical {
  background: linear-gradient(
    180deg,
    rgba(7, 9, 8, 0.55) 0%,
    rgba(7, 9, 8, 0.05) 22%,
    rgba(7, 9, 8, 0.05) 62%,
    rgba(7, 9, 8, 0.7) 100%
  );
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(48% 58% at 12% 80%, rgba(229, 32, 47, 0.2), transparent 72%),
    radial-gradient(38% 46% at 72% 10%, rgba(243, 197, 90, 0.12), transparent 72%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(28px, 5vh, 64px);
}

.hero__copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(243, 197, 90, 0.07);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe3a8;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 0 3px rgba(229, 32, 47, 0.18);
}

.hero__title {
  margin-top: clamp(14px, 2.4vh, 22px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe9b4 0%, var(--gold) 48%, #c1902f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__promise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.9em;
  margin-top: clamp(12px, 2vh, 18px);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__promise span {
  display: inline-flex;
  align-items: center;
}

.hero__promise span + span::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-right: 0.9em;
  border-radius: 50%;
  background: rgba(243, 197, 90, 0.55);
}

.hero__lead {
  max-width: 47ch;
  margin-top: clamp(12px, 2vh, 18px);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.62;
  color: var(--bone-dim);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------- keywords */
.kw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 500px;
  margin-top: clamp(18px, 3vh, 28px);
}

.kw__item {
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.05);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--bone-dim);
  white-space: nowrap;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.kw__item:hover {
  border-color: var(--line-gold);
  color: #ffe3a8;
}

.kw__item--hot {
  border-color: var(--line-gold);
  background: rgba(243, 197, 90, 0.1);
  color: #ffe3a8;
}

/* ------------------------------------------------------------------- cta */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(22px, 3.6vh, 34px);
}

.hero__note {
  max-width: 300px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #ff3a45 0%, #d21423 55%, #a90d19 100%);
  color: #fff;
  box-shadow:
    0 18px 38px -18px rgba(229, 32, 47, 0.95),
    0 0 0 1px rgba(255, 120, 128, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px -18px rgba(229, 32, 47, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--primary:hover::after {
  left: 120%;
}

.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--line-gold);
  background: rgba(243, 197, 90, 0.1);
}

.btn--lg {
  padding: 18px 30px;
  font-size: 1rem;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.btn__arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------- age pill */
.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line-red);
  border-radius: 999px;
  color: var(--red-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- foot bar */
.footbar {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.55);
  backdrop-filter: blur(10px);
}

.footbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  font-size: 0.74rem;
  color: var(--dim);
}

.footbar__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* -------------------------------------------------------------- animation */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.07);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 32, 47, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(229, 32, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 32, 47, 0);
  }
}

.rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero {
    display: block;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .hero__media .hero__photo {
    object-position: 72% 42%;
    animation: none;
  }

  .hero__mark {
    right: auto;
    bottom: 10px;
    left: 14px;
    width: clamp(92px, 23vw, 138px);
    opacity: 0.42;
  }

  .hero__scrim--left {
    background: linear-gradient(
      180deg,
      rgba(7, 9, 8, 0.35) 0%,
      rgba(7, 9, 8, 0) 22%,
      rgba(7, 9, 8, 0.45) 62%,
      rgba(7, 9, 8, 0.92) 88%,
      var(--ink) 100%
    );
  }

  .hero__scrim--vertical {
    display: none;
  }

  .hero__glow {
    background: radial-gradient(60% 40% at 18% 74%, rgba(229, 32, 47, 0.16), transparent 72%);
  }

  .hero__inner {
    padding-block: 4px 22px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero__lead {
    max-width: 40ch;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 36px, var(--shell));
  }

  .topbar__label,
  .topbar__divider,
  .topbar__live {
    display: none;
  }

  .kw__item {
    padding: 6px 11px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .hero__lead {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .kw {
    margin-top: 16px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
  }

  .btn--lg {
    width: 100%;
    padding: 17px 24px;
  }

  .hero__note {
    max-width: none;
    text-align: center;
  }

  .footbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .hero__promise {
    letter-spacing: 0.14em;
  }
}

@media (max-height: 680px) and (min-width: 901px) {
  .hero__title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
  }

  .hero__lead {
    max-width: 52ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .hero__media img,
  .live-dot {
    animation: none;
  }

  .rise {
    opacity: 1;
    transform: none;
  }

  .btn,
  .btn__arrow,
  .btn--primary::after {
    transition: none;
  }
}
