/* ========== DEMO PAGE ========== */
.demo-page {
  background-color: #FFFFFF;
  background-image: url('/images/backgrounds/line_bg.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}

.demo-hero {
  padding: 120px 0 85px;
}

.demo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 575px);
  gap: 64px;
  align-items: start;
}

.demo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.31px;
  color: #4F46E5;
  margin: 0 0 16px;
}

.demo-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4F46E5;
  flex-shrink: 0;
}

.demo-hero__title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 600;
  line-height: 66px;
  color: #333333;
  margin: 0 0 18px;
  max-width: 560px;
}

.demo-hero__title .accent {
  color: #4F46E5;
}

.demo-hero__lead {
  font-size: 16px;
  line-height: 1.65;
  color: #8B90A7;
  margin: 0 0 84px;
  max-width: 580px;
}

.demo-hero__intro {
  font-size: 13px;
  line-height: 1.6;
  color: #64748BCC;
  margin: 0 0 10px;
  max-width: 600px;
}

.demo-hero__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 540px;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #22C55E1A;
  border: 1px solid #22C55E1A;
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  color: #0B1020;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.demo-tag img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Form card */
.demo-form-card {
  width: 100%;
  max-width: 575px;
  min-height: 634px;
  background: #FFFFFF;
  border-radius: 13.33px;
  padding: 36px 32px;
  border: 0.83px solid rgba(139, 144, 167, 0.2);
  box-shadow: 0 3.33px 27.17px rgba(0, 0, 0, 0.25);
  justify-self: end;
  box-sizing: border-box;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.demo-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-form__field label {
  font-size: 15px;
  font-weight: 500;
  color: #64748B;
}

.demo-form__field input,
.demo-form__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: #0F172A;
  background: #F4F5F7;
  border: 1px solid #64748B1A;
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  resize: vertical;
}

.demo-form__field textarea {
  min-height: 120px;
}

.demo-form__field input:focus,
.demo-form__field textarea:focus {
  background: #EEF0F4;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.demo-form__submit {
  width: 100%;
  margin-top: auto;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

/* Try yourself — video card*/
.demo-try {
  padding: 48px 0 100px;
}

.demo-try__card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0B1020;
  padding: 60px 66px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 433px;
  height: 433px;
}

.demo-try__video {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(25px);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

.demo-try__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.demo-try__content,
.demo-try__form {
  position: relative;
  z-index: 2;
}

.demo-try__title {
  font-family: var(--font-heading);
  width: 100%;
  max-width: 380px;
  font-size: 51.07px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.demo-try__desc {
  font-size: 20px;
  line-height: 1.65;
  color: #FFFFFF73;
  margin: 0;
  max-width: 420px;
}

.demo-try__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

.demo-try__form .demo-form__field label {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
}

.demo-try__form .demo-form__field input {
  background: #ffffff;
  border: 1px solid #64748B1A;
  border-radius: 10px;
}

.demo-try__form .demo-form__field input:focus {
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.35);
}

.demo-try__submit {
  width: 100%;
  padding: 15px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  margin-top: 32px;
}

@media (max-width: 1100px) {
  .demo-hero {
    padding: 48px 0;
  }

  .demo-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .demo-form-card {
    justify-self: stretch;
    max-width: none;
    min-height: 0;
  }

  .demo-try {
    padding: 48px 0;
  }

  .demo-try__card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    gap: 28px;
    padding: 36px 28px;
  }

  .demo-try__form {
    justify-self: stretch;
    max-width: none;
  }

  .demo-try__title {
    width: auto;
    max-width: 100%;
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }

  .demo-try__desc {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .demo-hero {
    padding: 40px 0;
  }

  .demo-hero__title {
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }

  .demo-hero__lead {
    margin-bottom: 32px;
    font-size: 15px;
    text-align: left;
  }

  .demo-form__row {
    grid-template-columns: 1fr;
  }

  .demo-form-card {
    padding: 24px;
  }

  .demo-try {
    padding: 40px 0;
  }

  .demo-try__title {
    font-size: var(--mobile-heading-size);
    line-height: var(--mobile-heading-line-height);
    text-align: left;
  }

  .demo-try__card {
    padding: 28px 20px;
    border-radius: 20px;
  }
}
