/* ==========================================================================
   miboratech.com — one stylesheet for every page.

   The header, footer and tokens are shared; each page only adds sections.
   Colours are tokens on :root, redefined once for dark mode. Nothing below
   the token block names a raw colour except the decorative hero glow.

   Typeface: Manrope (SIL OFL, public/fonts/OFL.txt), the same variable files
   lekhajokha.ai serves. The latin-ext file exists for the rupee sign.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 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+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F7F8FB;
  --bg-2: #EEF0F7;
  --surface: #FFFFFF;
  --surface-2: #F3F4FA;
  --ink: #0E1122;
  --ink-2: #474D66;
  --ink-3: #6B7189;
  --line: #E2E5EF;
  --line-2: #D3D7E5;
  --accent: #3730A3;
  --accent-2: #4F46E5;
  --accent-soft: #EBEAFD;
  --accent-ink: #FFFFFF;
  --teal: #0E7490;
  --good: #0A7A45;
  --lj: #0A6E3E;
  --shadow: 0 1px 2px rgba(14, 17, 34, .04), 0 12px 32px -12px rgba(14, 17, 34, .14);
  --shadow-lg: 0 2px 4px rgba(14, 17, 34, .04), 0 30px 60px -20px rgba(30, 27, 110, .28);
  --header-bg: rgba(247, 248, 251, .82);
  --grid-line: rgba(55, 48, 163, .07);
  --glow-1: rgba(79, 70, 229, .22);
  --glow-2: rgba(14, 165, 233, .16);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --header-h: 68px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0C14;
    --bg-2: #0F1220;
    --surface: #121522;
    --surface-2: #181C2C;
    --ink: #F2F3F8;
    --ink-2: #A9AFC4;
    --ink-3: #7F869E;
    --line: #232839;
    --line-2: #2F3549;
    --accent: #A5B4FC;
    --accent-2: #818CF8;
    --accent-soft: #1E2044;
    --accent-ink: #0A0C14;
    --teal: #67E8F9;
    --good: #4ADE80;
    --lj: #12985A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .8);
    --header-bg: rgba(10, 12, 20, .78);
    --grid-line: rgba(165, 180, 252, .06);
    --glow-1: rgba(99, 102, 241, .28);
    --glow-2: rgba(34, 211, 238, .14);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.025em; line-height: 1.15; font-weight: 750; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 650 15px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--glow-1); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 16px 20px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .nav-cta { margin: 12px 0 0; width: 100%; }
}
@media (min-width: 861px) {
  .nav-menu { display: flex; align-items: center; margin-left: auto; }
}

/* ---------- section scaffolding ---------- */
.section { padding: 104px 0; }
.section.flush-bottom { padding-bottom: 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head h2 + p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 700px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, var(--glow-1), transparent 70%), radial-gradient(closest-side at 30% 70%, var(--glow-2), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 650; color: var(--ink-2);
}
.pill .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.pill .dot svg { width: 13px; height: 13px; }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 5.8vw, 68px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2); opacity: .7; }

/* the sample "document AI" window in the hero */
.demo { position: relative; }
.window { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-2); }
.window-bar span { margin-left: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.window-bar em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.window-body { padding: 20px; display: grid; gap: 16px; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.file .ficon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.file .ficon svg { width: 20px; height: 20px; }
.file b { display: block; font-size: 14px; font-weight: 700; }
.file small { display: block; font-size: 12px; color: var(--ink-3); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.scan { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.scan::after { content: ""; display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--teal)); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.fields { display: grid; gap: 2px; margin: 0; }
.field { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.field:last-child { border-bottom: 0; }
.field dt { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.field dd { margin: 0; font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conf { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); color: var(--ink-3); }
.conf i { display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.conf i::after { content: ""; display: block; height: 100%; width: var(--w, 90%); background: var(--good); border-radius: inherit; }
.agent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.agent svg { width: 20px; height: 20px; color: var(--accent); }
.agent .mini { margin-left: auto; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; }
.float { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.float svg { width: 18px; height: 18px; color: var(--accent); }
.float-1 { left: 56px; top: -26px; }
.float-2 { right: -20px; bottom: -22px; }
.float-2 svg { color: var(--good); }

/* ---------- tech strip ---------- */
.strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.strip-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.strip li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.card h3 { font-size: 19px; letter-spacing: -0.015em; }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.card .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.section-foot { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 20px; font: 700 13px/1 var(--font-mono); color: var(--accent); letter-spacing: .08em; }
.step h3 { font-size: 19px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.product { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.product .badge { width: 56px; height: 56px; border-radius: 14px; background: var(--lj); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.product .label { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good); }
.product h3 { font-size: 24px; }
.product .tag { margin-top: 4px; font-weight: 650; color: var(--ink); }
.product .desc { margin-top: 12px; color: var(--ink-2); }
.product .link-arrow { margin-top: 18px; }
.product.soon { background: transparent; border-style: dashed; border-color: var(--line-2); }
.product.soon .badge { background: var(--accent-soft); color: var(--accent); }
.product.soon .badge svg { width: 26px; height: 26px; }
.product.soon .label { color: var(--accent); }

/* ---------- about split + principles ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split .body p + p { margin-top: 16px; }
.split .body h2 + p { margin-top: 24px; }
.split .body p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; }
.split .body p.lead { font-size: 21px; line-height: 1.5; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.split .body .link-arrow { margin-top: 24px; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principles.three { grid-template-columns: repeat(3, 1fr); }
.principle { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principle .icon { color: var(--accent); margin-bottom: 14px; }
.principle h3 { font-size: 17px; letter-spacing: -0.01em; }
.principle p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ---------- mission & vision (about page) ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { padding: 40px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.mv-card .eyebrow { margin-bottom: 14px; }
.mv-card p { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }

/* ---------- facts (about page) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts div { padding: 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { color: inherit; }

/* ---------- CTA band ---------- */
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 56px; border-radius: 24px; background: #14123A; color: #fff;
}
.cta-box::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -160px; top: -320px; background: radial-gradient(closest-side, rgba(129, 140, 248, .55), transparent 70%); }
.cta-box::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -340px; background: radial-gradient(closest-side, rgba(34, 211, 238, .28), transparent 70%); }
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta-box p { margin-top: 14px; color: #C9CCF2; font-size: 18px; max-width: 34em; }
.cta-box .btn-primary { background: #fff; color: #14123A; box-shadow: none; }
.cta-box .btn-primary:hover { background: #E8E9FF; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta-actions small { color: #A9ADE0; font-size: 14px; }
.cta-actions small a { color: #fff; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 70% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 70% 0%, #000 20%, transparent 70%);
}
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 760px; height: 560px; right: -200px; top: -300px; background: radial-gradient(closest-side, var(--glow-1), transparent 70%); }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -0.035em; line-height: 1.06; max-width: 18ch; font-weight: 800; }
.page-hero .lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- service detail rows (services page) ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-head .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.svc-head h2 { font-size: clamp(26px, 3vw, 34px); }
.svc-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.svc-body { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.svc-body h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.svc-body h3 + ul { margin-top: 14px; }
.svc-body ul + h3 { margin-top: 26px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.uses { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.uses li { padding: 6px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.model h3 { font-size: 20px; }
.model .for { margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--accent); }
.model p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* ---------- legal documents ---------- */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 104px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.doc { max-width: 760px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.doc-meta b { color: var(--ink-2); font-weight: 700; }
.doc section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.doc section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; }
.doc h3 { font-size: 17px; margin-top: 24px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.short { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 16px; line-height: 1.6; }
.short b { color: var(--accent); }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; }
.doc th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 14px; }
.doc tr:last-child td { border-bottom: 0; }
.contact-card { margin-top: 16px; padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px; }
.contact-card p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 72px 0 0; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.foot-brand p { margin-top: 16px; color: var(--ink-2); max-width: 26em; }
.foot-contact { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot-contact li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.foot-contact .icon { width: 18px; height: 18px; color: var(--ink-3); }
.foot-contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.foot-col ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.foot-col a { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.foot-col ul + h2 { margin-top: 32px; }
.foot-bottom { margin-top: 64px; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--ink-3); font-size: 14px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-bottom a { color: var(--ink-3); text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 404 ---------- */
.site-footer.slim { padding-top: 0; }
.site-footer.slim .foot-bottom { margin-top: 0; border-top: 0; }
.notfound { padding: 120px 0; text-align: center; }
.notfound .code { font: 800 clamp(72px, 14vw, 140px)/1 var(--font-sans); letter-spacing: -0.05em; color: var(--accent); opacity: .9; }
.notfound h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.notfound p { margin: 14px auto 0; max-width: 32em; color: var(--ink-2); }
.notfound .hero-ctas { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .float-2 { right: -8px; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .svc { grid-template-columns: 1fr; gap: 48px; }
  .svc { gap: 28px; }
  .demo { max-width: 560px; }
  .products { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .principles.three { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .toc { position: static; max-height: none; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 44px 36px; }
  .cta-actions { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 72px; }
  .page-hero { padding: 56px 0 48px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .cards, .steps, .principles, .principles.three { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .float { display: none; }
  .window-body { padding: 16px; }
  .field { grid-template-columns: 84px 1fr; }
  .field .conf { display: none; }
  .agent .mini { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  .svc-body { padding: 22px; }
  .mv-card { padding: 28px 24px; }
  .toc ol { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 24px; border-radius: 20px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer { padding-top: 56px; }
  .foot-bottom { margin-top: 48px; flex-direction: column; }
}
