@font-face { font-family: 'KyivTypeSans'; src: url('/assets/fonts/KyivTypeSans-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'KyivTypeSans'; src: url('/assets/fonts/KyivTypeSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'KyivTypeSans'; src: url('/assets/fonts/KyivTypeSans-Heavy.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'KyivTypeSans'; src: url('/assets/fonts/KyivTypeSans-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --black: #000;
  --grey: #111;
  --band: #1c1c1c;
  --white: #fff;
  --accent: #0086b3;
  --accent-hi: #19b1e3;
  --btn-blue: #0f0580;
  --error: #ff7a7a;
  --ok: #6fdc9c;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'KyivTypeSans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 75%, #000 100%);
  pointer-events: none;
}
.hero__content { position: relative; will-change: transform, opacity; padding: 96px var(--gutter); max-width: 760px; }
.hero__title {
  font-size: clamp(44px, 12.5vw, 104px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .01em;
  animation: fade-down 1s cubic-bezier(.2,.7,.2,1) .15s both;
}
.hero__descr {
  margin-top: clamp(20px, 4vw, 36px);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  animation: fade-up 1s cubic-bezier(.2,.7,.2,1) .45s both;
}
.hero__cue {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  margin-left: -22px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  animation: fade-up 1s ease 1.2s both, bob 2.4s ease-in-out 2.2s infinite;
}
.hero__cue:hover { color: #fff; }

@keyframes fade-down { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes fade-up   { from { opacity: 0; transform: translateY(40px); }  to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Sections ---------- */

.section { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 96px) 0; background: var(--black); }
.section > .wrap { position: relative; z-index: 1; }
/* Taller than its section so the parallax drift never exposes an edge. */
.wave { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; display: block; pointer-events: none; will-change: transform; }
.section--grey { background: var(--grey); }
.section__title {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.section__sub {
  margin-top: 6px;
  font-size: clamp(17px, 3.4vw, 24px);
  text-align: center;
}

/* ---------- How we work ---------- */

.steps {
  position: relative;
  max-width: 920px;
  margin: clamp(36px, 6vw, 56px) auto 0;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}
.steps::before {
  content: '';
  position: absolute;
  top: 25px; bottom: 25px;
  left: 50%;
  width: 2px; margin-left: -1px;
  background: var(--white);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  column-gap: 36px;
  align-items: start;
}
.step__num {
  grid-column: 2; grid-row: 1;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 20px; font-weight: 700;
}
.step__body { grid-column: 1; grid-row: 1; text-align: right; padding-top: 6px; }
.step:nth-child(even) .step__body { grid-column: 3; text-align: left; }
.step h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.step p { margin-top: 6px; }

/* ---------- Stats ---------- */

.stats { background: var(--band); padding: clamp(28px, 5vw, 40px) 0; }
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent);
  font-size: clamp(16px, 3.2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}
.stat + .stat { margin-top: 14px; }
.stat__num {
  flex: none;
  width: 1.5em; height: 1.5em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-size: .85em;
}

/* ---------- Tech stack ---------- */

.logos {
  max-width: 900px;
  margin: clamp(36px, 6vw, 64px) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 48px) clamp(28px, 6vw, 64px);
}
.logos li { display: grid; place-items: center; }
.logos img { height: 56px; width: auto; max-width: 150px; object-fit: contain; }
.logos img.logo--tall { height: 96px; max-width: 130px; }
.logos img.logo--wide { height: 44px; max-width: 170px; }

/* ---------- Team ---------- */

.member { margin-top: clamp(36px, 6vw, 60px); text-align: center; }
.member__photo {
  width: 200px; height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  background: #ebebeb;
}
.member__name { margin-top: 20px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.member__role { font-size: 13px; }
.member .btn { margin-top: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 30px;
  border: 1px solid var(--white);
  border-radius: 30px;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { color: var(--white); transform: translateY(-1px); }
.btn--blue { background: var(--btn-blue); }
.btn--blue:hover { background: #1a0cb5; }
.btn--ghost { background: transparent; min-width: 160px; min-height: 58px; font-size: 14px; letter-spacing: .04em; }
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact__text { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55; text-align: right; }
.contact__text p + p { margin-top: 1.5em; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; font-size: 20px; }
.field input, .field textarea {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 20px;
  color: var(--white);
  font: inherit;
  font-size: 16px; /* >=16px keeps iOS from zooming on focus */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: rgba(255,255,255,.45); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-hi);
  box-shadow: 0 0 0 3px rgba(25,177,227,.25);
}
.field.is-invalid input { border-color: var(--error); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: center; }
.form__status { min-height: 1.5em; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }

/* ---------- Footer ---------- */

.footer { background: var(--grey); padding: 40px 0 max(40px, env(safe-area-inset-bottom)); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { font-size: 12px; font-weight: 700; }
.footer__copy a { font-weight: 600; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; transition: opacity .2s, transform .2s; }
.footer__social a:hover { opacity: .75; transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .steps::before { left: 25px; }
  .step { grid-template-columns: 50px 1fr; column-gap: 20px; }
  .step__num { grid-column: 1; }
  .step__body, .step:nth-child(even) .step__body { grid-column: 2; text-align: left; }

  .stat { justify-content: flex-start; gap: 12px; }

  .logos img { height: 44px; max-width: 120px; }
  .logos img.logo--tall { height: 72px; max-width: 100px; }
  .logos img.logo--wide { height: 34px; max-width: 130px; }

  .contact { grid-template-columns: 1fr; }
  .contact__text { text-align: center; }
  .field { font-size: 17px; }
  .form .btn { width: 100%; }

  .footer__row { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title, .hero__descr, .hero__cue { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .footer__social a { transition: none; }
}
