:root {
  --green: #37c25e;
  --green-dark: #2aa64c;
  --white: #ffffff;
  --black: #151a27;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: #02060a;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.f5988053fa0d.jpg") center bottom / cover no-repeat;
  z-index: 0;
  animation: bgIn 1.6s ease-out both;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 10, .55) 0%, rgba(2, 6, 10, 0) 45%);
}

/* ---------- Top navigation ---------- */
.topnav {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 72px;
  margin-top: 29px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.topnav__logo img { display: block; width: 190px; height: auto; }
.topnav__lang { position: absolute; left: 51px; top: 18px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.topnav__lang button { font: inherit; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); background: none; border: 0; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.topnav__lang button.is-on { background: var(--green); color: #fff; }
@media (max-width: 768px) { .topnav__lang { left: 50%; top: 66px; transform: translateX(-50%); } .hero__content { margin-top: 96px !important; } }
.topnav__close {
  position: absolute;
  right: 51px;
  top: 6px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}
.topnav__close:hover { background: rgba(255, 255, 255, .12); transform: rotate(90deg); }

/* ---------- Content ---------- */
.hero__content {
  position: relative;
  z-index: 2;
  width: min(950px, 100% - 32px);
  margin-top: 87px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: up .9s .2s ease-out both;
}

.hero__title {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 6.9vw, 132px);
  line-height: 1.06;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ffffff 0%, #8a8a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  margin-top: 16px;
  max-width: 892px;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.btn-enter {
  margin-top: 35px;
  height: 64px;
  padding: 0 16px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green);
  border-radius: 6px;
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 0 40px rgba(55, 194, 94, .35);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-enter:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(55, 194, 94, .55);
}
.btn-enter svg { transition: transform .2s; }
.btn-enter:hover svg { transform: translateX(4px); }

@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bgIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  .topnav { margin-top: 16px; }
  .topnav__logo img { width: 140px; }
  .topnav__close { right: 16px; width: 44px; height: 44px; }
  .hero__content { margin-top: 56px; }
  .btn-enter { height: 52px; font-size: 20px; }
}

/* ---- Test rejimi (beta) banneri ---- */
.beta-bar {
  position: relative; z-index: 5; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 52px; padding: 10px 50px 10px 22px;
  background: linear-gradient(90deg, #4a0707 0%, #7a0d12 45%, #8f1219 55%, #4a0707 100%);
  border-bottom: 1px solid rgba(255, 90, 90, .25);
  box-shadow: 0 6px 24px rgba(122, 13, 18, .35);
  color: #fff; font-size: 14.5px; line-height: 1.4; text-align: center;
}
/* Yo'lak bo'ylab sekin o'tadigan yaltiroq — e'tiborni tortadi, lekin bezovta qilmaydi */
.beta-bar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.10) 45%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.10) 55%, transparent 100%);
  transform: translateX(-100%); animation: beta-shine 6s ease-in-out infinite;
}
@keyframes beta-shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.beta-bar__badge {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
}
.beta-bar__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f;
  box-shadow: 0 0 0 0 rgba(255,90,95,.7); animation: beta-dot 1.8s ease-out infinite;
}
@keyframes beta-dot { 0% { box-shadow: 0 0 0 0 rgba(255,90,95,.7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,90,95,0); } }
.beta-bar__text { position: relative; margin: 0; font-weight: 500; }
.beta-bar__btn {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px; border-radius: 10px; background: #ececec; color: #1a0506;
  font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.beta-bar__btn:hover { background: #fff; transform: translateY(-1px); color: #1a0506; }
.beta-bar__btn svg, .beta-bar__close svg { width: 16px; height: 16px; }
.beta-bar__close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.7); cursor: pointer;
}
.beta-bar__close:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (prefers-reduced-motion: reduce) { .beta-bar::before, .beta-bar__badge::before { animation: none; } }
@media (max-width: 760px) {
  .beta-bar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 44px 12px 14px; font-size: 13px; }
  .beta-bar__text { flex-basis: 100%; order: 2; }
  .beta-bar__badge { order: 1; }
  .beta-bar__btn { order: 3; padding: 7px 16px; }
  .beta-bar__close { top: 8px; right: 8px; transform: none; }
}
