/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: hsl(210, 10%, 23%);
  background-color: #ffffff;
  line-height: 1.6;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

h1, h2, h3 {
  margin-bottom: 10px;
}

p.description {
  color: hsl(210, 4%, 40%);
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1rem;
}

/* Header */
.hero {
  background: url('image attributes/bg-header-desktop.png') no-repeat center top;
  background-size: cover;
  padding: 80px 20px 40px 20px;
}

.logo {
  margin-bottom: 30px;
  width: 80px;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  flex-direction: row; /* Default for desktop */
  align-items: center;
}

.btn {
  border: none;
  border-radius: 30px;
  padding: 14px 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  width: 200px;
}

.btn.ios {
  background-color: hsl(171, 66%, 44%);
  color: white;
}

.btn.mac {
  background-color: hsl(233, 100%, 69%);
  color: white;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Snippets Section */
.snippets {
  padding: 0px;
}

.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
}

.image-computer {
  flex: 1 1 400px;
  max-width: 500px;
}

.features-text {
  flex: 1 1 300px;
  text-align: left;
  max-width: 400px;
}

.feature-block {
  margin-bottom: 40px;
}

/* Access Section */
.access {
  padding: 60px 20px;
}

.devices {
  max-width: 700px;
  margin-top: 40px;
}

/* Workflow Section */
.workflow {
  padding: 60px 20px;
}

.workflow-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.workflow-block {
  max-width: 300px;
}

.workflow-block img {
  margin-bottom: 20px;
}

/* Partners */
.partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
}

.partners img {
  max-height: 40px;
}

/* CTA Section */
.cta {
  padding: 60px 20px;
}

/* Footer */
footer {
  background-color: #f4f4f4;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 60px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: hsl(210, 4%, 40%);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a img {
  width: 20px;
}

/* Responsive: Phone View */
@media (max-width: 768px) {
  .logo {
    width: 60px;
  }

  .image-computer {
    max-width: 90%;
    flex: 1 1 100%;
  }

  .features-text {
    text-align: center;
    max-width: 100%;
  }

  .devices {
    max-width: 90%;
  }

  .workflow-items {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .workflow-block {
    max-width: 100%;
    padding: 0 10px;
  }

  .workflow-block img {
    max-width: 60%;
  }

  .partners {
    flex-direction: column;
    gap: 30px;
    padding: 40px 0;
  }

  .partners img {
    max-width: 120px;
    height: auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons a img {
    width: 18px;
  }

  /* Stack buttons vertically */
  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 250px;
  }
}
