/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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;
}

/* tsede.dev: DESIGN.md §3. Өнгө, зай, хөдөлгөөн. */
:root {
  --bg: #0B0B0F;
  --card: #15151C;
  --card-hi: #1B1B24;
  --line: #262631;
  --text: #F5F5F7;
  --muted: #A1A1AA;
  --accent: #1877F2;
  --btn: #1468D8;          /* #1877F2-ийн бараан хувилбар: цагаан бичигтэй контраст ≥4.5 */
  --link: #4D9BFF;
  --violet: #7C3AED;
  --radius: 20px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --card: #F4F4F6;
    --card-hi: #EDEDF1;
    --line: #E4E4E7;
    --text: #111111;
    --muted: #52525B;
    --link: #0F5FCC;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--card); border: 1px solid var(--line);
  padding: 0.1em 0.35em; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: #fff; padding: 8px 14px;
  border-radius: 10px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Толгой */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px;
  letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.top nav { display: flex; gap: 28px; }
.top nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Товч */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: box-shadow .25s ease, transform .25s ease, background .25s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: linear-gradient(120deg, var(--btn), var(--violet));
  box-shadow: 0 8px 32px -6px rgba(124, 58, 237, .55), 0 4px 18px -4px rgba(24, 119, 242, .6); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; min-height: 44px;
  padding: 0 18px; font-size: 15px; }
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 36ch; margin-top: 20px; }
.hero .btn { margin-top: 36px; }

.orb { position: relative; width: min(340px, 100%); aspect-ratio: 1; justify-self: center; }
.orb-glow { position: absolute; inset: 10%; border-radius: 50%;
  background: conic-gradient(from 90deg, #1877F2, #7C3AED, #1877F2); filter: blur(52px); opacity: .42;
  animation: spin 32s linear infinite reverse; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #1877F2, #7C3AED 35%, transparent 55%, #1877F2 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 22s linear infinite; }
.orb-core { position: absolute; inset: 15%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  gap: 4%; background: radial-gradient(circle at 30% 25%, #3C8DFF 0%, #1877F2 42%, #5B3BE6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 30px 80px -30px rgba(24, 119, 242, .8);
  animation: breathe 7s ease-in-out infinite; }
.orb-t { color: #fff; font-weight: 700; font-size: clamp(72px, 9vw, 128px); line-height: 1; letter-spacing: -0.04em;
  transform: translateY(-2%); }
.orb-dot { width: 13%; aspect-ratio: 1; border-radius: 50%; background: #fff; align-self: flex-end; margin-bottom: 27%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* Хэсгүүд */
.sec { padding: 56px 0; }
.sec-tight { padding: 24px 0 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head h2, .cat-title { font-size: clamp(26px, 3vw, 34px); font-weight: 650; }
.cat-title { margin-bottom: 24px; }
.more { font-weight: 600; font-size: 15px; white-space: nowrap; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: 24px; display: flex; flex-direction: column; }
.card h2, .card h3 { font-size: 20px; font-weight: 650; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 60ch; }

.box { overflow: hidden; display: flex; flex-direction: column; }
.reel { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.reel img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.reel:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(11, 11, 15, .55);
  border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.play svg { margin-left: 3px; }
.box-body { padding: 20px 22px 22px; display: grid; gap: 8px; }
.box-body h3 { font-size: 20px; font-weight: 650; }
.box-body p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.credit { font-size: 13px !important; color: var(--muted); opacity: .85; }
.box-body .chip { justify-self: start; }
.work .box-body { flex: 1; align-content: start; }
.work .box-body .more { margin-top: 6px; }
.generic { gap: 10px; }
.generic .chip { align-self: flex-start; }

.badge, .chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge { align-self: flex-start; margin-bottom: 16px; }
.badge-open { color: #fff; background: var(--btn); border-color: transparent; }
.course .promise { margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.checks svg { flex: none; color: var(--accent); margin-top: 3px; }
.card-foot { margin-top: auto; padding-top: 22px; }

.skill { gap: 10px; }
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill .mono { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: 0; overflow-wrap: anywhere; }

.notes { display: grid; border-top: 1px solid var(--line); }
.note-row { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.note-row time { color: var(--muted); font-size: 14px; }
.note-row h2, .note-row h3 { font-size: 21px; font-weight: 650; line-height: 1.3; }
.note-row h2 a, .note-row h3 a { color: var(--text); }
.note-row p { color: var(--muted); max-width: 64ch; }

.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
.page-head .btn { margin-top: 28px; }
.hint { color: var(--muted); font-size: 15px; margin-top: 24px; max-width: 64ch; }
.notice { display: inline-block; color: var(--muted); font-size: 15px; border: 1px dashed var(--line); border-radius: 12px;
  padding: 10px 14px; margin: 8px 0 8px; }

/* AI агент, систем */
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 20px; }
.feature-text { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px 40px; align-items: start; }
.feature-text .chip { grid-column: 1 / -1; justify-self: start; }
.feature-text h2, .feature-text h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; grid-column: 1; }
.feature-text p { color: var(--muted); grid-column: 1; max-width: 56ch; }
.feature-text .checks { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
.feature-fig { margin: 32px 0 0; }
.org-svg { width: 100%; height: auto; display: block; overflow: visible; }
.org-m { display: none; }
.org-ln { stroke: var(--muted); stroke-opacity: .45; stroke-width: 1.5; fill: none; }
.org-box { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.org-lead { stroke: var(--accent); stroke-opacity: .7; }
.org-own { fill: #fff; font-weight: 600; font-size: 15px; }
.org-h { fill: var(--text); font-weight: 650; font-size: 14px; }
.org-r { fill: var(--muted); font-size: 12.5px; }
.org-dot { fill: var(--accent); }
.sys { gap: 10px; }
.sys-more { margin-top: 20px; }
.jump { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.jump a { font-size: 14px; font-weight: 600; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { border-color: var(--accent); text-decoration: none; }
[id] { scroll-margin-top: 80px; }
.sys .chip { align-self: flex-start; }
.sys-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--link);
  background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 6px; }
.benefit { color: var(--text) !important; font-size: 15px !important; border-left: 2px solid var(--accent); padding-left: 10px; }
.sys .more { margin-top: 4px; }
.sys-p .sys-panel { aspect-ratio: 4 / 5; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 28% 22%, #3C8DFF 0%, #1468D8 45%, #5B3BE6 100%); }
.sys-p .sys-panel svg { width: 72px; height: 72px; opacity: .95; }
.sys-p .box-body { flex: 1; align-content: start; }

.sub-title { font-size: 20px; font-weight: 650; margin: 44px 0 18px; }
.card h4, .box-body h4 { font-size: 18px; font-weight: 650; }
.client .shot { display: flex; flex-direction: column; aspect-ratio: 16 / 10; overflow: hidden; background: #fff;
  border-bottom: 1px solid var(--line); }
.shot-bar { flex: none; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--card-hi); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot-bar em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 8px; }
.shot img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: left top; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.02); }
.shot-ico { display: grid !important; place-items: center; color: #fff;
  background: radial-gradient(circle at 28% 22%, #3C8DFF 0%, #1468D8 45%, #5B3BE6 100%) !important; }
.shot-ico svg { width: 64px; height: 64px; }
.client .box-body { flex: 1; align-content: start; }

/* Нийтлэл */
.article { padding: 56px 0 80px; }
.back { font-size: 15px; font-weight: 600; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin-top: 20px; line-height: 1.15; }
.meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.prose { margin-top: 32px; font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 24px; font-weight: 650; margin-top: 40px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--accent); }
.prose .src { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* Тухай */
.about { padding: 88px 0 96px; }
.about-in { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; }
.about h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px; }
.about p { font-size: 19px; line-height: 1.65; max-width: 58ch; }
.about p + p { margin-top: 14px; }
.about-mark svg { width: 160px; height: 160px; filter: drop-shadow(0 24px 60px rgba(24, 119, 242, .45)); }

/* Хөл */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 36px;
  color: var(--muted); font-size: 14px; }

/* Таблет */
@media (max-width: 980px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-text { grid-template-columns: 1fr; }
  .feature-text .checks { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Утас */
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 58px; }
  .brand span { display: none; }
  .top nav { gap: 18px; }
  .top nav a { font-size: 15px; }
  .hero { padding: 40px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .orb { order: -1; width: 150px; justify-self: center; margin: 8px 0 4px; }
  .hero h1 { font-size: 40px; }
  .hero .btn { margin-top: 28px; width: 100%; justify-content: center; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .sec { padding: 40px 0; }
  .sec-head { margin-bottom: 20px; }
  .reel, .sys-p .sys-panel { aspect-ratio: 16 / 13; }
  .feature { padding: 20px 16px; }
  .org-d { display: none; }
  .org-m { display: block; }
  .page-head { padding: 44px 0 16px; }
  .about { padding: 48px 0 64px; }
  .about-in { grid-template-columns: 1fr; gap: 28px; }
  .about-mark svg { width: 96px; height: 96px; }
  .prose { font-size: 17px; }
}
@media (max-width: 360px) {
  .top nav { gap: 13px; }
  .top nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
