/* Global reset and font import */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #1c2b44;
  background-color: #ffffff;
}

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

/* Container helper to constrain width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1c2b44;
}

nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1c2b44;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #0081a7;
}

nav a.cta {
  padding: 8px 18px;
  background-color: #ff6363;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
}

nav a.cta:hover {
  background-color: #e84a4a;
}

/* Hero Section */
.hero {
  padding-top: 100px; /* account for sticky header */
  padding-bottom: 60px;
  background-color: #f7f9fc;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 500px;
  line-height: 1.4;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0081a7;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #006d8c;
}

.hero-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Features Section */
.features {
  padding: 60px 0;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  color: #1c2b44;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #0081a7;
}

.feature-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3a516a;
}

/* Tools Section */
.tools {
  background-color: #f7f9fc;
  padding: 60px 0;
}

.tools h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
}

.tools p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1rem;
  color: #3a516a;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.tool-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tool-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0081a7;
}

.tool-item p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #3a516a;
}

/* About Section */
.about {
  padding: 60px 0;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  color: #1c2b44;
}

.about p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #3a516a;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-align: center;
}

/* Contact Section */
.contact {
  background-color: #f7f9fc;
  padding: 60px 0;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 700;
  color: #1c2b44;
}

.contact p {
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: center;
  color: #3a516a;
}

.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.contact input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact button {
  padding: 12px 24px;
  background-color: #ff6363;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.contact button:hover {
  background-color: #e84a4a;
}

/* Footer */
footer {
  background-color: #1c2b44;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    order: -1;
    margin-bottom: 20px;
  }
  nav {
    gap: 15px;
  }
}