/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adding smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Adding height variable for scroll offset calculations */
  height: 80px;
}

.nav {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.25rem;
  color: #4a90e2;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #4a90e2;
}

/* Adding active state for navigation links */
.nav-link.active {
  color: #4a90e2;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Buttons */
.btn-primary {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #357abd;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #4a90e2;
  border: 2px solid #4a90e2;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #4a90e2;
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-cta {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cta:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
  text-align: center;
  margin-bottom: 60px;
}

.hero-icon {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e293b;
}

.highlight {
  color: #ff6b35;
}

.hero-description {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.feature-card p {
  color: #64748b;
}

/* Features Section */
.features-section {
  padding: 50px 0;
  background: white;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ebf4ff;
  color: #4a90e2;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.feature-badge.green {
  background: #ecfdf5;
  color: #10b981;
}

.feature-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e293b;
}

.feature-content p {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 32px;
}

.feature-list h4 {
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e293b;
}

.feature-list ul {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  color: #64748b;
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Benefits Section */
.benefits-section {
  padding: 50px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
}

.section-icon {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

.section-header p {
  font-size: 1.25rem;
  color: #64748b;
}

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

.benefit-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e293b;
}

.benefit-card p {
  color: #64748b;
  font-size: 1.125rem;
}

/* Pricing Section */
.pricing-section {
  padding: 30px 0;
  background: white;
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.price {
  margin-bottom: 32px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #4a90e2;
}

.price-period {
  font-size: 1.125rem;
  color: #64748b;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: #1e293b;
}

.features-list {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-align: left;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-info {
  margin-top: 60px;
  opacity: 0.9;
}

.cta-info p {
  margin-bottom: 16px;
}

.contact-info {
  margin-top: 32px;
}

.contact-info a {
  color: white;
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  padding: 30px 0;
  background: white;
}

.contact-form-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  background: #f8fafc;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label a {
  color: #4a90e2;
  text-decoration: underline;
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #ebf4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1e293b;
}

.contact-item p {
  margin-bottom: 4px;
  color: #1e293b;
}

.contact-item small {
  color: #64748b;
  font-size: 0.875rem;
}

.contact-item a {
  color: #4a90e2;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Form success/error states */
.form-success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: none;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group .error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block.reverse {
    direction: ltr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .feature-content h2 {
    font-size: 1.75rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-form-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 32px 24px;
  }

  /* Adjusting scroll offset for mobile */
  section {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .features-section,
  .benefits-section,
  .pricing-section,
  .cta-section {
    padding: 60px 0;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 32px 24px;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-form {
    padding: 24px 20px;
  }

  /* Further adjusting scroll offset for small mobile screens */
  section {
    scroll-margin-top: 70px;
  }
}
