/* EvoSoft website styles, on the same design system as StudyCat ("Big Sky"), without the illustrations.
   © 2026 EvoSoft Solutions. All rights reserved.
   Fonts: Gabarito, Figtree, JetBrains Mono; Onest for Cyrillic and Noto Sans Georgian for Georgian
   (SIL Open Font License, see assets/fonts). Each family is stitched together by unicode-range, so Russian and
   Georgian text picks up its own font automatically. */

@font-face { font-family: 'Gabarito'; src: url(../fonts/gabarito.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308, U+0323, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gabarito'; src: url(../fonts/onest-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Gabarito'; src: url(../fonts/noto-georgian.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: 'Figtree'; src: url(../fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0102, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url(../fonts/onest-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Figtree'; src: url(../fonts/noto-georgian.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/mono.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #F0F4F9;
  --surface-3: #E3E9F2;
  --border: #E1E7EF;
  --border-strong: #CBD5E1;
  --lip: #D5DDE8;
  --ink: #14213D;
  --ink-2: #3B4A66;
  --muted: #536279;
  --sky-low: #EEF6FF;
  --accent: #1A64D6;
  --accent-deep: #1450B0;
  --accent-soft: #E3EEFD;
  --accent-ink: #FFFFFF;
  --pine: #22A447;
  --good: #137036;
  --good-soft: #DFF5E5;
  --gold: #8A5C00;
  --gold-soft: #FFF4D1;
  --coral-ink: #A82A21;
  --bad-soft: #FFE6E3;
  --lab: #6B3FA0;
  --lab-soft: #EFE7F8;
  --calm: #0F766E;
  --calm-soft: #DDF3F0;
  --orange: #FF6700;
  --navy: #14213D;
  --card: var(--surface);
  --shadow: 0 18px 40px -18px rgba(20, 33, 61, 0.28), 0 3px 8px -3px rgba(20, 33, 61, 0.08);
  --logo-tile: #14213D;
  --logo-e: #FFFFFF;
  --logo-word: #14213D;

  --display: 'Gabarito', 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --bar: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1626; --surface: #142036; --surface-2: #1A2943; --surface-3: #22344F; --border: #26385A; --border-strong: #35507A;
    --lip: #08101C; --ink: #EEF3FA; --ink-2: #C3D0E2; --muted: #93A5BF; --sky-low: #12203A;
    --accent: #6EA8FF; --accent-deep: #4A88E8; --accent-soft: #17325A; --accent-ink: #0D1626;
    --pine: #34B85B; --good: #4ADE80; --good-soft: #10301E; --gold: #F2C14E; --gold-soft: #3A2F10;
    --coral-ink: #FFB3AA; --bad-soft: #3D1F22; --lab: #BDA0F2; --lab-soft: #2A2142; --calm: #4FD1C5; --calm-soft: #10353A;
    --navy: #142036; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 3px 8px -3px rgba(0, 0, 0, 0.5);
    --logo-tile: #EEF3FA; --logo-e: #0D1626; --logo-word: #EEF3FA; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1626; --surface: #142036; --surface-2: #1A2943; --surface-3: #22344F; --border: #26385A; --border-strong: #35507A;
  --lip: #08101C; --ink: #EEF3FA; --ink-2: #C3D0E2; --muted: #93A5BF; --sky-low: #12203A;
  --accent: #6EA8FF; --accent-deep: #4A88E8; --accent-soft: #17325A; --accent-ink: #0D1626;
  --pine: #34B85B; --good: #4ADE80; --good-soft: #10301E; --gold: #F2C14E; --gold-soft: #3A2F10;
  --coral-ink: #FFB3AA; --bad-soft: #3D1F22; --lab: #BDA0F2; --lab-soft: #2A2142; --calm: #4FD1C5; --calm-soft: #10353A;
  --navy: #142036; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75), 0 3px 8px -3px rgba(0, 0, 0, 0.5);
  --logo-tile: #EEF3FA; --logo-e: #0D1626; --logo-word: #EEF3FA; color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 700; }
code { font-family: var(--mono); font-size: 0.86em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: calc(820px + var(--pad) * 2); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.hl { color: var(--accent); }
.arr { display: inline-block; transition: transform 0.15s; }
a:hover > .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* tones, as in StudyCat (learn, practice, reward, urgent, create, calm) */
.tone-blue { --t: var(--accent); --ts: var(--accent-soft); }
.tone-green { --t: var(--good); --ts: var(--good-soft); }
.tone-gold { --t: var(--gold); --ts: var(--gold-soft); }
.tone-coral { --t: var(--coral-ink); --ts: var(--bad-soft); }
.tone-purple { --t: var(--lab); --ts: var(--lab-soft); }
.tone-teal { --t: var(--calm); --ts: var(--calm-soft); }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ts, var(--accent-soft)); color: var(--t, var(--accent)); flex: none; }
.ico .i { width: 22px; height: 22px; }

/* ---------- buttons: anything you can press has a lip and sinks when pressed ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--ink);
  font: 700 15px/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 0 var(--lip); transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--border-strong); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--lip); }
.btn.primary { background: var(--accent); border-color: var(--accent-deep); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-deep); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 90%, #fff); }
.btn.primary:active { box-shadow: 0 0 0 var(--accent-deep); }
.btn.sm { min-height: 36px; padding: 7px 13px; font-size: 14px; border-radius: 12px; }
.btn.lg { min-height: 52px; padding: 13px 22px; font-size: 16.5px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--lip); }
.icon-btn:active { transform: translateY(2px); box-shadow: none; }

/* ---------- chips, badges, status ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); font: 700 13px/1.2 var(--body); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); flex: none; }
.chip.tone .dot { background: var(--c); }
.badge { display: inline-block; margin: 0; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--border); font: 700 12px/1.4 var(--body); color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 700 12.5px/1.5 var(--body); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-state="online"] { background: var(--good-soft); color: var(--good); }
.status[data-state="online"] i { background: var(--pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 25%, transparent); }
.status[data-state="checking"] i { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- logo ---------- */
.logo { height: 30px; width: auto; }
.logo-tile { fill: var(--logo-tile); }
.logo-e { stroke: var(--logo-e); }
.logo-tail { stroke: var(--orange); }
.logo-word { fill: var(--logo-word); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 2px solid var(--border); }
.bar { display: flex; align-items: center; gap: 12px; height: var(--bar); }
.brand { display: inline-flex; margin-right: auto; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { padding: 8px 13px; border-radius: 10px; font: 600 15px/1.2 var(--body); color: var(--ink-2); text-decoration: none; }
.nav > a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav > a[aria-current="page"]:not(.btn) { background: var(--accent-soft); color: var(--accent); }
.nav .nav-quote { margin-left: 8px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.menu-toggle, .menu-toggle .i-close { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--bar) 0 auto 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--pad) 20px; background: var(--surface); border-bottom: 2px solid var(--border); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .nav > a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; }
  .nav .nav-quote { margin: 8px 0 0; }
  .lang { display: none; }
  .nav .nav-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--border); }
  .nav-lang { display: grid; justify-items: center; gap: 3px; padding: 9px 4px; border-radius: 12px; border: 2px solid var(--border); text-decoration: none; font: 600 0.8rem/1.2 var(--body); color: var(--ink-2); }
  .nav-lang[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open .menu-toggle .i-menu { display: none; }
  .nav-open .menu-toggle .i-close { display: block; }
}

/* ---------- sections & cards ---------- */
.sec { padding: clamp(52px, 7vw, 84px) 0; }
.sec.tight { padding-top: 8px; }
.sec.alt { background: var(--surface); border-block: 2px solid var(--border); --card: var(--bg); }
.sec-head { max-width: 720px; margin: 0 0 30px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head .lede { margin: 0; }
.card { background: var(--card); border: 2px solid var(--border); border-radius: 20px; padding: 24px; }
.more { text-align: center; margin: 28px 0 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); background: linear-gradient(180deg, var(--sky-low) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy h1 { margin-bottom: 18px; }
.trust { margin: 26px 0 0; font-size: 0.92rem; color: var(--muted); }
.trust a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.trust a:hover { color: var(--accent); }
.demo-card { background: var(--surface); border: 2px solid var(--border); border-radius: 24px; padding: 12px; box-shadow: var(--shadow); }
.dc-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.dc-tab { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 8px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font: 700 14px/1.2 var(--body); cursor: pointer; overflow: hidden; transition: background 0.2s, color 0.2s; }
.dc-tab i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.dc-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 0 var(--lip); }
.dc-progress { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; opacity: 0; }
.dc-shot { position: relative; display: block; margin-top: 12px; overflow: hidden; border-radius: 14px; border: 2px solid var(--border); background: var(--surface-2); }
.dc-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transform-origin: 0 0; }
.dc-live { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(13, 22, 38, 0.82); color: #fff; font: 700 12px/1.3 var(--body); backdrop-filter: blur(6px); }
.dc-live i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.dc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 4px; }
.dc-title { margin: 0 0 4px; font: 800 1.05rem/1.2 var(--display); }
.dc-title span { font: 600 0.88rem var(--body); color: var(--muted); margin-left: 4px; }
.dc-cred { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.86rem; }

/* ---------- stats ---------- */
.stats-band { margin-top: -34px; position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 18px 20px; box-shadow: 0 3px 0 var(--lip); }
.stat-n { display: block; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--display); color: var(--t, var(--accent)); }
.stat-l { display: block; margin-top: 4px; color: var(--muted); font-size: 0.93rem; line-height: 1.35; }

/* ---------- product tiles (like StudyCat's class tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-cover { position: relative; display: block; height: 150px; overflow: hidden; background: var(--c); }
.tile-tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); color: #fff; font: 800 11.5px/1.4 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.tile-shot { position: absolute; left: 22px; right: -24px; top: 52px; }
.tile-shot img { width: 100%; border-radius: 10px 0 0 0; border: 3px solid rgba(255, 255, 255, 0.35); border-right: 0; border-bottom: 0; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.45); }
.tile-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tile-body h3 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.tile-body h3 a { text-decoration: none; }
.tile-body h3 a:hover { color: var(--accent); }
.tile-kind { margin: 2px 0 10px; font: 600 0.88rem var(--body); color: var(--muted); }
.tile-text { color: var(--ink-2); font-size: 0.97rem; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: auto 0 0; padding-top: 6px; font-size: 0.85rem; color: var(--muted); }
.tile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tile-new { align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 28px 22px; background: transparent; border: 2px dashed var(--border-strong); text-decoration: none; color: var(--ink-2); }
.tile-new:hover { border-color: var(--accent); box-shadow: none; }
.tile-plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font: 800 1.8rem/1 var(--display); }
.tile-new-title { font: 800 1.25rem var(--display); color: var(--ink); }
.tile-new-text { font-size: 0.94rem; max-width: 26ch; }

/* ---------- services, highlights ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { background: var(--card); border: 2px solid var(--border); border-radius: 18px; padding: 22px; }
.svc h3 { margin: 14px 0 6px; }
.svc p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.svc-detail { display: grid; gap: 14px; }
.svc.wide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 24px; }
.svc.wide h2 { font-size: 1.35rem; margin: 2px 0 6px; }
.svc.wide p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.tags span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--border); font: 600 12.5px/1.5 var(--body); color: var(--ink-2); }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks .i { color: var(--pine); width: 19px; height: 19px; margin-top: 2px; }

/* ---------- the trail (process) ---------- */
.trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.trail::before { content: ''; position: absolute; left: 8%; right: 8%; top: 42px; border-top: 3px dotted var(--border-strong); }
.trail li { position: relative; background: var(--card); border: 2px solid var(--border); border-radius: 18px; padding: 22px; }
.trail-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 1.15rem var(--display); box-shadow: 0 3px 0 var(--accent-deep); margin-bottom: 14px; }
.trail li:last-child .trail-n { background: var(--pine); box-shadow: 0 3px 0 #178A39; }
.trail h3 { margin-bottom: 6px; }
.trail p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- clients ---------- */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.client { background: var(--card); border: 2px solid var(--border); border-radius: 20px; overflow: hidden; }
.client-shot { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 2px solid var(--border); overflow: hidden; }
.client-shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.client-shot span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.3rem var(--display); color: var(--muted); }
.client-body { padding: 16px 18px 20px; }
.client-body h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.client-body h3 a { text-decoration: none; }
.client-body h3 a:hover { color: var(--accent); }
.client-body p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 2px solid var(--border); border-radius: 16px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; cursor: pointer; list-style: none; font: 700 1.05rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.plus { position: relative; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); }
.plus::before, .plus::after { content: ''; position: absolute; left: 7px; top: 12px; width: 12px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform 0.2s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }

/* ---------- CTA ---------- */
.cta-card { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: var(--navy); border: 2px solid var(--border); color: #EEF3FA; }
.cta-card h2 { color: #fff; margin-bottom: 8px; }
.cta-card p { color: #C3D0E2; margin: 0; max-width: 54ch; }
.cta-actions { display: grid; justify-items: start; gap: 16px; }
.cta-card .btn.primary { background: #3D84F0; border-color: #1A64D6; box-shadow: 0 3px 0 #0E3E8C; color: #fff; }
.cta-contacts { font-size: 0.93rem; line-height: 1.7; }
.cta-contacts a { color: #fff; text-decoration: none; font-weight: 600; }
.cta-contacts a:hover { text-decoration: underline; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--sky-low) 0%, var(--bg) 100%); }
.page-head .lede { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 2px 0 var(--lip); font: 700 0.95rem var(--body); text-decoration: none; }
.jump a i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.jump a:hover { border-color: var(--border-strong); }

/* ---------- work list ---------- */
.work-list { display: grid; gap: 18px; }
.work-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); border: 2px solid var(--border); border-radius: 24px; padding: 16px; border-top: 6px solid var(--c); }
.work-shot img { width: 100%; border-radius: 14px; border: 2px solid var(--border); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.work-info { padding: 8px 10px 8px 0; }
.work-info h2 { margin: 0 0 4px; }
.work-info h2 a { text-decoration: none; }
.work-info h2 a:hover { color: var(--accent); }
.work-tag { font: 700 1.1rem var(--display); color: var(--ink-2); }
.work-info .tile-meta { margin-top: 16px; }

/* ---------- product page ---------- */
.p-head { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--bg)) 0%, var(--bg) 75%); }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.p-intro h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); margin: 0 0 6px; }
.p-tag { font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--display); color: var(--ink-2); margin-bottom: 14px; }
.p-side { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 3px 0 var(--lip); }
.side-title { margin: 0 0 8px; font: 800 0.75rem var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.side-status { margin: 0 0 6px; }
.side-url { margin: 0 0 14px; font-size: 0.92rem; }
.side-url a { color: var(--accent); font-weight: 600; }
.side-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-block: 2px solid var(--border); margin-bottom: 14px; color: var(--muted); font-size: 0.92rem; }
.side-stat .stat-n { font-size: 2rem; color: var(--c); }
.side-cred { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; font-size: 0.86rem; }
.side-cred .muted { width: 100%; font-weight: 700; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.stack span { padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1.5px solid var(--border); font: 500 12px/1.4 var(--mono); color: var(--ink-2); }
.shot-card { margin: 0; background: var(--card); border: 2px solid var(--border); border-radius: 20px; padding: 10px; }
.shot-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 6px 4px; font-size: 0.92rem; color: var(--ink-2); }
.hero-shot { margin-top: 26px; box-shadow: var(--shadow); background: var(--surface); }
.shot { all: unset; box-sizing: border-box; display: block; cursor: zoom-in; border-radius: 12px; }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shot img { width: 100%; border-radius: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery .wide { grid-column: 1 / -1; }
.phones-card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px; margin-top: 16px; padding: 24px; background: var(--card); border: 2px solid var(--border); border-radius: 20px; }
.phones-text { flex: 1 1 240px; align-self: center; max-width: 36ch; }
.phones-text h3 { margin: 14px 0 6px; font-size: 1.4rem; }
.phones-text p { color: var(--muted); margin: 0; }
.phones-shots { display: flex; flex-wrap: wrap; gap: 20px; }
.phone { margin: 0; width: 220px; }
.phone img { border-radius: 24px; border: 6px solid #0D1626; }
.phone figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--card); border: 2px solid var(--border); border-radius: 18px; padding: 22px; }
.feat h3 { font-size: 1.25rem; }
.next-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 22px 26px; background: var(--card); border: 2px solid var(--border); border-left: 8px solid var(--c); border-radius: 20px; text-decoration: none; box-shadow: 0 3px 0 var(--lip); }
.next-card > .muted { grid-column: 1; font-size: 0.85rem; font-weight: 700; }
.next-name { grid-column: 1; font: 800 1.8rem/1.1 var(--display); }
.next-tag { grid-column: 1; color: var(--muted); }
.next-card > .arr { grid-column: 2; grid-row: 1 / span 3; font-size: 1.6rem; color: var(--muted); }
.next-card:hover .next-name { color: var(--accent); }

/* ---------- demo blocks & accounts ---------- */
.demo-block { background: var(--card); border: 2px solid var(--border); border-top: 6px solid var(--c); border-radius: 24px; padding: clamp(18px, 3vw, 28px); }
.sec.alt .demo-block { background: var(--bg); }
.db-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.db-id { display: flex; align-items: center; gap: 12px; flex-basis: 100%; }
.db-dot { width: 42px; height: 42px; border-radius: 13px; background: var(--c); flex: none; }
.db-id h3 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.db-id h3 a { text-decoration: none; }
.db-id h3 a:hover { color: var(--accent); }
.db-id p { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.db-where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 auto 0 0; font-size: 0.92rem; }
.db-where a { color: var(--accent); font-weight: 700; }
.db-facts { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.db-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.db-facts .i { color: var(--c); margin-top: 2px; }
.accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.acct { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--border); border-radius: 18px; padding: 16px; }
.acct-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.role { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 82%, var(--ink)); font: 800 11.5px/1.5 var(--body); letter-spacing: 0.05em; text-transform: uppercase; }
.acct h4 { margin: 10px 0 10px; font-size: 1.12rem; }
.cred { margin: 0 0 12px; display: grid; gap: 6px; }
.cred div { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 6px; }
.cred dt { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.cred dd { margin: 0; min-width: 0; }
.copy { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 9px; border-radius: 9px; background: var(--surface-2); border: 1.5px solid var(--border); cursor: pointer; }
.copy code { font-size: 0.82rem; overflow-wrap: anywhere; color: var(--ink); }
.copy:hover { border-color: var(--accent); }
.copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.copy-tag { display: inline-grid; flex: none; color: var(--muted); }
.copy-tag .i { width: 15px; height: 15px; grid-area: 1 / 1; transition: opacity 0.15s, transform 0.2s; }
.copy-tag .i-done { opacity: 0; transform: scale(0.5); }
.copy:hover .copy-tag { color: var(--accent); }
.copy.done { border-color: var(--pine); }
.copy.done .copy-tag { color: var(--good); }
.copy.done .i-copy { opacity: 0; transform: scale(0.5); }
.copy.done .i-done { opacity: 1; transform: none; }
.tries { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); font-size: 0.88rem; display: grid; gap: 4px; }
.tries li::marker { color: var(--c); }
.acc-go { align-self: flex-start; margin-top: auto; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.note { background: var(--surface); border: 2px solid var(--border); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.note.wide { grid-column: 1 / -1; }
.steps-list { margin: 0; padding-left: 1.3em; color: var(--ink-2); font-size: 0.94rem; display: grid; gap: 6px; }
.steps-list li::marker { color: var(--accent); font-weight: 800; }
.kv { margin: 0; }
.kv div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 2px solid var(--surface-2); }
.kv dt { color: var(--muted); font-size: 0.92rem; }
.kv dd { margin: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font: 800 0.75rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 2px solid var(--border); }
.table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); white-space: nowrap; }
.db-copy { margin: 18px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- quote form ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); gap: 18px; align-items: start; }
.quote { display: grid; gap: 22px; padding: clamp(20px, 3vw, 30px); border-radius: 24px; box-shadow: 0 3px 0 var(--lip); background: var(--surface); }
.quote-side { display: grid; gap: 14px; }
.quote-side .card { background: var(--surface); }
.quote-side h2 { font-size: 1.05rem; margin: 12px 0 6px; }
.big-line { margin: 0 0 2px; font: 700 1.15rem/1.4 var(--display); }
.big-line a { text-decoration: none; }
.big-line a:hover { color: var(--accent); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font: 700 0.95rem var(--body); padding: 0; }
.field em { font-style: normal; font-weight: 600; font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 2px solid var(--border); border-radius: 12px; padding: 11px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--coral-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); box-shadow: 0 2px 0 var(--lip); font: 600 0.9rem var(--body); cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.pick span:hover { border-color: var(--border-strong); }
.pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--coral-ink); font-weight: 600; margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot p { margin: 0; }
.form-done { text-align: center; padding: 20px 0; }
.form-done .ico { margin-bottom: 10px; }

/* ---------- about, legal ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 18px; align-items: start; }
.prose p { color: var(--ink-2); }
.prose .big { font: 700 clamp(1.2rem, 2vw, 1.45rem)/1.4 var(--display); color: var(--ink); }
.prose a { color: var(--accent); font-weight: 600; }
.prose h2 { font-size: 1.4rem; }
.prose p:last-child { margin-bottom: 0; }
.about-side { background: var(--surface); }
.about-side .btn { margin-top: 10px; }
.legal { display: grid; gap: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 2px solid var(--border); padding: 48px 0 26px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-brand p { color: var(--muted); font-size: 0.95rem; margin: 14px 0 16px; max-width: 38ch; }
.footer h2 { font: 800 0.75rem var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.95rem; }
.footer ul a { color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.foot-base p { margin: 0; }

/* ---------- chat assistant ---------- */
.chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 16px; border: 2px solid var(--accent-deep); background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--body); cursor: pointer; box-shadow: 0 3px 0 var(--accent-deep), var(--shadow); transition: transform 0.1s; }
.chat-launch:active { transform: translateY(3px); box-shadow: 0 0 0 var(--accent-deep), var(--shadow); }
.chat-launch .logo-mark { width: 30px; height: 30px; }
.chat-launch .logo-tile, .chat-head .logo-tile { fill: #FFFFFF; }
.chat-launch .logo-e, .chat-head .logo-e { stroke: #14213D; }
.chat-head .logo-tile { fill: var(--navy); }
.chat-head .logo-e { stroke: #FFFFFF; }
.chat-open .chat-launch { display: none; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px)); background: var(--surface); border: 2px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 2px solid var(--border); }
.chat-head .logo-mark { width: 34px; height: 34px; flex: none; }
.chat-head div { flex: 1; }
.chat-head h2 { font-size: 1.1rem; margin: 0; }
.chat-head p { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); }
.chat-head .icon-btn { width: 36px; height: 36px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; background: var(--bg); }
.msg { max-width: 88%; font-size: 0.95rem; line-height: 1.5; overflow-wrap: anywhere; padding: 10px 14px; }
.msg p { margin: 0 0 0.55em; }
.msg p:last-child, .msg ul:last-child, .msg ol:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 0.55em; padding-left: 1.2em; }
.msg code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 0.84em; }
.msg a { color: var(--accent); font-weight: 600; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 2px solid var(--border); border-radius: 16px 16px 16px 4px; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 4px 16px; }
.msg.typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--bg); }
.chat-suggest:empty { display: none; }
.chat-suggest button { border: 2px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 11px; font: 600 0.82rem var(--body); cursor: pointer; box-shadow: 0 2px 0 var(--lip); text-align: left; }
.chat-suggest button:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 2px solid var(--border); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.95rem; line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-form button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 2px solid var(--accent-deep); border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; box-shadow: 0 3px 0 var(--accent-deep); }
.chat-form button:active { transform: translateY(3px); box-shadow: none; }
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: 0.72rem; color: var(--muted); background: var(--surface); }
.chat-note a { color: var(--muted); }
@media (max-width: 560px) {
  .chat-launch { right: 14px; bottom: 14px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- toast & lightbox ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: #14213D; color: #EEF3FA; font-size: 0.92rem; box-shadow: var(--shadow); transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast code { background: rgba(255, 255, 255, 0.14); padding: 1px 6px; border-radius: 5px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 15, 28, 0.94); color: #EEF3FA; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100vh; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 56px 8px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; }
.lightbox figcaption { color: #C3D0E2; text-align: center; }
.lightbox .icon-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; margin: 0 12px; box-shadow: none; }
.lb-close { position: absolute; top: 14px; right: 14px; }

/* ---------- language menu ---------- */
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 11px; gap: 6px; grid-auto-flow: column; font: 800 13px/1 var(--body); }
.lang-btn .i { width: 18px; height: 18px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 55; display: grid; gap: 2px; min-width: 190px; padding: 6px; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.lang-menu:not([hidden]) { animation: drop 0.18s ease-out; }
.lang-menu[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.lang-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.lang-item:hover { background: var(--surface-2); color: var(--ink); }
.lang-item[aria-current] { background: var(--accent-soft); color: var(--accent); }
.lang-code { min-width: 22px; font: 800 11.5px/1 var(--body); letter-spacing: 0.04em; color: var(--muted); }
.lang-item[aria-current] .lang-code { color: var(--accent); }
.nav-langs { display: none; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-lang { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-lang .lang-code { display: none; }
.foot-lang:hover, .foot-lang[aria-current] { color: var(--accent); }
.lang-hint { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(340px, calc(100vw - 28px)); padding: 16px 18px; background: var(--surface); border: 2px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); animation: pop-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0 0 12px; font-weight: 700; }
.lang-hint div { display: flex; gap: 8px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

/* ---------- hero motion & ambient light (no illustrations: soft colour only) ---------- */
.hero, .page-head, .p-head { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg i { position: absolute; width: min(52vw, 620px); aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.hero-bg i:nth-child(1) { left: -10%; top: -30%; background: radial-gradient(circle, #9CCBFF 0%, rgba(156, 203, 255, 0) 68%); animation: drift-a 19s ease-in-out infinite alternate; }
.hero-bg i:nth-child(2) { right: -12%; top: -10%; background: radial-gradient(circle, #C6B8FF 0%, rgba(198, 184, 255, 0) 68%); animation: drift-b 23s ease-in-out infinite alternate; }
.hero-bg i:nth-child(3) { left: 30%; bottom: -55%; background: radial-gradient(circle, #9DEBD9 0%, rgba(157, 235, 217, 0) 68%); animation: drift-c 27s ease-in-out infinite alternate; }
.p-head .hero-bg i:nth-child(1) { background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent) 0%, transparent 68%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 10%, transparent 75%); opacity: 0.55; animation: grid-pan 50s linear infinite; }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 14vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-16vw, -10vh) scale(1.2); } }
@keyframes grid-pan { to { background-position: 240px 120px; } }
:root[data-theme="dark"] .hero-bg i { opacity: 0.22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg i { opacity: 0.22; } }

.motion .hero-copy > *, .motion .page-head .wrap > *, .motion .p-intro > *, .motion .p-side, .motion .crumbs { animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.motion .hero-copy > :nth-child(2), .motion .page-head .wrap > :nth-child(2), .motion .p-intro > :nth-child(2) { animation-delay: 0.08s; animation-name: rise-blur; }
.motion .hero-copy > :nth-child(3), .motion .page-head .wrap > :nth-child(3), .motion .p-intro > :nth-child(3) { animation-delay: 0.18s; }
.motion .hero-copy > :nth-child(4), .motion .page-head .wrap > :nth-child(4), .motion .p-intro > :nth-child(4) { animation-delay: 0.27s; }
.motion .hero-copy > :nth-child(5), .motion .p-intro > :nth-child(5) { animation-delay: 0.36s; }
.motion .hero-copy > :nth-child(6) { animation-delay: 0.45s; }
.motion .p-side { animation-delay: 0.3s; }
.motion .hero .demo-card { animation: card-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards; transform-origin: 50% 100%; }
.motion .p-head .hero-shot { animation: card-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rise-blur { from { opacity: 0; transform: translateY(28px); filter: blur(10px); } }
@keyframes card-in { from { opacity: 0; transform: perspective(1200px) rotateX(16deg) translateY(50px) scale(0.95); } }
.hl { background: linear-gradient(transparent 72%, color-mix(in srgb, var(--accent) 22%, transparent) 72%, color-mix(in srgb, var(--accent) 22%, transparent) 90%, transparent 90%) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.motion .hl { animation: marker 1s cubic-bezier(0.6, 0, 0.2, 1) 0.9s backwards; }
@keyframes marker { from { background-size: 0% 100%; } }

.typer { margin: -4px 0 16px; font: 700 clamp(1.1rem, 1.7vw, 1.35rem)/1.35 var(--display); color: var(--ink-2); min-height: 1.35em; }
.typer-word { color: var(--accent); }
.caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -0.16em; border-radius: 2px; background: var(--accent); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* the live-demo card: tabs rotate on their own until someone picks one */
.demo-card.autoplay .dc-tab[aria-selected="true"] .dc-progress { opacity: 1; animation: progress var(--dur, 6500ms) linear forwards; }
.demo-card.paused .dc-progress { animation-play-state: paused !important; }
@keyframes progress { to { transform: scaleX(1); } }
.motion .dc-panel:not([hidden]) { animation: panel-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion .dc-panel:not([hidden]) .dc-shot img { animation: ken 9s ease-out both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ken { from { transform: scale(1.12) translate(-2%, -1%); } to { transform: scale(1); } }
.demo-card.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.3s ease-out; }
.tile.tilt:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.topbar { transition: box-shadow 0.2s; }
.topbar.scrolled { box-shadow: 0 10px 28px -18px rgba(20, 33, 61, 0.45); }

/* sideways-scrolling band of what we build */
.marquee { display: grid; gap: 12px; padding: 34px 0 4px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.mq-track span { display: inline-flex; align-items: center; gap: 10px; margin-right: 12px; padding: 9px 17px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 2px 0 var(--lip); font: 700 0.95rem/1.2 var(--body); color: var(--ink-2); white-space: nowrap; }
.mq-track span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mq-row.rev .mq-track span::before { background: var(--pine); }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* reveal on scroll (added by site.js only to things below the fold, so nothing visible ever blinks) */
html .rv { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 75ms); }
html .rv.rv-zoom { transform: scale(0.94); }
html .rv.in { opacity: 1; transform: none; }
.trail::before { transform-origin: left; transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; }
.motion .trail:not(.drawn)::before { transform: scaleX(0); }
.motion .trail.drawn .trail-n { animation: bump 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) backwards; }
.motion .trail.drawn li:nth-child(2) .trail-n { animation-delay: 0.35s; }
.motion .trail.drawn li:nth-child(3) .trail-n { animation-delay: 0.7s; }
.motion .trail.drawn li:nth-child(4) .trail-n { animation-delay: 1.05s; }
@keyframes bump { from { transform: scale(0.4); opacity: 0; } }

/* cards follow the pointer with a soft light, and lift */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.svc, .feat, .trail li, .client, .acct, .note, .stat, .card { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, border-color 0.25s; }
.svc:hover, .feat:hover, .trail li:hover, .client:hover, .acct:hover, .stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.svc:hover .ico, .feat:hover .ico, .stat:hover .stat-n { animation: wiggle 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes wiggle { 30% { transform: scale(1.14) rotate(-7deg); } 60% { transform: scale(0.96) rotate(4deg); } }
.tile-shot { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tile:hover .tile-shot { transform: translate(-6px, -10px) rotate(-1.5deg); }
.tile-new:hover .tile-plus { animation: spin-plus 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes spin-plus { to { transform: rotate(180deg); } }
.shot, .work-shot { overflow: hidden; }
.work-shot { display: block; border-radius: 16px; }
.shot img, .work-shot img, .client-shot img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.shot:hover img, .work-shot:hover img, .client:hover .client-shot img { transform: scale(1.035); }
.hero-shot { transform: perspective(1400px) rotateX(var(--rx, 0deg)); transform-origin: 50% 0; }
.motion .phone { animation: float 6s ease-in-out infinite alternate; }
.motion .phone:nth-child(2) { animation-delay: -3s; }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

/* buttons: a light sweep on hover; the hero's main button sweeps on its own now and then */
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after { content: ''; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%); transform: translateX(-130%); pointer-events: none; }
.btn.primary:hover::after { transform: translateX(130%); transition: transform 0.75s ease; }
.motion .hero .actions .btn.primary::after, .motion .cta-card .btn.primary::after { animation: shine 5s ease-in-out 2.2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.btn:hover .arr { transform: translateX(4px); }

/* the dark call-to-action panel glows */
.cta-card { position: relative; overflow: hidden; isolation: isolate; }
.cta-card::before { content: ''; position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, transparent 0deg, rgba(61, 132, 240, 0.32) 60deg, transparent 120deg, rgba(123, 97, 255, 0.28) 200deg, transparent 260deg, rgba(52, 211, 153, 0.18) 320deg, transparent 360deg); animation: spin 22s linear infinite; }
.cta-card::after { content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: 26px; background: var(--navy); opacity: 0.9; }
@keyframes spin { to { transform: rotate(1turn); } }

/* header: reading progress */
.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: linear-gradient(90deg, var(--accent), #7B61FF, var(--pine)); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

/* FAQ opens smoothly where the browser can animate to auto height */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details { transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--accent); box-shadow: 0 3px 0 var(--accent-soft); }

/* chat: a gentle pulse, and a one-time hello bubble */
.chat-launch::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; }
.motion .chat-launch::after { animation: ring 3s ease-out 3s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(26, 100, 214, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(26, 100, 214, 0); } }
.chat-teaser { position: fixed; right: 20px; bottom: 82px; z-index: 60; width: min(270px, calc(100vw - 40px)); padding: 14px 40px 14px 16px; background: var(--surface); border: 2px solid var(--border); border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow); cursor: pointer; animation: pop-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.chat-teaser[hidden], .chat-open .chat-teaser { display: none; }
.chat-teaser p { margin: 0; font-size: 0.93rem; font-weight: 600; }
.chat-teaser-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.chat-teaser-close .i { width: 14px; height: 14px; }
.chat-panel:not([hidden]) { animation: pop-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1); transform-origin: 100% 100%; }
.msg { animation: msg-in 0.3s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }

/* moving between pages fades instead of flashing (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.2s ease both vt-out; }
::view-transition-new(root) { animation: 0.3s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* section headings get a short accent line that draws in as they appear */
.sec-head h2::after { content: ''; display: block; width: 56px; height: 5px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #7B61FF); transform-origin: left; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s; }
.sec-head.center h2::after { margin-inline: auto; transform-origin: center; }
.cta-card h2::after { display: none; }
html .sec-head.rv:not(.in) h2::after { transform: scaleX(0); }
/* the quote form answers back */
.motion .pick input:checked + span { animation: wiggle 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
.motion .form-done:not([hidden]) { animation: pop-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.motion .form-done:not([hidden]) .ico { animation: bump 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s backwards; }
.quote.sending .btn.primary::after { animation: shine 1.1s ease-in-out infinite; }

/* ---------- per language ---------- */
:where(:lang(ka)) h1 { font-size: clamp(1.95rem, 4.1vw, 3.05rem); line-height: 1.18; letter-spacing: 0; }
:where(:lang(ka)) h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); line-height: 1.22; letter-spacing: 0; }
:lang(ka) .tile-tag, :lang(ka) .side-title, :lang(ka) .footer h2, :lang(ka) .role, :lang(ka) .table th { text-transform: none; letter-spacing: 0; }
:where(:lang(ru), :lang(es)) h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h1, h2, h3, .lede { overflow-wrap: break-word; }
:lang(ka) .btn, :lang(ru) .btn, :lang(es) .btn { white-space: normal; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid, .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail::before { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .p-grid, .work-row, .quote-grid, .about-grid, .cta-card { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band { margin-top: -24px; }
  .tiles.three, .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-facts { grid-template-columns: minmax(0, 1fr); }
  .work-info { padding: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tiles, .tiles.three, .svc-grid, .feat-grid, .clients, .trail, .gallery, .notes, .row2, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .svc.wide { grid-template-columns: auto minmax(0, 1fr); }
  .svc.wide > .btn { grid-column: 2; justify-self: start; }
  .actions .btn { flex: 1 1 auto; }
  .dc-tab { font-size: 13px; padding: 9px 4px; }
  .accts { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 46%; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
}
@media (max-width: 560px) {
  .lang-hint { left: 12px; right: 12px; bottom: 80px; width: auto; }
  .chat-teaser { right: 14px; bottom: 76px; }
}
@media print { .chat, .topbar, .lang-hint { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html .rv { opacity: 1 !important; transform: none !important; }
  .hero-bg::after { display: none; }
}
