/* Shift and Control — shift.mn */

:root {
  --ink: #1c262b;
  --ink-2: #29363d;
  --text: #253238;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg: #ffffff;
  --soft: #f4f7fa;
  --brand: #087f8c;
  --brand-2: #2fb3c1;
  --brand-ink: #066570;
  --accent: #f5a524;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 38, 43, .06), 0 8px 24px rgba(28, 38, 43, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Хэл солих: идэвхгүй хэлний бичвэрийг нуух ---- */
html[data-lang="mn"] body [lang="en"],
html[data-lang="en"] body [lang="mn"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); margin-bottom: 18px; }
h3 { font-size: 1.12rem; margin: 18px 0 8px; }
p { margin: 0 0 14px; }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--brand-ink); }
.eyebrow--light { color: var(--brand-2); }

/* ---- Дээд мөр ---- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(28, 38, 43, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
}
.topbar__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__logo { height: 36px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-size: 1.05rem; letter-spacing: .14em; }
.brand__text small { font-size: .6rem; letter-spacing: .26em; color: #9fb1b8; margin-top: 4px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; color: #cdd8dc; transition: color .15s; }
.nav a:hover { color: #fff; }

.lang { display: flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 2px; }
.lang button {
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  background: none; border: 0; color: #9fb1b8; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; min-height: 30px;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lang button:focus-visible, .btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---- Нүүр ---- */
.hero {
  position: relative; overflow: hidden;
  color: #d6dfe2;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(8, 127, 140, .32), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(245, 165, 36, .10), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.3rem); margin-bottom: 20px; }
.lead { font-size: 1.13rem; color: #b9c7cc; max-width: 38em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .55); }

/* Нүүрний зураг: Odoo-гийн модулиудын самбар + хоёр мэдэгдэл */
.hero__art { position: relative; padding: 18px 0 30px; }
.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 14px 16px 18px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px 140px at 15% 0%, rgba(8, 127, 140, .30), transparent 70%);
}
.panel__bar { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.panel__bar i:first-child { background: #ff6b6b; opacity: .7; }
.panel__bar i:nth-child(2) { background: #f5c451; opacity: .7; }
.panel__bar i:nth-child(3) { background: #3ddc97; opacity: .7; }
.panel__url {
  margin-left: 12px; flex: 1; max-width: 200px;
  font-size: .7rem; letter-spacing: .04em; color: #8fa2a9;
  padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .25);
}
.panel__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  --c: #2fb3c1;
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 14px;
  min-height: 98px; padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: .82rem; font-weight: 600; color: #e3eaec; line-height: 1.25;
  transition: transform .2s, border-color .2s, background .2s;
}
.tile svg {
  width: 36px; height: 36px; padding: 8px; border-radius: 10px;
  fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(255, 255, 255, .08);
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.tile:hover, .tile.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 8%, rgba(255, 255, 255, .04));
}
.tile:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }


/* Модулийн мэдэгдэл — main.js байрлуулж, .is-on-оор харуулна */
.toast {
  --c: #2fb3c1;
  position: absolute; z-index: 2; left: 0; top: 0;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: 280px;
  padding: 11px 16px 11px 11px; border-radius: 14px;
  background: rgba(41, 54, 61, .96);
  border: 1px solid color-mix(in srgb, var(--c) 35%, rgba(255, 255, 255, .12));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: .82rem; line-height: 1.3;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px) scale(.97);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.toast.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s, transform .18s, visibility 0s;
}
.toast b { display: block; font-weight: 600; }
.toast small { display: block; color: #9badb3; font-size: .72rem; margin-top: 2px; }
.toast__ico {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  background: color-mix(in srgb, var(--c) 20%, transparent);
}
.toast__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--c); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Хэсгүүд ---- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about p { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li {
  position: relative;
  padding: 20px 22px 20px 58px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--muted); font-size: .95rem; line-height: 1.55;
}
.values li::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.values b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #c6d3e1; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }

.ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 11px;
  fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: #e1f1f3;
}

/* ---- Холбоо барих ---- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 22px;
  color: #b9c7cc;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(8, 127, 140, .34), transparent 60%),
    var(--ink);
}
.contact h2 { color: #fff; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact__list li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  color: #fff; overflow-wrap: anywhere;
}
.contact__list .ico { flex: none; background: rgba(8, 127, 140, .16); stroke: var(--brand-2); }
.contact__list small { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #88999f; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }

/* ---- Хөл ---- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: .9rem; color: var(--muted); }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__in { align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---- Жижиг дэлгэц ---- */
@media (max-width: 960px) {
  .hero__in, .about, .contact { grid-template-columns: 1fr; }
  .hero__in { padding-top: 64px; padding-bottom: 72px; gap: 44px; }
  .hero__art { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { padding: 40px 32px; gap: 28px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .contact { padding: 30px 20px; border-radius: 18px; }
  body { font-size: 16px; }
  .tile { min-height: 84px; padding: 10px; gap: 10px; font-size: .76rem; }
  .tile svg { width: 32px; height: 32px; padding: 7px; }
  .toast { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .tile { transition: none; }
  .btn:hover, .card:hover, .tile:hover { transform: none; }
  .toast, .toast.is-on { transition: none; }
}
