* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #03050c;
  font-family: Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: #03050c;
}

/* Banner: <picture>/<img> de preload + fetchpriority (giu nguyen cover + gradient) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    rgb(0 0 0 / 28%) 0%,
    rgb(0 0 0 / 8%) 36%,
    rgb(0 0 0 / 0%) 100%
  );
}

.button-group {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.image-btn {
  /* Toa do mac dinh — ghi de bang --btn-x / --btn-y o tung nut ben duoi */
  --btn-x: 0;
  --btn-y: 15px;

  position: absolute;
  left: var(--btn-x);
  top: var(--btn-y);
  pointer-events: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  text-decoration: none;
  filter: brightness(1) drop-shadow(0 12px 18px rgb(0 0 0 / 48%));
  transform: translateY(0) scale(1);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.image-btn picture {
  display: block;
  line-height: 0;
}

.image-btn img {
  display: block;
  width: 260px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== Tuy chinh toa do tung nut (hang ngang, cach mep tren 15px) ===== */
.button-download {
  --btn-x: 530px;
  --btn-y: 1px;
}

.button-group-link {
  --btn-x: 830px;
  --btn-y: 1px;
}

.button-home {
  --btn-x: 1130px;
  --btn-y: 1px;
}

.image-btn:hover,
.image-btn:focus-visible {
  outline: none;
  transform: translateY(-6px) scale(1.05);
}

.button-download:hover,
.button-download:focus-visible {
  filter:
    brightness(1.14)
    drop-shadow(0 16px 20px rgb(0 0 0 / 56%))
    drop-shadow(0 0 16px rgb(255 214 122 / 42%));
}

.button-group-link:hover,
.button-group-link:focus-visible {
  filter:
    brightness(1.14)
    drop-shadow(0 16px 20px rgb(0 0 0 / 56%))
    drop-shadow(0 0 16px rgb(74 174 255 / 46%));
}

.button-home:hover,
.button-home:focus-visible {
  filter:
    brightness(1.14)
    drop-shadow(0 16px 20px rgb(0 0 0 / 56%))
    drop-shadow(0 0 16px rgb(190 86 255 / 46%));
}

.image-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ===== Bang chon link Download ===== */
.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.download-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border: 1px solid rgb(255 214 122 / 35%);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgb(28 22 12 / 96%) 0%, rgb(10 12 20 / 96%) 100%);
  box-shadow:
    0 24px 48px rgb(0 0 0 / 55%),
    0 0 0 1px rgb(255 214 122 / 12%) inset;
  animation: modal-in 0.28s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.download-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgb(255 255 255 / 75%);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.download-modal__close:hover,
.download-modal__close:focus-visible {
  color: #ffd67a;
  background: rgb(255 214 122 / 12%);
  outline: none;
}

.download-modal__title {
  margin: 0 0 6px;
  color: #ffd67a;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.download-modal__subtitle {
  margin: 0 0 22px;
  color: rgb(255 255 255 / 65%);
  font-size: 0.95rem;
  text-align: center;
}

.download-modal__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgb(255 214 122 / 28%);
  border-radius: 10px;
  background: linear-gradient(90deg, rgb(255 214 122 / 12%) 0%, rgb(255 214 122 / 4%) 100%);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.download-link-btn:hover,
.download-link-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgb(255 214 122 / 70%);
  background: linear-gradient(90deg, rgb(255 214 122 / 22%) 0%, rgb(255 214 122 / 8%) 100%);
  box-shadow: 0 8px 20px rgb(0 0 0 / 35%), 0 0 16px rgb(255 214 122 / 18%);
}

.download-link-btn:active {
  transform: translateY(0);
}

.download-link-btn__label {
  font-size: 1rem;
  font-weight: 700;
}

.download-link-btn__hint {
  color: #ffd67a;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .image-btn img {
    width: 235px;
  }

  .button-download {
    --btn-x: 24px;
    --btn-y: 15px;
  }

  .button-group-link {
    --btn-x: 190px;
    --btn-y: 15px;
  }

  .button-home {
    --btn-x: 356px;
    --btn-y: 15px;
  }
}

@media (max-width: 767px) {
  .hero-bg {
    object-position: center center;
  }

  .image-btn img {
    width: 180px;
  }

  .button-download {
    --btn-x: 8px;
    --btn-y: 15px;
  }

  .button-group-link {
    --btn-x: 140px;
    --btn-y: 15px;
  }

  .button-home {
    --btn-x: 272px;
    --btn-y: 15px;
  }

  .download-modal__panel {
    padding: 28px 20px 22px;
  }
}

@media (max-width: 380px) {
  .image-btn img {
    width: min(220px, 82vw);
  }
}
