* {
  box-sizing: border-box;
}

html,
body {
  font: normal 18px/28px 'Montserrat', sans-serif;
  padding: 0;
  margin: 0;
  color: #060b1e;
  font-family: 'Montserrat', sans-serif;
}

body {
  width: 1200px;
  margin: 0 auto;
  color: #060B1E;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

a,
a:hover,
a:visited {
  text-decoration: none;
  color: currentColor;
}

a.link {
  font: 600 16px/24px 'Montserrat';
}

.panels {
  display: flex;
}

.panels>* {
  flex: 1;
}

.bg {
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center;
}

.overflow-bg-x {
  /* to show bg image overflow */
  margin-left: calc(calc(calc(100vw - 15px) - 100%) / -2);
  margin-right: calc(calc(calc(100vw - 15px) - 100%) / -2);
  padding-left: calc(calc(calc(100vw - 15px) - 100%) / 2);
  padding-right: calc(calc(calc(100vw - 15px) - 100%) / 2);
}

/* header styles */
header {
  display: flex;
  align-items: center;
  margin: 40px 0;
}

header .logo {
  flex: 1;
  background: url("assets/logo-2.png");
  background-repeat: no-repeat;
  background-size: 122px 20px;
  display: block;
  height: 20px;
}

header .content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

/* /header styles */

.button {
  padding: 10px 66px;
  display: flex;
  justify-content: center;
  align-items: center;
  font: 600 16px/19px 'Montserrat';
  border-radius: 1.375em
}

.button.outline {
  color: #1036d6;
  border: 2px solid #1036d6;
}

.button.flat {
  color: white;
  background-color: #1036d6;
  font: 600 18px/32px 'Montserrat';
}


/* typo */
/*
  // h1 700 72/98
  // hd 700 36/44
  hd 700 36/54
  text-bold 600 16/24
  text 400 16/24
  // hd 700 60/90
  button 700 18/22footer text 400 14/22
*/
h1 {
  font: 700 72px/98px 'Montserrat';
}

h2 {
  font: 700 36px/44px 'Montserrat';
}

.display-1 {
  font: 700 60px/90px 'Montserrat';
}

.text-bold {
  font-weight: 600;
}

.caption {
  font: 400 14px/22px 'Montserrat';
  color: #60698b;
}

/* /typo */

/* content styles */
.content-wrapper {
  margin: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper>* {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-1 h1 {
  max-width: 1000px;
}

.content-1 .body-text {
  max-width: 570px;
}


.content-2 .body-text {
  max-width: 785px;
}

/* sub-2 */
.content-3 {
  gap: 120px;
}

.content-3 h2 {
  max-width: 586px;
}

.content-3 ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-3 ul>li {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.content-3 ul>li::before {
  content: '';
  display: block;
  height: 14px;
  background-color: #1036d6;
  border: 1px solid #1036d6;
  margin-top: 6px;
}

/* features */
.content-4 {
  gap: 80px;
}

.content-5 {
  margin-top: 125px;
}

.content-5 h1 {
  max-width: 1000px;
}

.content-5 .body-text {
  max-width: 570px;
}

.au-card.profile img {
  border-radius: 50%;
  height: 100px;
  width: 100px;
}

.features {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  font: 400 16px/24px 'Montserrat';
}

.features>* {
  width: 267px;
}

.features-card .text-bold {
  margin: 20px 0 8px 0;
}

.features-card .icon {
  width: 60px;
  height: 60px;
}

/* /features */

.demo {
  height: 606px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: white;
  /*#e9ecf4;*/
  background: linear-gradient(176deg, white 20%, #e9ecf4 20% 80%, white 80% 100%);
}

.demo .display-1 {
  max-width: 680px;
}

.demo .button-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* about us */

.au-container {
  display: flex;
  gap: 44px 104px;
  flex-wrap: wrap;
  font: 400 16px/24px 'Montserrat';
}

.au-container>* {
  width: 467px;
  height: 467px;
}

.au-card h1 {
  margin-bottom: 1em;
}

.au-card .text-bold {
  margin: 20px 0 8px 0;
}

.au-card.hdr {
  width: 520px;
  /* height: 800px; */ /* Removed to allow content to define height */
  background-color: #FFFFFF;
}

.au-card.hdr h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1.36;
  color: #060B1E;
  margin-bottom: 20px; /* Space after H1 */
}

/* Add margin-top to the .body-text container to space it from H1 */
.au-card.hdr .body-text {
  margin-top: 30px;
}

.au-card.hdr .body-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 32px; /* Slightly adjusted from previous estimate */
  line-height: 1.4;
  color: #060B1E;
  margin-top: 30px;    /* Space above H3 (first H3 will be 30px from .body-text start, subsequent H3s 30px from prev paragraph) */
  margin-bottom: 10px; /* Space below H3, before its paragraphs */
}

.au-card.hdr .body-text p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #060B1E;
  margin-bottom: 15px; /* Space below paragraphs */
}

.au-card.profile {
  width: 520px;
  height: 390px;
}

.au-card.profile .name {
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  margin-top: 15px;
}

.au-card.profile .lnk img {
  width: 24px;
  height: 24px;
}


.au-card.profile .body-text.title {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
}

.au-card.bg-icon img {
  height: 600px;
}


/* /content styles */


/* footer */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  margin: 100px 0 42px 0;

}

footer .content {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}

footer .logo {
  background: url("assets/logo-alt-2.png");
  background-repeat: no-repeat;
  background-size: 122px 20px;
  display: block;
  width: 122px;
  height: 20px;
}

/* /footer */

@media (max-width: 1024.98px) {
  .overflow-bg-x {
    /* to show bg image overflow */
    margin-left: calc(calc(calc(100vw) - 100%) / -2);
    margin-right: calc(calc(calc(100vw) - 100%) / -2);
    padding-left: calc(calc(calc(100vw) - 100%) / 2);
    padding-right: calc(calc(calc(100vw) - 100%) / 2);
  }
}

/* xs, s */
@media (max-width: 767.98px) {
  .-no-xs {
    display: none;
  }

  body {
    width: calc(100vw - 40px);
    overflow-x: auto;
  }

  header .logo,
  footer .logo {
    background-repeat: no-repeat;
    background-size: 92px 15px;
    width: 92px;
    height: 15px;
  }

  header .logo {
    background-image: url("assets/logo-small-2.png");
  }

  footer .logo {
    background-image: url("assets/logo-alt-small-2.png");
  }

  h1 {
    font: 700 36px/54px 'Montserrat';
  }

  /* Make About Us H1 match general H1 on mobile */
  .au-card.hdr h1 {
    font-size: 36px;
    line-height: 54px;
  }

  h2 {
    font: 700 28px/40px 'Montserrat';
  }

  .display-1 {
    font: 700 28px/40px 'Montserrat';
  }

  .content-wrapper {
    margin: 80px 0 20px 0;
    gap: 85px;
  }

  .content-1 {
    background-image: url("assets/bg-1-s.svg");
    background-position: bottom center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 794px;
    padding-bottom: 100px;
  }

  .content-1 .button {
    margin-top: 24px;
    font: 600 14px/18px 'Montserrat';
    padding: 7px 0;
    width: 160px;
  }

  .content-5 {
    margin-top: 40px;
  }


  .content-3 {
    gap: 60px;
  }

  .panels {
    flex-direction: column;
  }

  .panel-bg {
    background-image: url("assets/bg-3-s.svg");
    min-height: 487px;
  }

  .content-3 ul {
    gap: 12px;
  }

  .content-4 {
    gap: 40px;
  }

  .features {
    gap: 50px;
  }

  .features>* {
    width: 100%;
  }

  .au-container {
    gap: 50px;
  }

  .au-container>* {
    width: 100%;
    height: auto;
  }

  .au-card.bg-icon img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
  }


  .demo {
    height: 543px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .demo {
    background: linear-gradient(164deg, white 20%, #e9ecf4 20% 80%, white 80% 100%);
  }

  .demo .button-wrapper {
    flex: unset;
    justify-content: center;
    align-items: center;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* tablet */
@media (min-width: 768px) and (max-width: 1024.98px) {
  .-no-md {
    display: none;
  }

  body {
    width: 688px;
  }

  h1 {
    font: 700 60px/90px 'Montserrat';
  }

  h2 {
    font: 700 36px/54px 'Montserrat';
  }

  .content-wrapper {
    gap: 160px;
  }

  .content-1 {
    background-image: url("assets/bg-1-m.svg");
    background-position: center bottom;
    background-size: auto 800px;
    background-repeat: no-repeat;
    height: auto;
    min-height: 1094px;
    gap: 40px;
    padding-bottom: 100px;
    position: relative;
  }

  .content-2 {
    background: none;
  }

  .content-3,
  .content-4 {
    gap: 60px;
  }

  .panels {
    flex-direction: column;
  }

  .panel-bg {
    background-image: url("assets/bg-3-m.svg");
    background-position: top center;
    min-height: 500px;
    margin-bottom: -40px;
  }

  .features>* {
    width: 322px;
  }

  .au-container>* {
    width: 322px;
  }

  .au-card.bg-icon img {
    height: 450px;
  }


  /* .features-card:nth-child(n+3) {
  margin-top: 36px;
} */

  .demo {
    height: 770px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    background: linear-gradient(172deg, white 20%, #e9ecf4 20% 80%, white 80% 100%);
  }

  .demo .button-wrapper {
    flex: unset;
    justify-content: left;
    align-items: center;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* large screens */
@media (min-width: 1025px) and (max-width: 1199.98px) {
  body {
    width: 1000px;
  }
}

@media (min-width: 1025px) {
  .-no-lg {
    display: none;
  }

  .content-1 {
    background-image: url("assets/bg-1.png");
    height: 1120px;
    background-position: left 60% top -50px;
  }

  .content-2 {
    background-image: url("assets/bg-2.svg");
    background-position: top 0 right 168px;
    height: 228px;
  }

  .content-3 {
    /* to adjust background image */
    margin-top: -20px;
    padding-top: 135px;
    background-image: url("assets/bg-3.svg");
    background-position: left 30% top 0;
    height: 822px;
    gap: 150px;
  }

  /* .features-card:nth-child(n+5) {
    margin-top: 74px;
  } */

  .content-wrapper {
    gap: 0;
  }
}


/* contact form */

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-title {
  font: 700 28px/40px 'Montserrat';
}

.contact-div {
  width: 665px;

  background-color: #ffffff;
  border: 1px solid #e9ecf4;
  border-radius: 12px;
  box-shadow: 2px 4px 12px 0 #c3c7d5;
  padding: 40px 44px;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.g-1 {
  grid-column: 1/3;
  grid-row: 1;
}

.g-2 {
  grid-column: 1/2;
  grid-row: 2;
}

.g-3 {
  grid-column: 2/3;
  grid-row: 2;
}

.g-4 {
  grid-column: 1/2;
  grid-row: 3;
}

.g-5 {
  grid-column: 2/3;
  grid-row: 3;
}

.g-6 {
  grid-column: 1/3;
  grid-row: 4;
}

.g-7 {
  grid-column: 1/3;
  grid-row: 5;
}

.form-element {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-element label {
  color: #60698b;
  text-transform: uppercase;
  font: 600 12px/15px 'Montserrat';
}

.contact-div input,
.contact-div textarea {
  outline: none;
  font: 400 16px/24px 'Montserrat';
}

.contact-div input {
  border: none;
  border-bottom: 1px solid #8b94b3;
}

.contact-div textarea {
  border: 1px solid #8b94b3;
  border-radius: 4px;
  min-height: 100px;
}

.contact-div button {
  color: #ffffff;
  border: none;
  background: #1036d6;
  font: 700 16px/19px "Montserrat";
  border-radius: 22px;
  padding: 12px 68px;
}

@media (max-width: 767.98px) {

  .contact-wrapper>* {
    flex: 1;
  }

  .form-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contact-div {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
    box-shadow: unset;
    border-radius: 0;
    border: none;
  }

  .contact-div>* {
    width: 100%;
  }
}

/* contact form */
