/* bitg.dtwin.uz — productivity uslubi: tinch sirtlar, 1px chiziq, bitta aksent (logodagi ö nuqtalari). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2-variations"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-cyrillic.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #f6f6f3; --surface: #ffffff; --subtle: #f0f1f2; --hover: #e8eaed; --sunk: #eceee9;
  --text: #1d2027; --muted: #5d626b; --faint: #8a9099;
  --line: #e2e4e7; --line2: #c9cdd3;
  --accent: #2f62c0; --accent-ink: #2553a8; --accent-soft: #e6edfb; --on-accent: #ffffff;
  --ok: #1d7a4f; --ok-soft: #e3f3ea;
  --mark: #1b1e26; --dot: #2f62c0;
  --key-top: #ffffff; --key-side: #d6d9de; --key-ink: #2a2e36; --key-sub: #8a9099; --kb-deck: #e3e5e1;
  --shadow-win: 0 1px 0 rgb(20 24 32 / .04), 0 24px 60px -24px rgb(20 24 32 / .28);
  --r1: 6px; --r2: 10px; --r3: 14px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --soft: cubic-bezier(.33, 1, .68, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117; --surface: #161922; --subtle: #1c202a; --hover: #232835; --sunk: #12151c;
    --text: #ecebe6; --muted: #a0a6b1; --faint: #727986;
    --line: #262b37; --line2: #363d4c;
    --accent: #8fb0ea; --accent-ink: #a9c3f0; --accent-soft: rgb(143 176 234 / .13); --on-accent: #10131a;
    --ok: #6fcf9c; --ok-soft: rgb(111 207 156 / .12);
    --mark: #f3efe7; --dot: #8fb0ea;
    --key-top: #232733; --key-side: #0b0d12; --key-ink: #e3e1da; --key-sub: #7c8391; --kb-deck: #181b23;
    --shadow-win: 0 1px 0 rgb(255 255 255 / .03) inset, 0 30px 70px -30px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1117; --surface: #161922; --subtle: #1c202a; --hover: #232835; --sunk: #12151c;
  --text: #ecebe6; --muted: #a0a6b1; --faint: #727986;
  --line: #262b37; --line2: #363d4c;
  --accent: #8fb0ea; --accent-ink: #a9c3f0; --accent-soft: rgb(143 176 234 / .13); --on-accent: #10131a;
  --ok: #6fcf9c; --ok-soft: rgb(111 207 156 / .12);
  --mark: #f3efe7; --dot: #8fb0ea;
  --key-top: #232733; --key-side: #0b0d12; --key-ink: #e3e1da; --key-sub: #7c8391; --kb-deck: #181b23;
  --shadow-win: 0 1px 0 rgb(255 255 255 / .03) inset, 0 30px 70px -30px rgb(0 0 0 / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.bg-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bg-skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--surface); border: 1px solid var(--line2); padding: 8px 12px; border-radius: var(--r1); }
.bg-skip:focus { top: 12px; }
.bg-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
b { font-weight: 650; }

/* ---------- header ---------- */
.bg-head { position: sticky; top: 0; z-index: 30; height: 60px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bg-head.is-stuck { border-bottom-color: var(--line); }
.bg-head__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.bg-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 680; font-size: 19px; letter-spacing: -.025em; }
.bg-brand__mark { width: 28px; height: 28px; }
.bg-brand__mark path { stroke: var(--mark); stroke-width: 2.8; }
.bg-brand__mark circle { fill: var(--dot); stroke: none; transform-box: fill-box; transform-origin: center; }
.bg-brand:hover .bg-m3 { animation: bg-hop .5s var(--ease); }
.bg-brand:hover .bg-m4 { animation: bg-hop .5s .08s var(--ease); }
@keyframes bg-hop { 40% { transform: translateY(-2.4px) scale(1.15); } }
.bg-nav { display: flex; gap: 4px; font-size: 14px; color: var(--muted); }
.bg-nav a { padding: 6px 10px; border-radius: var(--r1); transition: color .15s, background-color .15s; }
.bg-nav a:hover { color: var(--text); background: var(--subtle); }
.bg-head__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.bg-icon { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r1); background: transparent; color: var(--muted); transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.bg-icon:hover { background: var(--subtle); color: var(--text); border-color: var(--line2); }
.bg-icon:active { transform: scale(.94); }

.bg-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--subtle); }
.bg-seg__b { position: relative; height: 28px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 560; transition: color .15s, background-color .18s; }
.bg-seg__b:hover { color: var(--text); }
.bg-seg__b[aria-pressed="true"], .bg-seg__b[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(20 24 32 / .12), 0 0 0 1px var(--line); }
.bg-seg--lg .bg-seg__b { height: 34px; padding: 0 16px; font-size: 14px; }

.bg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r2); border: 1px solid var(--line2); background: var(--surface); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s var(--ease); }
.bg-btn:hover { background: var(--subtle); transform: translateY(-1px); }
.bg-btn:active { transform: translateY(0) scale(.98); }
.bg-btn--pri { background: var(--text); border-color: var(--text); color: var(--bg); }
.bg-btn--pri:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.bg-btn--sm { height: 36px; padding: 0 13px; font-size: 14px; border-radius: var(--r1); }

/* ---------- hero ---------- */
.bg-hero { position: relative; padding: 56px 0 40px; overflow: clip; }
.bg-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 0); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%); pointer-events: none; }
.bg-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr); gap: 40px; align-items: center; min-height: min(720px, calc(100svh - 100px)); }
.bg-hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 11px 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
.bg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bg-hero h1 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 740; }
.bg-hero__sub { margin: 20px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30ch; }
.bg-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bg-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.bg-meta li { display: inline-flex; align-items: center; gap: 6px; }
.bg-meta svg { width: 16px; height: 16px; color: var(--accent); }

.bg-stage { position: relative; perspective: 1600px; min-height: 520px; display: grid; place-items: center; }
.bg-stage__tilt { position: relative; width: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg)); will-change: transform; }

/* app windows */
.bg-win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: var(--shadow-win); overflow: hidden; }
.bg-win__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--subtle); font-size: 12.5px; color: var(--muted); }
.bg-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.bg-win__bar span { margin-left: 8px; font-weight: 560; }
.bg-win--chat { position: relative; z-index: 2; width: min(440px, 88%); margin: 0 auto -22px; transform: translateZ(60px); }
.bg-chat { display: flex; flex-direction: column; gap: 8px; height: 172px; padding: 16px; overflow: hidden; justify-content: flex-end; }
.bg-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; }
.bg-msg--in { align-self: flex-start; background: var(--subtle); border-bottom-left-radius: 4px; }
.bg-msg--out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.bg-compose { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line2); border-radius: 12px; }
.bg-send { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: var(--on-accent); flex: none; }
.bg-send svg { width: 15px; height: 15px; }
.bg-field { flex: 1; min-height: 24px; font-size: 15.5px; line-height: 24px; white-space: pre-wrap; word-break: break-word; }
.bg-field--big { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; min-height: 1.35em; font-weight: 500; letter-spacing: -.01em; }
.bg-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.17em; background: var(--accent); animation: bg-blink 1.05s steps(1) infinite; }
@keyframes bg-blink { 50% { opacity: 0; } }

/* fused letter */
.bg-w { display: inline; }
.bg-g { position: relative; display: inline-block; }
.bg-g__a, .bg-g__b { display: inline-block; }
.bg-g.is-fusing .bg-g__b { position: absolute; left: 100%; top: 0; }
.bg-g .bg-ring { top: 50%; }
.bg-g.is-new { color: var(--accent-ink); }
.bg-g.is-new::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: bg-under 1.6s var(--soft) forwards; }
@keyframes bg-under { 0% { transform: scaleX(0); opacity: 1; } 25% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.bg-ring { position: absolute; left: 50%; top: 55%; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; }

/* ---------- keyboard ---------- */
.bg-kb { --u: 34px; --gap: 5px; display: grid; gap: var(--gap); padding: 14px; border-radius: 16px; background: var(--kb-deck); border: 1px solid var(--line); user-select: none; }
.bg-kb__row { display: flex; gap: var(--gap); }
.bg-key[data-k="Space"] { flex: 1 1 auto; }
.bg-key { position: relative; flex: 0 0 auto; width: calc(var(--u) * var(--w, 1) + var(--gap) * (var(--w, 1) - 1)); height: var(--u); border-radius: 7px; background: var(--key-top); color: var(--key-ink); box-shadow: 0 3px 0 var(--key-side), 0 0 0 1px color-mix(in srgb, var(--key-side) 60%, transparent); font-size: 13px; font-weight: 560; display: flex; align-items: center; justify-content: center; transition: transform .09s var(--ease), background-color .25s; }
.bg-key small { position: absolute; font-size: 9.5px; font-weight: 500; color: var(--key-sub); }
.bg-key .bg-k-tl { left: 5px; top: 3px; } .bg-key .bg-k-br { right: 5px; bottom: 3px; color: var(--accent-ink); } .bg-key .bg-k-bl { left: 5px; bottom: 3px; }
.bg-key--mod { font-size: 11px; color: var(--key-sub); }
.bg-key.is-down { transform: translateY(3px); box-shadow: 0 0 0 var(--key-side), 0 0 0 1px color-mix(in srgb, var(--key-side) 60%, transparent); background: var(--accent-soft); }
.bg-key.is-new { background: color-mix(in srgb, var(--accent) 16%, var(--key-top)); color: var(--accent-ink); }
.bg-key.is-new.is-down { background: var(--accent); color: var(--on-accent); }
.bg-kb--3d { width: max-content; margin: 0 auto; transform: rotateX(48deg) translateZ(-20px); transform-origin: 50% 0; --u: 33px; }
.bg-kb--flat { --u: clamp(26px, 5.4vw, 54px); --gap: clamp(3px, .55vw, 6px); width: max-content; max-width: 100%; margin: 0 auto; padding: clamp(8px, 1.4vw, 18px); }
.bg-kb--flat .bg-key { font-size: clamp(11px, 1.35vw, 17px); border-radius: clamp(5px, .7vw, 9px); }
.bg-kb--flat .bg-key small { font-size: clamp(8px, .9vw, 11px); }
.bg-key__main { display: inline-block; }
.bg-key__main.is-flip { animation: bg-flip .42s var(--ease); }
@keyframes bg-flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); opacity: .2; } 100% { transform: rotateX(0); } }

/* ---------- sections ---------- */
.bg-sec { padding: clamp(72px, 10vw, 128px) 0; }
.bg-sec--tint { background: var(--sunk); border-block: 1px solid var(--line); }
.bg-sechead { max-width: 820px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.bg-sechead h2 { margin: 0; text-wrap: balance; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; font-weight: 720; }
.bg-sechead p { margin: 12px 0 0; font-size: 17px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bg-sechead--side { text-align: left; margin: 0; }
.bg-sechead--side p { justify-content: flex-start; }
.bg-inl { width: 18px; height: 18px; color: var(--ok); }
.bg-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bg-split--rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

/* letters */
.bg-letters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bg-letter { position: relative; aspect-ratio: 1 / 1.08; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: grid; place-items: center; overflow: hidden; transition: border-color .2s, transform .3s var(--ease); }
.bg-letter:hover { border-color: var(--line2); transform: translateY(-3px); }
.bg-letter__stage { position: relative; display: flex; align-items: baseline; justify-content: center; font-size: clamp(54px, 8vw, 112px); font-weight: 650; letter-spacing: -.04em; line-height: 1; height: 1.15em; }
.bg-letter__stage span { display: inline-block; }
.bg-letter__cap { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.bg-letter__cap kbd { min-width: 24px; padding: 2px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; background: var(--subtle); font: 600 12px/1.4 var(--sans); color: var(--text); text-align: center; }
.bg-letter__cap .bg-arrow { color: var(--faint); }
.bg-letter__cap .bg-new { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); background: var(--accent-soft); }

/* apps */
.bg-apps { display: grid; gap: 18px; }
.bg-apps__tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.bg-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 560; overflow: hidden; transition: color .15s, border-color .15s; }
.bg-tab:hover { color: var(--text); }
.bg-tab[aria-selected="true"] { color: var(--text); border-color: var(--line2); }
.bg-tab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.bg-apps__screen { position: relative; height: clamp(320px, 30vw, 380px); }
.bg-app { position: absolute; inset: 0; margin: 0 auto; max-width: 860px; display: flex; flex-direction: column; }
.bg-app .bg-win { flex: 1; display: flex; flex-direction: column; }
.bg-app__body { flex: 1; position: relative; padding: 22px 26px; font-size: 16px; }
.bg-app--doc .bg-app__body { background: var(--subtle); padding: 26px; }
.bg-doc { max-width: 560px; height: 100%; margin: 0 auto; padding: 34px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px -16px rgb(20 24 32 / .3); }
.bg-doc__h { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.bg-doc__p { color: var(--muted); font-size: 15px; }
.bg-tool { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.bg-tool i { width: 26px; height: 22px; border-radius: 5px; background: var(--subtle); }
.bg-tool i:nth-child(4) { margin-left: 10px; }
.bg-web__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bg-web__url { flex: 1; height: 32px; padding: 0 12px; display: flex; align-items: center; border-radius: 999px; background: var(--subtle); font-size: 13px; color: var(--muted); }
.bg-web__search { max-width: 560px; margin: 46px auto 0; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line2); border-radius: 999px; box-shadow: 0 6px 20px -14px rgb(20 24 32 / .35); }
.bg-web__search svg { color: var(--faint); }
.bg-web__res { max-width: 560px; margin: 22px auto 0; display: grid; gap: 10px; }
.bg-web__res i { display: block; height: 10px; border-radius: 4px; background: var(--subtle); }
.bg-web__res i:nth-child(2) { width: 82%; } .bg-web__res i:nth-child(3) { width: 64%; }
.bg-sheet { display: grid; grid-template-columns: 44px 1.4fr 1fr 1fr; font-size: 14px; border-top: 1px solid var(--line); }
.bg-sheet > div { height: 36px; padding: 0 10px; display: flex; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.bg-sheet .bg-sh-h { background: var(--subtle); color: var(--muted); font-size: 12px; justify-content: center; }
.bg-sheet .bg-sh-n { background: var(--subtle); color: var(--muted); font-size: 12px; justify-content: center; }
.bg-sheet .is-active { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface); }
.bg-term { flex: 1; background: #12151c; color: #dfe3ea; font: 14.5px/1.7 var(--mono); padding: 18px 22px; }
.bg-term .bg-pr { color: #8fb0ea; }
.bg-term .bg-dim { color: #727986; }
.bg-app--code .bg-win__bar { background: #191c25; border-color: #262b37; color: #a0a6b1; }
.bg-app--code .bg-win { border-color: #262b37; }

/* guard */
.bg-guard { position: relative; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-win); overflow: hidden; min-height: 210px; display: flex; align-items: center; }
.bg-guard__line { position: relative; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.75; letter-spacing: -.01em; }
.bg-tok { position: relative; display: inline-block; padding: 0 3px; margin: 0 -1px; border-radius: 6px; transition: background-color .35s, color .35s; }
.bg-tok[data-r="c"].is-seen { background: var(--accent-soft); color: var(--accent-ink); }
.bg-tok[data-r="e"].is-seen, .bg-tok[data-r="p"].is-seen { background: var(--subtle); color: var(--muted); }
.bg-tok__tag { position: absolute; left: 50%; top: -14px; transform: translate(-50%, 4px) scale(.85); opacity: 0; padding: 1px 6px; border-radius: 5px; font: 650 10px/1.5 var(--sans); letter-spacing: .02em; white-space: nowrap; background: var(--text); color: var(--bg); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; display: inline-flex; align-items: center; gap: 3px; }
.bg-tok__tag svg { width: 10px; height: 10px; stroke-width: 2.2; }
.bg-tok.is-seen .bg-tok__tag { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bg-tok[data-r="c"] .bg-tok__tag { background: var(--accent); color: var(--on-accent); }
.bg-guard__scan { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border: 1.5px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 7%, transparent); pointer-events: none; opacity: 0; transition: opacity .3s; }
.bg-legend { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; max-width: 320px; }
.bg-legend li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); font-size: 15px; }
.bg-legend li { text-align: left; }
.bg-legend b { font-variant-numeric: tabular-nums; font-size: 16px; min-width: 2ch; text-align: right; }
.bg-chip { height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.bg-chip svg { width: 15px; height: 15px; }
.bg-chip--c { background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; }
.bg-chip--e, .bg-chip--p { background: var(--subtle); color: var(--muted); }

/* undo */
.bg-undo { position: relative; }
.bg-win--note .bg-note { padding: 34px 30px 46px; min-height: 180px; }
.bg-undo__key { position: absolute; right: -10px; bottom: -26px; width: 128px; height: 64px; border-radius: 12px; background: var(--key-top); box-shadow: 0 5px 0 var(--key-side), 0 0 0 1px var(--line2), 0 22px 40px -20px rgb(20 24 32 / .45); display: grid; place-content: center; text-align: center; color: var(--key-ink); transition: transform .1s var(--ease), box-shadow .1s; }
.bg-undo__key span { font-size: 22px; line-height: 1; }
.bg-undo__key small { font-size: 11px; color: var(--key-sub); margin-top: 2px; }
.bg-undo__key.is-down { transform: translateY(5px); box-shadow: 0 0 0 var(--key-side), 0 0 0 1px var(--line2), 0 12px 24px -18px rgb(20 24 32 / .45); background: var(--accent-soft); }
.bg-toast { position: absolute; left: 22px; bottom: -22px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 560; box-shadow: 0 16px 40px -18px rgb(20 24 32 / .55); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s, transform .45s var(--ease); }
.bg-toast svg { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }
.bg-toast.is-on { opacity: 1; transform: none; }
.bg-strike { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--faint); }

/* layout */
.bg-layout { display: grid; gap: 22px; justify-items: center; }
.bg-layout__bar { display: grid; gap: 10px; justify-items: center; }
.bg-layout__hint { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.5em; text-align: center; }
.bg-layout__hint kbd { padding: 1px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font: 600 12px/1.4 var(--sans); }
.bg-layout__out { width: min(640px, 100%); display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); }
.bg-layout__out:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bg-layout__input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: 19px; }

/* try */
.bg-try { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-win); overflow: hidden; }
.bg-try__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.bg-try__samples { display: flex; flex-wrap: wrap; gap: 6px; }
.bg-pill { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); transition: color .15s, border-color .15s, background-color .15s; }
.bg-pill:hover { color: var(--text); border-color: var(--line2); }
.bg-pill.is-on { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.bg-try__panes { display: grid; grid-template-columns: 1fr 1fr; }
.bg-try__pane { display: flex; flex-direction: column; padding: 16px 18px 18px; min-width: 0; }
.bg-try__pane + .bg-try__pane { border-left: 1px solid var(--line); }
.bg-try__label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.bg-try__state { font-weight: 500; color: var(--faint); }
.bg-try__state.is-ok { color: var(--ok); }
.bg-try textarea { flex: 1; width: 100%; min-height: 200px; resize: vertical; border: 0; outline: 0; background: transparent; font-size: 17px; line-height: 1.65; }
.bg-try__out { flex: 1; min-height: 200px; font-size: 17px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.bg-try__out mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 0 1px; }
.bg-try__out .bg-o-e, .bg-try__out .bg-o-p { color: var(--muted); text-decoration: underline dotted var(--line2); text-underline-offset: 4px; }
.bg-try__out.is-loading { color: var(--faint); }
.bg-try__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.bg-try__opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bg-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.bg-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* platforms */
.bg-plat { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; }
.bg-plat__card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-height: 190px; transition: border-color .2s, transform .3s var(--ease); }
a.bg-plat__card:hover { border-color: var(--line2); transform: translateY(-3px); }
.bg-plat__card--main { background: var(--text); color: var(--bg); border-color: var(--text); }
.bg-plat__card--main .bg-plat__sub { color: color-mix(in srgb, var(--bg) 70%, var(--text)); }
.bg-plat__card--main .bg-plat__ico { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }
.bg-plat__card--main .bg-plat__go { margin-top: auto; align-self: flex-start; background: var(--bg); color: var(--text); border-color: var(--bg); }
.bg-plat__card--soon { background: transparent; border-style: dashed; }
.bg-plat__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--subtle); color: var(--text); margin-bottom: 12px; }
.bg-plat__ico svg { width: 21px; height: 21px; }
.bg-plat__name { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.bg-plat__sub { font-size: 14px; color: var(--muted); }
.bg-state { margin-top: auto; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--subtle); color: var(--muted); }
.bg-state--ok { background: var(--ok-soft); color: var(--ok); }
.bg-note-sm { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--faint); }

/* footer */
.bg-foot { border-top: 1px solid var(--line); padding: 28px 0; }
.bg-foot__in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.bg-foot__txt { font-size: 13px; color: var(--muted); }
.bg-foot__txt a:hover { color: var(--text); }
#bg-ver { margin-left: auto; font-variant-numeric: tabular-nums; }

/* alifbo almashganda */
.bg-abc-swap { animation: bg-swap .5s var(--ease); }
@keyframes bg-swap { 0% { opacity: .35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }

/* app.js qo'shimchalari */
.bg-w { white-space: nowrap; }
.bg-app__chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bg-app__chat .bg-msg { font-size: 16px; }
.bg-app--chat .bg-compose { margin-top: 0; }
.bg-app--web .bg-web__search .bg-field { font-size: 17px; }
.bg-doc__h.bg-field { flex: none; min-height: 1.4em; line-height: 1.3; }
.bg-doc__p.bg-field { flex: none; font-size: 16px; line-height: 1.6; }
.bg-sheet .bg-field { flex: none; line-height: 36px; min-height: 0; font-size: 14px; }
.bg-term .bg-field { font: inherit; }
.bg-term__chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border: 1px solid #363d4c; border-radius: 8px; color: #a9c3f0; font: 500 13px/1.4 var(--sans); }
.bg-term__chip svg { width: 15px; height: 15px; }
.bg-letter.is-done { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
button.bg-key { border: 0; padding: 0; font-family: inherit; cursor: pointer; }
button.bg-key:hover { background: var(--hover); }
button.bg-key.is-new:hover { background: color-mix(in srgb, var(--accent) 24%, var(--key-top)); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bg-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .bg-hero__copy { text-align: center; display: grid; justify-items: center; }
  .bg-hero__sub { max-width: none; }
  .bg-stage { min-height: 460px; }
  .bg-plat { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .bg-nav { display: none; }
  .bg-split, .bg-split--rev { grid-template-columns: 1fr; }
  .bg-split--rev .bg-sechead { order: -1; }
  .bg-sechead--side { text-align: center; }
  .bg-sechead--side p { justify-content: center; }
  .bg-legend { margin-inline: auto; }
  .bg-try__panes { grid-template-columns: 1fr; }
  .bg-try__pane + .bg-try__pane { border-left: 0; border-top: 1px solid var(--line); }
  .bg-letters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bg-letter { grid-column: span 2; }
  .bg-letter:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 560px) {
  .bg-wrap { width: calc(100% - 32px); }
  .bg-head__in { gap: 12px; }
  .bg-hide-sm { display: none; }
  .bg-hero { padding-top: 34px; }
  .bg-hero__cta .bg-btn { width: 100%; }
  .bg-stage { min-height: 380px; perspective: 900px; }
  .bg-win--chat { width: 100%; }
  .bg-kb--3d { --gap: 3px; --u: calc((100vw - 32px - 16px - 42px) / 15.2); padding: 8px; }
  .bg-kb--3d .bg-key { font-size: 9px; border-radius: 4px; }
  .bg-kb--3d .bg-key small { display: none; }
  .bg-letters { gap: 8px; }
  .bg-letter { border-radius: 14px; }
  .bg-letter__cap { bottom: 8px; font-size: 11px; gap: 3px; }
  .bg-letter__cap kbd { min-width: 18px; padding: 1px 4px; font-size: 11px; }
  .bg-tab span { display: none; }
  .bg-tab { padding: 0 12px; }
  .bg-apps__screen { height: 380px; }
  .bg-app__body { padding: 16px; }
  .bg-doc { padding: 22px 20px; }
  .bg-sheet { grid-template-columns: 30px 1.4fr 1fr; }
  .bg-sheet > .bg-sh-x { display: none; }
  .bg-plat { grid-template-columns: 1fr; }
  .bg-plat__card { min-height: 0; }
  .bg-undo__key { right: 0; width: 104px; height: 54px; }
  .bg-toast { left: 10px; font-size: 13px; }
  .bg-kb--flat { --gap: 3px; --u: calc((100vw - 32px - 12px - 39px) / 15.2); padding: 6px; border-radius: 12px; }
  .bg-kb--flat .bg-key { font-size: 11px; border-radius: 4px; }
  .bg-kb--flat .bg-key--mod { font-size: 8.5px; }
  .bg-kb--flat .bg-key small { display: none; }
  .bg-layout { justify-items: stretch; }
  .bg-layout__bar { justify-items: center; }
  .bg-seg--lg .bg-seg__b { padding: 0 11px; font-size: 13px; }
  .bg-apps__screen { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg-caret { animation: none; }
}
