@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&family=Raleway:wght@300;400;500;700&display=swap');


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

/*
  2. Remove default margin
*/
* {
  margin: 0;
  padding: 0;
}

/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  5. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/*
  6. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}

/*
  7. Avoid text overflows
*/
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}


ul, li {
  padding: 0;
}


li {
  list-style-type: none;
}

/*

  8. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

:root {
  --dark-blue-1: hsl(217, 28%, 15%);
  --dark-blue-2: hsl(218, 28%, 13%);
  --dark-blue-3: hsl(216, 53%, 9%);
  --dark-blue-4: hsl(219, 30%, 18%);
  --cyan: hsl(176, 68%, 64%);
  --blue: hsl(198, 60%, 50%);
  --light-red: hsl(0, 100%, 63%);
  --white: hsl(0, 0%, 100%);


  --fs-body: 14px;
  --ff-heading: 'Raleway', sans-serif;
  --ff-body: 'Open Sans', sans-serif;
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-700: 700;
}

body {
  max-width: 1440px;
  margin-inline: auto;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  background-color: var(--dark-blue-1);
  color: var(--white);
  height: 100svh;
}

a {
  text-decoration: none;
  color: var(--white);
  font-weight: var(--fw-300);
}

section {
  padding-inline: 2em;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-block: 1.8em;
}

.nav .nav__logo {
  transform: scale(1);
}

.nav .nav__list {
  display: flex;
  justify-content: flex-end;
  gap: 3.5em;
}

.nav__link a:hover {
  text-decoration: underline;
  font-weight: var(--fw-700);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('./images/bg-curvy-mobile.svg');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% 360px;
  width: 100%;
}


.hero__title {
  font-size: 2.2rem;
  font-weight: var(--fw-700);
  margin-bottom: 1.2em;
  text-align: center;
}


.hero__text {
  font-size: 1.5rem;
  margin-bottom: 3em;
  text-align: center;
  padding: 1em 1em 0 1em;
}

.hero__link {
  background: linear-gradient(to right, var(--cyan), var(--blue));
  padding: 1em 5em;
  color: white;
  font-weight: var(--fw-500);
  border-radius: 100px;
  letter-spacing: 1.2px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2em;
}

.hero__link:hover {
  filter: brightness(1.3);
}

.features {
  background-color: var(--dark-blue-2);
  text-align: center;
}

.features .features__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5em;
}

.features .features__card svg {
  transform: scale(1.1);
  margin: 2em 0;
}

.features__title {
  font-size: 1.4rem;
  font-weight: var(--fw-500);
  margin: 0.5em 0;
}

.features__text {
  font-size: 1.12rem;
  font-weight: var(--fw-300);
}

.stay-productive {
  background-color: var(--dark-blue-2);
  text-align: center;
  padding: 4em;
}

.stay-productive__title {
  font-size: 2.2rem;
  font-weight: var(--fw-500);
  margin: 2em 0 1em 0;

}

.stay-productive__text {
  font-size: 1.12rem;
  font-weight: var(--fw-300);
  margin: 1em 0;
  text-align: left;

}

.stay-productive__link:hover {
  color: white;
}

.stay-productive__link--icon img {
  width: 30px;
  height: 30px;
}

.stay-productive__link--svg:hover {
  fill: white;
}

.stay-productive__underline {
  border-bottom: 2px solid var(--cyan);
  width: 80%;
}

.stay-productive__underline:hover {
  border-bottom: 2px solid white;
}

.social {
  background-color: var(--dark-blue-2);
  background-image: url(images/bg-quotes.png);
  background-repeat: no-repeat;
  background-position: 25px 50px;
  padding: 0.8em 3em;
}


.social__card {
  background-color: var(--dark-blue-1);
  margin: 5em 0;
  padding: 1.5em 2em;
  border-radius: 10px;
}

.social__card--text {
  font-size: 1rem;
  font-weight: var(--fw-300);
  margin: 1em 0;
  line-height: 1.9;
}

.social__card--footer {
  display: flex;
  gap: 1em;
}

.social__card--footer img {
  border-radius: 50%;
  width: 60px;
}

.social__card--profile {
  margin-top: 0.5em;
}

.social__card--title {
  font-size: 1rem;
  font-weight: var(--fw-500);
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}

.social__card--footer--profile small {
  font-size: 0.7rem;
  font-weight: var(--fw-300);
}

.early-access {
  background-color: var(--dark-blue-2);
}

.early-access__main {
  position: relative;
  width: 100%;
  padding: 2em;
  text-align: center;
  background-color: var(--dark-blue-2);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25),
    0 2px 2px rgba(0, 0, 0, 0.20),
    0 4px 4px rgba(0, 0, 0, 0.15),
    0 8px 8px rgba(0, 0, 0, 0.10),
    0 16px 16px rgba(0, 0, 0, 0.05);
  top: 100px;

}

.early-access__title {
  font-size: 2rem;
  font-weight: var(--fw-500);
  margin: 1em;
}

.early-access__text {
  font-size: 1rem;
  font-weight: var(--fw-300);
  margin: 1em;
}

.early-access form {
  margin-inline: 1.5em;
}

.early-access form input[type="email"] {
  width: 100%;
  padding: 1em;
  border: none;
  border-radius: 120px;
}

.early-access__submit {
  width: 100%;
  padding: 0.8em;
  border: none;
  border-radius: 120px;
  background: linear-gradient(to right, var(--cyan), var(--blue));
  color: white;
  font-size: 1rem;
  font-weight: var(--fw-500);
}

.early-access__submit:hover {
  filter: brightness(1.3);
}

.early-access .error-message {
  color: var(--light-red);
  font-weight: var(--fw-700);
  text-align: left;
  visibility: hidden;
}

footer {
  background-color: var(--dark-blue-3);
}

.footer__container {
  padding: 10em 5em;
}

.footer__location img,
.footer__phone img,
.footer__email img {
  height: 20px;
}

.footer__location {
  display: flex;
  gap: 1em;
  padding: 1em 0;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 1em 0;
}

.footer__phone {
  display: flex;
  gap: 1em;
}

.footer__email {
  display: flex;
  gap: 1em;
}


.footer__link {
  font-size: 1rem;
  font-weight: var(--fw-300);
}


.footer__social a {
  border: 2px solid white;
  padding: 1em;
  width: 50px;
  border-radius: 50%;
  margin-bottom: 1em;
}

.footer__social a:hover {
  border: 2px solid var(--cyan);
}

.footer__social--svg path:hover {
  cursor: pointer;
  fill: var(--cyan);
}

.attribution {
  background-color: var(--dark-blue-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.attribution-social-icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media(min-width: 375px) {

  .nav .nav__logo {
    transform: scale(0.5);
  }

  .nav .nav__list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
  }

  .nav__list .nav__link {
    margin-right: 0.3em;
  }

  .stay-productive__link {
    display: flex;
    align-items: center;
    color: var(--cyan);
    padding-bottom: 0.5em;
    font-size: 1.12rem;
  }

  .early-access form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .early-access form input {
    margin-bottom: 1em;
  }

  .footer__about {
    margin: 2em 0
  }

  .footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
  }
}

@media(min-width: 768px) {

  .hero__text {
    padding: 0 10em;
  }

  .features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
  }

  .stay-productive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .stay-productive__underline {
    width: 30%;
  }

  .social {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 3em;
  }

  .social .quotes {
    transform: translate(100px, 100px);
  }

  .early-access {
    display: flex;
    place-content: center;
  }

  .early-access__main {
    width: 60%;
  }

  .early-access form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap: 1em;
  }

  .early-access .data {
    width: 100%;
  }

  .early-access form input[type="email"] {
    width: 60%;
    margin-right: 1em;
  }

  .early-access__submit {
    width: 27%;
  }

  .footer__info {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5em;
  }

  .footer__location {
    display: flex;
    justify-content: flex-start;
    gap: 1em;
  }

  .footer__contact {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  .footer__phone,
  .footer__email {
    display: flex;
    gap: 1.5em;

  }

  .footer__about {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 0;
  }

  .footer__contactus {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  .footer__social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
  }

  .footer__social--link {
    margin-left: 2em;
  }
}