/* ==========================================================================
   Landing page
   ========================================================================== */
body { overflow-x: hidden; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #1b1530; overflow: hidden; }

/* ---- Jonli kartina ----
   Kartina, bulutlar niqobi va qushlar bitta "kanvas" ichida: kamera sekin
   yaqinlashganda hammasi birga siljiydi, niqob kartinadan ajralib qolmaydi. */
.hero-canvas {
  /* Surat balandligi hero'dan ~1.28 baravar: Tillakori matn ostida, ekran pastida ko'rinadi */
  --size: max(100cqw, 160cqh) auto;
  --pos: 50% 22%;
  container-type: size;
  position: absolute; inset: -2%;
  animation: kenBurns 44s ease-in-out infinite alternate, paintIn 2.2s ease-out both;
  transform-origin: 50% 42%;
}
@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.2%, 1%); } }
@keyframes paintIn { from { opacity: 0; } }
.hero-paint, .hero-sky {
  position: absolute; inset: 0;
  background-size: var(--size); background-position: var(--pos); background-repeat: no-repeat;
}
.hero-paint { background-image: url("/assets/img/registan/registan.jpg"); }
@media (max-width: 899px) { .hero-paint { background-image: url("/assets/img/registan/registan-1200.jpg"); } }

/* Osmon qatlami: faqat osmon ko'rinadi (registan-sky.png alfa niqobi) */
.hero-sky {
  overflow: hidden;
  -webkit-mask-image: url("/assets/img/registan/registan-sky.png"); mask-image: url("/assets/img/registan/registan-sky.png");
  -webkit-mask-size: var(--size); mask-size: var(--size); -webkit-mask-position: var(--pos); mask-position: var(--pos);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* Bulut lentasi 2 ekran kengligida; -50% siljish = bitta to'liq tekstura, chok ko'rinmaydi */
.hero-clouds { position: absolute; left: 0; width: 200%; background: url("/assets/img/registan/clouds.png") repeat-x 0 0 / 50% 100%; will-change: transform; }
.hero-clouds.c1 { top: 4%; height: 40%; opacity: .7; animation: drift 160s linear infinite; }
.hero-clouds.c2 { top: 22%; height: 26%; opacity: .5; transform: scaleX(-1); animation: drift2 95s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes drift2 { from { transform: translateX(-50%) scaleX(-1); } to { transform: translateX(0) scaleX(-1); } }

/* Qushlar: Vereshchagin kartinasidagidek qoramtir galalar */
.hero-birds { position: absolute; inset: 0 0 45% 0; width: 100%; height: 55%; overflow: visible; pointer-events: none; }
.hero-birds .bird { fill: none; stroke: rgba(22,16,30,.8); stroke-width: 1.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: flap .7s calc(var(--b) * -.13s) ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(.25); } }
.hero-birds .flock { animation: fly 38s linear infinite; }
.hero-birds .f2 { animation-duration: 52s; animation-delay: -30s; }
@keyframes fly {
  0% { transform: translate(-140px, 140px); }
  25% { transform: translate(250px, 95px); }
  50% { transform: translate(520px, 125px); }
  75% { transform: translate(790px, 80px); }
  100% { transform: translate(1140px, 110px); }
}

/* Ufqdagi shom shafag'i: sekin "nafas oladi" (faqat opacity — arzon) */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 28% at 50% 58%, rgba(255,150,90,.28), rgba(255,120,110,.1) 55%, transparent 75%);
  animation: afterglow 9s ease-in-out infinite alternate;
}
@keyframes afterglow { from { opacity: .45; } to { opacity: 1; } }

/* Birinchi yulduzlar: osmon niqobi ichida, binolar ortida */
.hero-stars {
  position: absolute; inset: 0 0 35% 0;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 27% 8%, #fff 60%, transparent),
    radial-gradient(1.4px 1.4px at 41% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 58% 12%, #fff 60%, transparent),
    radial-gradient(1.3px 1.3px at 73% 25%, #fff 60%, transparent), radial-gradient(1px 1px at 86% 9%, #fff 60%, transparent),
    radial-gradient(1px 1px at 94% 30%, #fff 60%, transparent), radial-gradient(1.1px 1.1px at 6% 34%, #fff 60%, transparent),
    radial-gradient(1px 1px at 35% 38%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 66% 40%, #fff 60%, transparent);
  animation: twinkleStars 5s ease-in-out infinite alternate;
}
.hero-stars::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 19% 28%, #ffe9c4 60%, transparent), radial-gradient(1.3px 1.3px at 49% 6%, #fff 60%, transparent),
    radial-gradient(1px 1px at 63% 31%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 81% 17%, #ffe9c4 60%, transparent),
    radial-gradient(1px 1px at 3% 12%, #fff 60%, transparent), radial-gradient(1px 1px at 91% 42%, #fff 60%, transparent);
  animation: twinkleStars 3.4s 1.7s ease-in-out infinite alternate;
}
@keyframes twinkleStars { from { opacity: .25; } to { opacity: .9; } }

/* Quyosh nurida suzuvchi oltin chang (landing.js chizadi) */
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* O'qilish uchun iliq, muzey zalidagidek qorong'ilik: markazda chuqurroq, chetlarda kartina ochiq */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 44% at 50% 45%, rgba(14,10,30,.55) 0%, rgba(14,10,30,.32) 55%, rgba(14,10,30,0) 100%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 60%, rgba(8,6,18,.5) 100%),
    linear-gradient(180deg, rgba(10,8,24,.45) 0%, rgba(10,8,24,0) 22%, rgba(10,8,24,0) 78%, rgba(5,7,15,.85) 96%, var(--bg) 100%);
}
.hero-noise { position: absolute; inset: 0; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* To'xtatish tugmasi bosilganda barcha fon harakatlari to'xtaydi */
.hero.paused .hero-media, .hero.paused .hero-media * { animation-play-state: paused !important; }

/* Muzey yorlig'i: kartina muallifi va litsenziya */
.hero-credit {
  position: absolute; left: 24px; bottom: 22px; max-width: min(460px, calc(100% - 100px)); margin: 0;
  font-size: 11.5px; line-height: 1.5; color: rgba(236,228,210,.6); animation: fadeIn 1s 3.2s both;
}
.hero-credit i { font-family: var(--font-serif); font-size: 1.15em; }
.hero-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(236,228,210,.3); }
.hero-credit a:hover { color: #fff; }

.hero-inner { position: relative; }
.hero-copy { max-width: 1160px; margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.hero-title, .hero-lead { text-shadow: 0 2px 28px rgba(12,8,28,.6); }
/* Kartina ustida brend tugmasi va logotip oltin rangda (faqat bosh sahifa) */
.site-nav .logo-mark { background: linear-gradient(135deg, #f6d98f, #d99a3a); color: #2a1a06; box-shadow: 0 6px 20px -6px rgba(233,169,74,.8), inset 0 1px 0 rgba(255,255,255,.45); }
.site-nav .logo .grad-text { background: linear-gradient(100deg, #f6d98f, #86e0d6); -webkit-background-clip: text; background-clip: text; }
.site-nav .nav-actions .btn-primary::before { background: conic-gradient(from var(--spin), transparent 0 55%, #86e0d6 70%, #fff4d6 82%, transparent 95%); }
.site-nav .btn-primary, .hero .btn-primary { background: linear-gradient(135deg, #f6d98f, #e2a94a 55%, #c98a2e); background-size: 160% 160%; color: #1c1206; box-shadow: 0 10px 30px -10px rgba(233,169,74,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.site-nav .btn-primary:hover, .hero .btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(233,169,74,1), inset 0 1px 0 rgba(255,255,255,.5); }

/* Kursor ortidan yuradigan iliq yorug'lik (landing.js --sx/--sy beradi) */
.hero-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 45%), rgba(255,214,150,.1), rgba(255,190,110,.03) 45%, transparent 70%);
  animation: fadeIn 2s .6s both;
}

/* ---- Pill: muhr bosilgandek tushadi, atrofga to'lqin tarqaladi ---- */
.hero-pill-wrap { position: relative; display: inline-grid; }
.hero-pill-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  border: 1.5px solid rgba(246,217,143,.85); box-shadow: 0 0 24px rgba(233,183,90,.6);
  animation: stampWave 1s .62s cubic-bezier(.2,.8,.2,1) both;
}
.hero-pill {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: border-color .2s, background .2s;
  animation: stamp .75s .15s cubic-bezier(.5,0,.75,0) both, stampSettle .5s .9s cubic-bezier(.34,1.56,.64,1) both;
}
.hero-pill::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  animation: shimmer 4.5s 2.6s ease-in-out infinite;
}
.hero-pill:hover { border-color: rgba(124,127,245,.5); background: rgba(124,127,245,.1); }
.hero-pill svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.hero-pill:hover svg { transform: translateX(3px); }
.hero-pill-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.hero-pill .dot { animation: dotPing 2.4s 1.4s ease-out infinite; }
/* Katta va xira holda tepadan tushib, "urilib" joyiga bosiladi */
@keyframes stamp { from { opacity: 0; transform: translateY(-46px) scale(1.7); filter: blur(10px); } 70% { opacity: 1; } to { opacity: 1; transform: scale(.94); filter: blur(0); } }
@keyframes stampSettle { from { transform: scale(.94); } to { transform: none; } }
@keyframes stampWave { from { opacity: 0; transform: scale(1); } 10% { opacity: 1; } to { opacity: 0; transform: scale(1.35, 1.9); } }
@keyframes shimmer { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }

/* ---- Sarlavha: harflar ekran markazidan chapga va o'ngga uchib chiqadi ---- */
.hero-title {
  position: relative; margin-top: 30px;
  font-size: clamp(42px, 6.3vw, 92px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02;
  animation: fadeIn .8s 2.2s both; /* JS ishlamasa ham sarlavha ko'rinadi */
}
.hero-title.split { animation: none; }
.hero-title .serif { font-weight: 400; font-size: 1.08em; letter-spacing: -0.02em; }
.ht-line { display: block; }
/* Harflardan oldin markazdan ikki tomonga otilib chiqadigan nur */
.hero-title::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #f3c56d 18%, #fff4d6 50%, #86e0d6 82%, transparent);
  box-shadow: 0 0 22px 3px rgba(255,200,110,.55);
  animation: laser 1.5s .6s cubic-bezier(.7,0,.2,1) both;
}
@keyframes laser { 0% { transform: scaleX(0); opacity: 1; } 40% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1.03); opacity: 0; } }

.hw { display: inline-block; white-space: nowrap; }
/* JS har harfga --dx (markazgacha masofa) va --d (0..1, markazdan uzoqligi) beradi */
.hc { display: inline-block; will-change: transform; animation: fly 1.35s calc(.8s + var(--d, 0) * .45s) cubic-bezier(.16,1,.3,1) both; }
@keyframes fly {
  from { transform: translateX(var(--dx, 0)) scale(.25); opacity: 0; filter: blur(14px); }
  35% { opacity: 1; }
  to { transform: none; opacity: 1; filter: blur(0); }
}

/* "soniyalar ichida": gradient butun so'z bo'ylab yagona, keyin oqib turadi */
@property --flow { syntax: "<length>"; inherits: true; initial-value: 0px; }
.ht-center { padding-right: .04em; }
.hero-title:not(.split) .ht-center, .ht-center .hc {
  background: linear-gradient(90deg, #f6d98f 0%, #e9b75a 25%, #86e0d6 50%, #e9b75a 75%, #f6d98f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ht-center .hc { background-size: var(--w) 100%; background-repeat: repeat-x; background-position: calc(var(--flow) - var(--x)) 0; }
.hero-title.split .ht-center { animation: flow 9s 2.6s linear infinite; }
@keyframes flow { to { --flow: var(--w); } }

/* "aniq javob" ostidan chiziladigan chiziq */
.ht-mark { position: relative; display: inline-block; white-space: nowrap; }
.ht-swash { position: absolute; left: -2%; width: 104%; bottom: -.3em; height: .24em; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 8px rgba(233,183,90,.8)); }
.ht-swash path { fill: none; stroke: url(#swashGrad); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s 2.05s cubic-bezier(.65,0,.35,1) both; }
/* Dumaloq uchlar chizish boshlanmaguncha nuqta bo'lib ko'rinmasligi uchun shaffoflik ham boshqariladi */
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }

/* ---- Tavsif: so'zma-so'z xiradan tiniqlashadi (landing.js bo'laklaydi) ---- */
.hero-lead { margin-top: 24px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--text-2); max-width: 640px; line-height: 1.65; animation: fadeIn .8s 2.6s both; }
.hero-lead.split { animation: none; }
.lw { display: inline-block; animation: blurIn .9s calc(1.95s + var(--i) * .02s) var(--ease) both; }
@keyframes blurIn { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } }
.hero-lead .kw {
  font-weight: 600; color: var(--text);
  background: linear-gradient(90deg, #e9b75a, #86e0d6) no-repeat 0 100% / 0% 1.5px; padding-bottom: 2px;
  animation: kwLine .8s calc(2.7s + var(--k, 0) * .14s) var(--ease) forwards;
}
@keyframes kwLine { to { background-size: 100% 1.5px; } }

/* ---- Savol maydoni: aylanib yonadigan chegara ---- */
.hero-ask {
  position: relative; isolation: isolate;
  margin-top: 36px; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 16px; width: min(640px, 100%); text-align: left;
  border-radius: 18px; background: rgba(20,14,8,.66); border: 1px solid rgba(246,217,143,.22);
  backdrop-filter: blur(16px); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .2s, box-shadow .2s; animation: askIn 1s 2.3s var(--ease) both;
}
.hero-ask::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 60%, rgba(134,224,214,.9) 75%, rgba(246,217,143,.95) 86%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}
@keyframes askIn { from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); } }
.hero-ask:focus-within { border-color: rgba(124,127,245,.6); box-shadow: 0 0 0 5px rgba(124,127,245,.15), 0 20px 60px -20px rgba(0,0,0,.8); }
.hero-ask-icon svg { width: 20px; height: 20px; color: #f3c56d; animation: twinkle 3s 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); filter: drop-shadow(0 0 6px rgba(34,211,238,.8)); } }
.hero-ask input { flex: 1; min-width: 0; height: 46px; background: none; border: 0; outline: none; font-size: 15.5px; }
.hero-ask input::placeholder { color: #7a82a3; }
.hero-ask .btn { --h: 46px; border-radius: 13px; }
.hero-ask .btn svg { transition: transform .3s var(--ease); }
.hero-ask .btn:hover svg { transform: translateX(3px); }

.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.hero-chips button {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: color .2s, border-color .2s, background .2s, transform .3s var(--ease);
  animation: chipIn .7s calc(2.6s + var(--i) * .08s) cubic-bezier(.34,1.56,.64,1) both;
}
.hero-chips button:hover { color: var(--text); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.08); transform: translateY(-2px); }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.85); } }

.hero-meta { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 14px; color: var(--text-2); }
.hero-meta li { display: flex; gap: 8px; align-items: center; animation: metaIn .7s calc(2.8s + var(--i) * .12s) var(--ease) both; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }
.hero-meta svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick .5s calc(3s + var(--i) * .12s) ease-out forwards; }
@keyframes metaIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Harakatni kamaytirish so'ralsa: hammasi darhol, kechikishsiz ko'rinadi */
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after, .site-nav, .site-nav * { animation-delay: 0s !important; }
  .hero-title::before, .hero-pill::after, .hero-pill-wrap::after { display: none; }
}

/* Bo'lim sarlavhalari: so'zlar niqob ichidan navbat bilan chiqadi */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .08em .16em 0; margin: -.04em -.08em -.16em 0; }
.w > span { display: inline-block; }
.split-words .w > span { transform: translateY(115%); transition: transform 1s cubic-bezier(.16,1,.3,1) calc(.08s + var(--i) * .06s); }
.reveal.in .split-words .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .split-words .w > span { transform: none; } }

.video-toggle {
  position: absolute; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--text-2); backdrop-filter: blur(8px);
}
.video-toggle:hover { color: var(--text); background: rgba(255,255,255,.12); }
.video-toggle svg { width: 16px; height: 16px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.25); transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { padding-top: 110px; align-items: flex-end; }
  .hero-canvas { --pos: 50% 12%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(12,9,26,.35) 0%, rgba(12,9,26,.5) 38%, rgba(8,7,16,.9) 72%, var(--bg) 100%); }
  .hero-credit { left: 16px; bottom: 16px; font-size: 10.5px; }
  .br-lg { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hide-xs { display: none; }
  .hero-ask .btn { width: 46px; padding: 0; }
  .hero-pill { font-size: 12.5px; }
  .hero-pill .grad-text, .hero-pill-sep { display: none; }
}

/* ---------- Qonunlar lentasi ---------- */
.laws { padding: 34px 0 10px; }
.laws-title { text-align: center; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 500; font-size: 14.5px; color: var(--text-2);
}
.marquee-track span::before { content: "§"; margin-right: 8px; font-family: var(--font-serif); color: var(--cyan); font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bo'limlar ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; display: grid; justify-items: center; gap: 16px; }
.section-head.left { text-align: left; justify-items: start; margin: 0; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.section-head h2 .serif { font-weight: 400; font-size: 1.06em; }
.section-head p { color: var(--text-2); font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }

/* ---------- Imkoniyatlar: interactive illustration studio ---------- */
#features .feature-studio {
  --fs-ink: #202d28;
  --fs-blue: #2948d8;
  --fs-lime: #d8f16c;
  position: relative; color: var(--fs-ink); background: #edf0e7;
  border-radius: 5px; padding: 28px 38px 0; isolation: isolate;
}
#features .fs-masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-bottom: 24px; border-bottom: 1px solid #23362826;
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
}
#features .fs-masthead > span:first-child { display: flex; align-items: center; gap: 9px; }
#features .fs-masthead > span:last-child { color: #5b665b; font-size: 11px; letter-spacing: 0; font-weight: 400; }
#features .fs-masthead i { width: 8px; height: 8px; border-radius: 50%; background: var(--fs-blue); }
#features .fs-stage { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; min-height: 495px; }
#features .fs-content { padding: 38px 0 44px 10px; position: relative; z-index: 1; }
#features .fs-panel[hidden] { display: none; }
#features .fs-panel { animation: fs-copy-in .4s ease both; }
#features .fs-kicker { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; }
#features .fs-kicker > span { color: var(--fs-blue); font: 10px var(--font-mono); padding-right: 14px; border-right: 1px solid #aab4a3; }
#features .fs-panel h3 {
  font-family: var(--font-display); font-size: clamp(35px, 3.7vw, 51px); line-height: 1.13;
  font-weight: 800; letter-spacing: -.055em; margin: 28px 0 23px;
}
#features .fs-panel h3 > span { color: var(--fs-blue); }
#features .fs-panel p { max-width: 375px; color: #526052; font-size: 14px; line-height: 1.85; }
#features .fs-note { display: flex; align-items: center; gap: 10px; max-width: 385px; margin-top: 30px; font-size: 11px; color: #43533e; }
#features .fs-note > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: var(--fs-lime); color: #263b15; font-size: 17px; }
#features .fs-art { position: relative; min-width: 0; padding: 5px 0 16px; }
#features .fs-art svg { width: 100%; height: auto; overflow: visible; }
#features .fs-art-label { font: 8px var(--font-mono); fill: #4e6251; letter-spacing: 1.5px; }
#features .fs-orbit-label { position: absolute; right: -12px; top: 42%; writing-mode: vertical-rl; white-space: nowrap; font: 8px var(--font-mono); letter-spacing: .2em; color: #5b6e56; }
#features .fs-illustration { transform-origin: 50% 55%; animation: fs-art-in .55s cubic-bezier(.2,.7,.2,1) both; }
#features .fs-halo { transform-origin: 293px 233px; transition: transform .65s ease; }
#features .feature-studio:has([data-feature="tahlil"][aria-selected="true"]) .fs-halo { transform: scale(.85); }
#features .feature-studio:has([data-feature="til"][aria-selected="true"]) .fs-halo { transform: scale(1.05); }
#features .fs-selector { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid #23362826; }
#features .fs-selector button {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start;
  gap: 16px 5px; min-width: 0; min-height: 106px; padding: 17px 15px 20px;
  border-right: 1px solid #23362826; color: #536050; text-align: left;
  transition: background .2s, color .2s;
}
#features .fs-selector button:first-child { border-left: 1px solid #23362826; }
#features .fs-tab-index { grid-column: 1; font: 10px var(--font-mono); }
#features .fs-selector button > span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: -.02em; }
#features .fs-tab-arrow { grid-column: 2; grid-row: 1; font-size: 20px; line-height: 12px; opacity: .45; }
#features .fs-selector button[aria-selected="true"] { background: var(--fs-blue); color: #fff; }
#features .fs-selector button[aria-selected="true"] .fs-tab-index { color: var(--fs-lime); }
#features .fs-selector button[aria-selected="true"] .fs-tab-arrow { opacity: 1; color: var(--fs-lime); }
#features .fs-selector button:not([aria-selected="true"]):hover { background: #dde5d2; color: #20361d; }
#features .fs-selector button:focus-visible, #features .fs-panel:focus-visible, #features .fs-bottomline a:focus-visible { outline: 3px solid #2948d8; outline-offset: 4px; border-radius: 0; z-index: 2; }
#features .fs-bottomline { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 0; border-top: 1px solid #23362826; color: #5b6855; font-size: 10px; }
#features .fs-bottomline a { color: var(--fs-blue); font-weight: 700; display: flex; align-items: center; gap: 14px; font-size: 11px; }
#features .fs-bottomline a span { font-size: 18px; }
@keyframes fs-copy-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fs-art-in { from { opacity: 0; transform: translateY(18px) rotate(3deg) scale(.96); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@media (max-width: 1000px) {
  #features .feature-studio { padding: 24px 26px 0; }
  #features .fs-content { padding-left: 0; }
  #features .fs-stage { min-height: 450px; }
  #features .fs-panel h3 { font-size: 38px; }
  #features .fs-selector button { padding-inline: 10px; }
  #features .fs-selector button > span:nth-child(2) { font-size: 11px; }
}
@media (max-width: 760px) {
  #features .feature-studio { padding: 22px 22px 0; }
  #features .fs-stage { grid-template-columns: 1fr; }
  #features .fs-content { padding: 33px 0 0; min-height: 310px; }
  #features .fs-panel h3 { font-size: clamp(32px, 6.8vw, 46px); margin: 22px 0 18px; }
  #features .fs-panel p { max-width: 460px; font-size: 13px; }
  #features .fs-note { margin-top: 20px; }
  #features .fs-art { width: min(100%, 430px); margin: 0 auto; padding: 0; }
  #features .fs-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #features .fs-selector button { min-height: 87px; gap: 12px; padding: 13px 12px; border-bottom: 1px solid #23362826; }
  #features .fs-selector button:nth-child(4) { border-left: 1px solid #23362826; }
  #features .fs-selector button > span:nth-child(2) { font-size: 11px; }
  #features .fs-bottomline { border-top: 0; }
  #features .fs-masthead > span:last-child { display: none; }
  #features .fs-orbit-label { right: -8px; }
}
@media (max-width: 380px) {
  #features .feature-studio { padding-inline: 16px; }
  #features .fs-content { min-height: 345px; }
  #features .fs-panel h3 { font-size: 29px; }
  #features .fs-selector button { padding-inline: 8px; }
  #features .fs-selector button > span:nth-child(2) { font-size: 10px; }
  #features .fs-bottomline { align-items: flex-start; }
  #features .fs-bottomline > span { max-width: 105px; }
}
@media (prefers-reduced-motion: reduce) {
  #features .fs-panel, #features .fs-illustration { animation: none; }
  #features .fs-halo, #features .fs-selector button { transition: none; }
}

/* ---------- Demo ---------- */
.demo-section::before { content: ""; position: absolute; inset: 10% 0 auto; height: 70%; background: radial-gradient(50% 60% at 70% 50%, rgba(99,102,241,.14), transparent 70%); pointer-events: none; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.demo-copy h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; letter-spacing: -0.035em; margin: 16px 0 30px; }
.demo-copy h2 .serif { font-weight: 400; }
.steps { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--cyan); }
.steps h4 { font-size: 16.5px; margin-bottom: 4px; font-family: var(--font); letter-spacing: -0.01em; }
.steps p { color: var(--text-2); font-size: 14.5px; }

.chat-mock {
  border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(14,18,38,.95), rgba(9,12,26,.95));
  border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(124,127,245,.08), 0 30px 80px -40px rgba(99,102,241,.5);
}
.chat-mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.12); }
.chat-mock-bar span { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chat-mock-body { padding: 24px; display: grid; gap: 20px; min-height: 420px; align-content: start; }
.cm-user { justify-self: end; max-width: 82%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--grad); color: #fff; font-size: 14.5px; box-shadow: 0 10px 30px -12px rgba(99,102,241,.8); }
.cm-ai { display: flex; gap: 12px; }
.cm-avatar { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.cm-avatar svg { width: 18px; height: 18px; }
.cm-content { flex: 1; min-width: 0; display: grid; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.cm-thinking { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px dashed var(--border-strong); width: fit-content; }
.cm-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 1.2s ease-in-out infinite; }
.chat-mock.done .cm-pulse { animation: none; background: var(--green); }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.cm-text { min-height: 190px; line-height: 1.65; }
.cm-text strong { color: var(--text); }
.cm-text ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.cm-text .caret { display: inline-block; width: 7px; height: 16px; background: var(--cyan); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cm-cites { display: flex; flex-wrap: wrap; gap: 8px; opacity: 0; transform: translateY(6px); transition: all .6s var(--ease); }
.chat-mock.done .cm-cites { opacity: 1; transform: none; }
.cm-cites span { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); color: #a5f3fc; }
.chat-mock-input { margin: 0 18px 18px; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.chat-mock-input b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.chat-mock-input svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Auditoriya ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud-card { padding: 30px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .3s; }
.aud-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.aud-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--cyan); margin-bottom: 20px; }
.aud-icon svg { width: 24px; height: 24px; }
.aud-card h3 { font-size: 21px; margin-bottom: 10px; }
.aud-card p { color: var(--text-2); font-size: 15px; }
.aud-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aud-card li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Tariflar ---------- */
#pricing .section-head { margin-bottom: 64px; }
#pricing .billing-toggle { margin-top: 10px; }
.pay-methods { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }
.pay-methods b { color: var(--text-2); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.faq details[open] { background: var(--surface-2); border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 18px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 80px 30px; border-radius: 32px;
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 45%, #0e7490 100%); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 120px -40px rgba(99,102,241,.7);
}
.cta-glow { position: absolute; inset: -40%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); animation: drift 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { from { transform: translate(-20%, -10%); } to { transform: translate(20%, 10%); } }
.cta h2 { position: relative; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.cta h2 .serif { font-weight: 400; }
.cta p { position: relative; margin-top: 14px; color: rgba(255,255,255,.8); font-size: 17px; }
.cta-actions { position: relative; margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.16); }

/* First-screen typography and buttons only. */
.hero-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(34px, 5.2vw, 74px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.14;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(12,8,28,.28);
}
.hero-title .serif {
  font-family: inherit;
  font-style: normal;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: inherit;
}
.hero-title .ht-mark { font-weight: 400; }
.hero-title:not(.split) .ht-center,
.hero-title .ht-center .hc {
  background: none;
  color: inherit;
}
.hero-title::before, .hero-title .ht-swash { display: none; }
.hero-lead {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(16px, 1.35vw, 18.5px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -.015em;
  color: #f0eff5;
  text-shadow: 0 2px 16px rgba(12,8,28,.35);
}
.hero-pill, .hero-chips button, .hero-meta,
.hero-ask input, .hero .btn, .site-nav .btn, .site-nav .nav-links a {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -.01em;
}
.hero-pill { font-size: 13px; font-weight: 500; color: #f0f1f6; }
.hero-pill .grad-text { background: none; color: #edf0f7; }
.hero-meta { font-size: 14px; color: #f0f1f6; }
.site-nav .nav-links a { font-size: 18px; font-weight: 600; color: #fff; }
.site-nav .btn, .hero .btn {
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 9px;
}
.site-nav .btn-primary, .hero .btn-primary {
  background: #176b55;
  color: #fff;
  border: 1px solid rgba(157,219,196,.28);
  box-shadow: none;
}
.site-nav .btn-primary:hover, .hero .btn-primary:hover {
  background: #1c7b62;
  box-shadow: none;
  transform: none;
}
.site-nav .nav-actions .btn-primary::before { display: none; }
.site-nav .btn:focus-visible, .hero .btn:focus-visible,
.hero-chips button:focus-visible {
  outline: 2px solid #b5e7d5;
  outline-offset: 3px;
}
.hero-chips button {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #f0f1f6;
  background: rgba(20,22,30,.2);
  border-color: rgba(255,255,255,.16);
}
.hero-chips button:hover {
  color: #fff;
  background: rgba(23,107,85,.3);
  border-color: rgba(157,219,196,.5);
  transform: none;
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(28px, 7.4vw, 38px); letter-spacing: -.04em; }
  .hero-pill { font-size: 12.5px; }
  .hero-meta { font-size: 13px; }
}

.hero-ask input { font-size: 16px; color: #f2f3f8; }
.hero-ask input::placeholder { color: #cfd2df; opacity: 1; }

/* Stronger navigation text, scoped to the landing navbar. */
.site-nav .btn { font-size: 16px; font-weight: 600; color: #fff; }
.site-nav + .mobile-menu a { font-size: 17px; font-weight: 600; color: #fff; }
@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav .container { gap: 12px; }
  .site-nav .nav-links a { padding-inline: 4px; white-space: nowrap; }
}
