@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(assets/fonts/onest-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(assets/fonts/onest-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(assets/fonts/onest-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(assets/fonts/onest-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url(assets/fonts/onest-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url(assets/fonts/onest-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --pine: #0f3d3a;
  --pine-2: #15504b;
  --paper: #f3f6f4;
  --ink: #142321;
  --muted: #56655f;
  --line: #d4dfda;
  --signal: #f5b841;
  --signal-ink: #3a2a05;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font: 400 18px/1.6 Onest, system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

html[data-lang="en"] [lang="uk"], html[data-lang="uk"] [lang="en"] { display: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100% - var(--max)) / 2 + 24px)); background: rgba(243, 246, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: center; gap: 9px; color: var(--pine); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.mark i { width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(245, 184, 65, .25); }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 14px Onest, sans-serif; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.lang:hover { border-color: var(--ink); }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 88px 24px 96px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; font-weight: 700; letter-spacing: -0.025em; max-width: 15ch; }
html[data-lang="uk"] h1 { max-width: 16ch; }
.lead { margin-top: 28px; font-size: 20px; color: var(--muted); max-width: 34em; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 10px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
.btn:hover { background: #fff; }
.btn.primary { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn.primary:hover { background: var(--pine-2); border-color: var(--pine-2); }

/* the memorable thing: a stack of owner notifications */
.feed { background: var(--pine); border-radius: 26px; padding: 26px 22px 30px; color: #e7f0ed; box-shadow: 0 30px 60px -30px rgba(15, 61, 58, .55); }
.feed-cap { font-size: 14px; color: #9fc0b8; margin: 0 4px 16px; }
.feed ol { list-style: none; display: grid; gap: 10px; }
.feed li { background: #fff; color: var(--ink); border-radius: 16px; padding: 13px 16px 13px 44px; position: relative; display: grid; gap: 1px; font-size: 15px; line-height: 1.35; }
.feed li::before { content: ""; position: absolute; left: 17px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(245, 184, 65, .22); }
.feed li b { font-weight: 700; font-size: 16px; }
.feed li > span { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .feed li { opacity: 0; transform: translateY(14px) scale(.98); animation: arrive .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.35s + var(--i) * .55s); }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* blocks */
.block { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.block h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; max-width: 22ch; }
.intro { margin-top: 14px; color: var(--muted); max-width: 40em; font-size: 19px; }
.block.dark { max-width: none; background: var(--pine); color: #eef5f2; padding-left: max(24px, calc((100% - var(--max)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--max)) / 2 + 24px)); }
.block.dark .intro { color: #a9c7bf; }

/* cases */
.case { margin-top: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.case + .case { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--line); }
.case.flip .shot { order: 2; }
.shot { display: block; border-radius: 18px; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.015); }
.case h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.case-url { margin-top: 6px; color: var(--muted); font-size: 16px; }
.case-text > p:not(.case-url):not(.stack) { margin-top: 18px; }
.case ul { margin-top: 18px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.case li { padding-left: 22px; position: relative; font-size: 17px; }
.case li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.stack { margin-top: 18px; font-size: 15px; color: var(--muted); }
.link { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--signal); }
.link:hover { text-decoration-color: currentColor; }

/* bots */
.bots { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
.bot video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #0b2c2a; }
.bot h3 { margin-top: 18px; font-size: 22px; line-height: 1.25; }
.bot p { margin-top: 8px; color: #bcd6cf; font-size: 17px; max-width: 34em; }
.block.dark .link { color: #fff; }

/* demos */
.demos { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.demo { display: block; text-decoration: none; }
.demo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); }
.demo h3 { margin-top: 18px; font-size: 22px; line-height: 1.25; }
.demo p { margin-top: 6px; color: var(--muted); font-size: 17px; }
.demo:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* wide demo card */
.demo.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.demo.wide h3 { margin-top: 0; font-size: 28px; }
.demo.wide p { margin-top: 12px; }
.demo.wide .stack { font-size: 15px; }
@media (max-width: 900px) { .demo.wide { grid-template-columns: 1fr; gap: 20px; } .demo.wide h3 { margin-top: 0; } }

/* steps: a real sequence, so numbered */
.steps { margin-top: 48px; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-weight: 700; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.steps h3 { font-size: 20px; line-height: 1.25; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* contact */
.contact { padding-bottom: 120px; }
.contact-row { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.qr { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.qr img { width: 96px; height: auto; border-radius: 10px; }
.qr figcaption { font-size: 15px; color: var(--muted); max-width: 11em; }
.mail { margin-top: 18px; font-size: 17px; color: var(--muted); }
.elsewhere { margin-top: 28px; color: var(--muted); font-size: 17px; }
.elsewhere a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

.foot { border-top: 1px solid var(--line); padding: 28px max(24px, calc((100% - var(--max)) / 2 + 24px)); color: var(--muted); font-size: 15px; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 48px; }
  .case, .case.flip { grid-template-columns: 1fr; gap: 28px; }
  .case.flip .shot { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { gap: 14px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 14px; }
  .top nav a:nth-child(3) { display: none; }
  .block { padding-top: 72px; padding-bottom: 72px; }
  .bots, .demos, .steps { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .qr { display: none; }
}
