/* FineSMM — sayt dizayn tizimi (bosh sahifa, shartlar, API, 404) */

/* ═══ Ranglar va o'lchamlar ═══ */
:root {
  --bg: #f6f5fb;
  --bg-2: #eeebf7;
  --surface: #ffffff;
  --surface-2: #f4f2fa;
  --surface-3: #ebe7f6;
  --border: rgba(30, 18, 66, .09);
  --border-2: rgba(30, 18, 66, .15);
  --ink: #15121f;
  --ink-2: #4b4662;
  --muted: #7d7895;
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --brand-3: #d946ef;
  --brand-ink: #6d28d9;
  --brand-soft: rgba(124, 58, 237, .10);
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 52%, #d946ef 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(217, 70, 239, .10));
  --tg: #229ed9;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --gold: #f59e0b;
  --code-bg: #14111f;
  --code-ink: #e9e5f7;
  --shadow: 0 1px 2px rgba(25, 12, 60, .04), 0 10px 30px -10px rgba(25, 12, 60, .10);
  --shadow-lg: 0 30px 70px -20px rgba(76, 29, 149, .30);
  --radius: 18px;
  --radius-lg: 26px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09080e;
    --bg-2: #0e0c16;
    --surface: #131119;
    --surface-2: #1a1724;
    --surface-3: #221e2f;
    --border: rgba(255, 255, 255, .07);
    --border-2: rgba(255, 255, 255, .13);
    --ink: #f5f3fc;
    --ink-2: #c6c1da;
    --muted: #8e89a6;
    --brand-ink: #c9a8ff;
    --brand-soft: rgba(168, 85, 247, .14);
    --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(217, 70, 239, .12));
    --code-bg: #0d0b13;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 34px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(124, 58, 237, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09080e;
  --bg-2: #0e0c16;
  --surface: #131119;
  --surface-2: #1a1724;
  --surface-3: #221e2f;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .13);
  --ink: #f5f3fc;
  --ink-2: #c6c1da;
  --muted: #8e89a6;
  --brand-ink: #c9a8ff;
  --brand-soft: rgba(168, 85, 247, .14);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(217, 70, 239, .12));
  --code-bg: #0d0b13;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 34px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -20px rgba(124, 58, 237, .35);
  color-scheme: dark;
}

/* ═══ Asos ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: rgba(168, 85, 247, .3); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); }
/* Grid ichidagi uzun kod qatorlari ustunni kengaytirib yubormasligi uchun */
.hero-grid > *, .api-teaser > *, .docs > *, .products > *, .features > *, .services > * { min-width: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }

/* ═══ Tugmalar ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  color: #fff; background: var(--grad);
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(124, 58, 237, .85), inset 0 1px 0 rgba(255, 255, 255, .25); filter: saturate(1.1); }
.btn:active { transform: translateY(0); }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.btn.ghost:hover { border-color: var(--brand-2); }
.btn.tg { background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 10px 26px -10px rgba(34, 158, 217, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--border-2); }
.icon-btn:active { transform: scale(.94); }

/* ═══ Header ═══ */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-bottom-color: var(--border); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .7); }
.logo b { color: var(--brand-ink); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--brand-ink); background: var(--brand-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
  display: grid; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s;
}
.mobile-nav.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; font-weight: 600; }
.mobile-nav a:hover, .mobile-nav a.on { background: var(--surface-2); }
.mobile-nav .btn { margin-top: 8px; }

/* ═══ Bo'limlar ═══ */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 16px;
  border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-ink); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand-2) 22%, transparent);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--good) 8%, transparent); } }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--ink-2); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ═══ Hero ═══ */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(124, 58, 237, .28), transparent 70%),
    radial-gradient(35% 45% at 82% 18%, rgba(217, 70, 239, .20), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(34, 158, 217, .14), transparent 70%);
  filter: blur(10px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; margin-bottom: 22px; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-trust .num { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hero-trust .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-trust > div { padding-left: 16px; border-left: 2px solid; border-image: var(--grad) 1; }

/* Telefon / bot chat ko'rinishi */
.mock { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.mock-phone {
  position: relative; border-radius: 34px; padding: 14px;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
}
.mock-top { display: flex; align-items: center; gap: 12px; padding: 8px 10px 14px; border-bottom: 1px solid var(--border); }
.mock-top img { width: 40px; height: 40px; border-radius: 50%; }
.mock-top b { display: block; font-size: 15px; }
.mock-top span { font-size: 12px; color: var(--tg); font-weight: 600; }
.chat { display: grid; gap: 10px; padding: 16px 6px 6px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.bubble.in { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.out { justify-self: end; color: #fff; background: var(--grad); border-bottom-right-radius: 6px; }
.bubble .meta { display: block; font-size: 11px; opacity: .6; margin-top: 4px; text-align: right; }
.bubble b { font-weight: 800; }
.bubble .ico { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 5px; }
.bubble.in .ico { color: var(--brand-ink); }
.bubble .line { display: block; }
.chat-buttons span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.chat-buttons .ico { margin: 0; vertical-align: 0; }
.chat-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat-buttons span { padding: 9px 10px; text-align: center; font-size: 13px; font-weight: 600; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 700; animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.float-chip .badge-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.float-chip.c1 { top: 16%; left: -48px; }
.float-chip.c2 { bottom: 14%; right: -40px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ═══ Platformalar lentasi ═══ */
.platforms { padding: 8px 0 24px; }
.platforms-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; 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: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pchip { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; white-space: nowrap; }
.pchip .ico { color: var(--brand-ink); }
.pchip .ico.gold { color: var(--gold); }
.pchip .ico.tg { color: var(--tg); }

/* ═══ Statistika ═══ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { padding: 24px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: var(--grad-soft); }
.stat .ico-tile { margin-bottom: 18px; }
.stat .num { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 4px; }

.ico-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  color: #fff; background: var(--grad); box-shadow: 0 10px 22px -10px rgba(124, 58, 237, .8);
}
.ico-tile.tg { background: linear-gradient(135deg, #2aabee, #1e88c7); box-shadow: 0 10px 22px -10px rgba(34, 158, 217, .8); }
.ico-tile.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 10px 22px -10px rgba(245, 158, 11, .8); }
.ico-tile.green { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 22px -10px rgba(5, 150, 105, .8); }
.ico-tile.soft { color: var(--brand-ink); background: var(--brand-soft); box-shadow: none; }

/* ═══ Afzalliklar ═══ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 28px 24px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand-2) 40%, transparent); box-shadow: var(--shadow-lg); }
.feature h3 { font-family: var(--font); font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 20px 0 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* ═══ Qadamlar ═══ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { padding: 30px 26px; position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, transparent);
}
.step h3 { font-family: var(--font); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -20px; width: 20px; height: 2px; background: var(--grad); opacity: .5;
}

/* ═══ Telegram mahsulotlari ═══ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { padding: 30px 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--grad)); }
.product .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--tag-ink, var(--brand-ink)); background: var(--tag-bg, var(--brand-soft)); }
.product h3 { font-family: var(--font); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.product > p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.price b { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; font-weight: 600; }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks li .ico { width: 18px; height: 18px; color: var(--good); margin-top: 3px; stroke-width: 2.6; }
.product .btn { width: 100%; }
.product.p-gold { --accent: linear-gradient(90deg, #fbbf24, #f59e0b); --tag-bg: rgba(245, 158, 11, .14); --tag-ink: #b45309; }
.product.p-tg { --accent: linear-gradient(90deg, #2aabee, #1e88c7); --tag-bg: rgba(34, 158, 217, .13); --tag-ink: #0b7fb8; }
:root[data-theme="dark"] .product.p-gold { --tag-ink: #fcd34d; }
:root[data-theme="dark"] .product.p-tg { --tag-ink: #7dd3fc; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product.p-gold { --tag-ink: #fcd34d; }
  :root:not([data-theme="light"]) .product.p-tg { --tag-ink: #7dd3fc; }
}
.notice-pill {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center;
  margin: 28px auto 0; padding: 12px 22px; width: fit-content; max-width: 100%;
  border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
}
.notice-pill .ico { color: var(--gold); }

/* ═══ Ommabop xizmatlar ═══ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service { padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s; }
.service:hover { border-color: color-mix(in srgb, var(--brand-2) 40%, transparent); transform: translateY(-3px); }
.service .top { display: flex; align-items: center; gap: 10px; }
.service .top .ico-tile { width: 38px; height: 38px; border-radius: 12px; }
.service .top .ico-tile .ico { width: 18px; height: 18px; }
.service .net { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.service .net .ico { width: 14px; height: 14px; }
.service .name { font-weight: 700; line-height: 1.35; flex: 1; }
.service .eta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.service .eta .ico { color: var(--brand-ink); }
.service .eta .ico.gold { color: var(--gold); fill: var(--gold); }
.service .cost { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--border-2); }
.service .cost b { font-family: var(--display); font-size: 18px; }
.service .cost span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ═══ Kod bloklari ═══ */
.code {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg);
}
.code-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #a7a1c0; }
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3550; }
.code-head .dots i:nth-child(1) { background: #ff5f57; } .code-head .dots i:nth-child(2) { background: #febc2e; } .code-head .dots i:nth-child(3) { background: #28c840; }
.code-head .copy { margin-left: auto; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; tab-size: 2; }
.code .k { color: #c792ea; } .code .s { color: #c3e88d; } .code .n { color: #f78c6c; } .code .c { color: #6b6585; } .code .p { color: #89ddff; } .code .f { color: #82aaff; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px;
  font-size: 12px; font-weight: 700; color: #d6d0ee; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s;
}
.copy:hover { background: rgba(255, 255, 255, .14); }
.copy.done { color: #86efac; }

.api-teaser { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.api-teaser .list { display: grid; gap: 14px; margin: 26px 0 30px; }
.api-teaser .list div { display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--ink-2); }

/* ═══ To'lov hamkorlari ═══ */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner { padding: 22px; display: flex; align-items: center; gap: 16px; transition: transform .25s, border-color .25s; }
.partner:hover { transform: translateY(-3px); border-color: var(--border-2); }
.partner img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: #fff; border: 1px solid var(--border); }
.partner b { display: block; font-size: 17px; }
.partner span { font-size: 14px; color: var(--muted); }

/* ═══ FAQ ═══ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand-2) 35%, transparent); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .25s; color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--brand-ink); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }

/* ═══ CTA ═══ */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 48px; text-align: center; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent); mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.cta p { font-size: 17px; opacity: .9; max-width: 560px; margin: 0 auto 30px; }
.cta .btn { color: var(--brand-ink); background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.cta .btn.ghost { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ═══ Footer ═══ */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--ink-2); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* ═══ Hujjat sahifalari (shartlar, API) ═══ */
.page-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); }
.meta-chip .ico { color: var(--brand-ink); }

.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.toc-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 12px 8px; }
.toc-title:first-child { margin-top: 0; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.toc a.on { color: var(--brand-ink); background: var(--brand-soft); }
.toc a .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.toc a .m { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }

.doc-section { padding: 32px; margin-bottom: 20px; }
.doc-section h2 { font-size: 24px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; }
.doc-section h2 .num { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 10px; }
.doc-section > p { color: var(--ink-2); margin-bottom: 20px; }

.clauses { display: grid; gap: 4px; }
.clause { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); }
.clause:first-child { border-top: 0; }
.clause .n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-ink); padding-top: 2px; }
.clause p { color: var(--ink-2); }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); }
.callout .ico { color: var(--warn); margin-top: 3px; }
.callout.info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand-2) 28%, transparent); }
.callout.info .ico { color: var(--brand-ink); }

.endpoint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 14px; }
.method { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 8px; letter-spacing: .05em; }
.method.get { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.method.post { color: var(--tg); background: color-mix(in srgb, var(--tg) 14%, transparent); }
.endpoint .url { flex: 1; min-width: 0; word-break: break-all; }
.endpoint .copy { color: var(--ink-2); background: var(--surface); border-color: var(--border-2); }

.params { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.params th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 0 12px 10px; }
.params td { padding: 12px; border-top: 1px solid var(--border); vertical-align: top; color: var(--ink-2); }
.params td:first-child { white-space: nowrap; }
.params code, .inline-code { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 2px 7px; border-radius: 7px; }
.req { font-size: 11px; font-weight: 800; margin-left: 8px; color: var(--bad); }
.opt { font-size: 11px; font-weight: 800; margin-left: 8px; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: all .2s; }
.tabs button.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
[data-panel][hidden] { display: none; }

.errors-table td:first-child code { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }

/* ═══ 404 ═══ */
.notfound { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 64px 0; position: relative; overflow: hidden; }
.notfound .code404 { font-family: var(--display); font-size: clamp(110px, 22vw, 220px); font-weight: 700; line-height: .9; letter-spacing: -.06em; }
.notfound h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 18px 0 12px; }
.notfound p { color: var(--ink-2); max-width: 480px; margin: 0 auto 30px; font-size: 17px; }
.quick-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ═══ Animatsiya ═══ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ═══ Moslashuvchanlik ═══ */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-chip.c1 { left: -12px; } .float-chip.c2 { right: -8px; }
}
@media (max-width: 920px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .api-teaser { grid-template-columns: 1fr; gap: 48px; }
  .products, .steps, .partners { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; overflow-x: auto; overflow-y: visible; max-height: none; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc-title { display: none; }
  .toc a { white-space: nowrap; background: var(--surface); border: 1px solid var(--border); }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .features, .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px; } .stat .num { font-size: 24px; }
  .hero .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .hero-trust { gap: 18px; }
  .hero-trust .num { font-size: 21px; }
  .float-chip { display: none; }
  .cta { padding: 44px 22px; border-radius: 26px; }
  .doc-section { padding: 22px 18px; }
  .clause { grid-template-columns: 40px 1fr; }
  .params { font-size: 14px; }
  .params td, .params th { padding-left: 6px; padding-right: 6px; }
  .params td:first-child { white-space: normal; }
  .params .req, .params .opt { display: block; margin: 4px 0 0; }
  .endpoint { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo span { font-size: 15px; }
}
img.ico.prem { object-fit: contain; border-radius: 4px; }
