:root {
  --bg: #070818;
  --text: #fff;
  --muted: rgba(255, 255, 255, .7);
  --accent: #6b7bff;
  --accent-2: #a45cf0;
  --border: rgba(255, 255, 255, .18);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --k: 1; /* decor scale (smaller on mobile) */

  --font-main: "Space Grotesk", system-ui, sans-serif;
}

/* Cyrillic: Space Grotesk has no Cyrillic glyphs, Manrope is the closest match */
:lang(uk) { 
  --font-main: "Manrope", "Space Grotesk", system-ui, sans-serif;
}

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

html,
a,
button,
.btn,
.burger,
label,
summary,
[role="button"] {
  cursor: url("../img/cursor.png") 10 8, auto;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
}

main {
  flex: 1;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 750px;
  font-size: 87px;
  line-height: 80px;
  font-weight: 700;
  letter-spacing: -3px;
}

h2 {
  font-size: 90px;
  line-height: 90px;
  font-weight: 700;
  letter-spacing: -3px;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px #5B63F0;
}

.text-gradient {
  background: linear-gradient(90deg, #4D8DFF, #B05BFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: 20px;
  line-height: 30px;
  color: #CBD7FF;
}

@media (max-width: 768px) {
  h2 {
    font-size: 50px;
    line-height: 50px;
  }

  h1 {
    font-size: 55px;
    line-height: 55px;
  }

  .lead {
    font-size: 18px;
    line-height: 24px;
  }
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Buttons */
@property --btn-overlay {
  syntax: "<color>";
  inherits: false;
  initial-value: rgba(19, 17, 48, 0);
}

.btn {
  --btn-gradient: linear-gradient(90deg, #4D8DFF, #B05BFF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  transition: --btn-overlay .25s, background-color .25s, box-shadow .25s, transform .15s;
}

.btn:focus-visible {
  outline: 2px solid #CBD7FF;
  outline-offset: 3px;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
  line-height: 20px;
}

/* Primary: gradient fill + glow */
.btn-primary {
  border: 0;
  background:
    linear-gradient(var(--btn-overlay), var(--btn-overlay)),
    var(--btn-gradient);
  box-shadow:
    0 4px 30px rgba(176, 91, 255, .79),
    0 4px 30px rgba(77, 141, 255, .4);
}

.btn-primary:hover {
  --btn-overlay: rgba(19, 17, 48, .5);
}

.btn-primary:active {
  --btn-overlay: rgba(19, 17, 48, .65);
  box-shadow:
    0 2px 16px rgba(176, 91, 255, .5),
    0 2px 16px rgba(77, 141, 255, .25);
  transform: translateY(1px);
}

/* Secondary: translucent fill + gradient outline */
.btn-secondary {
  --btn-overlay: rgba(255, 255, 255, 0);
  position: relative;
  background:
    linear-gradient(var(--btn-overlay), var(--btn-overlay)),
    rgba(7, 11, 31, .3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

/* gradient ring: masked so the translucent fill doesn't show the gradient through */
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--btn-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.btn-secondary:hover {
  --btn-overlay: rgba(255, 255, 255, .1);
}

.btn-secondary:active {
  --btn-overlay: rgba(255, 255, 255, .16);
  transform: translateY(1px);
}

/* Tertiary: white fill, outlined translucent on hover */
.btn-tertiary {
  background: #fff;
  color: #141B6B;
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
  color: var(--text);
}

.btn-tertiary:active {
  background: rgba(255, 255, 255, .22);
  border-color: #fff;
  color: var(--text);
  transform: translateY(1px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 8, 24, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.logo span {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 60px;
}

.main-nav a {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: #CBD7FF;
  transition: color .2s;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a[aria-current="page"] {
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.burger span {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #4D8DFF, #B05BFF);
  transition: transform .25s, opacity .25s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: 50px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, #4D8DFF, #B05BFF) 1;
  font-size: 14px;
}

/* soft glow in the centre of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 90% at 50% 100%, rgba(149, 177, 227, .22), rgba(149, 177, 227, 0));
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px 60px;
  align-items: start;
}

/* links run down the column first: Home / About Us, Services / Contact */
.footer-inner ul {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 8px 60px;
}

.footer-inner a {
  color: #CBD7FF;
  line-height: 24px;
}

.footer-inner a {
  font-size: 18px;
}

/* gradient underline that grows from left to right on hover */
.footer-inner a,
.main-nav a {
  background: linear-gradient(90deg, #4D8DFF, #B05BFF) no-repeat left bottom / 0 2px;
  padding-bottom: 4px;
  transition: background-size .3s ease, color .2s;
}

.footer-inner a:hover,
.main-nav a:hover {
  background-size: 100% 2px;
}

.footer-inner a:hover {
  color: var(--text);
}

.copy {
  color: var(--muted);
}


.section-hero {
  padding-block: 100px;
  box-shadow: 0px 4px 110px 0px #A855F74D;

}

.section-hero--index,
.section-hero--about,
.section-hero--services {
  background: url(../img/bg1.jpg) no-repeat center center;
  background-size: cover;
  border-bottom-left-radius: 10%;
  border-bottom-right-radius: 10%;
}

.content-1 {
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.content-1__cta {
  display: flex;
  gap: 20px;
}


/* About (content-2) */
.content-2 {
  position: relative;
  padding-block: 100px;
}

.content-2 .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 0;
}

.content-2 h2 {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
}

.br-m {
  display: none;
}

.content-2__text {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 460px;
  font-size: 16px;
  line-height: 24px;
  color: #CBD7FF;
}

.content-2__text .btn {
  margin-top: 30px;
}

.content-2__decor {
  position: absolute;
  left: -26px;
  bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 293px;
  line-height: 293px;
  font-weight: 700;
  letter-spacing: -14.65px;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.72px rgba(91, 140, 255, .7);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .content-2 {
    padding-block: 60px;
  }

  .content-2 .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-2 h2 {
    gap: 12px;
  }

  .br-m {
    display: inline;
  }

  .content-2__text {
    grid-column: 1;
    max-width: none;
    font-size: 18px;
  }

  .content-2__text .btn {
    align-self: stretch;
    margin-top: 10px;
  }

  .content-2__decor {
    display: none;
  }
}

@media (max-width: 768px) {
  /* keep the hero buttons inside the viewport (text wraps like in the design) */
  .content-1__cta {
    gap: 12px;
  }

  .content-1__cta .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 20px;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .section-hero {
    padding-block: 40px;
  }

  .burger {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  /* backdrop-filter on the header would make it a backdrop root and kill the
     blur of the nested menu, so the header must not have its own blur here */
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }

  .site-header:has(.main-nav.is-open) {
    background: transparent;
    border-bottom-color: transparent;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1; /* under logo and burger, above header background */
    height: 100dvh;
    padding: calc(var(--header-h) + 20px) var(--gutter) 16px;
    background: rgba(7, 11, 31, .9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 16px 16px;
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, #4D8DFF, #B05BFF);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li + li {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(77, 142, 255, 0.5), rgba(176, 91, 255, 0.5)) 1;
  }

  .main-nav a {
    display: block;
    padding: 30px 0;
    text-align: right;
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    color: #CBD7FF;
  }

  .main-nav a[aria-current="page"] {
    font-weight: 700;
    color: #CBD7FF;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

   .btn {
    padding: 10px 20px;
   }
}

/* Services (content-3) */
.content-3 {
  padding-block: 100px;
}

.content-3 .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.content-3 h2 {
  align-self: stretch;
  text-align: right;
}

.content-3__sub {
  align-self: flex-start;
  max-width: 420px;
  font-size: 22px;
  line-height: 26px;
  color: #CBD7FF;
}

.services-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@property --gx {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --gy {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.service-card {
  --c: rgb(var(--c-rgb));
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 35px 30px;
  border: 1px solid rgb(var(--c-rgb) / .7);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)),
    radial-gradient(50% 50% at var(--gx) var(--gy), rgb(var(--c-rgb) / .3) 0%, rgb(var(--c-rgb) / 0) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: --gx .7s ease, --gy .7s ease;
}

/* the glow slides from the top right corner to the bottom left */
.service-card:hover {
  --gx: 0%;
  --gy: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c);
  color: var(--bg);
}

.service-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.service-card p {
  margin-top: -10px;
  font-size: 18px;
  line-height: 25px;
  color: #CBD7FF;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-3 {
    padding-block: 60px;
  }

  .content-3 .container {
    gap: 30px;
  }

  .content-3 h2 {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 30px 24px;
  }

  .content-3 .btn {
    align-self: stretch;
  }
}


/* CTA section (reusable) */
.section-cta {
  padding-block: 60px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 72px;
  border-radius: 25px;
  background: linear-gradient(135deg, #4D8DFF, #B05BFF);
}

/* decorative rings, top right */
.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  pointer-events: none;
}

.cta-card::before {
  width: 360px;
  height: 360px;
  top: -200px;
  right: 120px;
}

.cta-card::after {
  width: 520px;
  height: 520px;
  top: -300px;
  right: 40px;
  border-color: rgba(77, 141, 255, .5);
}

.cta-card__title {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.cta-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.cta-card__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 20px;
  line-height: 30px;
}

.cta-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.cta-card__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-card__contacts a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Footer wordmark */
.footer-brand {
  padding-top: 60px;
  padding-bottom: 60px;
  font-family: "Space Grotesk", sans-serif;
  font-size: min(215px, calc((100vw - 40px) * .179));
  line-height: .85;
  font-weight: 700;
  letter-spacing: -.023em;
  text-align: center;
  white-space: nowrap;
  overflow-x: clip;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(52, 227, 192, 0), rgba(52, 227, 192, .3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(91, 140, 255, .45);
  user-select: none;
}

@media (max-width: 768px) {
  .section-cta {
    padding-block: 40px;
  }

  .cta-card {
    gap: 24px;
    padding: 30px 18px;
    border-radius: 20px;
  }

  .cta-card__title {
    font-size: 32px;
    line-height: 30px;
    letter-spacing: -1px;
  }

  .cta-card__body {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .cta-card__info {
    font-size: 18px;
    line-height: 24px;
  }

  .cta-card__contacts {
    font-size: 18px;
  }

  .footer-inner {
    text-align: center;
  }

  .footer-inner ul {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-inner .copy {
    order: 3;
  }
}


/* Decor orbs (moved by js/main.js for the parallax effect) */
.content-2,
.content-3 {
  position: relative;
}

.orb {
  position: absolute;
  top: calc(var(--top, auto) * 1px * var(--k));
  bottom: calc(var(--bottom, auto) * 1px * var(--k));
  left: var(--left);
  z-index: -1;
  width: calc(var(--size) * 1px * var(--k));
  height: calc(var(--size) * 1px * var(--k));
  border-radius: 50%;
  box-shadow: inset 0 calc(40px * var(--k)) 4px rgba(255, 255, 255, .15);
  opacity: .6;
  filter: blur(15px);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
  pointer-events: none;
}

.orb--teal {
  background: linear-gradient(180deg, #4CD4FF, #34E3C0);
}

.orb--purple {
  background: linear-gradient(180deg, #B05BFF, #4D8DFF);
}

/* orbs next to the CTA card sit above it */
.section-cta .orb {
  z-index: 1;
}

.section-cta .container {
  position: relative;
}

@media (max-width: 768px) {
  :root {
    --k: .5;
  }
}


/* About page */
.section-hero--about {
  background-image: url(../img/bg2.jpg);
}

.section-hero--about h1 {
  max-width: 800px;
  font-size: 140px;
  line-height: 120px;
  letter-spacing: -5px;
}

.text-gradient-teal {
  background: linear-gradient(90deg, #34E3C0, #4D8DFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 480px;
}

.hero-lead__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #34E3C0;
  color: var(--bg);
}

.about-process .content-2__text {
  max-width: 560px;
}

/* process steps */
.process {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.process::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 10%;
  right: 10%;
  border-top: 1px dashed rgba(77, 141, 255, .5);
}

.process li {
  --c: rgb(var(--c-rgb));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.process__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid var(--c);
  border-radius: 50%;
  background: var(--bg);
  color: var(--c);
  font-size: 16px;
  font-weight: 500;
  box-shadow:
    0 0 0 10px rgb(var(--c-rgb) / .1),
    0 0 0 20px rgb(var(--c-rgb) / .05),
    0 0 18px rgb(var(--c-rgb) / .5);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* dashed rings that spin around the number on hover */
.process__num::before,
.process__num::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--c);
  opacity: 0;
  transition: opacity .35s ease;
  animation: ring-spin 9s linear infinite;
  pointer-events: none;
}

.process__num::before {
  inset: -12px;
}

.process__num::after {
  inset: -22px;
  animation-duration: 14s;
  animation-direction: reverse;
}

.process li:hover .process__num {
  transform: scale(1.08);
  box-shadow:
    0 0 0 10px rgb(var(--c-rgb) / .16),
    0 0 0 20px rgb(var(--c-rgb) / .08),
    0 0 30px rgb(var(--c-rgb) / .75);
}

.process li:hover .process__num::before {
  opacity: .8;
}

.process li:hover .process__num::after {
  opacity: .5;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process__num::before,
  .process__num::after {
    animation: none;
  }
}

.process__label {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

/* What we do list */
.what-list {
  align-self: stretch;
  display: grid;
  gap: 16px;
}

@property --glow {
  syntax: "<number>";
  inherits: false;
  initial-value: .4;
}

.what-list {
  gap: 8px;
}

.what-row {
  --glow: .4;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  padding: 25px 35px;
  border: 1px solid rgb(var(--c-rgb) / .8);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgb(var(--c-rgb) / var(--glow)));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: --glow .4s ease, transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.what-row .service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform .4s ease;
}

.what-row h3 {
  font-size: 28px;
  line-height: 32px;
}

/* hover: the colour glow rises, the row shifts and the icon pops */
.what-row:hover {
  --glow: .7;
  transform: translateX(10px);
  border-color: var(--c);
  box-shadow: 0 0 30px rgb(var(--c-rgb) / .25);
}

.what-row:hover .service-card__icon {
  transform: scale(1.12) rotate(-6deg);
}

/* Approach */
.section-approach {
  padding-block: 80px;
}

.section-approach .container {
  position: relative;
}

.approach-card {
  padding: 68px 155px;
  border: 1px solid rgba(176, 91, 255, .3);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  font-size: 35px;
  line-height: 50px;
  color: #CBD7FF;
}

.approach-card strong {
  font-weight: 700;
}

.what-we-do .content-2__decor {
  left: -38px;
  bottom: 20px;
  z-index: -1;
  opacity: .8;
}

@media (max-width: 768px) {
  .section-hero--about h1 {
    font-size: 73px;
    line-height: 75px;
  }

  .hero-lead {
    gap: 12px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 10px;
  }

  .process::before {
    top: 31px;
    bottom: 31px;
    left: 31px;
    right: auto;
    border-top: 0;
    border-left: 1px dashed rgba(203, 215, 255, .35);
  }

  .process li {
    flex-direction: row;
    gap: 22px;
    text-align: left;
  }

  .process__num {
    flex: none;
  }

  .what-row {
    gap: 16px;
    padding: 14px 18px;
  }

  .what-row h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .what-row:hover {
    transform: none;
  }

  .section-approach {
    padding-block: 40px;
  }

  .approach-card {
    padding: 30px 24px;
    font-size: 20px;
    line-height: 30px;
  }
}


/* Services page */
.section-hero--services {
  position: relative;
  overflow: hidden;
  background-image: url(../img/bg3.jpg);
}

.section-hero--services h1 {
  max-width: 800px;
  font-size: 155px;
  line-height: 120px;
  letter-spacing: -5px;
}

/* thin teal rings in the bottom left corner of the hero */
.section-hero--services::before,
.section-hero--services::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(52, 227, 192, .45);
  pointer-events: none;
}

.section-hero--services::before {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -190px;
}

.section-hero--services::after {
  width: 250px;
  height: 250px;
  left: -85px;
  bottom: -135px;
}

.services-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.services-list .service-card {
  position: relative;
  overflow: hidden;
}

.service-card__ghost {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: calc(var(--ghost) * 1px);
  line-height: .75;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--c-rgb) / .6);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.services-list .service-card > :not(.service-card__ghost) {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-hero--services h1 {
    font-size: 73px;
    line-height: 75px;
  }

  .services-grid--2 {
    grid-template-columns: 1fr;
  }

  .service-card__ghost {
    font-size: calc(var(--ghost) * .55px);
  }
}

.service-card__icon img {
  width: 24px;
  height: 24px;
}


/* Contact page */
.section-hero--contact {
  background: url(../img/bg4.jpg) no-repeat center center;
  background-size: cover;
  border-bottom-left-radius: 10%;
  border-bottom-right-radius: 10%;
  box-shadow: 0 4px 110px 0 #A855F74D;
  padding-block: 100px;
}

.section-hero--contact h1 {
  max-width: 800px;
  font-size: 100px;
  line-height: 100px;
  letter-spacing: -3px;
}

.hero-lead--plain {
  max-width: 600px;
}

.lead--sm {
  margin-top: 6px;
  font-size: 16px;
  line-height: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  align-self: stretch;
}

.info-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.info-row {
  --glow: .4;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgb(var(--c-rgb) / .8);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgb(var(--c-rgb) / var(--glow)));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: --glow .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.info-row:hover {
  --glow: .65;
  border-color: var(--c);
  box-shadow: 0 0 30px rgb(var(--c-rgb) / .25);
}

.info-row .service-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.info-row__label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #CBD7FF;
}

.info-row__value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  min-height: 658px;
  display: flex;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(rgba(21, 17, 56, .85), rgba(21, 17, 56, .85)) padding-box,
    linear-gradient(135deg, #4D8DFF, #B05BFF) border-box;
  box-shadow: inset 0 0 100px rgba(176, 91, 255, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-panel__ghost {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  text-align: center;
  white-space: nowrap;
  font-size: 66px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 91, 255, .45);
  pointer-events: none;
  user-select: none;
}

.contact-form,
.thanks {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 30px 80px;
}

.contact-form__title {
  margin-bottom: 8px;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -1px;
}

.field {
  display: block;
  padding: 12px 30px;
  border: 1px solid rgba(77, 141, 255, .7);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(91, 140, 255, .4));
  transition: border-color .25s, box-shadow .25s;
}

.field:focus-within {
  border-color: #B05BFF;
  box-shadow: 0 0 20px rgba(176, 91, 255, .35);
}

.field__label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #CBD7FF;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 2px 0 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  resize: none;
}

.field--area {
  flex: 1;
  min-height: 110px;
}

.field--area textarea {
  height: calc(100% - 16px);
}

.field.is-invalid {
  border-color: #FF6FA8;
}

.contact-form .btn {
  margin-top: 8px;
}

.thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 30px 100px;
  text-align: center;
  color: #CBD7FF;
}

.thanks[hidden] {
  display: none;
}

.thanks__check {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #CBD7FF, #34E3C0);
  color: #2D2A6E;
  box-shadow: 0 0 40px rgba(52, 227, 192, .45);
}

.thanks h3 {
  margin: 0;
  font-size: 36px;
  line-height: 44px;
  color: var(--text);
}

.thanks p {
  font-size: 20px;
  line-height: 28px;
}

.thanks .thanks__sm {
  font-size: 16px;
}

.contact-panel.is-sent .contact-form {
  display: none;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-hero--contact {
    padding-block: 40px;
  }

  .section-hero--contact h1 {
    font-size: 55px;
    line-height: 55px;
  }

  .contact-info h2 {
    font-size: 40px;
    line-height: 44px;
  }

  .info-row {
    padding: 14px 18px;
  }

  .info-row__value {
    font-size: 18px;
    line-height: 22px;
  }

  .contact-panel {
    min-height: 560px;
  }

  .contact-panel__ghost {
    font-size: 40px;
  }

  .contact-form {
    padding: 24px 18px 60px;
  }

  .contact-form__title {
    font-size: 32px;
    line-height: 40px;
  }

  .field {
    padding: 10px 20px;
  }
}

.contact-info h2,
.contact-info .contact-form__title {
  text-align: left;
}

/* Legal pages (privacy, terms) */
.section-hero--legal {
  position: relative;
  overflow: hidden;
  padding-block: 90px;
  background: no-repeat center center / cover;
  border-bottom-left-radius: 10%;
  border-bottom-right-radius: 10%;
  box-shadow: 0 4px 110px 0 #A855F74D;
}

.section-hero--bg5 {
  background-image: url(../img/bg5.png);
}

.section-hero--bg6 {
  background-image: url(../img/bg6.png);
}

.section-hero--legal h1 {
  max-width: none;
  font-size: 100px;
  line-height: 100px;
  letter-spacing: -3px;
}

.legal {
  position: relative;
  padding-block: 80px 100px;
}

.legal h2 {
  font-size: 80px;
  line-height: 90px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 14px 24px;
  border: 1px solid rgba(52, 227, 192, .6);
  border-radius: 999px;
  background: rgba(52, 227, 192, .08);
  font-size: 16px;
  font-weight: 500;
}

.badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34E3C0;
}

.legal-section {
  max-width: 1000px;
  margin-top: 60px;
}

.legal-section h3 {
  margin-bottom: 20px;
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}

.legal-section h4 {
  margin: 24px 0 14px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
}

.legal-section p,
.legal-section li {
  font-size: 20px;
  line-height: 30px;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p,
.legal-section h4 + p {
  margin-top: 20px;
}

.legal-section p + h4,
.legal-section ul + h4 {
  margin-top: 30px;
}

.legal-section ul {
  margin-top: 20px;
  padding-left: 28px;
  list-style: disc;
}

.legal-section li + li {
  margin-top: 4px;
}

.legal-section li::marker {
  color: #CBD7FF;
}

.legal-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: #CBD7FF;
}

@media (max-width: 768px) {
  .section-hero--legal {
    padding-block: 50px;
  }

  .section-hero--legal h1 {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -2px;
  }

  :lang(uk) .section-hero--legal h1 {
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
  }

  .legal {
    padding-block: 50px 60px;
  }

  .legal h2 {
    font-size: 40px;
    line-height: 44px;
  }

  .badge {
    margin-top: 24px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .legal-section {
    margin-top: 40px;
  }

  .legal-section h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .legal-section p,
  .legal-section li,
  .legal-section h4 {
    font-size: 16px;
    line-height: 24px;
  }
}

/* soft side glows on the legal pages: absolute blobs in the middle of the content */
.legal::before,
.legal::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: -1;
  width: 30%;
  height: 80dvh;
  transform: translateY(-50%);
  pointer-events: none;
}

.legal::before {
  left: 0;
  background: radial-gradient(ellipse 100% 50% at 0% 50%, rgba(52, 227, 192, .22), rgba(52, 227, 192, 0) 100%);
}

.legal::after {
  right: 0;
  background: radial-gradient(ellipse 100% 50% at 100% 50%, rgba(77, 141, 255, .24), rgba(77, 141, 255, 0) 100%);
}

@media (max-width: 768px) {
  .legal::before,
  .legal::after {
    width: 50%;
  }
}

.copy {
  color: #CBD7FF;
  font-size: 13px;
}

@media (max-width: 900px) {
  /* the mobile menu has its own separators, no hover underline there */
  .main-nav a,
  .main-nav a:hover {
    background: none;
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-block: 40px;
  }

  .footer-inner {
    gap: 40px;
  }

  .footer-inner ul {
    gap: 17px;
  }

  .footer-inner a {
    font-size: 20px;
  }

  .copy {
    font-size: 18px;
    line-height: 24px;
  }

  .footer-inner a {
    padding-bottom: 2px;
  }
}

.form-status {
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 111, 168, .7);
  border-radius: 14px;
  background: rgba(255, 111, 168, .12);
  font-size: 14px;
  line-height: 20px;
}

.form-status[hidden] {
  display: none;
}

.contact-form .btn:disabled {
  opacity: .6;
  pointer-events: none;
}
