:root {
  color-scheme: dark;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.52);
  --surface: #0a0a0a;
  --line: rgba(255, 255, 255, 0.1);
  --aqua: #00ffee;
  --green: #38f96f;
  --page-x: clamp(24px, 5.55vw, 80px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--white);
  font-family: "Vela Sans", "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

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

.site {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: clip;
  background: #000;
}

.nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  width: 100%;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -84px;
  padding: 12px var(--page-x);
  isolation: isolate;
}

.nav::before,
.nav::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.nav::before {
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 42%, transparent 100%);
}

.nav::after {
  background: url("../assets/navigation-bar.png") center / 100% 100% no-repeat;
  opacity: 0.8;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  color: #fff;
}

.nav__brand-mark {
  display: block;
  width: 71.403px;
  height: 22px;
  flex-shrink: 0;
}

.nav__brand-text {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.button--light {
  background: #fff;
  color: #050505;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.button--light:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.button--component {
  height: 59px;
  min-height: 59px;
  padding: 13px 24px;
  gap: 12px;
  font-size: 20px;
}

.button__arrow {
  display: grid;
  width: 0;
  height: 32px;
  flex: 0 0 0;
  place-items: center;
  margin-left: -12px;
  overflow: hidden;
  border: 0 solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: width 300ms ease, flex-basis 300ms ease, margin-left 300ms ease, border-width 300ms ease, border-color 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.button:hover .button__arrow,
.button:focus-visible .button__arrow {
  width: 32px;
  flex-basis: 32px;
  margin-left: 0;
  border-width: 1.5px;
  opacity: 1;
  transform: scale(1);
}

.button__arrow img {
  width: 10px;
  height: 10px;
  transition: filter 300ms ease;
}

.button--light .button__arrow img {
  filter: brightness(0);
}

.button--light:hover .button__arrow img,
.button--light:focus-visible .button__arrow img {
  filter: brightness(0) invert(1);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(900px, 100svh);
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px var(--page-x) 72px;
  overflow: hidden;
}

.hero__media,
.hero__shade,
.hero__noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -4;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  will-change: transform;
}

.hero__shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.32) 48%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.55) 24%, transparent 58%);
}

.hero__noise {
  z-index: -2;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  width: min(700px, 100%);
}

.hero__logo {
  width: min(670px, 78vw);
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.2));
}

.hero__lead {
  width: min(620px, 100%);
  margin: 26px 0 0;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.35;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.feature-grid {
  display: grid;
  margin-top: 64px;
  justify-content: start;
  column-gap: clamp(24px, 4.45vw, 64px);
  row-gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 380px));
}

.feature {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 18px;
}

.feature__icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.feature__icon img {
  width: 30px;
  height: 30px;
}

.feature:first-child .feature__icon img {
  width: 27.65px;
  height: 22.62px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.3;
}

.showcase {
  position: relative;
  width: 100%;
}

.showcase-card {
  position: relative;
  height: min(890px, 68vw);
  min-height: 520px;
  overflow: hidden;
}

.showcase-card--first {
  border-radius: 72px 72px 0 0;
}

.showcase-card--last {
  border-radius: 0 0 72px 72px;
}

.showcase-card > video {
  display: block;
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.showcase-card__overlay {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.showcase-card__copy {
  position: absolute;
  right: 150px;
  bottom: 62px;
  left: 64px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.showcase-card__copy h2 {
  margin: 0 0 6px;
  font-size: clamp(30px, 2.8vw, 40px);
  letter-spacing: -0.8px;
}

.showcase-card__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.showcase-card__badge {
  position: absolute;
  right: 64px;
  bottom: 57px;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
}

.showcase-card__badge img {
  width: 40px;
  height: 40px;
}

.showcase-card:first-child .showcase-card__badge img {
  width: 35.67px;
  height: 29.19px;
}

.section {
  position: relative;
  padding: 72px var(--page-x);
  border-bottom: 1px solid var(--line);
}

.pains {
  overflow: hidden;
}

.section-title {
  position: relative;
  z-index: 2;
  margin: 0 0 42px;
  font-size: clamp(42px, 4.45vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2px;
}

.section-title b {
  font-weight: 650;
}

.flow-glow {
  position: absolute;
  z-index: 0;
  top: max(-120px, -8.33vw);
  width: min(846px, 58.73vw);
  height: auto;
  aspect-ratio: 1;
  max-width: none;
  pointer-events: none;
}

.flow-glow--left {
  left: max(-451px, -31.32vw);
  transform: scaleX(-1);
}

.flow-glow--right {
  right: max(-441px, -30.63vw);
}

.flow-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.flow-card,
.pain-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--surface);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 300ms, background 300ms;
}

.flow-card::before,
.pain-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 255, 151, 0.12), transparent 58%);
  content: "";
  opacity: 0;
  transition: opacity 300ms;
}

.flow-card:hover::before,
.pain-card:hover::before {
  opacity: 1;
}

.flow-card {
  min-height: 144px;
  padding: 24px;
  border-radius: 24px;
}

.flow-card h3 {
  position: relative;
  z-index: 2;
  width: calc(100% - 170px);
  margin: 0 0 10px;
  background: linear-gradient(90deg, var(--aqua) 0%, var(--green) var(--gradient-stop, 38.219%)), linear-gradient(90deg, #fff, #fff);
  background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 600;
}

.flow-card:nth-child(1) { --gradient-stop: 38.219%; }
.flow-card:nth-child(2) { --gradient-stop: 22.489%; }
.flow-card:nth-child(3) { --gradient-stop: 52.439%; }
.flow-card:nth-child(4) { --gradient-stop: 19.668%; }

.flow-card p {
  position: relative;
  z-index: 2;
  width: calc(100% - 180px);
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.3;
}

.flow-card > img {
  position: absolute;
  top: 50%;
  right: 0;
  object-fit: contain;
  opacity: 1;
  transform: translateY(-50%);
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1), opacity 300ms;
}

.flow-card:nth-child(1) > img { width: 149.465px; height: 119.197px; }
.flow-card:nth-child(2) > img { width: 182.506px; height: 119px; }
.flow-card:nth-child(3) > img { width: 195.929px; height: 130px; }
.flow-card:nth-child(4) > img { width: 184.267px; height: 119px; }

.flow-card:hover > img {
  transform: translate(-4px, -50%);
}

.pain-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.pain-card {
  display: flex;
  height: 224px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  padding: 24px;
  border-radius: 24px;
}

.pain-card__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
}

.pain-card__label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f00;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.65);
}

.pain-card > div:last-child {
  position: relative;
  z-index: 1;
}

.pain-card h3 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.2;
}

.pain-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 16px;
  line-height: 1.3;
}

.contact {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  padding: 80px var(--page-x);
}

.contact__glow,
.contact__pattern {
  position: absolute;
  pointer-events: none;
}

.contact__glow {
  top: 858.073px;
  left: 50%;
  width: 1556.15px;
  height: 2203.25px;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.contact__pattern {
  top: calc(50% + 633.56px);
  left: 50%;
  width: 1440px;
  height: 1409.11px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.contact__content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  text-align: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -2.2px;
}

.contact h2 span {
  font-weight: 400;
}

.contact__content > p {
  width: min(720px, 100%);
  margin: 25px auto 0;
  font-size: 17px;
  line-height: 1.45;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.contact-qr {
  display: block;
  width: 180px;
  transition: transform 300ms ease;
}

.contact-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-qr:hover {
  transform: translateY(-4px);
}

.contact__telegram {
  display: none;
}

.button--contact {
  min-height: 59px;
  padding: 12px 24px;
  gap: 11px;
  font-size: 20px;
}

.button--contact:hover .contact-icon--at img {
  filter: brightness(0) invert(1);
}

.contact-icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.contact-icon--telegram {
  background: linear-gradient(135deg, #00b3e8, #1c9ad8);
}

.contact-icon--telegram img {
  width: 17px;
  height: 14px;
}

.contact-icon--at img {
  width: 28px;
  height: 28px;
  filter: brightness(0);
  transition: filter 300ms ease;
}

.contact .contact__phone {
  margin-top: 17px;
  font-size: 16px;
}

.contact__phone-copy {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: opacity 300ms ease;
}

.contact__phone-copy:hover {
  opacity: 0.65;
}

.copy-toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--delay, 0ms) cubic-bezier(.16, 1, .3, 1), transform 900ms var(--delay, 0ms) cubic-bezier(.16, 1, .3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    min-height: 960px;
  }

  .hero__content {
    width: min(520px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
    gap: 18px;
  }

  .feature {
    max-width: none;
  }

  .showcase-card {
    height: 72vw;
    min-height: 500px;
  }

  .flow-card p,
  .flow-card h3 {
    width: calc(100% - 120px);
  }

  .flow-card > img {
    right: -45px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-card {
    height: auto;
    min-height: 224px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-x: 18px;
  }

  .nav {
    height: 72px;
    margin-bottom: -72px;
    padding: 6px 12px;
  }

  .nav .button {
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 12px;
  }

  .nav__brand {
    gap: 8px;
    font-size: 18px;
    letter-spacing: -0.6px;
  }

  .nav__brand-mark {
    width: 46px;
    height: 14px;
  }

  .hero {
    min-height: 920px;
    padding-top: 120px;
    padding-bottom: 58px;
  }

  .hero__media {
    height: 58%;
    object-position: 63% top;
  }

  .hero__shade {
    background: linear-gradient(0deg, #000 42%, rgba(0, 0, 0, 0.3) 78%, rgba(0, 0, 0, 0.16));
  }

  .hero__logo {
    width: 94%;
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
  }

  .feature-grid {
    margin-top: 42px;
  }

  .feature__icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 15px;
  }

  .feature:first-child .feature__icon img {
    width: 23.33px;
    height: 19.08px;
  }

  .feature h3 {
    font-size: 15px;
  }

  .feature p {
    font-size: 12px;
  }

  .showcase {
    padding: 0 8px;
  }

  .showcase-card {
    height: 132vw;
    min-height: 530px;
    margin-bottom: 8px;
    border-radius: 28px;
  }

  .showcase-card > video {
    height: 100%;
    object-position: center;
  }

  .showcase-card__copy {
    right: 24px;
    bottom: 27px;
    left: 24px;
  }

  .showcase-card__copy h2 {
    padding-right: 54px;
    font-size: 25px;
  }

  .showcase-card__copy p {
    padding-right: 30px;
    font-size: 17px;
  }

  .showcase-card__badge {
    right: 21px;
    bottom: 86px;
    width: 54px;
    height: 54px;
  }

  .showcase-card__badge img {
    width: 28px;
    height: 28px;
  }

  .showcase-card:first-child .showcase-card__badge img {
    width: 24.08px;
    height: 19.7px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: 40px;
    line-height: 1.02;
    letter-spacing: -1.5px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: 190px;
    padding: 22px;
  }

  .flow-card h3 {
    width: calc(100% - 80px);
    font-size: 20px;
  }

  .flow-card p {
    width: calc(100% - 105px);
    font-size: 14px;
  }

  .flow-card > img {
    right: -44px;
    bottom: -6px;
    width: 175px;
  }

  .contact {
    min-height: 680px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .contact h2 {
    font-size: 45px;
    letter-spacing: -1.8px;
  }

  .contact__content > p {
    font-size: 15px;
  }

  .contact__actions {
    display: grid;
    gap: 14px;
  }

  .contact-qr {
    display: none;
  }

  .contact__telegram {
    display: inline-flex;
  }

  .button--contact {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
