/* ---------- Ranglar va shriftlar (dizayn tokenlari) ---------- */
:root {
  --bg: #edf0f3;      /* sahifa foni */
  --panel: #ffffff;   /* demo kartalar */
  --ink: #101923;     /* asosiy matn */
  --muted: #5b6773;   /* ikkinchi darajali matn */
  --line: #d3d9df;    /* chiziqlar */
  --accent: #2b50f5;  /* yagona urg‘u rangi */
  --accent-soft: #dfe5ff;
  --hot: #c8ff2e;     /* e‘tiborni tortuvchi laym rang */
  --violet: #7a3cff;
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 1.05rem/1.65 var(--body); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }


/* ---------- Yon nuqtalar ---------- */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 10;
  display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); transition: .2s; }
.dots a.on { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.dots a::after { content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .8rem; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover::after, .dots a:focus-visible::after { opacity: 1; }

/* ---------- Bo‘limlar ---------- */
.sec { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: 110px clamp(20px, 7vw, 110px) 70px; border-bottom: 1px solid var(--line); }
.sec.flip .copy { order: 2; }
.tag { font-weight: 700; color: var(--accent); margin-bottom: 18px; font-size: .95rem; }
h1, h2 { font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
.lead { margin-top: 22px; max-width: 46ch; color: var(--muted); }

/* ---------- Demo kartalar (umumiy) ---------- */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: .88rem; }

/* 1. Chat */
.tabs { display: flex; gap: 8px; }
.tab { font: 700 .9rem var(--body); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: none; cursor: pointer; color: var(--muted); }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: .98rem; line-height: 1.45;
  animation: pop .3s ease both; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--accent-soft); border-bottom-left-radius: 4px; }
.msg.typing { color: var(--muted); letter-spacing: 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* 2. Inbox */
.inbox { list-style: none; padding: 0; display: grid; gap: 12px; }
.inbox li { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.q { font-weight: 500; }
.chip.hand { background: #ffe9dc; color: #b3430f; }

/* 3. Qo‘ng‘iroq */
.wave { display: flex; align-items: center; gap: 4px; height: 90px; }
.wave i { flex: 1; background: var(--accent); border-radius: 4px; height: 20%; transition: height .25s; }
.script { display: grid; gap: 10px; font-size: .98rem; }
.script b { font-weight: 700; }
.script .sum { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }

/* 4. Hujjat */
.docs-demo { flex-direction: row; align-items: center; flex-wrap: wrap; }
.paper { position: relative; width: 160px; height: 210px; padding: 22px 18px; display: grid; align-content: start;
  gap: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fafbfc; }
.paper i { height: 7px; border-radius: 4px; background: var(--line); }
.paper i.s { width: 60%; }
.scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent);
  box-shadow: 0 0 18px 4px var(--accent); animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 0; } 50% { top: calc(100% - 3px); } }
.fields { display: grid; gap: 10px; justify-items: start; flex: 1; min-width: 200px; }

/* 5. CRM */
.crm-demo { flex-direction: row; align-items: center; justify-content: center; gap: 0; }
.hub { width: 92px; height: 92px; flex: none; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font: 700 1.4rem var(--head); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 80, 245, .45); } 100% { box-shadow: 0 0 0 28px transparent; } }
.nodes { display: grid; gap: 12px; position: relative; padding-left: 56px; }
.nodes::before { content: ""; position: absolute; left: 0; top: 50%; width: 56px; height: 2px; background: var(--accent); }
.nodes span { padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }

/* 6. Statistika */
.kpi { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kpi strong { font: 700 clamp(3rem, 6vw, 5rem) var(--head); color: var(--accent); }
.kpi strong::after { content: "%"; }
.kpi span { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; }
.bars i { flex: 1; height: 0; background: var(--accent-soft); border-radius: 8px 8px 0 0; transition: height 1s cubic-bezier(.2, .8, .2, 1); }
.bars i:last-child { background: var(--accent); }
.sec.seen .bars i { height: var(--h); }

/* ---------- Rangli urg‘ular ---------- */
.tag { display: inline-block; background: var(--hot); color: var(--ink); padding: 6px 14px; border-radius: 999px; }
.hub, .bars i:last-child, .tab.on { background: linear-gradient(135deg, var(--accent), var(--violet)); }
.kpi strong { background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi strong::after { color: var(--violet); -webkit-text-fill-color: var(--violet); }
.demo { box-shadow: 10px 10px 0 var(--hot); }
/* 1-bo‘lim foni: sekin siljuvchi rangli dog‘lar */
#bot { position: relative; overflow: hidden; }
#bot::before, #bot::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 14s ease-in-out infinite alternate; }
#bot::before { width: 420px; height: 420px; background: var(--hot); top: -80px; right: 8%; }
#bot::after { width: 360px; height: 360px; background: var(--violet); opacity: .3; bottom: -100px; left: -60px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
body { isolation: isolate; }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 18px clamp(20px, 5vw, 64px); transition: padding .3s, background .3s, box-shadow .3s;
  animation: drop .8s cubic-bezier(.2, .8, .2, 1) both; }
.top.scrolled { padding-block: 10px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line); }
@keyframes drop { from { transform: translateY(-100%); opacity: 0; } }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1rem var(--head); }
.logo span { color: var(--accent); }
.mark { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px transparent; } }
.links { display: flex; gap: 28px; }
.links a { position: relative; font-weight: 700; font-size: .95rem; padding: 4px 0; }
.links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--hot);
  transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.links a:hover::after { transform: scaleX(1); }

/* ---------- Tugmalar ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 22px;
  border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .2s, background .2s, color .2s; }
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn.hot { background: var(--hot); color: var(--ink); }
.btn.hot:hover { background: var(--ink); color: var(--hot); }
.btn.big { margin-top: 28px; padding: 15px 30px; background: var(--accent); }
.btn.big2 { margin-top: 24px; padding: 16px 32px; font-size: 1.05rem; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #17c964; animation: ping2 1.6s ease-out infinite; }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(23, 201, 100, .7); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #fff; overflow: hidden; }
.marquee { border-bottom: 1px solid #ffffff26; padding: 26px 0; overflow: hidden; }
.track { display: flex; gap: 48px; width: max-content; animation: slide 28s linear infinite; }
.track span { font: 700 clamp(1.8rem, 4vw, 3.4rem) var(--head); white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.track span:nth-child(3n+1) { color: var(--hot); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px;
  padding: 56px clamp(20px, 7vw, 110px) 40px; }
.foot-title { font: 700 clamp(1.5rem, 3vw, 2.4rem) / 1.2 var(--head); max-width: 18ch; }
.foot-links { display: grid; gap: 12px; font-weight: 700; }
.foot-links a { width: fit-content; border-bottom: 2px solid transparent; transition: .2s; }
.foot-links a:hover { color: var(--hot); border-color: var(--hot); }
.copy-r { padding: 0 clamp(20px, 7vw, 110px) 28px; color: #ffffff8c; font-size: .9rem; }


/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .sec { grid-template-columns: 1fr; padding-top: 100px; }
  .sec.flip .copy { order: 0; }
  .dots { display: none; }
  .links { display: none; }
  .crm-demo { flex-direction: column; gap: 20px; }
  .nodes { padding: 36px 0 0; }
  .nodes::before { left: 50%; top: 0; width: 2px; height: 36px; }
}

/* Harakatni kamaytirish */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
