/* Manrope (SIL Open Font License 1.1) — сайтын сервер дээр байршуулсан, Google Fonts-оос хамааралгүй */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  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;
}

/* =====================================================================
   Smart Business Intelligence — landing page
   Palette is taken from the logo: midnight navy, electric blue, sun gold.
   ===================================================================== */

:root {
  --ink-950: #050816;
  --ink-900: #080d26;
  --ink-850: #0c1335;
  --ink-800: #111a47;
  --ink-700: #1b2766;

  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --sky-400: #38bdf8;
  --indigo-500: #6366f1;
  --violet-400: #a78bfa;
  --gold-200: #fef08a;
  --gold-300: #fde047;
  --gold-400: #facc15;
  --amber-500: #f59e0b;
  --green-400: #4ade80;
  --rose-400: #fb7185;

  --paper: #f7f8fc;
  --paper-2: #eef1fa;
  --card: #ffffff;
  --text: #0b1230;
  --text-2: #3c4566;
  --muted: #6b7394;
  --line: rgba(11, 18, 48, 0.08);

  --on-dark: #eef2ff;
  --on-dark-2: rgba(226, 232, 255, 0.72);
  --on-dark-3: rgba(226, 232, 255, 0.5);
  --line-dark: rgba(148, 163, 255, 0.14);

  --grad-brand: linear-gradient(120deg, #38bdf8 0%, #6366f1 52%, #a78bfa 100%);
  --grad-gold: linear-gradient(120deg, #fef08a 0%, #facc15 45%, #f59e0b 100%);

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 48, 0.06), 0 4px 12px rgba(11, 18, 48, 0.04);
  --shadow: 0 2px 4px rgba(11, 18, 48, 0.04), 0 18px 40px -12px rgba(11, 18, 48, 0.16);
  --shadow-lg: 0 30px 80px -20px rgba(8, 13, 38, 0.45);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
  --container: 1200px;
  color-scheme: light;
}

/* ---------- Бараан горим: цайвар хэсгүүдийн өнгийг солино (hero, демо, тоонууд аль хэдийн бараан) ---------- */
:root[data-theme="dark"] {
  --paper: #070b1f;
  --paper-2: #0a1029;
  --card: #0f1636;
  --text: #e8ecff;
  --text-2: rgba(226, 232, 255, .82);
  --muted: rgba(226, 232, 255, .6);
  --line: rgba(148, 163, 255, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 40px -12px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

[data-lucide], svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2; flex: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-grad-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --pad: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--gold {
  color: #1a1400;
  background: var(--grad-gold);
  box-shadow: 0 10px 30px -8px rgba(250, 204, 21, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--gold:hover { box-shadow: 0 16px 40px -8px rgba(250, 204, 21, .75), inset 0 1px 0 rgba(255, 255, 255, .6); }

.btn--ghost {
  color: var(--on-dark);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }

.play-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--on-dark);
  color: var(--ink-900);
}
.play-dot svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 10, 31, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
.nav__inner {
  max-width: calc(var(--container) + 120px);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  box-shadow: 0 6px 18px -4px rgba(0, 157, 220, .55);
  transition: transform .4s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand__text small {
  white-space: nowrap;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--on-dark-3);
  letter-spacing: .01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a:not(.btn) {
  padding: 10px 12px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav__links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__cta { margin-left: 10px; }

/* ---------- Nav tools: өнгөний горим + хэл ---------- */
.nav__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__links { margin-left: auto; }
.theme-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-3);
  transition: background .25s var(--ease), color .25s, box-shadow .25s;
}
.theme-switch button:hover { color: #fff; }
.theme-switch button[aria-pressed="true"] {
  color: #0b1230;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.theme-switch svg { width: 17px; height: 17px; }
/* Хэл солих: smartsoftware.mn-ийнх шиг дэвсгэргүй энгийн холбоос (🌐 + шилжих хэлний код) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .92);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s, opacity .2s;
}
.lang-toggle svg { width: 17px; height: 17px; stroke-width: 2; transition: transform .5s var(--ease); }
.lang-toggle:hover { color: var(--gold-300); }
.lang-toggle:hover svg { transform: rotate(180deg); }
.lang-toggle:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; border-radius: 8px; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  padding: 0;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: radial-gradient(120% 80% at 50% 0%, #0f1a52 0%, var(--ink-900) 55%, var(--ink-950) 100%);
  padding: calc(var(--nav-h) + 64px) 0 120px;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora--1 { width: 560px; height: 560px; left: -140px; top: -120px; background: #2563eb; }
.aurora--2 { width: 520px; height: 520px; right: -120px; top: 40px; background: #7c3aed; opacity: .42; animation-delay: -6s; }
.aurora--3 { width: 420px; height: 420px; left: 40%; bottom: -220px; background: #facc15; opacity: .16; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 40px, 0) scale(1.08); }
  100% { transform: translate3d(-40px, 20px, 0) scale(.95); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .2), 0 0 16px var(--gold-400);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(250, 204, 21, .06), 0 0 22px var(--gold-400); } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 24px 0 22px;
  color: #fff;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--on-dark-2);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__trust {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: flex;
  gap: 28px;
  color: var(--on-dark-3);
  font-size: 13.5px;
}
.hero__trust li { display: flex; flex-direction: column; gap: 2px; }
.hero__trust li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.hero__trust strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

/* ---------- Hero visual (dashboard mock) ---------- */
.hero__visual {
  position: relative;
  perspective: 1400px;
}
.mock {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 33, 84, .82), rgba(11, 17, 50, .92));
  border: 1px solid rgba(148, 163, 255, .2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 120px -30px rgba(99, 102, 241, .6);
  backdrop-filter: blur(20px);
  transform: rotateY(-9deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  overflow: hidden;
}
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, .1), transparent 35%);
  pointer-events: none;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-dark);
}
.mock__bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock__bar > span:nth-child(2) { background: #febc2e; }
.mock__bar > span:nth-child(3) { background: #28c840; }
.mock__url {
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--on-dark-3);
  font-size: 12px;
}
.mock__url svg { width: 11px; height: 11px; }
.mock__tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--on-dark-3);
  border: 1px dashed rgba(148, 163, 255, .3);
  white-space: nowrap;
}
.mock__body { display: grid; grid-template-columns: 52px 1fr; }
.mock__side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-right: 1px solid var(--line-dark);
  color: var(--on-dark-3);
}
.mock__side button {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  transition: color .25s, background .25s, transform .25s var(--ease);
}
.mock__side button:hover { color: #fff; background: rgba(255, 255, 255, .07); transform: scale(1.08); }
.mock__side button.is-active { color: var(--gold-400); }
.mock__side button.is-active svg { filter: drop-shadow(0 0 8px rgba(250, 204, 21, .7)); }
.mock__side svg { width: 18px; height: 18px; }
.mock__side-ind {
  position: absolute;
  left: 0;
  top: 12px;
  width: 3px;
  height: 36px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-gold);
  box-shadow: 0 0 12px rgba(250, 204, 21, .7);
  transform: translateY(calc(var(--i, 0) * 44px));
  transition: transform .45s var(--ease);
}
.mock__main { padding: 16px; display: grid; gap: 14px; transition: opacity .25s, filter .25s; }
.mock__main.is-switching { opacity: .35; filter: blur(2px); }

.mock__glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .10), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.hero__visual:hover .mock__glare { opacity: 1; }
.mock__crumb { font-weight: 600; color: var(--on-dark-2); margin-left: 2px; }
.mock__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--green-400);
}
.mock__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.kpi { transition: border-color .3s, background .3s, transform .3s var(--ease); }
.kpi:hover { border-color: rgba(148, 163, 255, .35); background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.kpi__num { display: inline-block; transition: transform .4s var(--ease), opacity .4s; }
.kpi.is-swap .kpi__num, .kpi.is-swap .kpi__label, .kpi.is-swap .kpi__delta { animation: kpiIn .55s var(--ease); }
@keyframes kpiIn { from { opacity: 0; transform: translateY(8px); } }
.kpi__num.is-tick { color: var(--green-400); }

.yr {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
}
.yr button {
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  color: var(--on-dark-3);
  transition: background .25s, color .25s;
}
.yr button:hover { color: #fff; }
.yr button.is-on { background: rgba(250, 204, 21, .18); color: var(--gold-300); }

.panel--bars { position: relative; }
.bars__tip {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text);
  background: #fff;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .45);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px)) scale(.92);
  transition: opacity .15s, transform .15s;
}
.bars__tip b { display: block; font-size: 12.5px; }
.bars__tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 8px)); }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi {
  position: relative;
  padding: 12px 12px 34px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.kpi__label { display: block; font-size: 11px; color: var(--on-dark-3); }
.kpi__value {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
}
.kpi__value small { font-size: 11px; font-weight: 600; color: var(--on-dark-3); margin-left: 4px; letter-spacing: 0; }
.kpi__delta { font-size: 11px; font-weight: 600; }
.is-up { color: var(--green-400); }
.is-down { color: var(--rose-400); }
.kpi__spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
}
.kpi__spark path {
  fill: none;
  stroke: var(--sky-400);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 2s .6s var(--ease) forwards;
}
.kpi__spark--gold path { stroke: var(--gold-400); }
.kpi__spark--violet path { stroke: var(--violet-400); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.mock__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.panel {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 12px;
}
.pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, .14);
  color: var(--gold-300);
}
.bars {
  height: 128px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 100% 32px;
}
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--sky-400), var(--indigo-500));
  transform-origin: bottom;
  transform: scaleY(0);
  animation: grow 1.1s var(--ease) forwards;
  box-shadow: 0 0 18px -4px rgba(56, 189, 248, .5);
}
.bars span:nth-child(1) { animation-delay: .30s; } .bars span:nth-child(2) { animation-delay: .36s; }
.bars span:nth-child(3) { animation-delay: .42s; } .bars span:nth-child(4) { animation-delay: .48s; }
.bars span:nth-child(5) { animation-delay: .54s; } .bars span:nth-child(6) { animation-delay: .60s; }
.bars span:nth-child(7) { animation-delay: .66s; } .bars span:nth-child(8) { animation-delay: .72s; }
.bars span:nth-child(9) { animation-delay: .78s; } .bars span:nth-child(10) { animation-delay: .84s; }
.bars span:nth-child(11) { animation-delay: .90s; } .bars span:nth-child(12) { animation-delay: .96s; }
@keyframes grow { to { transform: scaleY(1); } }
.bars span {
  cursor: pointer;
  transition: height .75s var(--ease), opacity .2s, filter .2s;
}
.bars:hover span { opacity: .4; }
.bars span.is-hot { opacity: 1; filter: brightness(1.25) saturate(1.2); }
.bars span.is-last { background: var(--grad-gold); box-shadow: 0 0 22px -2px rgba(250, 204, 21, .6); }

.panel--donut { display: flex; flex-direction: column; }
.donut-wrap { position: relative; width: 92px; height: 92px; margin: 2px auto 10px; }
.donut-wrap .donut { margin: 0; }
.donut { width: 92px; height: 92px; margin: 2px auto 10px; transform: rotate(-90deg); overflow: visible; }
.donut__seg { cursor: pointer; transition: stroke-dasharray .8s var(--ease), stroke-dashoffset .8s var(--ease), stroke-width .25s, opacity .25s; }
.donut.has-hot .donut__seg { opacity: .35; }
.donut .donut__seg.is-hot { opacity: 1; stroke-width: 15; }
.donut__center {
  position: absolute;
  inset: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  pointer-events: none;
}
.donut__center b { font-size: 14px; font-weight: 800; color: #fff; }
.donut__center span { margin-top: 2px; font-size: 8.5px; color: var(--on-dark-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend li { cursor: pointer; padding: 1px 4px; margin: 0 -4px; border-radius: 6px; transition: background .2s, color .2s; }
.legend li.is-hot { background: rgba(255, 255, 255, .07); color: #fff; }
/* ---- bigger, richer hero dashboard ---- */
/* wider, landscape dashboard */
.hero .container { max-width: calc(var(--container) + 90px); }
.hero__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.22fr); gap: 48px; }

/* 8 compact KPI tiles (4 x 2) */
.mock__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mock__kpis .kpi { padding: 7px 10px 17px; border-radius: 11px; }
.mock__kpis .kpi__label { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__kpis .kpi__value { font-size: 16px; margin-top: 2px; white-space: nowrap; }
.mock__kpis .kpi__value small { font-size: 8.5px; margin-left: 3px; }
.mock__kpis .kpi__delta { font-size: 9.5px; }
.mock__kpis .kpi__spark { height: 15px; }
.mock__main { gap: 10px; padding: 14px; }
.mock__row .panel { padding: 11px 12px; }
.mock__row .panel__head { margin-bottom: 8px; }
.mock__row .bars { height: 92px; }
.mock__row .donut-wrap { width: 78px; height: 78px; margin: 0 auto 8px; }
.mock__row .donut-wrap .donut { width: 78px; height: 78px; }
.mock__row .donut__center { inset: 18px; }
.mock__bar { padding: 11px 16px; }
.kpi__spark--green path { stroke: var(--green-400); }
.panel { transition: border-color .3s, background .3s; }
.panel:hover { border-color: rgba(148, 163, 255, .28); background: rgba(255, 255, 255, .055); }

.legend em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--on-dark); }
.donut circle { fill: none; stroke-width: 12; }
.donut__track { stroke: rgba(255, 255, 255, .06); }
.donut__seg {
  stroke-dasharray: 0 238.8;
  stroke-dashoffset: var(--off);
  stroke-linecap: butt;
  animation: seg 1.4s .8s var(--ease) forwards;
}
.donut__seg--1 { stroke: var(--sky-400); }
.donut__seg--2 { stroke: var(--indigo-500); }
.donut__seg--3 { stroke: var(--gold-400); }
@keyframes seg { to { stroke-dasharray: var(--len) 238.8; } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 11px; color: var(--on-dark-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 8px; height: 8px; border-radius: 3px; }
.sw--1 { background: var(--sky-400); } .sw--2 { background: var(--indigo-500); } .sw--3 { background: var(--gold-400); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .45);
  font-size: 12.5px;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.float-chip > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 11px;
  color: #fff;
  background: var(--grad-brand);
}
.float-chip b { display: block; font-size: 13px; }
.float-chip span { color: var(--muted); }
.float-chip span.is-up { color: #16a34a; font-weight: 600; }
.float-chip--1 { left: -64px; bottom: 18%; }
.float-chip--2 { right: -28px; bottom: -44px; animation-delay: -2s; }
.float-chip--2 > svg { background: var(--grad-gold); color: #1a1400; }
.float-chip--3 { left: 34%; top: -64px; animation-delay: -4s; }
.float-chip--3 > svg { background: linear-gradient(135deg, #a78bfa, #6366f1); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Logos marquee ---------- */
.logos {
  position: relative;
  padding: 44px 0 40px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logos__title {
  text-align: center;
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex: none;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .3s var(--ease);
}
.marquee__track img:hover { transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section--light { background: var(--paper); }
.section--tint {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(99, 102, 241, .08), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(250, 204, 21, .10), transparent 60%),
    var(--paper-2);
}
.section--dark {
  color: var(--on-dark);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  overflow: hidden;
  isolation: isolate;
}
.section--aurora {
  background: radial-gradient(120% 80% at 50% 0%, #0f1a52 0%, var(--ink-900) 55%, var(--ink-950) 100%);
}
.section--aurora .demo { background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px); }
.section--aurora .demo:hover { background: rgba(255, 255, 255, .09); }
.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo-500);
  background: rgba(99, 102, 241, .1);
}
.kicker--dark { color: var(--gold-300); background: rgba(250, 204, 21, .12); }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.section--dark .section__title { color: #fff; }
.section__lead { font-size: 17.5px; color: var(--muted); margin: 0; }
.section--dark .section__lead { color: var(--on-dark-2); }

/* ---------- Feature bento ---------- */
/* 9 карт: 3×3 жигд сүлжээ, бүх карт ижил хэмжээтэй */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(99, 102, 241, .25); }
.card--feature { display: flex; flex-direction: column; padding: 32px 30px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 22px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
/* Бүх icon нэг хэлбэр, нэг өнгө, нэг хэмжээ */
.card__icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 12px 24px -10px rgba(99, 102, 241, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; stroke-width: 1.9; }
.card--feature:hover .card__icon { transform: translateY(-2px) scale(1.04); }

/* spotlight that follows the cursor */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -100%), rgba(99, 102, 241, .10), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }


/* ---------- Demo grid ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.demo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-dark);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.demo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .8), rgba(167, 139, 250, .5), rgba(250, 204, 21, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.demo:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .07); }
.demo:hover::after { opacity: 1; }
.demo__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  color: var(--gold-300);
  background: rgba(250, 204, 21, .1);
  border: 1px solid rgba(250, 204, 21, .18);
}
.demo__icon svg { width: 21px; height: 21px; }
.demo__name { font-weight: 600; font-size: 15px; color: var(--on-dark); line-height: 1.3; }
.demo__go { margin-left: auto; color: var(--on-dark-3); transition: transform .3s var(--ease), color .3s; }
.demo:hover .demo__go { color: var(--gold-300); transform: translate(3px, -3px); }

/* ---------- Video ---------- */
.video {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.video .section__title { font-size: clamp(26px, 2.8vw, 38px); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text-2); }
.checks svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-brand);
  stroke-width: 3;
}
.video__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1b2766, #0c1335);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.video__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 20px;
  transition: transform .8s var(--ease);
}
.video__frame:hover img { transform: scale(1.04); }
.video__shade {
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 13, 38, .15), rgba(8, 13, 38, .7));
}
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #1a1400;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, .55);
  animation: ring 2.4s infinite;
  transition: transform .3s var(--ease);
}
.video__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video__frame:hover .video__play { transform: scale(1.08); }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(250, 204, 21, 0); } 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); } }
.video__label {
  position: absolute;
  left: 34px;
  bottom: 30px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  padding: 84px 0;
  color: #fff;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(56, 189, 248, .25), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(250, 204, 21, .18), transparent 60%),
    linear-gradient(120deg, var(--ink-800), var(--ink-900));
  overflow: hidden;
}
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--line-dark);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat:nth-child(2) .stat__num, .stat:nth-child(4) .stat__num { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.stat__label { display: block; margin-top: 12px; color: var(--on-dark-2); font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  --shot-w: min(580px, 78vw);
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px calc((100% - var(--shot-w)) / 2) 28px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  position: relative;
  flex: none;
  width: var(--shot-w);
  margin: 0;
  padding: 7px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  cursor: zoom-in;
  opacity: .45;
  transform: scale(.9);
  transition: transform .5s var(--ease), opacity .5s var(--ease), box-shadow .5s var(--ease);
}
.shot.is-active {
  opacity: 1;
  transform: none;
  box-shadow: 0 2px 4px rgba(11, 18, 48, .04), 0 30px 60px -18px rgba(27, 39, 102, .35);
}

.gal-arrow {
  position: absolute;
  top: calc(50% - 6px);
  z-index: 3;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 255, .25);
  color: var(--gold-300);
  background: linear-gradient(160deg, rgba(27, 39, 102, .92), rgba(8, 13, 38, .92));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px -10px rgba(8, 13, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateY(-50%);
  transition: transform .25s var(--ease), opacity .25s, box-shadow .25s;
}
.gal-arrow svg { width: 26px; height: 26px; stroke-width: 2.5; }
.gal-arrow--prev { left: max(16px, calc(50% - var(--shot-w, 580px) / 2 - 84px)); }
.gal-arrow--next { right: max(16px, calc(50% - var(--shot-w, 580px) / 2 - 84px)); }
.gallery-wrap { --shot-w: min(580px, 78vw); }
.gal-arrow:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 18px 40px -10px rgba(250, 204, 21, .45), inset 0 1px 0 rgba(255, 255, 255, .12); }
.gal-arrow:disabled { opacity: 0; pointer-events: none; }

.gal-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.gal-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 39, 102, .2);
  transition: width .35s var(--ease), background .35s;
}
.gal-dots button:hover { background: rgba(27, 39, 102, .4); }
.gal-dots button[aria-selected="true"] { width: 32px; background: var(--grad-gold); }
.shot figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 13, 38, .82);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -6px rgba(8, 13, 38, .5);
  pointer-events: none;
}
.shot figcaption svg { width: 15px; height: 15px; color: var(--gold-300); }
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
  background: #fff;
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote--accent {
  color: var(--on-dark);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  border-color: transparent;
  transform: translateY(-16px);
}
.quote__mark { width: 40px; height: 40px; color: var(--indigo-500); opacity: .9; }
.quote--accent .quote__mark { color: var(--gold-400); }
.quote__text {
  margin: 18px 0 8px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quote--accent .quote__text { color: var(--on-dark-2); }
.quote.is-open .quote__text { -webkit-line-clamp: unset; display: block; }
.quote__more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--indigo-500);
}
.quote--accent .quote__more { color: var(--gold-300); }
.quote__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.quote--accent .quote__who { border-top-color: var(--line-dark); }
.quote__who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.quote__who b { display: block; font-size: 15.5px; }
.quote__who span { font-size: 13px; color: var(--muted); }
.quote--accent .quote__who span { color: var(--on-dark-3); }

/* ---------- Vertical videos (client testimonial, custom reports) ---------- */
/* Харилцагчийн видео нь сэтгэгдлийн картуудын эгнээнд нэг карт болж орно */
.quotes--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.quotes--4 .quote__who { margin-top: auto; }
.quotes--4 .quote__more { margin-bottom: 20px; }
.quotes--4 .quote.is-open { align-self: start; }
.quotes--4 .quote { padding: 30px 24px 24px; }
.quotes--4 .quote__text { font-size: 15px; }
.quote--video { align-self: center; justify-self: center; width: 100%; }
.quote--video .case__play-label { padding: 0 18px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.quote--video .case__play-label b { display: block; margin-bottom: 2px; font-size: 14.5px; color: #fff; }

/* Гар утасны бодит хүрээ: металл бие, хар жааз, камерын хэсэг, хажуугийн товч, шилний гялбаа */
.case__phone {
  --bezel: 11px;
  --screen-r: 34px;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  padding: var(--bezel);
  border-radius: calc(var(--screen-r) + var(--bezel));
  background:
    linear-gradient(145deg, #5b6175 0%, #23262f 22%, #121419 50%, #2a2d38 78%, #6a7084 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .22),
    inset 0 0 0 4px #0a0b0f,
    inset 0 0 0 calc(var(--bezel) - 1px) #050608,
    0 50px 80px -34px rgba(8, 13, 38, .55),
    0 24px 40px -22px rgba(8, 13, 38, .45);
}
/* Хажуугийн товчнууд (зүүн: дуу, баруун: асаах) */
.case__phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22%;
  left: -3px;
  right: -3px;
  height: 13%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b3f4d 0 4px, transparent 4px calc(100% - 4px), #3b3f4d calc(100% - 4px));
}
/* Камерын хэсэг (Dynamic Island) */
.case__phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--bezel) + 10px);
  left: 50%;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  pointer-events: none;
}
.case__phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--screen-r);
  background: #000;
  display: block;
}
.case__play {
  position: absolute;
  inset: var(--bezel);
  border: 0;
  border-radius: var(--screen-r);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 28%, transparent 42%),
    linear-gradient(180deg, rgba(8, 13, 38, 0) 55%, rgba(8, 13, 38, .85));
  cursor: pointer;
}
/* Видеоны ард зөөлөн гэрэлтэлт */
.custom__media, .quote--video { position: relative; }
.custom__media::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .28), rgba(56, 189, 248, .12) 60%, transparent);
  filter: blur(20px);
}
.case__play:hover .video__play { transform: scale(1.08); }
.case__play-label { position: absolute; left: 0; right: 0; bottom: 22px; color: #fff; font-weight: 600; font-size: 14px; }
.case__phone.is-playing .case__play { display: none; }

/* ---------- Floating call button (mobile) ---------- */
.call-fab {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  gap: 8px;
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #1a1400;
  background: var(--grad-gold);
  box-shadow: 0 14px 30px -8px rgba(250, 204, 21, .65), 0 4px 12px rgba(8, 13, 38, .25);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.call-fab svg { width: 20px; height: 20px; }
.call-fab.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 860px) { .call-fab { display: inline-flex; } }

/* ---------- Custom reports ---------- */
.custom {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.custom__media { display: flex; justify-content: center; }
.custom .case__phone { max-width: 340px; aspect-ratio: 1014 / 1802; }
.custom .case__play .video__play { top: 72%; }
.custom__mods {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}
.custom__mods li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.custom__mods svg {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 8px;
  color: #fff;
  background: var(--grad-brand);
}
.custom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.custom__actions .btn svg { width: 18px; height: 18px; }
.custom__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); }
.custom__tel svg { width: 20px; height: 20px; color: var(--indigo-500); }
.custom__tel:hover { color: var(--indigo-500); }
@media (max-width: 1080px) {
  .custom { grid-template-columns: 1fr; gap: 48px; }
  .custom__copy { order: -1; }
}
@media (max-width: 640px) {
  .custom__mods { grid-template-columns: repeat(2, 1fr); }
  .custom__mods li { font-size: 13px; padding: 9px 10px; }
  .case__phone, .custom .case__phone { max-width: 280px; }
}
@media (max-width: 1080px) {
  .quotes--4 { grid-template-columns: 1fr; }
  .quote--video.case__phone { width: 100%; max-width: 320px; justify-self: center; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border-radius: 32px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact__aside {
  position: relative;
  padding: 52px 48px;
  color: var(--on-dark);
  background: radial-gradient(120% 80% at 50% 0%, #0f1a52 0%, var(--ink-900) 55%, var(--ink-950) 100%);
  overflow: hidden;
  isolation: isolate;
}
.contact__aside .aurora--1 { width: 420px; height: 420px; left: -160px; top: -140px; }
.contact__aside .aurora--2 { width: 380px; height: 380px; right: -180px; top: 30%; }
.contact__aside .aurora--3 { width: 320px; height: 320px; left: 20%; bottom: -200px; opacity: .22; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}
.contact__lead { color: var(--on-dark-2); margin: 0 0 36px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-size: 15px; }
.contact__list li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  color: var(--gold-300);
}
.contact__list a:hover { color: var(--gold-300); }

.form { padding: 52px 48px; display: grid; gap: 16px; align-content: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 24px 18px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field textarea { min-height: 140px; }
.field label {
  position: absolute;
  left: 18px;
  top: 17px;
  font-size: 15.5px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--indigo-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78);
  color: var(--indigo-500);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .12); }
.form__alert { font-size: 14.5px; font-weight: 500; min-height: 0; }
.form__alert:empty { display: none; }
.form__alert.is-warn { color: #be123c; background: #fff1f2; padding: 12px 16px; border-radius: 12px; }
.form__alert.is-ok { color: #15803d; background: #f0fdf4; padding: 12px 16px; border-radius: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__mail { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form .btn { margin-top: 6px; padding: 18px 24px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  color: var(--on-dark-2);
  background: var(--ink-950);
  padding: 64px 0 28px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { margin: 0; max-width: 340px; font-size: 14.5px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-dark);
  transition: background .25s, transform .25s var(--ease);
}
.footer__social svg { width: 18px; height: 18px; fill: var(--on-dark); }
.footer__social a:hover { background: var(--gold-400); transform: translateY(-3px); }
.footer__social a:hover svg { fill: #1a1400; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--on-dark-3);
}
.footer__bottom a:hover { color: #fff; }
.footer__top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Modals ---------- */
.modal {
  width: min(1100px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #000;
  overflow: visible;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.modal::backdrop { background: rgba(5, 8, 22, .82); backdrop-filter: blur(8px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.modal__video { aspect-ratio: 16 / 9; }
.modal__video iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; display: block; }
.modal--img { background: transparent; box-shadow: none; }
.modal--img img { max-height: 86vh; width: 100%; object-fit: contain; border-radius: 16px; }
.modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

/* ---------- Typography weights (Manrope) ---------- */
.hero__title,
.section__title,
.contact__title,
.stat__num,
.kpi__value,
.hero__trust strong { font-weight: 800; }
.hero__title { letter-spacing: -0.035em; line-height: 1.04; }
.section__title, .contact__title { letter-spacing: -0.03em; }
body { font-weight: 500; }
.card p, .section__lead, .hero__lead, .quote__text { font-weight: 500; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.985);
  transition: opacity .75s cubic-bezier(.22, .61, .36, 1), transform .75s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
/* once revealed, hand transitions back to the element's own hover styles */
.reveal.is-done { will-change: auto; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .3s var(--ease), opacity .3s; }
.quote--accent.reveal.is-in { transform: translateY(-16px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 700px; margin: 0 auto; width: 100%; }
  .mock { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .video { grid-template-columns: 1fr; gap: 48px; }
  .quotes { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
  .quote--accent, .quote--accent.reveal.is-in { transform: none; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stat:nth-child(3)::before { display: none; }
}

/* Цэс 7 холбоос + өнгө/хэлний товчтой тул 1239px-ээс доош бургер цэс рүү шилжинэ */
@media (max-width: 1239px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute;
    top: calc(var(--nav-h) - 6px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(8, 13, 38, .96);
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open { background: rgba(6, 10, 31, .9); }
  .nav__links a:not(.btn) { padding: 14px 16px; font-size: 16px; }
  .nav__cta { margin: 8px 0 0; }
}

@media (max-width: 640px) {
  .container, .nav__inner { padding: 0 16px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 88px; }
  .hero__trust li + li { padding-left: 0; border-left: 0; }
  .hero__trust { gap: 8px 20px; }
  .brand img { width: 36px; height: 36px; }
  .brand__text b { font-size: 17px; }
  .brand__text small { font-size: 10.5px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { flex-direction: row; justify-content: space-around; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .mock__side-ind { display: none; }
  .mock__live, .mock__crumb { display: none; }
  .mock__tag { font-size: 9.5px; padding: 3px 8px; }
  .mock__main { padding: 12px; gap: 10px; }
  .mock__kpis { gap: 8px; grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 10px 10px 28px; }
  .kpi__value { font-size: 16px; }
  .mock__row { grid-template-columns: 1fr; }
  .panel--donut { flex-direction: row; align-items: center; gap: 16px; }
  .panel--donut .panel__head { display: none; }
  .donut { margin: 0; }
  .float-chip { padding: 8px 12px 8px 8px; font-size: 11.5px; }
  .float-chip > svg { width: 30px; height: 30px; padding: 7px; }
  .float-chip--1 { left: -6px; top: auto; bottom: -28px; }
  .float-chip--2 { display: none; }
  .float-chip--3 { right: -4px; top: -30px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .demo-grid { grid-template-columns: 1fr; }
  .stats { padding: 64px 0; }
  .stat + .stat::before { display: none; }
  .contact__aside, .form { padding: 36px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .modal__close { top: -54px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Бараан горимд тусгайлан засах хэсгүүд ---------- */
/* Цагаан дэвсгэртэй жижиг хайрцгууд бараан горимд ч цагаан хэвээр, текст нь бараан байна */
.float-chip, .bars__tip, .modal__close { color: #0b1230; }
.float-chip span { color: #6b7394; }
:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field textarea:focus { background: var(--card); }
:root[data-theme="dark"] .marquee__track img {
  mix-blend-mode: normal;
  height: 48px;
  max-width: 156px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
}
:root[data-theme="dark"] .shot img { background: #0b1230; }
body, .section--light, .section--tint, .logos, .card, .quote, .custom__mods li, .field input, .field textarea {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

/* Nav tools: жижиг дэлгэцэнд */
@media (max-width: 1239px) {
  .nav__tools { margin-left: auto; }
}
@media (max-width: 480px) {
  .nav__inner { gap: 8px; }
  .brand__text small { display: none; }
  .nav__tools { gap: 6px; }
  .theme-switch button { width: 28px; height: 28px; }
  .theme-switch svg { width: 15px; height: 15px; }
}

/* ---------- Том дэлгэц: агуулгыг өргөн болгож хоёр захын хоосон зайг багасгана ---------- */
@media (min-width: 1440px) { :root { --container: 1320px; } }
@media (min-width: 1680px) { :root { --container: 1480px; } .section__head { max-width: 920px; } }
@media (min-width: 1920px) { :root { --container: 1600px; } }
