/* Author: Eugene Nikolaev | https://t.me/naturalcod */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --scene-ratio: 16 / 9;
  --bg: #020816;
  --panel: rgba(7, 16, 34, 0.78);
  --panel-border: rgba(100, 186, 255, 0.12);
  --text: rgba(255, 255, 255, 0.97);
  --muted: rgba(255, 255, 255, 0.82);
  --cyan: #39d9ff;
  --blue: #1154ff;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 1.8cqh 4cqh rgba(0, 11, 36, 0.45);
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 75% 22%, rgba(37, 138, 255, 0.1), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(19, 61, 181, 0.12), transparent 30%),
    linear-gradient(180deg, #01050f 0%, #010711 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

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

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

.page {
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 57%, rgba(36, 136, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(1, 5, 15, 0.92) 0%, rgba(2, 7, 18, 0.86) 26%, rgba(2, 8, 22, 0.48) 53%, rgba(2, 8, 22, 0.2) 74%, rgba(2, 8, 22, 0.08) 100%),
    linear-gradient(180deg, rgba(1, 6, 16, 0.86), rgba(2, 7, 20, 0.62)),
    linear-gradient(180deg, #010611 0%, #010611 100%);
  background-repeat: no-repeat;
  background-size:
    auto,
    auto,
    auto,
    auto;
  background-position:
    center,
    center,
    center,
    center;
}

.scene__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1;
  background: url("./hero-background.png") no-repeat right center / auto 100%;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 5, 16, 0.9) 0%, rgba(1, 6, 18, 0.74) 24%, rgba(1, 7, 19, 0.38) 46%, rgba(1, 7, 19, 0.08) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(53, 142, 255, 0.05), transparent 24%);
  pointer-events: none;
}

.scene__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 12.7%, var(--line) 12.7%, transparent 12.95%),
    linear-gradient(180deg, transparent 93.25%, rgba(255, 255, 255, 0.05) 93.25%, transparent 93.42%),
    linear-gradient(180deg, transparent 99.1%, rgba(255, 255, 255, 0.045) 99.1%, transparent 99.25%),
    linear-gradient(180deg, rgba(1, 7, 20, 0.72) 0%, rgba(1, 7, 20, 0.28) 34%, rgba(1, 7, 20, 0.1) 100%);
  pointer-events: none;
  z-index: 2;
}

.scene__canvas {
  position: relative;
  z-index: 3;
  width: min(100vw, calc(100svh * var(--scene-ratio)));
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  margin-inline: auto;
  container-type: size;
}

.topbar,
.hero,
.details,
.footer {
  position: relative;
}

.topbar {
  padding: 3.95cqh 5.55cqw 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.15cqw;
}

.brand__icon {
  width: 4.5cqw;
  height: 4.5cqw;
  object-fit: contain;
  filter: drop-shadow(0 0 1.25cqw rgba(35, 143, 255, 0.18));
}

.brand__text {
  font-size: 2.32cqw;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero {
  padding: 7.85cqh 5.45cqw 0;
}

.hero__copy {
  max-width: 43.5cqw;
}

.hero__title {
  display: flex;
  align-items: baseline;
  gap: 1.15cqw;
  margin: 0 0 2.75cqh;
  font-size: 6.95cqw;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.hero__title-static {
  color: #ffffff;
}

.hero__title-accent {
  background: linear-gradient(90deg, #0f5fff 0%, #25ddff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__description {
  max-width: 43cqw;
  margin: 0;
  color: var(--muted);
  font-size: 1.52cqw;
  line-height: 1.52;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.hero__description + .hero__description {
  margin-top: 0.55cqh;
}

.hero__actions {
  display: flex;
  gap: 1.75cqw;
  margin-top: 4.5cqh;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.38cqw;
  min-height: 9.7cqh;
  padding: 0 3.15cqw;
  border-radius: 0.86cqw;
  border: 0.07cqw solid rgba(58, 211, 255, 0.46);
  font-size: 1.72cqw;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.03em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-0.2cqh);
  box-shadow: 0 1cqh 2.4cqh rgba(15, 96, 255, 0.24);
  border-color: rgba(83, 223, 255, 0.72);
}

.button:focus-visible {
  outline: 0.18cqw solid rgba(100, 220, 255, 0.35);
  outline-offset: 0.2cqw;
}

.button svg {
  flex: none;
  width: 1.9cqw;
  height: 1.9cqw;
  stroke: currentColor;
  stroke-width: 1.45;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  width: 26.4cqw;
  color: #ffffff;
  background:
    linear-gradient(90deg, #1839dd 0%, #1758ff 58%, #2698ff 100%);
  border-color: rgba(115, 184, 255, 0.2);
  box-shadow:
    inset 0 0 0 0.04cqw rgba(255, 255, 255, 0.1),
    inset 0 0.08cqh 0.24cqh rgba(255, 255, 255, 0.08),
    0 1.1cqh 2.6cqh rgba(0, 44, 150, 0.28);
}

.button--secondary {
  width: 34cqw;
  color: rgba(255, 255, 255, 0.9);
  justify-content: flex-start;
  font-size: 1.34cqw;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 400;
  padding-left: 3.2cqw;
  padding-right: 2.9cqw;
  background:
    linear-gradient(180deg, rgba(2, 9, 23, 0.22), rgba(3, 12, 31, 0.58)),
    rgba(2, 10, 25, 0.52);
  box-shadow:
    inset 0 0 0 0.03cqw rgba(41, 206, 255, 0.1),
    0 0 0 0.04cqw rgba(12, 35, 67, 0.48);
}

.button--secondary span {
  display: block;
  max-width: 17.8cqw;
}

.details {
  position: absolute;
  left: 5.55cqw;
  right: 5.55cqw;
  bottom: 11.9cqh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 13.55cqh;
  padding: 0.8cqh 0;
  border: 1px solid var(--panel-border);
  border-radius: 1.15cqw;
  background:
    linear-gradient(180deg, rgba(6, 14, 31, 0.84), rgba(4, 10, 23, 0.92)),
    rgba(2, 10, 25, 0.72);
  box-shadow:
    inset 0 0 0 0.08cqw rgba(255, 255, 255, 0.02),
    var(--shadow);
  backdrop-filter: blur(10px);
}

.detail {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.6cqw;
  padding: 0 2.2cqw;
}

.detail + .detail {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.detail__icon {
  display: grid;
  place-items: center;
  width: 4.5cqw;
  height: 4.5cqw;
  color: #2ec9ff;
}

.detail__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail__content {
  display: grid;
  gap: 0.3cqh;
}

.detail__label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.32cqw;
  line-height: 1.25;
  font-weight: 400;
}

.detail__value {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.54cqw;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.detail__value--link {
  color: #ebf9ff;
}

.footer {
  position: absolute;
  right: 0;
  bottom: 3.15cqh;
  left: 0;
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: -2.4cqh;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.045) 16%, rgba(255, 255, 255, 0.065) 50%, rgba(255, 255, 255, 0.045) 84%, transparent 100%);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.64cqw;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.footer a {
  color: var(--cyan);
}

@media (max-width: 1100px) {
  .page {
    padding: 0;
    overflow-x: clip;
  }

  .scene {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    background:
      radial-gradient(circle at 78% 20%, rgba(40, 143, 255, 0.13), transparent 26%),
      linear-gradient(180deg, rgba(2, 7, 18, 0.84), rgba(2, 7, 20, 0.52)),
      linear-gradient(112deg, rgba(2, 8, 22, 0.995) 0%, rgba(2, 8, 22, 0.94) 41%, rgba(2, 8, 22, 0.58) 100%);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
  }

  .scene::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(1, 6, 18, 0.76) 26%, rgba(1, 7, 19, 0.3) 52%, transparent 74%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
      linear-gradient(180deg, transparent 0%, rgba(1, 7, 19, 0.34) 74%, rgba(1, 7, 19, 0.84) 100%);
  }

  .scene__visual {
    top: clamp(2rem, 5vw, 3rem);
    right: -10vw;
    bottom: auto;
    width: 100vw;
    height: clamp(25rem, 125vw, 64rem);
    background: url("./hero-background.png") no-repeat right top / cover;
    opacity: 0.98;
    filter: saturate(1.05) brightness(1.02);
  }

  .scene__canvas {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    container-type: normal;
  }

  .scene__overlay {
    z-index: 2;
    background:
      linear-gradient(180deg, transparent 7.05rem, rgba(255, 255, 255, 0.055) 7.05rem, transparent 7.16rem),
      linear-gradient(180deg, rgba(1, 6, 18, 0.3) 0%, rgba(1, 7, 19, 0.08) 30%, rgba(1, 7, 19, 0.72) 84%, rgba(1, 7, 19, 0.94) 100%);
  }

  .topbar,
  .hero {
    padding-left: clamp(1.75rem, 4.5vw, 3rem);
    padding-right: clamp(1.75rem, 4.5vw, 3rem);
  }

  .topbar {
    padding-top: clamp(1.5rem, 4vw, 2.25rem);
  }

  .brand {
    gap: 0.75rem;
  }

  .brand__icon {
    width: clamp(2.5rem, 4.8vw, 3.2rem);
    height: clamp(2.5rem, 4.8vw, 3.2rem);
  }

  .brand__text {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .hero {
    padding-top: clamp(8rem, 5vw, 9rem);
    padding-bottom: 1.75rem;
  }

  .hero__copy {
    max-width: min(28rem, 100%);
  }

  .hero__title {
    display: block;
    margin-bottom: 1.35rem;
    font-size: clamp(4.2rem, 9.6vw, 6.1rem);
    line-height: 0.88;
  }

  .hero__title-accent {
    display: block;
    margin-top: 0.24rem;
  }

  .hero__description {
    max-width: min(28rem, 100%);
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    line-height: 1.6;
  }

  .hero__actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: min(28rem, 100%);
  }

  .button {
    width: 100%;
    justify-content: flex-start;
    min-height: 5rem;
    padding: 1rem 1.45rem;
    border-radius: 1rem;
    font-size: clamp(1.05rem, 2.5vw, 1.26rem);
  }

  .button svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .button--primary,
  .button--secondary {
    width: 100%;
  }

  .button--secondary {
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.22;
    padding-left: 1.45rem;
    padding-right: 1.45rem;
  }

  .button--secondary span {
    max-width: none;
  }

  .details {
    position: relative;
    inset: auto;
    margin: 1.2rem clamp(1.75rem, 4.5vw, 3rem) 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    padding: 0;
    border-radius: 1.25rem;
  }

  .detail {
    padding: 1.4rem;
    gap: 1rem;
  }

  .detail + .detail {
    border-left: 0;
  }

  .detail:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .detail:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .detail__icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .detail__label {
    font-size: 1rem;
  }

  .detail__value {
    font-size: 1.16rem;
  }

  .footer {
    position: relative;
    bottom: auto;
    padding: 1.75rem clamp(1.75rem, 4.5vw, 3rem) 2rem;
  }

  .footer::before {
    top: 0;
    left: clamp(1.75rem, 4.5vw, 3rem);
    right: clamp(1.75rem, 4.5vw, 3rem);
  }

  .footer p {
    font-size: 1.05rem;
  }
}

@media (max-width: 760px) {
  body,
  .page,
  .scene {
    background: #000000;
  }

  .page {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: clip;
  }

  .scene {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    background:
      linear-gradient(180deg, rgba(1, 7, 20, 0.9) 0%, rgba(1, 7, 20, 0.96) 100%),
      #000000;
  }

  .scene::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 30%, rgba(0, 0, 0, 0.14) 56%, transparent 74%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
      linear-gradient(180deg, transparent 0%, rgba(1, 7, 19, 0.42) 76%, rgba(1, 7, 19, 0.88) 100%);
  }

  .scene__visual {
    display: none;
  }

  .scene::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(92vw, 34rem);
    aspect-ratio: 811 / 1024;
    background: url("./hero-background-mobile.png") no-repeat right top / contain;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
  }

  .scene__canvas {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    container-type: normal;
  }

  .scene__overlay {
    z-index: 2;
    background:
      linear-gradient(180deg, transparent 4.1rem, rgba(255, 255, 255, 0.055) 4.1rem, transparent 4.2rem),
      linear-gradient(180deg, rgba(1, 6, 18, 0.16) 0%, rgba(1, 7, 19, 0.08) 32%, rgba(1, 7, 19, 0.74) 82%, rgba(1, 7, 19, 0.96) 100%);
  }

  .topbar {
    padding-top: 1.15rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand__icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand__text {
    font-size: 1.72rem;
  }

  .hero {
    padding-top: clamp(3rem, 27vw, 4rem);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.15rem;
  }

  .hero__title {
    margin-bottom: 0.9rem;
    font-size: clamp(3.25rem, 17vw, 4.35rem);
    line-height: 0.9;
  }

  .hero__copy {
    max-width: min(20rem, 100%);
  }

  .hero__description {
    max-width: 18.75rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .button {
    min-height: 4.8rem;
    padding: 0.95rem 1.3rem;
    font-size: 1.02rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.95rem;
    max-width: min(20rem, 100%);
  }

  .button svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .button--primary,
  .button--secondary {
    width: 100%;
  }

  .button--secondary {
    min-height: 5.05rem;
    font-size: 0.96rem;
    line-height: 1.18;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }

  .button--secondary span {
    max-width: none;
  }

  .details {
    position: relative;
    inset: auto;
    margin: 0.85rem 1.25rem 0;
    grid-template-columns: 1fr;
    border-radius: 1.1rem;
    min-height: 0;
    padding: 0;
  }

  .detail,
  .detail:nth-child(3) {
    grid-column: auto;
    border-top: 0;
  }

  .detail:nth-child(2),
  .detail:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .detail {
    padding: 1.12rem 1rem;
    gap: 0.85rem;
  }

  .detail__icon {
    width: 3rem;
    height: 3rem;
  }

  .detail__label {
    font-size: 0.92rem;
  }

  .detail__value {
    font-size: 1.02rem;
  }

  .footer {
    position: relative;
    bottom: auto;
    padding: 1.45rem 1.25rem 1.8rem;
  }

  .footer::before {
    left: 1.25rem;
    right: 1.25rem;
  }

  .footer p {
    font-size: 0.98rem;
  }
}
