/* APK Guardian — sayt uslubi: shisha (glassmorphism), bo'rtma/botiq (neumorphism), 3D logo sahnasi.
   Ranglar va shriftlar taqdimot bilan bir xil (docs/taqdimot/README.md). Ikki mavzu: tungi (standart) va kunduzgi. */

/* ---------- shriftlar (serverning o'zidan) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "DM Sans"; src: url("fonts/dm-sans-latin.woff2") format("woff2"); font-weight: 100 1000; font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-ext.woff2") format("woff2"); font-weight: 100 1000; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Manrope"; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-cyrillic-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2212; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2212; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-cyrillic-600.woff2") format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-cyrillic-ext-400.woff2") format("woff2"); font-weight: 400 600; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---------- mavzular ---------- */
:root {
  --display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --sans: "DM Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --accent: #ffa057;
  --accent-grad: linear-gradient(135deg, #ffc08a 0%, #ff7a45 52%, #ff4d8d 100%);
  --accent-ink: #2a0d12;
  --purple: #a98bff;
  --blue: #6fc3ff;
  --green: #45e0a5;
  --yellow: #ffc857;
  --red: #ff5a72;
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root, [data-theme="dark"] {
  --bg: #07091a;
  --bg-2: #0d1130;
  --text: #f5f3ff;
  --text-2: #b8bedb;
  --muted: #8189ad;
  --line: rgba(255, 255, 255, .10);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .025) 100%);
  --glass-solid: rgba(17, 21, 52, .72);
  --menu-solid: rgba(14, 18, 46, .97);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-shadow: 0 24px 60px rgba(4, 6, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  --neu-out: 8px 8px 22px rgba(0, 0, 0, .5), -6px -6px 18px rgba(120, 130, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .06);
  --neu-in: inset 8px 8px 18px rgba(0, 0, 0, .55), inset -6px -6px 16px rgba(130, 140, 255, .06);
  --neu-surface: linear-gradient(145deg, #12173d, #0b0f2a);
  --orb-a: rgba(124, 92, 255, .45);
  --orb-b: rgba(59, 130, 246, .35);
  --orb-c: rgba(255, 122, 69, .22);
  --grid: rgba(148, 160, 255, .05);
  --chip-high: rgba(255, 90, 114, .16);
  --chip-mid: rgba(255, 200, 87, .14);
}
[data-theme="light"] {
  --bg: #eceef8;
  --bg-2: #e2e5f4;
  --text: #171a36;
  --text-2: #464c72;
  --muted: #6b7196;
  --line: rgba(23, 26, 54, .10);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .42) 100%);
  --glass-solid: rgba(246, 247, 253, .82);
  --menu-solid: rgba(248, 249, 254, .98);
  --glass-border: rgba(255, 255, 255, .9);
  --glass-shadow: 0 24px 50px rgba(70, 80, 140, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
  --neu-out: 9px 9px 22px #c6cae0, -9px -9px 22px #ffffff;
  --neu-in: inset 7px 7px 14px #c9cde3, inset -7px -7px 14px #ffffff;
  --neu-surface: linear-gradient(145deg, #f4f5fc, #e2e5f3);
  --orb-a: rgba(169, 139, 255, .38);
  --orb-b: rgba(111, 195, 255, .40);
  --orb-c: rgba(255, 160, 87, .30);
  --grid: rgba(70, 80, 140, .06);
  --chip-high: rgba(255, 90, 114, .14);
  --chip-mid: rgba(255, 180, 60, .18);
  color-scheme: light;
}

/* ---------- asos ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, var(--bg-2), transparent 60%), var(--bg);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(255, 122, 69, .35); }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 880px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent-grad); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 14px; }

/* kosmik fon: suzuvchi sharlar va nozik setka */
.cosmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.orb-a { width: 620px; height: 620px; left: -160px; top: 10%; background: var(--orb-a); animation: drift-a 26s var(--ease) infinite alternate; }
.orb-b { width: 560px; height: 560px; right: -140px; top: 35%; background: var(--orb-b); animation: drift-b 30s var(--ease) infinite alternate; }
.orb-c { width: 480px; height: 480px; left: 35%; bottom: -220px; background: var(--orb-c); animation: drift-a 34s var(--ease) infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-100px, -60px) scale(.92); } }

/* ---------- umumiy bloklar ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
}
.neu { background: var(--neu-surface); box-shadow: var(--neu-out); border-radius: var(--radius-sm); }
.neu-in { background: var(--neu-surface); box-shadow: var(--neu-in); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: 16px;
  font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { color: var(--accent-ink); background: var(--accent-grad); box-shadow: 0 14px 32px rgba(255, 106, 80, .38), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(120, 20, 40, .18); }
.btn-accent::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; z-index: -1; transition: background-position .8s var(--ease); mix-blend-mode: soft-light; }
.btn-accent:hover::after { background-position: -20% 0; }
.btn-accent:hover { box-shadow: 0 18px 40px rgba(255, 106, 80, .5), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-glass { background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-ghost { background: var(--neu-surface); box-shadow: var(--neu-out); }
.btn-ghost:active { box-shadow: var(--neu-in); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 15px; border-radius: 14px; }
.btn-lg { min-height: 58px; padding: 15px 28px; font-size: 17px; border-radius: 18px; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 6px; }

.section { padding: 110px 0 0; position: relative; }
.head { max-width: 720px; margin-bottom: 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
[data-theme="light"] .kicker, [data-theme="light"] .link-btn { color: #d9542a; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent-grad); }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 14px 0 14px; }
.sub { color: var(--text-2); font-size: 18px; }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; background: rgba(255, 200, 87, .14); color: var(--yellow); border: 1px solid rgba(255, 200, 87, .4); }
[data-theme="light"] .tag { color: #9a6500; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tag-live { background: rgba(69, 224, 165, .12); color: var(--green); border-color: rgba(69, 224, 165, .45); }
[data-theme="light"] .tag-live { color: #0d8a5c; }

/* holat ikonkalari: hajmli yaltiroq sharchalar */
.ico { flex: none; width: 34px; height: 34px; border-radius: 50%; position: relative; box-shadow: inset -4px -6px 10px rgba(0, 0, 0, .25), inset 4px 5px 8px rgba(255, 255, 255, .45), 0 6px 16px rgba(0, 0, 0, .25); }
.ico::after { content: ""; position: absolute; left: 20%; top: 12%; width: 30%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .4); filter: blur(1px); }
.ico.ok { background: radial-gradient(circle at 35% 30%, #9cf7d2, #19b47c 70%); }
.ico.bad { background: radial-gradient(circle at 35% 30%, #ffb3be, #e0284a 70%); }
.ico.scan { background: radial-gradient(circle at 35% 30%, #c9e8ff, #3a86e8 70%); animation: spin-soft 2.4s linear infinite; }
/* sharchalar ichidagi ikonkalar (SVG niqob — rang CSS'dan, oq) */
.ico::before, .sphere::before, .ball::before { content: ""; position: absolute; inset: 22%; background: #fff; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.sphere::before { inset: 24%; }
.ball::before { inset: 25%; }
.ico.ok::before, .sphere.safe::before { -webkit-mask-image: url("icons/check.svg"); mask-image: url("icons/check.svg"); }
.ico.bad::before, .sphere.danger::before, .sphere.bad::before { -webkit-mask-image: url("icons/alert.svg"); mask-image: url("icons/alert.svg"); }
.ico.scan::before { -webkit-mask-image: url("icons/scan.svg"); mask-image: url("icons/scan.svg"); }
.ball.b1::before { -webkit-mask-image: url("icons/layers.svg"); mask-image: url("icons/layers.svg"); }
.ball.b2::before { -webkit-mask-image: url("icons/chip.svg"); mask-image: url("icons/chip.svg"); }
.ball.b3::before { -webkit-mask-image: url("icons/shield.svg"); mask-image: url("icons/shield.svg"); }
.ball.b-app::before { -webkit-mask-image: url("icons/phone.svg"); mask-image: url("icons/phone.svg"); }
.ball.b-bot::before { -webkit-mask-image: url("icons/send.svg"); mask-image: url("icons/send.svg"); }
@keyframes spin-soft { 50% { transform: scale(.9); filter: brightness(1.2); } }

/* ---------- menyu ---------- */
.top { position: sticky; top: 0; z-index: 40; padding: 12px 0; transition: padding .3s var(--ease); }
.top .nav { display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 14px 0 18px; border-radius: 22px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.top.scrolled .nav { background: var(--glass-solid); border-color: var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 6px 14px rgba(59, 130, 246, .45)); }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { padding: 8px 14px; border-radius: 12px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: rgba(127, 127, 255, .08); }
.menu-lang { display: none; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--neu-surface); box-shadow: var(--neu-out); font-size: 14px; font-weight: 600; cursor: pointer; }
.lang-btn svg { width: 17px; height: 17px; color: var(--muted); }
.lang-btn .chev { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; display: grid; gap: 2px; border-radius: 18px; background: var(--menu-solid); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s; z-index: 50; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(127, 127, 255, .12); color: var(--text); outline: none; }
.lang-menu button[aria-selected="true"] { color: var(--text); }
.lang-menu button[aria-selected="true"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 10px rgba(255, 122, 69, .6); }
.lang-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border-radius: 16px; background: var(--neu-surface); box-shadow: var(--neu-in); }
.lang-seg button { height: 42px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font-weight: 700; font-size: 15px; cursor: pointer; }
.lang-seg button[aria-pressed="true"] { background: var(--accent-grad); color: var(--accent-ink); box-shadow: 0 8px 18px rgba(255, 106, 80, .35); }
.theme-switch { position: relative; width: 74px; height: 40px; border-radius: 999px; border: 1px solid var(--glass-border); cursor: pointer; background: var(--neu-surface); box-shadow: var(--neu-in); padding: 0; }
.theme-switch .knob { position: absolute; top: 3px; left: 3px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-grad); color: var(--accent-ink); box-shadow: 0 6px 14px rgba(255, 106, 80, .4), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .45s var(--ease); }
.theme-switch svg { position: absolute; width: 18px; height: 18px; transition: opacity .3s, transform .45s var(--ease); }
[data-theme="dark"] .theme-switch .knob { transform: translateX(34px); }
[data-theme="dark"] .theme-switch .sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-switch .moon { opacity: 0; transform: rotate(90deg); }
.burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--neu-surface); box-shadow: var(--neu-out); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- bosh qism ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 20px; min-height: calc(100vh - 88px); }
.hero-main { min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(69, 224, 165, .6); animation: ping 2s infinite; }
.status-pill.down .dot { background: var(--red); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(69, 224, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(69, 224, 165, 0); } }
.hero h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; margin: 20px 0 16px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; display: inline; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 560px; }
.scan-area { display: grid; gap: 16px; margin-top: 28px; scroll-margin-top: 100px; }

/* 3D logo sahnasi */
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; perspective: 1400px; }
/* Kompyuterda logo yuqorida turadi va natija uzun bo'lsa ham ko'rinib boradi */
@media (min-width: 1081px) { .stage { align-self: start; position: sticky; top: 96px; margin-top: 24px; } }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 55% 40%, rgba(80, 140, 255, .45), rgba(124, 92, 255, .18) 45%, transparent 70%); filter: blur(20px); animation: halo 6s ease-in-out infinite; }
[data-theme="light"] .halo { background: radial-gradient(circle at 55% 40%, rgba(90, 150, 255, .35), rgba(169, 139, 255, .16) 45%, transparent 70%); }
@keyframes halo { 50% { transform: scale(1.06); opacity: .8; } }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--glass-border); top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(72deg); }
.ring.r1 { width: 92%; height: 92%; border-color: rgba(111, 195, 255, .35); animation: ring-spin 18s linear infinite; }
.ring.r2 { width: 76%; height: 76%; border-style: dashed; border-color: rgba(169, 139, 255, .35); animation: ring-spin 26s linear infinite reverse; }
.ring.r3 { width: 104%; height: 104%; border-color: rgba(255, 160, 87, .18); }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); } }
.podium { position: absolute; left: 50%; bottom: 3%; width: 64%; height: 13%; transform: translateX(-50%); border-radius: 50%; background: var(--neu-surface); box-shadow: var(--neu-out), inset 0 -8px 24px rgba(0, 0, 0, .25), 0 0 60px rgba(80, 140, 255, .25); }
.podium::after { content: ""; position: absolute; inset: 18% 14%; border-radius: 50%; box-shadow: var(--neu-in); }
.float { position: absolute; inset: 4% 6% 10%; animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes float { 50% { transform: translateY(-14px); } }
.logo3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .25s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.logo-still, .logo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-still { filter: drop-shadow(0 30px 40px rgba(10, 20, 80, .45)); transition: opacity .4s; }
.logo-canvas { opacity: 0; transition: opacity .4s; }
.story-live .logo-canvas { opacity: 1; }
.story-live .logo-still { opacity: 0; }

/* hikoya holati: logo animatsiyasi bilan birga o'zgaradi (logo-story.js → app.js) */
.story-toast { position: absolute; left: 2%; top: 83%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 18px; min-width: 230px; pointer-events: none; transform: translateZ(80px); }
.story-toast b { display: block; font-size: 15px; font-family: var(--display); }
.story-toast span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.story-toast .ico { width: 34px; height: 34px; }
.story-toast.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px) scale(.97); } }


/* ---------- skaner ---------- */
.scanner { padding: 22px; position: relative; overflow: hidden; }
.scanner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(135deg, rgba(255, 160, 87, .7), rgba(169, 139, 255, .35) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.state { display: none; }
.scanner[data-state="idle"] .s-idle, .scanner[data-state="busy"] .s-busy, .scanner[data-state="result"] .s-result, .scanner[data-state="error"] .s-error { display: block; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 250px; padding: 30px 20px; border-radius: 22px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.drop:hover, .drop.over { box-shadow: var(--neu-in), 0 0 0 2px rgba(255, 160, 87, .55); }
.drop.over { transform: scale(1.01); }
.drop-orb { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: var(--accent-ink); background: radial-gradient(circle at 35% 30%, #ffd7b0, #ff7a45 60%, #ff4d8d 100%); box-shadow: 0 18px 36px rgba(255, 106, 80, .4), inset -6px -8px 14px rgba(120, 20, 40, .3), inset 6px 6px 12px rgba(255, 255, 255, .5); animation: bob 4s ease-in-out infinite; }
.drop-orb svg { width: 38px; height: 38px; stroke-width: 2.2; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.drop-title { font-family: var(--display); font-size: 22px; font-weight: 700; }
.drop-sub { color: var(--muted); font-size: 14.5px; }
.privacy { display: flex; gap: 10px; align-items: flex-start; margin: 16px 4px 0; color: var(--muted); font-size: 13.5px; }
.privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }

.busy { display: flex; gap: 30px; align-items: center; padding: 30px 10px; min-height: 250px; }
.ring-progress { position: relative; width: 150px; height: 150px; flex: none; border-radius: 50%; background: var(--neu-surface); box-shadow: var(--neu-out); }
.ring-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-progress circle { fill: none; stroke-width: 9; }
.ring-progress .track { stroke: var(--line); }
.ring-progress .bar { stroke: url(#ring-grad); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .3s var(--ease); filter: drop-shadow(0 0 8px rgba(255, 140, 80, .6)); }
.ring-progress.spin svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(270deg); } }
.ring-progress b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 26px; }
.busy-info { min-width: 0; flex: 1; }
.cancel { margin-top: 18px; padding-left: 0; }
.busy-name { font-family: var(--mono); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { display: grid; gap: 14px; margin-top: 18px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color .3s; }
.steps i { width: 24px; height: 24px; border-radius: 50%; flex: none; position: relative; box-shadow: var(--neu-in); background: var(--neu-surface); }
.steps li.active { color: var(--text); }
.steps li.active i { box-shadow: none; border: 3px solid var(--accent); border-top-color: transparent; animation: spin2 .8s linear infinite; background: none; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.steps li.done { color: var(--text-2); }
.steps li.done i { background: radial-gradient(circle at 35% 30%, #9cf7d2, #19b47c 70%); box-shadow: 0 4px 10px rgba(25, 180, 124, .35); }
.steps li.done i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #04301f; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.verdict { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: 22px; border: 1px solid var(--glass-border); background: var(--glass); }
.sphere { flex: none; width: 74px; height: 74px; border-radius: 50%; position: relative; box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .28), inset 8px 8px 14px rgba(255, 255, 255, .45), 0 14px 30px rgba(0, 0, 0, .25); animation: pop .6s var(--ease) both; }
.sphere::after { content: ""; position: absolute; left: 18%; top: 10%; width: 32%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .5); filter: blur(2px); }
.sphere.safe { background: radial-gradient(circle at 35% 30%, #a8f9d8, #13a874 72%); box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .25), inset 8px 8px 14px rgba(255, 255, 255, .45), 0 0 40px rgba(69, 224, 165, .45); }
.sphere.danger, .sphere.bad { background: radial-gradient(circle at 35% 30%, #ffc0c9, #d81f43 72%); box-shadow: inset -8px -10px 18px rgba(0, 0, 0, .25), inset 8px 8px 14px rgba(255, 255, 255, .45), 0 0 40px rgba(255, 90, 114, .5); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } to { transform: none; opacity: 1; } }
.verdict-label { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
.verdict.safe .verdict-label { color: var(--green); }
.verdict.danger .verdict-label { color: var(--red); }
[data-theme="light"] .verdict.safe .verdict-label { color: #0d8a5c; }
[data-theme="light"] .verdict.danger .verdict-label { color: #d1213f; }
[data-theme="light"] .verdict-text { color: var(--text-2); margin-top: 4px; }
.note { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: var(--chip-mid); border: 1px solid rgba(255, 200, 87, .35); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.facts > div { padding: 12px 16px; border-radius: 16px; background: var(--neu-surface); box-shadow: var(--neu-out); min-width: 0; }
.facts > div.wide { grid-column: 1 / -1; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.facts dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd.mono { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-2); display: flex; gap: 10px; align-items: flex-start; }
.facts dd.mono span { min-width: 0; overflow-wrap: anywhere; }
.copy { flex: none; border: 0; border-radius: 10px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-family: var(--sans); background: var(--neu-surface); box-shadow: var(--neu-out); }
.perms { margin-top: 18px; }
.perms-title { font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; font-size: 14px; background: var(--neu-surface); box-shadow: var(--neu-out); }
.chips li.high { background: var(--chip-high); box-shadow: none; border: 1px solid rgba(255, 90, 114, .45); }
.chips li.mid { background: var(--chip-mid); box-shadow: none; border: 1px solid rgba(255, 200, 87, .4); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.model { margin-top: 10px; }
.s-error { text-align: center; padding: 50px 10px; }
.s-error .sphere { margin: 0 auto 18px; }
.error-text { color: var(--text-2); font-size: 18px; margin-bottom: 20px; }

.history { padding: 18px 20px; }
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.history-head h3 { font-size: 18px; }
.history-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.history-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--neu-surface); box-shadow: var(--neu-out); animation: rise .4s var(--ease) both; }
.history-list .ico { width: 24px; height: 24px; }
.history-list div { min-width: 0; flex: 1; }
.history-list b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-list span { font-size: 12.5px; color: var(--muted); }
.history .small { margin-top: 12px; }

/* ---------- ilova va bot ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { padding: 30px; position: relative; overflow: hidden; transform-style: preserve-3d; display: flex; flex-direction: column; scroll-margin-top: 100px; }
.card h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 18px 0 10px; }
.card p { color: var(--text-2); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-foot { margin-top: auto; padding-top: 24px; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 36px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9cf7d2, #19b47c 70%); box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .2), inset 3px 3px 5px rgba(255, 255, 255, .45), 0 4px 10px rgba(25, 180, 124, .35); }
.ticks li::after { content: ""; position: absolute; left: 9px; top: 7px; width: 6px; height: 11px; border: solid #053d27; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.download { display: grid; gap: 8px; justify-items: start; }
.download[data-available="false"] #download-btn, .download[data-available="false"] #download-meta, .download[data-available="true"] .soon-text { display: none; }
.bot-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.qr { flex: none; padding: 8px; border-radius: 18px; background: var(--neu-surface); box-shadow: var(--neu-out); }
.qr img { width: 112px; height: 112px; border-radius: 12px; background: #fff; padding: 4px; }
.bot-open { display: grid; gap: 8px; justify-items: start; }
.handle { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

/* ---------- qanday ishlaydi ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step { padding: 30px; position: relative; }
.step h3 { font-size: 24px; margin: 20px 0 10px; }
.step p { color: var(--text-2); }
.step-no { position: absolute; right: 26px; top: 22px; font-family: var(--mono); font-size: 44px; font-weight: 600; color: var(--text); opacity: .1; }
.ball { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 26px; color: #fff; position: relative; box-shadow: inset -8px -10px 16px rgba(0, 0, 0, .28), inset 8px 8px 14px rgba(255, 255, 255, .45), 0 14px 30px rgba(0, 0, 0, .25); }
.ball::after { content: ""; position: absolute; left: 18%; top: 9%; width: 32%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .5); filter: blur(2px); }
.ball.b1 { background: radial-gradient(circle at 35% 30%, #ffd2ad, #ff7a45 70%); }
.ball.b2 { background: radial-gradient(circle at 35% 30%, #d9ccff, #7b5cff 70%); }
.ball.b3, .ball.b-bot { background: radial-gradient(circle at 35% 30%, #c6ebff, #2f8cff 70%); }
.ball.b-app { background: radial-gradient(circle at 35% 30%, #a8f9d8, #13a874 70%); }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.answer { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.answer b { display: block; font-family: var(--display); font-size: 18px; }
.answer span { color: var(--muted); font-size: 14.5px; }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.facts-row li { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; }
.facts-row b { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts-row span { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* ---------- savollar ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; transition: box-shadow .3s; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 17px; position: relative; font-family: var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--neu-surface); box-shadow: var(--neu-out); }
.faq summary::before { content: "+"; position: absolute; right: 31px; top: 50%; transform: translateY(-52%); z-index: 1; font-size: 20px; color: var(--accent); transition: transform .3s var(--ease); font-family: var(--sans); }
.faq details[open] summary::before { transform: translateY(-52%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); }

/* ---------- pastki qism ---------- */
.foot { margin-top: 110px; padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { width: 60px; height: 60px; }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 15px; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { grid-column: 1 / -1; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease); z-index: 30; color: var(--text); }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 22px; height: 22px; }
.toast-msg { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); padding: 12px 20px; border-radius: 16px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 60; }
.toast-msg.show { opacity: 1; transform: translate(-50%, 0); }

/* 3D egilish va kursor ortidan yuradigan yorug'lik (JS --rx/--ry/--mx/--my qo'yadi) */
.js .reveal.in.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .reveal.in.tilt.tilting { transition: transform .15s ease-out, opacity .8s var(--ease); transition-delay: 0s !important; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .10), transparent 45%); }
.tilt.tilting::after { opacity: 1; }
[data-theme="light"] .tilt::after { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .7), transparent 45%); }

/* paydo bo'lish animatsiyasi */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- moslashuvchan ---------- */
@media (max-width: 1080px) {
  .links { position: absolute; top: 84px; left: 24px; right: 24px; flex-direction: column; gap: 4px; padding: 12px; border-radius: 22px; background: var(--menu-solid); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); margin: 0; }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 12px 14px; font-size: 16px; }
  .burger { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 20px; gap: 28px; text-align: left; }
  .stage { max-width: 440px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { padding: 8px 0; }
  .top .nav { padding: 0 8px 0 10px; gap: 8px; height: 58px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 46px; height: 46px; }
  .nav-tools > .lang { display: none; }
  .links .menu-lang { display: block; margin-top: 6px; }
  .theme-switch { width: 66px; }
  [data-theme="dark"] .theme-switch .knob { transform: translateX(26px); }
  .links { top: 72px; left: 16px; right: 16px; }
  .section { padding-top: 80px; }
  .stage { max-width: 320px; }
  .hero { overflow-x: clip; } /* 3D halqalar telefonda ekrandan chiqmasin */
  .to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; border-radius: 14px; }
  .story-toast { left: 0; top: 86%; min-width: 0; padding: 9px 14px 9px 10px; }
  .cta-row .btn { flex: 1 1 auto; }
  .busy { flex-direction: column; text-align: center; gap: 20px; }
  .busy-info { width: 100%; }
  .steps { justify-items: start; }
  .scanner { padding: 16px; }
  .verdict { gap: 14px; padding: 16px; align-items: flex-start; }
  .verdict .sphere { width: 52px; height: 52px; }
  .facts { gap: 8px; }
  .facts > div { padding: 10px 14px; }
  .card { padding: 22px; }
  .steps3, .answers { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .facts-row li { padding: 12px 12px; }
  .facts-row b { font-size: 22px; }
  .facts-row span { font-size: 12.5px; }
  .drop { min-height: 210px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .story-toast { display: none; }
}
