/* Layout: монохромна "інженерна" сітка як у лого — тонкі лінії, зрізані кути, один кобальтовий акцент */
:root {
  --paper: #F2F3F6;
  --surface: #FFFFFF;
  --ink: #0E1015;
  --muted: #5B606C;
  --line: #D6D9E1;
  --accent: #2B39F0;
  --accent-ink: #FFFFFF;
  --tile: #12141B;
  --tile-ink: #E9EBF2;
  --tile-line: #2A2E3A;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --cut: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0C10; --surface: #13151B; --ink: #ECEEF4; --muted: #949AA7; --line: #262A35;
    --accent: #7D87FF; --accent-ink: #0B0C10; --tile: #181B23; --tile-ink: #E9EBF2; --tile-line: #303544;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0C10; --surface: #13151B; --ink: #ECEEF4; --muted: #949AA7; --line: #262A35;
  --accent: #7D87FF; --accent-ink: #0B0C10; --tile: #181B23; --tile-ink: #E9EBF2; --tile-line: #303544;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }

.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(36px, 5.4vw, 64px); }
h3 { font-size: 24px; letter-spacing: .02em; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 18px; max-width: 58ch; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.split { grid-template-columns: 1fr minmax(0, 46ch); align-items: end; gap: 24px 48px; }
@media (max-width: 820px) { .sec-head.split { grid-template-columns: 1fr; } }

/* кнопки зі зрізаним кутом, як у лого */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--body); text-decoration: none;
  padding: 16px 22px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arr { font-family: var(--mono); }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand b { font: 600 18px/1 var(--display); letter-spacing: .12em; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top .btn { padding: 11px 16px; font-size: 14px; --cut: 10px; }
@media (max-width: 920px) { .nav { display: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(48px, 8.4vw, 112px); line-height: .95; margin-block: 22px 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.emblem { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; max-width: 100%; }
.emblem .logo { position: absolute; inset: 17%; width: 66%; height: 66%; color: var(--ink); }
.emblem .orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.emblem .orbit text { font: 500 13px var(--mono); letter-spacing: .32em; fill: var(--muted); }
.emblem .orbit circle { fill: none; stroke: var(--line); }
.emblem .dot { fill: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .emblem { width: min(100%, 320px); order: -1; } }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px);
}
.stat { padding: 26px 24px 24px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { font: 600 clamp(36px, 4.6vw, 56px)/1 var(--display); font-variant-numeric: tabular-nums; }
.stat b sup { color: var(--accent); font-size: .5em; vertical-align: .7em; margin-left: 2px; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Directions */
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .dirs { grid-template-columns: 1fr; } }
.dir {
  background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 22px; align-content: start; min-width: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.dir-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dir h3 { font-size: clamp(30px, 3.4vw, 42px); }
.dir .tag { font: 500 12px var(--mono); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dir ul { list-style: none; padding: 0; margin: 0; display: grid; }
.dir li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 14px; border-top: 1px solid var(--line); }
.dir li strong { font-weight: 600; }
.dir li span { color: var(--muted); font-size: 14.5px; }
.offer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 18px; background: var(--paper); font-size: 14.5px; }
.offer b { font-family: var(--mono); font-weight: 500; }

/* Industries */
.inds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center; }
.inds .lbl { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.chip { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); background: var(--surface); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.case { grid-column: span 3; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.case.wide { grid-column: span 6; }
@media (max-width: 1080px) { .case { grid-column: span 6; } }
@media (max-width: 680px) { .case, .case.wide { grid-column: 1 / -1; } }
.shot { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--tile); }
.shot img { display: block; transition: transform .5s ease; }
.shot > img.cover { width: 100%; height: 100%; object-fit: cover; }
.case:hover .shot img { transform: scale(1.03); }
.case-body { padding: 22px 24px 24px; display: grid; gap: 12px; align-content: start; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.case-meta .own { color: var(--accent); }
.case p { color: var(--muted); font-size: 15px; }
.case a.more { font-size: 14px; font-weight: 500; text-decoration-color: var(--accent); text-underline-offset: 4px; justify-self: start; }
.case h3 { font-size: 22px; }
.case.wide h3 { font-size: 28px; }

/* Tatko: три екрани з App Store */
.shot.tatko { background: radial-gradient(120% 90% at 50% 0%, #3A2418 0%, #0C0A09 65%); display: flex; justify-content: center; align-items: flex-start; gap: 4%; padding-top: 7%; }
.shot.tatko img { width: 26%; border-radius: 16px; border: 3px solid #2A2522; box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.shot.tatko img:nth-child(2) { margin-top: -3%; }
.case:hover .shot.tatko img { transform: translateY(-2%); }

/* Яє: сайт на десктопі й телефоні */
.shot.yae { background: linear-gradient(160deg, #F4ECE2, #E4D6C5); }
.shot.yae .desk { position: absolute; left: 6%; top: 9%; width: 76%; border-radius: 8px; box-shadow: 0 24px 50px rgba(60,40,20,.28); }
.shot.yae .mob { position: absolute; right: 5%; top: 22%; width: 21%; border-radius: 14px; border: 3px solid #1B1A19; box-shadow: 0 24px 50px rgba(60,40,20,.35); }
.case:hover .shot.yae img { transform: translateY(-2%); }

/* More cases list */
.more-list { margin-top: 20px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .9fr); gap: 8px 28px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.row b { font: 500 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.row span { color: var(--muted); font-size: 15px; }
.row code { font: 400 12.5px var(--mono); color: var(--muted); text-align: right; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row code { text-align: left; } }
.sub-h { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sub-h h3 { font-size: clamp(24px, 2.6vw, 30px); }
.sub-h p { color: var(--muted); font-size: 14px; max-width: 52ch; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.step { padding: 24px 22px 28px 0; display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--ink); position: relative; }
.step + .step { padding-left: 22px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 13px var(--mono); color: var(--accent); }
.step b { font: 600 22px/1.1 var(--display); text-transform: uppercase; }
.step span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 22px; } .step + .step { padding-left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.ai {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px;
  padding: clamp(24px, 3.4vw, 44px); background: var(--tile); color: var(--tile-ink);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
@media (max-width: 860px) { .ai { grid-template-columns: 1fr; } }
.ai h3 { font-size: clamp(28px, 3vw, 38px); }
.ai p { opacity: .75; margin-top: 14px; }
.ai ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ai li { padding-block: 13px; border-top: 1px solid var(--tile-line); display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; font-size: 15px; }
.ai li b { font: 500 13px var(--mono); color: var(--accent); }
@media (max-width: 520px) { .ai li { grid-template-columns: 1fr; gap: 4px; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: grid; gap: 20px; align-content: space-between; min-width: 0; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.quote:first-child blockquote { font: 500 clamp(22px, 2.2vw, 28px)/1.3 var(--display); text-transform: none; letter-spacing: .005em; }
.quote figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: .14em; font-family: var(--mono); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badges .chip b { font-family: var(--mono); font-weight: 500; color: var(--accent); margin-left: 6px; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }
.stack div { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.stack b { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.stack span { font-size: 15px; }

/* Contact */
.contact { background: var(--accent); color: var(--accent-ink); }
.contact .wrap { padding-block: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(44px, 7vw, 96px); line-height: .95; }
.contact p { margin-top: 20px; font-size: 18px; opacity: .85; max-width: 46ch; }
.links { display: grid; border-top: 1.5px solid currentColor; }
.links a, .links div { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); text-decoration: none; font-size: 17px; }
.links a:hover span:last-child { transform: translateX(4px); }
.links span:last-child { font-family: var(--mono); font-size: 14px; transition: transform .2s; }
.links .todo span:last-child { opacity: .6; }

footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem .orbit { animation: none; }
  * { transition: none !important; }
}

/* Перемикач мов */
.nav { margin-inline: auto; }
.lang { display: flex; margin-left: auto; border: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.lang a { padding: 9px 10px; text-decoration: none; color: var(--muted); transition: color .2s, background .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 920px) { .top .wrap { gap: 12px; } }
@media (max-width: 420px) { .top .btn.primary { padding: 10px 12px; font-size: 13px; } .brand b { display: none; } }
