/* ==========================================================================
   OSONGO — Bosh sahifa (landing): yorqin, yumshoq zamonaviy dizayn.
   Faqat landing holatida ishlaydi (chat ochilganda body.chat-on bo‘ladi).
   ========================================================================== */

/* Yorqin palitra (standart) */
body:not(.chat-on) {
  background:
    radial-gradient(900px 560px at 0% -10%, rgba(129,140,248,.22), transparent 62%),
    radial-gradient(820px 520px at 105% 5%, rgba(244,114,182,.16), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(34,211,238,.18), transparent 60%),
    #f6f7fc;
}
body:not(.chat-on)::before { display: none; }

.landing {
  --bg: #f6f7fc;
  --bg2: #ffffff;
  --surface: rgba(255,255,255,.7);
  --surface2: #eef1fb;
  --border: rgba(99,102,241,.12);
  --text: #1b2033;
  --muted: #6b7390;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --shadow: 0 1px 2px rgba(30,41,90,.05), 0 18px 40px -22px rgba(79,70,229,.25);
  color: var(--text);
}

/* Qorong‘i rejim: mavjud ranglarni saqlaydi */
:root[data-theme="dark"] .landing {
  --bg: #0b0d14;
  --bg2: #11141e;
  --surface: rgba(255,255,255,.04);
  --surface2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.09);
  --text: #eef0f6;
  --muted: #9aa3b8;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
:root[data-theme="dark"] body:not(.chat-on) {
  background:
    radial-gradient(900px 560px at 0% -10%, rgba(109,141,255,.18), transparent 62%),
    radial-gradient(820px 520px at 105% 5%, rgba(178,107,255,.14), transparent 60%),
    #0b0d14;
}

/* Yuqori navigatsiya — shisha effekt */
.landing .lhead {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px -18px rgba(30,41,90,.25);
}
:root[data-theme="dark"] .landing .lhead { background: rgba(11,13,20,.75); }

.landing .wm-name {
  font-weight: 800;
  background: linear-gradient(120deg, #4f46e5, #0891b2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .landing .wm-name { background: none; color: var(--text); }
.landing .wm-tag { color: var(--muted); font-size: .72rem; }

.landing .navlink { transition: color .2s; }
.landing .navlink:hover { color: var(--accent); }

.landing .navcta {
  padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 10px 24px -12px rgba(99,102,241,.7);
  transition: transform .15s, filter .2s;
}
.landing .navcta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* Hero */
.landing .hero {
  max-width: 1080px;
  padding: 72px 20px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.landing .hero-copy { min-width: 0; }
.landing .badge {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #4f46e5;
  box-shadow: 0 6px 18px -12px rgba(79,70,229,.45);
  font-weight: 600;
}
:root[data-theme="dark"] .landing .badge { background: var(--surface); color: var(--muted); }
.landing .hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0;
}
.landing .hero p {
  margin: 18px 0 0;
  max-width: 540px;
  font-size: 1.04rem;
  color: var(--muted);
}
.landing .hero .cta { justify-content: flex-start; margin-top: 30px; }
.landing .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #22d3ee 130%);
  box-shadow: 0 16px 34px -14px rgba(99,102,241,.75);
  border-radius: 14px;
}
.landing .btn-ghost {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(30,41,90,.05);
  border-radius: 14px;
}
:root[data-theme="dark"] .landing .btn-ghost { background: var(--surface); }

/* Hero ichidagi chat ko‘rinishi (namuna) */
.landing .demo {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 30px 60px -30px rgba(79,70,229,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .landing .demo { background: var(--bg2); }
.landing .demo-top {
  display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); font-weight: 600;
}
.landing .demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; }
.landing .demo-dot:nth-child(2) { background: #fcd34d; }
.landing .demo-dot:nth-child(3) { background: #86efac; }
.landing .demo-line { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-end; }
.landing .demo-line.me { justify-content: flex-end; }
.landing .demo-av {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 30px; display: grid; place-items: center;
  color: #fff; font-size: .75rem; font-weight: 800; background: linear-gradient(135deg, #6366f1, #22d3ee);
}
.landing .demo-bub {
  max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5;
  background: #f1f4fc; color: var(--text); border-bottom-left-radius: 6px;
}
.landing .demo-line.me .demo-bub {
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 16px;
  border-bottom-right-radius: 6px;
}
:root[data-theme="dark"] .landing .demo-bub { background: var(--surface2); }
.landing .demo-typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.landing .demo-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #a5b4fc; animation: lb-blink 1.2s infinite ease-in-out;
}
.landing .demo-typing span:nth-child(2) { animation-delay: .15s; }
.landing .demo-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lb-blink { 0%,80%,100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* Afzalliklar */
.landing .features {
  max-width: 1080px; padding: 0 20px; margin-top: 56px;
}
.landing .features .feature {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
:root[data-theme="dark"] .landing .features .feature { background: var(--surface); }
.landing .features .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(30,41,90,.04), 0 24px 44px -22px rgba(79,70,229,.35);
  border-color: rgba(99,102,241,.3);
}
.landing .feature .ico {
  width: 50px; height: 50px; border-radius: 16px; margin-bottom: 18px;
  border: none;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: #6366f1;
}
.landing .feature:nth-child(2) .ico { background: linear-gradient(135deg,#ecfeff,#e0f2fe); color: #0891b2; }
.landing .feature:nth-child(3) .ico { background: linear-gradient(135deg,#faf5ff,#fdf2f8); color: #a855f7; }
.landing .feature:nth-child(4) .ico { background: linear-gradient(135deg,#ecfdf5,#f0fdfa); color: #059669; }
:root[data-theme="dark"] .landing .feature .ico { background: var(--surface2); }
.landing .feature h3 { font-size: 1.05rem; font-weight: 800; }
.landing .feature p { font-size: .93rem; line-height: 1.6; }

/* Qanday ishlaydi */
.landing .how { max-width: 1080px; margin-top: 88px; }
.landing .how .sec-kicker {
  display: block; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #6366f1; margin-bottom: 10px;
}
.landing .how h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); letter-spacing: -.02em; font-weight: 850; text-align: center; margin-bottom: 32px; }
.landing .steps { gap: 18px; }
.landing .step {
  background: #ffffff; border: 1px solid var(--border); border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
:root[data-theme="dark"] .landing .step { background: var(--bg2); }
.landing .step b {
  width: 38px; height: 38px; font-size: .95rem; margin-bottom: 16px;
  background: linear-gradient(135deg, #6366f1, #22d3ee); box-shadow: 0 10px 20px -10px rgba(99,102,241,.7);
}
.landing .step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; }

/* CTA */
.landing .cta-band { max-width: 1080px; margin-top: 88px; }
.landing .cta-box {
  position: relative; overflow: hidden; text-align: center; padding: 52px 28px; border-radius: 28px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 120%);
  border: none; color: #fff; box-shadow: 0 30px 60px -28px rgba(99,102,241,.7);
}
.landing .cta-box::after {
  content: ""; position: absolute; right: -80px; bottom: -90px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none;
}
.landing .cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.02em; }
.landing .cta-box p { color: rgba(255,255,255,.88); }
.landing .cta-box .btn-primary {
  background: #ffffff; color: #4f46e5; box-shadow: 0 14px 30px -14px rgba(0,0,0,.35);
}

/* Yangiliklar */
.landing .hnews { max-width: 1080px; margin-top: 88px; padding: 0 20px; }
.landing .hnews-h h2 { font-size: 1.35rem; font-weight: 850; letter-spacing: -.01em; }
.landing .hnews-h a { color: #4f46e5; }
.landing .hn-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
:root[data-theme="dark"] .landing .hn-card { background: var(--surface); }
.landing .hn-card:hover { border-color: rgba(99,102,241,.4); }
.landing .hn-img { background: linear-gradient(120deg, #e0e7ff, #cffafe); }

/* Footer */
.landing .lfoot {
  margin-top: 88px; border-top: 1px solid var(--border); padding-top: 32px;
  background: transparent; color: var(--muted);
}
.landing .lfoot a { color: #4f46e5 !important; }
:root[data-theme="dark"] .landing .lfoot a { color: inherit !important; }

/* Telefon */
@media (max-width: 880px) {
  .landing .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 32px; text-align: center; }
  .landing .hero .cta { justify-content: center; }
  .landing .hero p { margin-left: auto; margin-right: auto; }
  .landing .demo { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .demo-typing span { animation: none; }
  .landing .features .feature { transition: none; }
}
