:root {
  --bg: #0c0d12;
  --surface-soft: #1b1a2c;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-strong: rgba(255, 255, 255, 0.62);
  --accent: #ca0078;
  --accent-bright: #f706a3;
  --cyan: #81f3f8;
  --display: "Involve", "Segoe UI", sans-serif;
  --body: "Evolventa", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  margin-inline: auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
}

body.modal-open {
  overflow: hidden;
}

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

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page__content {
  position: relative;
  min-height: 100vh;
  transition: filter 0.25s ease, transform 0.25s ease;
}

body.modal-open .page__content {
  filter: blur(10px);
}

.header,
.hero,
.benefits {
  width: min(100% - 54px, 640px);
  margin-inline: auto;
}

.header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.brand img {
  width: 22px;
  height: 22px;
}

.header__nav,
.header__button {
  display: none;
}

.header__nav {
  gap: 70px;
  margin-left: auto;
}

.header__link,
.mobile-menu__link {
  color: var(--muted-strong);
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover {
  color: var(--text);
}

.header__link:hover {
  color: var(--accent-bright);
}

.header__link:active {
  color: var(--accent);
}

.header__button,
.button {
  border-radius: 15px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.header__button {
  margin-left: 46px;
  width: 184px;
  height: 51px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
}

.header__button:not(:disabled):hover {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: var(--text);
  box-shadow: none;
}

.header__button:not(:disabled):active {
  border-color: var(--accent);
  background: var(--accent);
  color: #202026;
  box-shadow: none;
  transform: translateY(1px);
}

.header__button:disabled {
  background: #52002f;
  color: rgba(12, 13, 18, 0.55);
  border-color: #52002f;
}

.header__menu-toggle,
.mobile-menu__close,
.promo__close {
  padding: 0;
  border: 0;
  background: transparent;
}

.header__menu-toggle {
  display: inline-flex;
  margin-left: auto;
}

.header__menu-toggle img,
.mobile-menu__close img {
  width: 32px;
  height: 32px;
}

.promo__close img {
  width: 18px;
  height: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  padding: 8px 0 40px;
}

.hero__copy {
  max-width: 720px;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
}

.hero__title-gradient,
.hero__title-solid {
  display: block;
}

.hero__title-gradient {
  font-size: 52px;
  letter-spacing: 0.02em;
  background: linear-gradient(
    90deg,
    var(--accent-bright) 0%,
    #8e47f8 38%,
    var(--cyan) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-solid {
  margin-top: 8px;
  color: var(--text);
  font-size: 46px;
}

.hero__text {
  max-width: 340px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.15;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
}

.button--primary {
  background: var(--accent-bright);
  color: var(--text);
}

.button--primary:not(:disabled):hover {
  background: var(--text);
  color: #202026;
  box-shadow: 0 0 34px rgba(247, 6, 163, 0.82);
}

.button--primary:not(:disabled):active {
  background: var(--text);
  color: #202026;
  box-shadow: none;
  transform: translateY(1px);
}

.button--primary:disabled {
  background: #5a5a5a;
  color: rgba(12, 13, 18, 0.35);
  box-shadow: none;
}

.hero__visual {
  order: -1;
  justify-self: center;
  width: 100%;
}

.hero__visual img {
  width: min(100%, 520px);
  margin-inline: auto;
}

.benefits {
  position: relative;
  overflow: hidden;
  padding: 14px 0 32px;
}

.benefits__bg-text {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  color: transparent;
  text-align: center;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(46px, 15vw, 108px);
  line-height: 0.9;
  opacity: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}

.benefits__head {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}

.benefits__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 0.95;
}

.benefits__text {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.15;
}

.benefits__text span {
  color: var(--accent-bright);
}

.benefits__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: none;
  margin: 0 auto;
}

.benefits__card {
  min-height: 0;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.benefits__card img {
  width: 52px;
  height: 52px;
}

.benefits__card h3 {
  margin: 18px 0 14px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.15;
}

.benefits__card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.08;
}

.mobile-menu-overlay,
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.menu-open .mobile-menu-overlay,
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  z-index: 40;
  width: min(100% - 54px, 640px);
  min-height: 0;
  padding: 18px;
  border-radius: 9px;
  background: rgba(12, 13, 18, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__head {
  display: none;
}

.mobile-menu__nav {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.mobile-menu__link {
  font-size: 18px;
}

.mobile-menu__button {
  width: calc(100% - 20px);
  min-height: 48px;
  margin: 0 auto;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 15px;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.promo {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 440px;
  margin: auto;
  padding: 22px 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(180deg, #1b1a2c 0%, #171625 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.promo__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.promo__title {
  margin: 20px 0 10px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 0.95;
}

.promo__text {
  position: relative;
  z-index: 1;
  margin: 0 0 -10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.12;
}

.promo__image {
  position: relative;
  z-index: 0;
  width: 250px;
  height: 215px;
  margin: 0 auto;
  object-fit: contain;
}

.promo__form {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1px;
  margin-top: -28px;
}

.promo__input,
.promo__button {
  width: 250px;
  height: 36px;
  min-height: 0;
}

.promo__input {
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #232137;
  color: var(--text);
  text-align: center;
  font-family: var(--display);
  font-size: 16px;
  outline: none;
}

.promo__input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.promo__input:focus {
  border-color: var(--cyan);
}

.promo__input.is-invalid {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.promo__error {
  min-height: 18px;
  margin: -2px 0 0;
  color: var(--accent-bright);
  font-size: 14px;
  line-height: 1.2;
}

.promo__button {
  font-size: 16px;
}

@media (min-width: 421px) {
  .brand {
    font-size: 30px;
  }

  .hero__title-gradient {
    font-size: clamp(58px, 15vw, 88px);
  }

  .hero__title-solid {
    font-size: clamp(46px, 11vw, 66px);
  }

  .hero__text {
    font-size: 20px;
  }
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none;
  }

  .header,
  .hero,
  .benefits {
    width: min(1280px, calc(100% - 48px));
  }

  .header {
    padding: 18px 0;
  }

  .brand {
    font-size: 40px;
  }

  .brand img {
    width: 33px;
    height: 33px;
  }

  .header__nav {
    display: flex;
  }

  .header__button {
    display: inline-flex;
  }

  .header__menu-toggle {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(520px, 1.15fr) minmax(420px, 0.95fr);
    gap: 24px;
    padding: 110px 0 90px;
  }

  .hero__visual {
    order: initial;
    justify-self: end;
  }

  .hero__visual img {
    width: min(100%, 600px);
    margin-left: auto;
  }

  .hero__title-gradient {
    font-size: clamp(76px, 8vw, 110px);
  }

  .hero__title-solid {
    font-size: clamp(56px, 6vw, 78px);
  }

  .hero__text {
    max-width: 560px;
    margin: 28px 0 32px;
    font-size: 24px;
  }

  .button {
    width: auto;
    height: auto;
    padding: 18px 32px;
    font-size: 22px;
  }

  .benefits {
    overflow: visible;
    padding: 34px 0 110px;
  }

  .benefits__bg-text {
    top: 80px;
    width: auto;
    text-align: initial;
    font-size: clamp(120px, 16vw, 240px);
  }

  .benefits__head {
    margin-bottom: 44px;
  }

  .benefits__title {
    font-size: clamp(58px, 6vw, 90px);
  }

  .benefits__text {
    max-width: 760px;
    font-size: 24px;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 740px;
  }

  .benefits__card {
    min-height: 290px;
    padding: 28px 24px 24px;
  }

  .benefits__card h3 {
    margin: 22px 0 18px;
    font-size: 24px;
  }

  .benefits__card p {
    font-size: 16px;
  }

  .promo {
    width: 668px;
    height: 768px;
    padding: 52px 50px 48px;
  }

  .promo__title {
    margin-top: 28px;
    font-size: 44px;
  }

  .promo__text {
    margin-bottom: -28px;
    font-size: 24px;
  }

  .promo__image {
    width: 568px;
    height: 486px;
  }

  .promo__input {
    width: 568px;
    height: 62px;
    font-size: 18px;
  }

  .promo__button {
    width: 568px;
    height: 62px;
    font-size: 22px;
  }
}
