.header {
  padding-top: 4.5rem;
  background-color: var(--color-intro-bg);
}
.header__inner {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 38.75em) {
  .header__logo img {
    width: 9rem;
  }
}
@media (max-width: 29.6875em) {
  .header__logo img {
    width: 5rem;
  }
}
.header__list {
  list-style-type: none;
  display: flex;
  gap: 3.6rem;
  align-items: center;
}
@media (max-width: 38.75em) {
  .header__list {
    gap: 1.5rem;
  }
}
.header__link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--fw-1);
  transition: all 0.2s;
  font-size: var(--fs-4);
  font-family: var(--ff-heading);
  position: relative;
}
.header__link::after {
  display: block;
  content: "";
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  background-color: var(--color-white);
  height: 1px;
  transition: all 0.3s;
}
.header__link:hover {
  font-family: var(--ff-heading);
}
.header__link:hover::after {
  width: 100%;
}

.hero {
  background-color: var(--color-intro-bg);
  padding-top: 5rem;
  padding-bottom: 13rem;
  text-align: center;
  background-image: url("../images/bg-curvy-desktop.svg");
  background-repeat: no-repeat;
  background-position: bottom;
}
@media (min-width: 1440px) {
  .hero {
    background-size: 100%;
  }
}
.hero__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
}
.hero__graphic {
  width: 45rem;
}
@media (max-width: 50em) {
  .hero__graphic {
    width: 35rem;
    margin-bottom: 2rem;
  }
}
@media (max-width: 38.75em) {
  .hero__graphic {
    width: 25rem;
  }
}
@media (max-width: 29.6875em) {
  .hero__graphic {
    width: 100%;
  }
}
.hero__heading {
  font-size: var(--fs-1);
  color: var(--color-white);
  max-width: 45rem;
  font-weight: var(--fw-2);
  font-family: var(--ff-heading);
  margin-top: 2rem;
  line-height: 3.75rem;
}
@media (max-width: 29.6875em) {
  .hero__heading {
    line-height: 2.5rem;
  }
}
.hero__paragraph {
  margin-top: 1.75rem;
  font-size: var(--fs-3);
  max-width: 39rem;
  line-height: var(--lh-1);
}
.hero__cta {
  margin-top: 2rem;
}

.cta {
  text-decoration: none;
  color: var(--color-white);
  background-image: linear-gradient(to right, var(--color-cyan-cta), var(--color-blue-cta));
  padding: 1rem 6rem;
  border-radius: 2rem;
  font-family: var(--ff-heading);
  font-weight: var(--fw-2);
  transition: all 0.3s;
}
.cta:hover {
  filter: brightness(120%);
}

.features {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  top: -2rem;
}
.features__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  list-style-type: none;
  max-width: 67rem;
  width: 100%;
  margin: 0 auto;
  gap: 6rem;
}
@media (max-width: 38.75em) {
  .features__list {
    grid-template-columns: 1fr;
  }
}
.features__icon {
  margin-bottom: 1.5rem;
}
.features__heading {
  font-size: var(--fs-3);
  font-weight: var(--fw-2);
  font-family: var(--ff-heading);
  margin-bottom: 0.5rem;
}
.features__paragraph {
  font-size: var(--fs-5);
  max-width: 22rem;
  margin: 0 auto;
}

.productive {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
  margin-top: 6.5rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  grid-gap: 5rem;
}
@media (max-width: 56.25em) {
  .productive {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    grid-gap: 2rem;
  }
}
@media (max-width: 38.75em) {
  .productive {
    justify-items: start;
    text-align: left;
  }
}
@media (max-width: 71.875em) {
  .productive__graphic {
    width: 25rem;
  }
}
@media (max-width: 38.75em) {
  .productive__graphic {
    justify-self: center;
  }
}
@media (max-width: 29.6875em) {
  .productive__graphic {
    width: 100%;
  }
}
.productive__heading {
  font-family: var(--ff-heading);
  font-size: var(--fs-1);
  margin-bottom: 2rem;
  max-width: 22rem;
  margin-top: 5rem;
}
@media (max-width: 56.25em) {
  .productive__heading {
    margin-inline: auto;
  }
}
@media (max-width: 38.75em) {
  .productive__heading {
    margin-inline: 0;
  }
}
.productive__paragraph {
  margin-bottom: 2rem;
  font-size: var(--fs-4);
  max-width: 35rem;
}
.productive__link {
  color: var(--color-cyan-cta);
  text-decoration: none;
  border-bottom: 1px solid var(--color-cyan-cta);
  padding-bottom: 0.25rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.productive__link:hover {
  color: var(--color-white);
  border-bottom: 1px solid var(--color-white);
}
.productive__link svg {
  margin-left: 0.25rem;
}

.testimonials {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
  max-width: 73rem;
  padding-top: 11.5rem;
}
.testimonials__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 2rem;
  list-style-type: none;
}
@media (max-width: 56.25em) {
  .testimonials__list {
    grid-template-columns: 1fr;
    max-width: 30rem;
    width: 100%;
    margin: 0 auto;
  }
}
.testimonials__card {
  background-color: var(--color-testimonials-bg);
  padding: 2.5rem 2.1rem;
  border-radius: 4px;
  box-shadow: 5px 5px 8px 4px rgba(56, 56, 56, 0.1);
  position: relative;
}
.testimonials__card:first-of-type::before {
  position: absolute;
  display: block;
  content: "";
  height: 3.5rem;
  width: 3.5rem;
  background-image: url("../images/bg-quotes.png");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  top: -2rem;
  left: -0.5rem;
}
.testimonials__text {
  font-size: var(--fs-5);
  line-height: var(--lh-3);
  margin-bottom: 1.5rem;
}
.testimonials__profile {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-column-gap: 0.5rem;
  align-items: center;
  grid-template-areas: "img name" "img position";
}
.testimonials__img {
  grid-area: img;
  border-radius: 100%;
  width: 1.5rem;
  height: 1.5rem;
}
.testimonials__name {
  grid-area: name;
  font-size: var(--fs-6);
  font-weight: var(--fw-2);
}
.testimonials__position {
  grid-area: position;
  font-size: var(--fs-7);
}

.early {
  background-color: var(--color-intro-bg);
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
  max-width: 53rem;
  text-align: center;
  padding: 4rem;
  box-shadow: 5px 5px 8px 0px rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  position: relative;
  top: 9rem;
}
@media (max-width: 50em) {
  .early {
    padding: 2rem 2rem;
  }
}
.early__heading {
  font-size: var(--fs-2);
  font-family: var(--ff-heading);
  margin-bottom: 1rem;
}
.early__text {
  font-size: var(--fs-5);
  margin: 0 auto;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.early__form {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 38.75em) {
  .early__form {
    flex-direction: column;
    align-items: stretch;
  }
}
.early__input {
  flex: 1;
  position: relative;
}
.early__input input {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font: inherit;
  font-size: var(--fs-5);
}
.early__submit {
  border: none;
  padding-inline: 2.5rem;
  cursor: pointer;
}
.early__error {
  color: var(--color-error);
  position: absolute;
  top: 0;
  left: 1rem;
  font-weight: var(--fw-2);
  top: 110%;
  font-size: var(--fs-6);
  display: none;
  opacity: 0;
  transition: all 0.2s;
}
.early__input--invalid .early__error {
  display: block;
  opacity: 1;
}
.early__success {
  font-size: var(--fs-3);
  display: none;
  opacity: 0;
  font-weight: var(--fw-2);
}
.early--submitted .early__success {
  display: block;
  opacity: 1;
}
.early--submitted .early__form {
  display: none;
}

.footer {
  padding-top: 14.5rem;
  padding-bottom: 5rem;
  background-color: var(--color-footer-bg);
}
.footer__inner {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  margin: 0 auto;
  display: grid;
  align-items: start;
  grid-template-columns: max-content max-content 1fr;
  grid-template-areas: "logo . ." "details nav socials";
}
@media (max-width: 81.25em) {
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "details" "nav" "socials";
    justify-items: center;
    grid-gap: 3rem;
  }
}
@media (max-width: 38.75em) {
  .footer__inner {
    justify-items: start;
  }
}
.footer__logo {
  margin-bottom: 2rem;
}
@media (max-width: 81.25em) {
  .footer__logo {
    margin-bottom: 0;
  }
}
@media (max-width: 29.6875em) {
  .footer__logo {
    width: 8rem;
  }
}
.footer__details {
  grid-area: details;
  list-style-type: none;
  display: grid;
  grid-template-columns: 25rem 1fr;
  grid-column-gap: 4rem;
  grid-row-gap: 1.5rem;
  font-size: var(--fs-4);
  line-height: var(--lh-2);
}
@media (max-width: 50em) {
  .footer__details {
    grid-template-columns: 1fr;
    max-width: 25rem;
  }
}
.footer__details li {
  display: flex;
  align-items: start;
}
.footer__details li img {
  margin-right: 2rem;
}
.footer__details li:first-child {
  grid-row: 1/3;
}
.footer__nav {
  grid-area: nav;
  margin-left: 7rem;
}
@media (max-width: 81.25em) {
  .footer__nav {
    margin-left: 0;
  }
}
.footer__nav ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  grid-column-gap: 5rem;
}
@media (max-width: 81.25em) {
  .footer__nav ul {
    display: flex;
    gap: 2rem;
  }
}
@media (max-width: 38.75em) {
  .footer__nav ul {
    flex-direction: column;
  }
}
.footer__nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}
.footer__nav a::after {
  display: block;
  content: "";
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  background-color: var(--color-white);
  height: 1px;
  transition: all 0.3s;
}
.footer__nav a:hover::after {
  width: 100%;
}
.footer__socials {
  grid-area: socials;
  list-style-type: none;
  justify-self: end;
  display: flex;
  gap: 1rem;
}
@media (max-width: 81.25em) {
  .footer__socials {
    justify-self: center;
  }
}
.footer__socials a {
  border: 1px solid var(--color-white);
  border-radius: 100%;
  color: var(--color-white);
  height: 2rem;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
.footer__socials a:hover {
  color: var(--color-cyan-cta);
  border: 1px solid var(--color-cyan-cta);
}

:root {
  --color-intro-bg: hsl(217, 28%, 15%);
  --color-main-bg: hsl(218, 28%, 13%);
  --color-footer-bg: hsl(216, 53%, 9%);
  --color-testimonials-bg: hsl(219, 30%, 18%);
  --color-cyan-cta: hsl(176, 68%, 64%);
  --color-blue-cta: hsl(198, 60%, 50%);
  --color-error: hsl(0, 100%, 63%);
  --color-white: hsl(0, 0%, 100%);
  --ff-body: "Open Sans", sans-serif;
  --ff-heading: "Raleway", sans-serif;
  --fw-1: 400;
  --fw-2: 700;
  --fs-1: 2.5rem;
  --fs-2: 2rem;
  --fs-3: 1.25rem;
  --fs-4: 1rem;
  --fs-5: 0.875rem;
  --fs-6: 0.625rem;
  --fs-7: 0.5rem;
  --lh-1: 1.875rem;
  --lh-2: 1.5rem;
  --lh-3: 1.3125rem;
  --layout-max-width: 80rem;
  --layout-width: 90%;
}
@media (max-width: 38.75em) {
  :root {
    --fs-1: 2rem;
    --fs-2: 1.75rem;
    --fs-3: 1.1rem;
  }
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--ff-body);
  color: var(--color-white);
}

body {
  background-color: var(--color-main-bg);
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
