/* ════════════════════════════════════════════════════════════
   TERAN ILDIZ — css/intro.css   (v33 · 7/7)
   Kirish ekrani (#heroIntro): qora BBC sahna, qizil "breaking"
   lenta, statistik hisoblagichlar, Telegram promo modal.
   (Avvalgi index.html ichidagi inline <style> shu yerga ko'chdi)
   ════════════════════════════════════════════════════════════ */

.hero-intro {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 50% -20%, rgba(187, 25, 25, .22), transparent 55%),
    radial-gradient(90% 70% at 85% 110%, rgba(201, 169, 106, .1), transparent 60%),
    #0c0d0f;
  color: #f2efe6;
  opacity: 1;
  transition: opacity .55s var(--ease), visibility .55s;
}
.hero-intro.hero-exit, .hero-intro.exit, .hero-intro.hide {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hero-bg-fx {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}

/* ── Yuqori "breaking news" lentasi ── */
.hero-ticker {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  height: calc(38px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--brand);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}
.hero-ticker-track {
  display: flex; align-items: center; gap: 26px;
  white-space: nowrap;
  padding-left: 26px;
  animation: tkScroll 26s linear infinite;
  will-change: transform;
}
@keyframes tkScroll { to { transform: translateX(-50%); } }
.hero-ticker-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff;
}
.hero-ticker-item i { font-size: .72rem; opacity: .9; }
.hero-ticker-item.tk-gold { color: #ffd98d; }
.hero-ticker-dot { width: 4px; height: 4px; background: rgba(255, 255, 255, .55); border-radius: 50%; flex: 0 0 auto; }

/* ── Til tugmasi ── */
.hero-lang {
  position: fixed; z-index: 30;
  top: max(56px, calc(env(safe-area-inset-top) + 50px));
  right: max(18px, env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-lang:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.hero-lang:active { transform: scale(.96); }
.hero-lang i { color: #ffd98d; }

/* ── Markaziy kontent ── */
.hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 620px;
  animation: heroUp .7s var(--ease-out) both .1s;
}
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-title {
  position: relative;
  font-family: var(--ff-display);
  font-size: clamp(2.1rem, 8.4vw, 3.6rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.04;
  color: #fff;
  padding-top: 22px;
  margin-bottom: 16px;
}
.hero-title::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 6px;
  background: var(--brand);
}
.hero-quote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(.98rem, 3vw, 1.18rem);
  line-height: 1.55;
  color: #cfa864;
  margin-bottom: 30px;
}

/* Statistika hisoblagichlari */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 0;
  margin-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px clamp(12px, 3.4vw, 26px);
}
.hero-stat + .hero-stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-stat-n {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 4.6vw, 1.9rem);
  font-weight: 700; line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat-l {
  font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* "Davom etish" tugmasi (extras.js qo'shadi) */
.hero-resume {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: min(92vw, 480px);
  margin: -14px 0 24px;
  padding: 11px 18px;
  font-size: .82rem; font-weight: 600;
  color: #f2efe6;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-resume:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .34); transform: translateY(-1px); }
.hero-resume i { color: #ffd98d; }

/* Kirish CTA — yaxlit qizil BBC tugma */
.hero-cta {
  display: inline-flex; align-items: center; gap: 11px;
  height: 52px; padding: 0 32px;
  font-size: .84rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  border-radius: 2px;
  box-shadow: 0 8px 28px -6px rgba(187, 25, 25, .55);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero-cta:hover { background: var(--brand-hi); transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(187, 25, 25, .65); }
.hero-cta:active { transform: translateY(0) scale(.98); }
.hero-cta i { transition: transform var(--dur) var(--ease); }
.hero-cta:hover i { transform: translateX(3px); }

/* ── Telegram promo modal ── */
.tg-promo-back {
  position: absolute; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.tg-promo-back.tg-show {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.tg-promo-card {
  position: relative;
  width: min(400px, 100%);
  padding: 34px 26px 26px;
  text-align: center;
  background: #16181c;
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 4px solid #2aabee;
  border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transform: translateY(10px) scale(.97);
  transition: transform .3s var(--ease-out);
}
.tg-promo-back.tg-show .tg-promo-card { transform: none; }
.tg-promo-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .55);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tg-promo-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tg-promo-ico {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 30px; color: #fff;
  background: linear-gradient(135deg, #2aabee, #1a7bb8);
  border-radius: 50%;
}
.tg-promo-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px;
  margin-bottom: 12px;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7fd0f7;
  border: 1px solid rgba(42, 171, 238, .4);
  border-radius: 999px;
}
.tg-promo-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: #fff; margin-bottom: 8px; }
.tg-promo-desc { font-size: .84rem; line-height: 1.55; color: rgba(255, 255, 255, .62); margin-bottom: 20px; }
.tg-promo-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 46px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
  background: #2aabee;
  border-radius: 2px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tg-promo-cta:hover { background: #1a99dc; transform: translateY(-1px); }
.tg-promo-handle { margin-top: 12px; font-size: .7rem; color: rgba(255, 255, 255, .38); font-variant-numeric: tabular-nums; }

/* Kichik ekranlar */
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track { animation: none; }
}
