* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "lato", sans-serif;
  color: #110427;
}

nav {
  width: 100%;
}

p {
  /* margin: 0 !important; */
}

.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #110427;
  height: 70px;
  width: 100%;
}

/* xl:max-w-[1400px] */
@media (min-width: 1280px) {
  /* .header {
    max-width: 1280px;
  } */
}

.container {
  display: relative;
  max-height: 100vh;
  height: 100vh;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  box-sizing: border-box;
  /* overflow-x: hidden; */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

section {
  padding: 50px 0px;
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 1280px) {
  .grid {
    max-width: 1335px;
    margin: 0 auto;
    gap: 64px;
  }

  section {
    /* padding-top: 100px; */
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-section {
  text-align: center;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

p {
  font-size: 16px;
  /* margin-bottom: 40px; */
  line-height: 1.4rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  /* margin-bottom: 80px; */
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  text-align: center;
  cursor: pointer;
}

.feature-icon {
  width: 128px;
  height: 128px;
  border: 1px solid #af51bf;
  display: grid;
  place-content: center;
  border-radius: 20px;
  margin: 0 auto;
}

.feature-icon img {
  width: 60px;
  height: 60px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4rem;
}

img.main-image {
  max-width: 100%;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Simple footer placeholder */
/* ===== FOOTER BASE ===== */
footer {
  background-color: #110427; /* assumed dark */
  width: 100%;
  max-width: 1800px;
}

/* lg:px-12 */
@media (min-width: 1024px) {
  footer {
    padding-left: 48px;
    padding-right: 48px;
    /* position: fixed; */
  }

  h1 {
    font-size: 30px;
  }

  .header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-item {
    text-align: right;
  }
}

@media screen and (max-width: 1024px) {
  footer {
    display: block;
  }

  .feature-icon {
    width: 115px;
    height: 115px;
  }

  .feature-title {
    font-size: 16px;
  }
}

@media screen and (min-width: 1024px) {
  footer {
    /* position: fixed; */
    /* bottom: 0; */
  }
}

/* ===== CONTAINER ===== */
.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* md:flex-row */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  footer,
  section {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }

  .header {
    padding: 0 20px;
  }

  .header img {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 880px) and (max-width: 1023px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .header,
  footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ===== TEXT ===== */
.footer-text p {
  font-size: 10px;
  color: #ffffff;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}

/* underline links inside paragraph */
.link-underline {
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
}

/* ===== LINKS SECTION ===== */
.footer-links {
  margin-top: 16px;
}

/* md:mt-0 */
@media (min-width: 768px) {
  .footer-links {
    margin-top: 0;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    padding: 0 4rem;
  }

  .text-section {
    order: 2;
    align-items: flex-start;
  }

  .image-section {
    order: 1;
  }

  .features {
    margin-bottom: 0;
  }
}

.footer-links ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ===== LIST ITEM ===== */
.footer-item {
  font-size: 12px;
  margin-right: 16px;
}

/* link color (#98A2B3) */
.footer-item a {
  font-size: 12px;
  color: #98a2b3;
  text-decoration: none;
}

.sample {
  background-color: red;
}
