@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Even Mono";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/EvenMono-Regular.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: "Manrope", Arial, sans-serif;
  background: #181a1c;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

/* ============ DESKTOP (design baseline 1920x1080) ============ */

.stage {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(24, 26, 28, 0.16) 0%, rgba(24, 26, 28, 0.46) 100%),
    url("clouds.jpg") center bottom / cover no-repeat;
}

.frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #fff;
  margin-top: clamp(36px, 5.2vh, 70px);
  margin-bottom: 0;
  padding-bottom: clamp(20px, 2.4vh, 40px);
}

/* vertical guide lines: run the full height of the frame (top line to bottom line) */
.vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 3;
}
.vline--left { left: clamp(40px, 2.7vw, 60px); }
.vline--center { left: 45.47%; }

/* horizontal guide lines with corner dots */
.hline {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  z-index: 3;
}

.hline__dot {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.hline__dot--left { left: clamp(40px, 2.7vw, 60px); }
.hline__dot--center { left: 45.47%; }

.content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
  z-index: 2;
}

.content__left {
  position: relative;
  width: 45.47%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(56px, 4.79vw, 100px);
  padding-right: clamp(24px, 2vw, 48px);
}

.title {
  font-family: "Even Mono", monospace;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 2.083vw, 42px);
  line-height: 105%;
  max-width: 785px;
  margin-bottom: clamp(28px, 4.16vh, 56px);
}

.lead-form__fields {
  display: flex;
  flex-direction: column;
}

.field {
  border-bottom: 1px solid #fff;
  padding: 10px 0 16px;
}
.field + .field { margin-top: 4px; }

.field__input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(14px, 0.833vw, 16px);
}
.field__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 2.6vw, 50px);
  margin-top: clamp(40px, 5.5vh, 76px);
  padding: clamp(16px, 1.85vh, 21px) clamp(20px, 1.56vw, 30px);
  background: #ededed;
  border: none;
  color: #191a18;
  width: fit-content;
}

.submit-btn__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #191a18;
  flex-shrink: 0;
}

.submit-btn span:last-child {
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(13px, 0.833vw, 16px);
  letter-spacing: 0.02em;
}

.agreements {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.85vh, 20px);
  margin-top: clamp(24px, 2.78vh, 30px);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.checkbox__box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1px solid #fff;
  position: relative;
}

.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__text {
  font-size: clamp(13px, 0.833vw, 16px);
  line-height: 120%;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 3px;
}
.checkbox__text a { text-decoration: underline; }

.lead-form__error {
  display: none;
  margin-top: 16px;
  font-size: clamp(12px, 0.75vw, 14px);
  color: #ff8a80;
}
.lead-form__error.is-visible { display: block; }

.lead-form__success {
  display: none;
  margin-top: 24px;
  font-size: clamp(13px, 0.833vw, 16px);
  color: #fff;
}
.lead-form.is-submitted .lead-form__fields,
.lead-form.is-submitted .submit-btn,
.lead-form.is-submitted .agreements,
.lead-form.is-submitted .lead-form__error {
  display: none;
}
.lead-form.is-submitted .lead-form__success {
  display: block;
}

.tower-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54.53%;
  overflow: hidden;
  z-index: 1;
}

.tower {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 92.87vh;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

.content__right {
  position: relative;
  flex: 1;
  z-index: 2;
}

.dots-grid {
  position: absolute;
  top: clamp(24px, 3vw, 60px);
  left: clamp(24px, 3vw, 60px);
  width: calc(100% - (2 * clamp(24px, 3vw, 60px)));
  height: calc(100% - (2 * clamp(24px, 3vw, 60px)));
  opacity: 0.9;
}

.footer {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vh, 35px) clamp(56px, 4.79vw, 100px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 32px);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: clamp(40px, 5.2vw, 100px);
}

.contacts {
  font-style: normal;
}

.contacts__label {
  text-transform: uppercase;
  font-size: clamp(13px, 0.833vw, 16px);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(13px, 0.833vw, 16px);
}
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }

.disclaimer {
  max-width: 741px;
  font-size: clamp(10px, 0.625vw, 12px);
  line-height: 120%;
  color: rgba(255, 255, 255, 0.5);
}

.footer__copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(280px, 38.6vw, 741px);
}

.footer__copyright p {
  font-size: clamp(11px, 0.729vw, 14px);
  color: rgba(255, 255, 255, 0.35);
}

.cg-logo {
  width: clamp(130px, 10.3vw, 198px);
  height: auto;
  opacity: 0.9;
}

/* ============ MOBILE / TABLET (<1024px) ============ */

@media (max-width: 1023px) {

  .stage {
    background:
      linear-gradient(180deg, rgba(24, 26, 28, 0.35) 0%, rgba(20, 21, 23, 0.78) 100%),
      url("clouds.jpg") center center / cover no-repeat;
  }

  .frame {
    margin-top: 0;
    border-bottom: none;
    padding: 28px 20px 24px;
  }

  .vline, .hline { display: none; }

  .content {
    flex-direction: column;
  }

  .content__left {
    width: 100%;
    padding: 0;
    justify-content: flex-start;
  }

  .tower-layer, .content__right { display: none; }

  .title {
    font-size: clamp(24px, 7.5vw, 32px);
    max-width: 100%;
    margin-top: 8px;
    margin-bottom: 32px;
  }

  .field__input { font-size: 16px; }

  .submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 32px;
    gap: 16px;
  }

  .submit-btn span:last-child { font-size: 14px; }

  .agreements { margin-top: 24px; }

  .checkbox__text { font-size: 13px; }

  .footer {
    padding: 48px 0 0;
    gap: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 40px;
  }

  .footer__row {
    flex-direction: column;
    gap: 24px;
  }

  .disclaimer {
    max-width: 100%;
    font-size: 11px;
  }

  .footer__copyright { width: 100%; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 420px) {
  .title { font-size: 22px; }
}
