@font-face { font-family: "Montserrat"; src: url("assets/montserrat-bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
/* Component styles stay inside .landing so host websites keep their own styles. */
html, body { margin: 0; min-height: 100%; }
.landing {
  --hub-background: linear-gradient(135deg, #003b29, #008843 55%, #006338);
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 2.5vw, 32px);
  background: var(--hub-background);
  color: #143c60;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
.landing .hub-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "brand brand" "phone links" "footer footer" "hint hint";
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: clamp(16px, 2.5vw, 28px) clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: 900px;
  min-width: 0;
}
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.landing .hub-content > * { min-width: 0; }
.landing img { max-width: 100%; }
.landing .background-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}
.landing .firefly-layer {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.landing .firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3a6;
  box-shadow: 0 0 6px 2px rgba(255, 239, 130, .72), 0 0 16px 5px rgba(255, 214, 78, .3);
  opacity: .2;
  animation: hub-firefly-float var(--duration) ease-in-out var(--delay) infinite;
}
.landing .brand { grid-area: brand; width: min(90%, 380px); margin: 0; justify-self: center; text-align: center; container-type: inline-size; }
.landing .brand-logo { display: block; position: relative; }
.landing .brand-tagline {
  display: block;
  position: relative;
  margin-top: -10%;
  color: #fff;
  font-family: "Kantumruy", sans-serif;
  font-size: clamp(12px, 6cqw, 32px);
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .65);
}
.landing .brand-tagline-highlight { color: #ffdc00; }
.landing .brand-tagline-sweep { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .landing .brand-logo:has(> img[src="assets/7MBET_Final_Vector_300x130.png"])::after,
  .landing .brand-tagline-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mask: linear-gradient(110deg, transparent 44%, black 50%, transparent 56%) 100% 0 / 300% 100% no-repeat;
    animation: hub-brand-sweep 6s ease-in-out infinite;
  }
  .landing .brand-logo:has(> img[src="assets/7MBET_Final_Vector_300x130.png"])::after {
    content: "";
    background: url("assets/7mbet-sweep-colors.png") center / 100% 100% no-repeat;
  }
  .landing .brand-tagline-sweep {
    display: block;
    color: #ffdc00;
    text-shadow: none;
  }
  .landing .brand-tagline-sweep .brand-tagline-highlight { color: #fff; }
}
.landing .brand img, .landing .main-button img { display: block; width: 100%; height: auto; }
.landing .phone-link {
  grid-area: phone;
  justify-self: end;
  display: block;
  width: min(calc(100% + 8px), 336px, 34svh);
  translate: clamp(-16px, -1.5cqw, -5px) 0;
  aspect-ratio: 339 / 513;
  overflow: visible;
  animation: hub-phone-float 3.6s ease-in-out infinite;
}
.landing .phone {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: 20% center;
  transition: scale .2s ease;
}
.landing .main-buttons {
  grid-area: links;
  justify-self: start;
  display: flex;
  width: min(100%, 244px);
  flex-direction: column;
  gap: clamp(12px, 3vw, 30px);
}
.landing .main-button { display: flex; width: 100%; min-height: 44px; align-items: center; }
.landing .main-button img, .landing .main-button .button-label,
.landing .circle-button img, .landing .circle-button .button-label {
  animation: hub-main-button-pulse 7.2s cubic-bezier(.4, 0, .2, 1) infinite;
}
.landing #facebook img, .landing #facebook .button-label { animation-delay: 2.4s; }
.landing #website img, .landing #website .button-label { animation-delay: 4.8s; }
.landing .circle-button img, .landing .circle-button .button-label {
  animation-name: hub-badge-zoom;
  transform-origin: center;
}
.landing #help img, .landing #help .button-label { animation-delay: 2.4s; }
.landing #company img, .landing #company .button-label { animation-delay: 4.8s; }
.landing .bottom-buttons {
  grid-area: footer;
  display: flex;
  width: min(94%, clamp(240px, 42cqw, 340px));
  gap: clamp(10px, 2cqw, 18px);
  align-items: center;
  justify-content: space-between;
}
.landing .circle-button { display: block; flex: 1 1 0; width: 0; min-width: 44px; aspect-ratio: 1; }
.landing .circle-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.landing .button-label { display: block; padding: 12px 10px; overflow-wrap: anywhere; }
.landing .text-button {
  justify-content: center;
  background: linear-gradient(#109bda, #00619c);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #b8efff;
}
.landing .circle-button.text-button { display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.landing .circle-button.text-button .button-label { padding: 6px; font-size: clamp(10px, 2vw, 14px); }
.landing .link-button, .landing .phone-link {
  -webkit-tap-highlight-color: transparent;
  border-radius: 18px;
  transition: transform .2s ease, filter .2s ease;
}
@media (hover: hover) {
  .landing .phone-link:hover .phone { scale: 1.05; }
  .landing .link-button:hover { transform: translateY(-2px) scale(1.025); filter: brightness(1.06); }
}
.landing .phone-link:active .phone,
.landing .phone-link:focus-visible .phone { scale: 1.05; }
.landing .link-button:active { transform: translateY(1px) scale(.99); }
.landing a:focus-visible { outline: 3px solid #014a9a; outline-offset: 4px; }
.landing .setup-hint {
  grid-area: hint;
  width: min(100%, 560px);
  padding: 10px 14px;
  border: 1px solid #5a9fd5;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.landing .setup-hint[hidden] { display: none; }
/* Add this class when placing the component inside an existing page. */
.landing.landing--embedded { min-height: 0; }
/* Scale the composition up when its container has room for a desktop layout. */
@container (min-width: 700px) {
  .landing .hub-content {
    max-width: 1120px;
    column-gap: clamp(20px, 2cqw, 28px);
    row-gap: 12px;
  }
  .landing .brand { width: min(80%, 420px, 40svh); }
  .landing .phone-link { width: min(100%, 470px, 40svh); }
  .landing .main-buttons { width: min(100%, 420px, 46svh); gap: 16px; }
  .landing .circle-button.text-button .button-label { font-size: 16px; }
}
@container (max-width: 600px) {
  .landing .hub-content { row-gap: 24px; column-gap: 16px; }
  .landing .brand { width: min(100%, 340px); }
  .landing .phone-link { width: min(calc(100% + 8px), 290px); }
  .landing .main-buttons { width: 88%; gap: 14px; }
  .landing .bottom-buttons { width: min(94%, 300px); gap: 12px; }
}
@container (max-width: 320px) {
  .landing .hub-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "phone" "links" "footer" "hint";
    row-gap: 20px;
  }
  .landing .phone-link { justify-self: center; width: min(84%, 245px); }
  .landing .main-buttons { justify-self: center; width: 76%; gap: 8px; }
}
@media (max-width: 660px) {
  .landing { align-items: flex-start; padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .phone { transition: none; }
  .landing .link-button, .landing .phone-link { transition: none; animation: none; }
  .landing .main-button img, .landing .main-button .button-label,
  .landing .circle-button img, .landing .circle-button .button-label { animation: none; }
  .landing .firefly-layer { display: none; }
}
@keyframes hub-brand-sweep {
  0%, 15% { mask-position: 100% 0; }
  65%, 100% { mask-position: 0 0; }
}
@keyframes hub-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes hub-firefly-float {
  0%, 100% { opacity: .15; transform: translate3d(0, 0, 0) scale(.45); }
  50% { opacity: .95; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.15); }
}
@keyframes hub-main-button-pulse {
  0%, 18%, 100% { transform: scale(1); }
  9% { transform: scale(1.05); }
}
@keyframes hub-badge-zoom {
  0%, 18%, 100% { transform: scale(.95); }
  9% { transform: scale(1.08); }
}
