:root {
  --blue-600: #5368df;
  --red-400: #fa5757;
  --grey-50: #f7f7f7;
  --blue-950: #252b46;
  --text-color: #3a3a44;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: "Rubik", sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* global styles */
img {
  width: 100%;
}
.overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
}
.blue {
  opacity: .9;
  background-color: var(--blue-950);
}
button {
  outline: none;
  border: none;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: 15px 0;
  border-radius: 8px;
  transition: .3s;
}

/* container */
.container {
  width: 1100px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .container {
    width: 320px;
  }
}


/* header start */
header .container {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo {
  width: 200px;
}
header .links {
  display: flex;
  align-items: center;
  gap: 50px;
  letter-spacing: 3px;
  font-weight: 500;
  text-transform: uppercase;
}
header .links.show {
  display: flex;
}
header a {
  text-decoration: none;
  color: var(--blue-950);
  padding: 10px 0;
  transition: .3s;
}
header a:hover {
  color: var(--red-400);
}
header button {
  background-color: var(--red-400);
  display: block;
  color: white;
  border: 2px solid var(--red-400);
  width: 136px;
  letter-spacing: inherit;
}
header button:hover {
  color: var(--red-400);
  background-color: white;
} 
header #burger-menu {
  display: none;
}
header .social {
  display: none;
}

/* media breakpoints */
@media (max-width: 600px) {
  header .container {
    height: 100px;
    z-index: 20;
    position: relative;
  }
  header .logo {
    width: 130px;
  }
  header .links {
    position: fixed;
    flex-direction: column;
    gap: 0;
    letter-spacing: 3px;
    top: 100px;
    left: 0;
    width: 100vw;
    font-weight: 400;
    padding-top: 22px;
    transition: .3s;
    display: none;
    height: calc(100vh - 100px);
  }
  header a {
    color: white;
    padding: 22px 0;
    position: relative;
  }
  header button {
    margin-top: 22px;
    font-size: 15px;
    font-weight: 400;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    width: 160px;
    padding: 15px 0;
    border-radius: 6px;
    position: relative;
  }
  header .links > *:not(.social):after {
    content: "";
    background-color: white;
    border-radius: 2px;
    height: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1px;
    width: 184px;
  }
  header button:hover {
    color: var(--red-400);
    border-color: var(--red-400);
    background-color: transparent;
  } 
  header button::after {
    top: -27px !important;
  }
  header #burger-menu {
    display: block;
    width: 18px;
  }
  header .social {
    display: flex;
    align-items: center;
    gap: 24px;
    color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    font-size: 20px;
  }
}
/* header end */


/* landing section start */
.landing .container {
  display: flex;
  align-items: center;
  margin-top: 80px;
  position: relative;
  padding-bottom: 60px;
}
.landing .container::after {
  content: "";
  border-radius: 1000px;
  position: absolute;
  background-color: var(--blue-600);
  width: 62%;
  height: 381px;
  right: -30%;
  top: 14%;
  z-index: -1;

}
.landing img {
  width: 55%;
  transform: translateX(74px);
  position: relative;
  z-index: 1;
}
.landing h1 {
  color: var(--blue-950);
  font-size: 53px;
  font-weight: 500;
}
.landing h1 + p {
  font-size: 20px;
  color: #aaaacc;
  font-weight: 500;
  width: 96%;
  line-height: 1.6;
  margin: 22px 0 40px;
}
.landing .btns {
  display: flex;
  align-items: center;
  gap: 16px;
}
.landing .btns button {
  font-size: 14px;
  padding-right: 22px;
  padding-left: 22px;
}
.landing button:first-child {
  background-color: var(--blue-600);
  border: 2px solid var(--blue-600);
  color: var(--grey-50);
}
.landing button:first-child:hover {
  color: var(--blue-600);
  background-color: var(--grey-50);
}
.landing button:last-child {
  background-color: var(--grey-50);
  border: 2px solid var(--grey-50);
  color: var(--text-color);
  box-shadow: 0px 2px 20px 0 #9393b97e;
}
.landing button:last-child:hover {
  border-color: var(--text-color);
}
@media (max-width: 600px) {
  .landing .container {
    flex-direction: column-reverse;
    margin-top: 40px;
  }
  .landing .container::after {
    width: 99%;
    height: 216px;
    right: -46%;
    top: 6%;
  }
  .landing img {
    width: 100%;
    margin: 0 auto 36px;
    transform: translateX(0);
  }
  .landing h1 {
    font-size: 37px;
    width: 100%;
    text-align: center;
    margin: auto;
  }
  .landing h1 + p {
    font-size: 15px;
    text-align: center;
    width: 96%;
    line-height: 1.6;
    margin: 22px auto 38px;
  }
  .landing .btns {
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .landing .btns button {
    font-size: 10px;
    padding: 12px 14px;
  }
}
/* landing section end */


/* features section start */
.features-section {
  position: relative;
}
.features-section::after {
  content: "";
  border-radius: 1000px;
  position: absolute;
  background-color: var(--blue-600);
  width: 62%;
  height: 381px;
  left: -26%;
  bottom: -4%;
  z-index: -1;
}
.features-section .container {
  margin-top: 90px;
  overflow-x: hidden;
}
.features-section h2 {
  color: var(--blue-950);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 38px;
}
.features-section h2 + p {
  width: 49%;
  margin: auto;
  line-height: 1.5;
  font-size: 18px;
  text-align: center;
  color: #aaaacc;
}
.features-section .features-toggle {
  margin: 60px auto;
  width: 800px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #d2d2e691;
  position: relative;
}
.features-section:has(span:first-of-type.active) {
  --slide-offset: 0;
}
.features-section:has(span:nth-of-type(2).active) {
  --slide-offset: 1;
}
.features-section:has(span:last-of-type.active) {
  --slide-offset: 2;
}
.features-toggle span {
  width: calc(1 / 3 * 100%);
  display: block;
  cursor: pointer;
  text-align: center;
  color: #747496;
  font-weight: 500;
  padding: 30px 0;
  transition: .3s;
}
.features-toggle span:not(.active):hover {
  color: var(--red-400);
}
.features-toggle span.active {
  color: var(--blue-950);
}
.features-toggle::after {
  content: "";
  height: 3px;
  width: calc(1 / 3 * 100%);
  background-color: var(--red-400);
  transition: .3s;
  border-radius: 2px;
  transform: translateX(calc(var(--slide-offset) * 100%));
  position: absolute;
  bottom: 0;
}
.features {
  overflow-x: hidden;
  width: 300%;
  display: flex;
  align-items: center;
  transition: .3s;
  transform: translateX(calc(var(--slide-offset) / -3 * 100%));
}
.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1100px;
}
.feature img {
  width: 50%;
}
.feature .text {
  width: 38%;
}
.feature h3 {
  color: var(--blue-950);
  font-size: 36px;
  font-weight: 500;
}
.feature p {
  color: #aaaacc;
  margin: 26px 0;
  line-height: 1.5;
  font-size: 17px;
}
.feature button {
  color: white;
  background-color: var(--blue-600);
  border: 2px solid var(--blue-600);
  text-transform: capitalize;
  font-size: 14px;
  padding: 14px 20px;
}
.feature button:hover {
  color: var(--blue-600);
  background-color: white;
}
@media (max-width: 600px) {
  .features-section::after {
    width: 97%;
    height: 244px;
    left: -40%;
    bottom: 23%;
  }
  .features-section .container {
    margin-top: 50px;
  }
  .features-section h2 {
    margin-bottom: 14px;
    font-size: 26px;
  }
  .features-section h2 + p {
    width: 80%;
    font-size: 15px;
  }
  .features-section .features-toggle {
    margin: 50px auto;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    border-bottom: none;
  }
  .features-toggle span {
    width: 100%;
    padding: 24px 0;
    border-top: 2px solid #d2d2e691;
    font-size: 17px;
    position: relative;
  }
  .features-toggle span::after {
    content: "";
    height: 2px;
    width: 0;
    border-radius: 2px;
    background-color: var(--red-400);
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    transition: .3s;
  }
  .features-toggle span.active::after {
    width: 180px;
  }
  .features-toggle span:last-of-type {
    border-bottom: 2px solid #d2d2e691;
  }
  .features-toggle span:not(.active):hover {
    color: var(--blue-950);
  }
  .features-toggle::after {
    display: none;
  }
  .features {
    width: 300%;
  }
  .feature {
    width: calc(1 / 3 * 100%);
    flex-direction: column;
    gap: 60px;
  }
  .feature img {
    width: 100%;
  }
  .feature .text {
    width: 100%;
    text-align: center;
  }
  .feature h3 {
    font-size: 26px;
  }
  .feature p {
    margin: 22px 0;
    font-size: 15px;
  }
  .feature button {
    font-size: 12px;
    padding: 10px 16px;
  }
}
/* features section end */


/* extensions start */
.extensions {
  margin-top: 110px;
}
.extensions h2 {
  color: var(--blue-950);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 38px;
}
.extensions h2 + p {
  width: 49%;
  margin: auto;
  line-height: 1.5;
  font-size: 18px;
  text-align: center;
  color: #aaaacc;
}
.extensions .container {
  display: flex;
  align-items: start;
  gap: 30px;
  width: 900px;
  margin-top: 80px;
}
.extensions .extension {
  flex: 1;
  text-align: center;
  border-radius: 6px;
  box-shadow: 2px 4px 26px 2px #c9cdf06f;
  padding: 24px;
  transform: translateY(calc(var(--space, 0) * 26px));
  position: relative;
}
.extension::after {
  content: "";
  height: 4px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 90px;
  background-image: url("../images/bg-dots.svg");
  background-repeat: no-repeat;
}
.extension img {
  width: 84px;
}
.extension h4 {
  color: var(--blue-950);
  font-size: 20px;
  font-weight: 500;
  margin: 26px 0 8px;
}
.extension p {
  color: #aaaacc;
  margin-bottom: 70px;
}
.extension button {
  color: white;
  background-color: var(--blue-600);
  width: 100%;
  border: 2px solid var(--blue-600);
  font-size: 14px;
  padding: 13px;
}
.extension button:hover {
  color: var(--blue-600);
  background-color: white;
}

@media (max-width: 600px) {
  .extensions {
    margin-top: 80px;
  }
  .extensions h2 {
    margin-bottom: 14px;
    font-size: 26px;
  }
  .extensions h2 + p {
    width: 90%;
    font-size: 15px;
  }
  .extensions .container {
    align-items: center;
    flex-direction: column;
    width: 100%;
  }
  .extensions .extension {
    width: 280px;
    transform: translateY(0);
  }
  .extension::after {
    bottom: 86px;
  }
  .extension img {
    width: 76px;
  }
  .extension h4 {
    font-size: 18px;
    margin: 26px 0 4px;
  }
  .extension p {
    margin-bottom: 60px;
    font-size: 15px;
  }
  .extension button {
    font-size: 12px;
    padding: 11px;
  }
}
/* extensions end */


/* questions start */
.questions-section {
  margin: 180px 0 130px;
}
.questions-section h2 {
  color: var(--blue-950);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 38px;
}
.questions-section h2 + p {
  width: 49%;
  margin: auto;
  line-height: 1.5;
  font-size: 18px;
  text-align: center;
  color: #aaaacc;
}
.questions {
  margin: 90px auto 0;
  width: 660px;
}
.question {
  border-top: 2px solid #d2d2e691;
  overflow: hidden;
  transition: .3s;
}
.question:last-of-type {
  border-bottom: 2px solid #d2d2e691;
}
.question p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  padding: 24px 0;
}
.question:not(.active) p:hover span {
  color: var(--red-400);
}
.question p span {
  transition: .3s;
}
.question i {
  transition: .3s;
}
.question.active i {
  color: var(--red-400);
  rotate: 180deg;
}
.question:not(.active) p {
  cursor: pointer;
}
.question .answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: .3s;
  color: #aaaacc;
  line-height: 1.5;
  padding: 0 0;
}
.question.active .answer {
  max-height: 200px;
  opacity: 1;
  padding: 14px 0 22px;
}
.questions-section button {
  color: white;
  background-color: var(--blue-600);
  border: 2px solid var(--blue-600);
  text-transform: capitalize;
  font-size: 14px;
  padding: 14px 20px;
  margin: 32px auto 0;
  display: block;
}
.questions-section button:hover {
  color: var(--blue-600);
  background-color: white;
}
@media (max-width: 600px) {
  .questions-section {
    margin: 60px 0 40px;
  }
  .questions-section h2 {
    margin-bottom: 14px;
    font-size: 26px;
  }
  .questions-section h2 + p {
    width: 80%;
    font-size: 15px;
  }
  .questions {
    margin: 60px auto 0;
    width: 300px;
  }
  .question p {
    font-size: 17px;
    gap: 12px;
    padding: 20px 0;
  }
  .question .answer {
    font-size: 14px;
  }
  .question.active .answer {
    max-height: 240px;
    padding: 8px 0 20px;
  }
  .questions-section button {
    font-size: 12px;
    padding: 10px 16px;
  }
}
/* questions end */


/* contact start */
.contact {
  background-color: var(--blue-600);
  color: white;
  text-align: center;
  padding: 80px 0;
}
.contact .container {
  width: 500px;
}
.contact p {
  font-weight: 500;
  letter-spacing: 5px; 
}
.contact h2 {
  font-size: 36px;
  margin: 52px 0;
  font-weight: 500;
}
.contact form {
  display: flex;
  gap: 16px;
  width: 100%;
  position: relative;
}
.contact input {
  outline: none;
  border: none;
  border-radius: 6px;
  background-color: var(--grey-50);
  padding: 18px 26px;
  font-size: 16px;
  font-weight: 500;
  caret-color: var(--blue-600);
  border: 3px solid var(--grey-50);
  transition: .3s;
  width: 360px;
  font-family: "Rubik", sans-serif;
  position: relative;
  z-index: 1;
}
.contact button {
  color: white;
  background-color: var(--red-400);
  padding: 0 20px;
  text-transform: capitalize;
  border: 2px solid var(--red-400);
}
.contact button:hover {
  background-color: white;
  color: var(--red-400);
}
form.error input {
  border: 3px solid var(--red-400);
}
form .error-message {
  background-color: var(--red-400);
  color: white;
  font-weight: 500;
  font-style: italic;
  width: 360px;
  position: absolute;
  border-radius: 0 0 6px 6px;
  bottom: 2px;
  left: 0;
  transition: .3s;
  font-size: 13px;
  padding: 16px 20px;
  text-align: start;
  padding: 8px 20px 8px;
}
form.error .error-message {
  transform: translateY(100%);
}

@media (max-width: 600px) {
  .contact {
    padding: 60px 0 50px;
  }
  .contact .container {
    width: 320px;
  }
  .contact p {
    font-weight: 14px;
    letter-spacing: 4px; 
  }
  .contact h2 {
    font-size: 31px;
    margin: 40px 0;
  }
  .contact form {
    flex-direction: column;
    gap: 16px;
    transition: .3s;
  }
  .contact form.error {
    gap: 46px;
  }
  .contact input {
    padding: 14px 20px;
    font-size: 14px;
    width: 100%;
  }
  .contact button {
    font-size: 14px;
    padding: 14px;
  }
  form .error-message {
    width: 100%;
    bottom: unset;
    font-size: 11px;
    padding: 10px 14px;
    top: 18px;
  }
}
/* contact end */


/* footer start */
footer {
  background-color: var(--blue-950);
  padding: 40px 0;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer div:first-child {
  display: flex;
  align-items: center;
}
footer div:first-child img {
  margin-right: 40px;
  width: 220px;
}
footer ul {
  list-style: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 26px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 4px;
}
footer .links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 20px;
  color: white;
}
footer li {
  transition: .3s;
}
footer i {
  transition: .3s;
}
footer i:hover,
footer li:hover {
  color: var(--red-400);
  cursor: pointer;
}

@media (max-width: 600px) {
  footer {
    padding: 30px 0;
  }
  footer .container {
    flex-direction: column;   
    gap: 70px; 
  }
  footer div:first-child {
    flex-direction: column;
  }
  footer div:first-child img {
    margin-bottom: 26px;
    margin-right: 0;
    width: 211px;
  }
  footer ul {
    gap: 16px;
    flex-direction: column;
  }
  footer .links {
    gap: 26px;
    font-size: 18px;
  }
}
/* footer end */