:root {
  --margin-section-bottom: 48px;
  --margin-section-bottom-mobile: 24px;
}

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
}

/*Resets*/
ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

/*Styling*/

button {
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 10px 60px 10px;
}

header {
  width: 100%;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.header-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header-menu-mobile {
  display: none;
}

.header-menu li a {
  height: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #212121;
}

.header-menu li:last-child a {
  gap: 0px;
}

.blog-logo {
  width: 96px;
  height: 24px;
}

.hero-container {
  position: relative; /* parent must be relative for absolute children */
  display: inline-block; /* so container wraps around image size */
}

.hero {
  display: block;
  width: 100%; /* make it responsive */
  height: auto;
}

.hero-btn {
  position: absolute;
  top: 64%; /* center vertically */
  left: 59px;
  padding: 12px 24px;
  background: #5a2d8c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.175s ease-in;
}

.hero-btn:hover {
  background: #3a4cb5;
}

.hero-mobile {
  display: none;
}

.enter-button {
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  border: none;
  background: #3122b9;
  padding: 8px 12px;
  border-radius: 12px;
}

/*Hero*/
.hero {
  margin-bottom: var(--margin-section-bottom);
}

.section-title {
  color: #140e4a;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 16px;
}
.what-it-is-wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: var(--margin-section-bottom);
}

.what-it-is-wrapper .card {
  max-width: 416px;
  max-height: 160px;
  background: #f8f7ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 32px;
}

.what-it-is-wrapper .card p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.why-nakdin-wrapper {
  display: flex;
  gap: 24px;
  margin-bottom: var(--margin-section-bottom);
}

.why-nakdin-wrapper .card {
  max-width: 416px;
  max-height: 144px;
  background: #f8f7ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 32px;
}

.why-nakdin-wrapper h3 {
  margin-bottom: 8px;
}

.why-nakdin-wrapper .card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-right: 16px;
}

.why-nakdin-wrapper p {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
}

/*4-Steps*/
.four-steps {
  margin-bottom: 64px;
}

.four-steps-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 95px;
  height: 276px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 104px;
}

.four-steps-wrapper .card {
  max-width: 248px;
  max-height: 248px;
  background: #f8f7ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.card-content-steps {
  margin: auto;
  text-align: center;
}
.four-steps-wrapper .card .step {
  position: absolute;
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: #fff;
  background: #3122b9;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Footer*/
footer {
  padding: 10px 0;
}

.footer-menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.about-links {
  display: flex;
  gap: 65px;
}

.about-links a {
  color: #140e4a;
  font-weight: 600;
  font-size: 14px;
  line-height: 27px;
}

footer .socials {
  display: flex;
  gap: 16px;
}

.copyright {
  text-align: center;
  margin: 40px 0 48px 0;
}

/*Responsive Design*/
/*Tablet and smaller screens*/
@media screen and (max-width: 1040px) {
  .header-menu {
    gap: 30px;
  }

  .header-menu li a {
    font-size: 14px;
  }

  .hero-btn {
    top: 60%; /* center vertically */
    left: 46px;
    padding: 12px 24px;
  }
  .four-steps-wrapper {
    flex-wrap: wrap;
    gap: 16px;
  }

  .why-nakdin-wrapper {
    gap: 18px;
  }

  .why-nakdin-wrapper .card img {
    margin-right: 14px;
    height: auto;
    width: auto;
  }

  .about-links {
    gap: 40px;
  }
}

@media screen and (max-width: 820px) {
  .header-menu {
    gap: 10px;
  }

  .hero-btn {
    top: 55%; /* center vertically */
    left: 41px;
    padding: 10px 20px;
  }
  .header-menu li a {
    font-size: 12px;
  }
  .section-title {
    font-size: 28px;
  }

  .what-it-is-wrapper .card p {
    font-size: 14px;
  }

  .why-nakdin-wrapper .card p {
    font-size: 12px;
  }

  .why-nakdin-wrapper {
    flex-wrap: wrap;
  }

  .four-steps {
    margin-bottom: 64px;
  }

  .four-steps-wrapper {
    display: flex;
    gap: 8px;
    height: auto;
    align-items: flex-end;
    margin-bottom: 52px;
  }

  .four-steps-title {
    font-size: 0.82em;
  }

  .four-steps-wrapper .card .step {
    font-size: 14px;
    width: 38px;
    height: 38px;
  }

  .about-links {
    gap: 20px;
  }
}

@media screen and (max-width: 670px) {
  .header-menu {
    gap: 8px;
  }
  .hero-btn {
    top: 50%; /* center vertically */
    left: 33px;
    padding: 10px 20px;
  }
  .header-menu li a {
    font-size: 10px;
  }
}

@media screen and (max-width: 624px) {
  .header-menu {
    gap: 4px;
  }

  .header-menu li a {
    font-size: 8px;
  }
}

/*Mobile*/
@media screen and (max-width: 574px) {
  .header-menu {
    display: none;
  }

  .header-menu-mobile {
    display: flex;
    justify-content: space-between;
  }
  .header-menu-mobile li a {
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    height: 40px;
    display: flex;
    padding: 16px;
    border-radius: 32px;
    gap: 8px;
    justify-content: center;
    align-items: center;
    color: #212121;
    background: #f5f5f5;
    margin-bottom: 16px;
  }

  .hero {
    display: none;
  }
  .hero-mobile {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--margin-section-bottom-mobile);
  }

  .hero-btn {
    top: 56%; /* center vertically */
    left: 23px;
    padding: 8px 16px;
    font-size: 12px;
  }
  .section-title {
    font-size: 24px;
    line-height: 32px;
  }

  .what-it-is-wrapper {
    flex-direction: column;
    margin-bottom: var(--margin-section-bottom-mobile);
  }

  .what-it-is-wrapper .card p {
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
  }

  .why-nakdin-wrapper {
    gap: 16px;
  }

  .why-nakdin-wrapper h3 {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
  }

  .four-steps-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .four-steps-wrapper .card {
    width: 100%;
    height: 100%;
  }

  .four-steps-wrapper .card .step {
    width: 33px;
    height: 33px;
  }

  footer {
    height: auto;
  }

  .footer-menu-wrapper {
    flex-direction: column;
    gap: 5px;
    max-width: 375px;
  }

  .about-links {
    gap: 5px;
    margin: 10px 0;
  }

  .copyright {
    font-size: 14px;
  }
}
