@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Raleway:wght@400;700&display=swap");

:root {
  /* Primary Colors */
  --bg-intro-email: hsl(217, 28%, 15%); /* */
  --bg-main: hsl(218, 28%, 13%); /* */
  --bg-footer: hsl(216, 53%, 9%); /* */
  --bg-testimonials: hsl(219, 30%, 18%); /* */

  /* Accent Colors */
  --accent-teal: hsl(176, 68%, 64%); /* */
  --accent-cyan: hsl(198, 60%, 50%); /* */
  --error-red: hsl(0, 100%, 63%); /* */

  /* Neutral */
  --white: hsl(0, 0%, 100%); /* */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif; /* */
  font-size: 14px; /* */
  background-color: var(--bg-main);
  color: var(--white);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
.nav-links,
.btn {
  font-family: "Raleway", sans-serif;
}

h1,
h2,
h3,
.nav-links {
  font-weight: 700;
}

.container {
  max-width: 1440px; /* */
  margin: 0 auto;
  padding: 0 5rem;
}

/* Navbar */
.navbar {
  background: var(--bg-intro-email);
  padding: 4.5rem 0;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 3rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3.5rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background-color: var(--bg-intro-email);
  background-image: url("./images/bg-curvy-desktop.svg"); /* */
  background-position: bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding: 2rem 0 12rem;
  text-align: center;
}

.hero-img {
  width: 100%;
  max-width: 45rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 44rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 3rem;
  padding: 1.1rem 5.5rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--accent-teal),
    var(--accent-cyan)
  ); /* */
  color: var(--white);
  transition: 0.3s ease-in-out;
}

.btn:hover {
  filter: brightness(1.2);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6rem 4rem;
  padding: 4rem 0;
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
}

.feature-item img {
  margin-bottom: 1.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.feature-item h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-item p {
  max-width: 22rem;
  margin: 0 auto;
  opacity: 0.8;
}

/* Productive Section */
.productive {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  padding: 8rem 0;
}

.productive-img {
  flex: 1;
}

.productive-img img {
  width: 100%;
}

.productive-content {
  flex: 1;
}

.productive-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.productive-content p {
  margin-bottom: 1.2rem;
  opacity: 0.9;
  font-size: 1rem;
}

.accent-link {
  color: var(--accent-teal);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 0.1rem solid var(--accent-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.accent-link:hover {
  color: var(--white);
  border-color: var(--white);
}

/* Testimonials */
.testimonials {
  padding: 6rem 0 22rem;
  position: relative;
  max-width: 78rem;
  margin: 0 auto;
}

.quotes-bg {
  position: absolute;
  top: 3.5rem;
  left: 3rem;
  z-index: 0;
  width: 3.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--bg-testimonials);
  padding: 2.5rem 1.5rem;
  border-radius: 0.3rem;
  box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.testimonial-card p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  letter-spacing: 0.03rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-info img {
  width: 1.8rem;
  border-radius: 50%;
}

.user-info h4 {
  font-size: 0.75rem;
}

.user-info small {
  opacity: 0.7;
  font-size: 0.65rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--bg-main);
  position: relative;
  z-index: 10;
}

.cta-card {
  background: var(--bg-intro-email);
  border-radius: 0.5rem;
  padding: 3rem 5rem;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 54rem;
  box-shadow: 0.5rem 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
}

.cta-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta-card p {
  margin-bottom: 2.5rem;
  opacity: 0.8;
  max-width: 44rem;
  margin-inline: auto;
}

.cta-form {
  display: flex;
  gap: 1.8rem;
}

.input-group {
  flex: 1;
  text-align: left;
}

.cta-form input {
  width: 100%;
  padding: 1.1rem 2rem;
  border-radius: 3rem;
  border: none;
  outline: none;
}

.error-msg {
  color: var(--error-red);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-left: 1.5rem;
  display: none;
}

/* Footer */
.footer {
  background: var(--bg-footer);
  padding: 18rem 0 5rem;
}

.footer-logo {
  margin-bottom: 2.5rem;
  height: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-item {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.footer-item p {
  line-height: 1.5;
}

.footer-item.contact {
  flex-direction: column;
}

.footer-item.contact div {
  display: flex;
  gap: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.social-links a {
  border: 0.1rem solid var(--white);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.8rem;
}

.social-links a:hover {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1,
  .productive-content h2 {
    font-size: 1.8rem;
  }
  .features,
  .testimonial-grid,
  .productive {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cta-form {
    flex-direction: column;
  }
  .cta-card {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 480px) {
  /* */
  .hero {
    background-image: url("./images/bg-curvy-mobile.svg");
  }
  .navbar {
    padding: 2rem 0;
  }
  .logo {
    height: 1.5rem;
  }
  .nav-links {
    gap: 1.5rem;
    font-size: 0.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .social-links {
    justify-content: center;
    margin-top: 2rem;
  }
  .cta-section {
    margin-top: 18rem;
  }
}
