/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1d3666;
  background-color: #ffffff;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Slightly reduced padding */
}

/* Typography */
h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem; /* Reduced margin */
  color: #1d3666;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem; /* Reduced margin */
  color: #1d3666;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem; /* Reduced margin */
  color: #1d3666;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.4rem; /* Reduced margin */
  color: #1d3666;
}

p {
  margin-bottom: 0.8rem; /* Reduced margin */
  font-size: 1rem;
  line-height: 1.6;
  color: #1d3666;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem; /* Reduced margin */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 0.75rem; /* Reduced margin */
  font-weight: 670;
}

.section-header p {
  font-size: 1.125rem;
  color: #1d3666;
  opacity: 0.8;
  padding-top: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px; /* Slightly reduced padding */
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 0.95rem; /* Slightly reduced font size */
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0.75rem; /* Reduced margin */
  margin-bottom: 0.4rem; /* Reduced margin */
  font-family: inherit;
  background: none;
}

.btn-primary {
  background-color: #ffcfd4;
  color: #1d3666;
  border-color: #ffcfd4;
}

.btn-primary:hover {
  background-color: #1d3666;
  color: #ffffff;
  border-color: #1d3666;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(29, 54, 102, 0.25); /* Adjusted shadow */
}

.btn-secondary {
  background-color: transparent;
  color: #1d3666;
  border-color: #1d3666;
}

.btn-secondary:hover {
  background-color: #1d3666;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(29, 54, 102, 0.15); /* Adjusted shadow */
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 70px 0; /* Reduced padding */
  min-height: 75vh; /* Slightly reduced min-height */
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; /* Reduced gap */
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffcfd4 0%, #ff9faa 100%);
  color: #1d3666;
  padding: 7px 18px; /* Slightly reduced padding */
  border-radius: 20px; /* Slightly reduced border-radius */
  font-size: 0.85rem; /* Slightly reduced font size */
  font-weight: 600;
  margin-bottom: 1.25rem; /* Reduced margin */
}

.hero-subtitle {
  font-size: 1.15rem; /* Slightly reduced font size */
  color: #1d3666;
  margin-bottom: 1.5rem; /* Reduced margin */
  opacity: 0.9;
  line-height: 1.5;
}

.hero-features {
  margin-bottom: 1.5rem; /* Reduced margin */
}

.hero-feature {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem; /* Reduced margin */
  font-size: 0.95rem; /* Slightly reduced font size */
}

.feature-check {
  color: #ffcfd4;
  font-weight: bold;
  margin-right: 0.6rem; /* Reduced margin */
  font-size: 1.05rem; /* Slightly reduced font size */
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem; /* Reduced gap */
  margin-bottom: 1.25rem; /* Reduced margin */
}

.hero-trust {
  font-size: 0.85rem; /* Slightly reduced font size */
  color: #1d3666;
  opacity: 0.7;
  font-style: italic;
}

.hero-image img {
  width: 100%;    /* Make image responsive */
  height: auto;   /* Maintain aspect ratio */
  border-radius: 8px; /* Optional: rounded corners like your placeholder */
  display: block; /* Removes bottom gap for inline images */
  object-fit: cover; /* Crop nicely if needed */
}


/* Trust Indicators */
.trust-indicators {
  padding: 50px 0; /* Reduced padding */
  background-color: #ffffff;
  border-bottom: 1px solid rgba(29, 54, 102, 0.1);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; /* Reduced gap */
  max-width: 800px;
  margin: 0 auto;
}

.trust-stat {
  text-align: center;
  padding: 1.25rem; /* Reduced padding */
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 207, 212, 0.2);
}

.trust-number {
  font-size: 2rem; /* Slightly reduced font size */
  font-weight: 700;
  color: #1d3666;
  margin-bottom: 0.4rem; /* Reduced margin */
  display: block;
}

.trust-label {
  font-size: 0.85rem; /* Slightly reduced font size */
  color: #1d3666;
  font-weight: 500;
}

/* Core Modules Section */
.core-modules {
  padding: 70px 0; /* Reduced padding */
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted minmax */
  gap: 1.75rem; /* Reduced gap */
}

.module-card {
  background: #ffffff;
  padding: 1.75rem; /* Reduced padding */
  border-radius: 10px; /* Slightly reduced border-radius */
  box-shadow: 0 4px 15px rgba(29, 54, 102, 0.07); /* Adjusted shadow */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 207, 212, 0.2);
  position: relative;
}

.module-card:hover {
  transform: translateY(-3px); /* Reduced transform */
  box-shadow: 0 6px 20px rgba(29, 54, 102, 0.12); /* Adjusted shadow */
}

.module-card.featured {
  border: 2px solid #ffcfd4;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.module-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -9px; /* Adjusted position */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffcfd4 0%, #ff9faa 100%);
  color: #1d3666;
  padding: 5px 14px; /* Reduced padding */
  border-radius: 12px; /* Reduced border-radius */
  font-size: 0.7rem; /* Reduced font size */
  font-weight: 600;
}

.module-icon {
  margin-bottom: 1.25rem; /* Reduced margin */
  padding: 10px; /* Reduced padding */
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  border-radius: 8px;
  display: inline-block;
}

.module-icon svg {
  display: block;
}

.module-features {
  list-style: none;
  margin-top: 1.25rem; /* Reduced margin */
}

.module-features li {
  padding: 0.4rem 0; /* Reduced padding */
  position: relative;
  padding-left: 1.4rem; /* Reduced padding */
  font-size: 0.85rem; /* Reduced font size */
  line-height: 1.5;
  border-bottom: 1px solid rgba(29, 54, 102, 0.05);
}

.module-features li:last-child {
  border-bottom: none;
}

.module-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffcfd4;
  font-weight: bold;
}

/* Advanced Features Section */
.advanced-features {
  padding: 70px 0; /* Reduced padding */
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.feature-showcase {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; /* Reduced gap */
  align-items: center;
  margin-bottom: 4rem; /* Reduced margin */
  padding: 1.5rem 0; /* Reduced padding */
}

/* Limit image size on desktop */
.feature-image {
  max-width: 500px;  /* Or 600px or any value you want */
  width: 100%;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-item.reverse {
  direction: rtl;
}

.feature-item.reverse > * {
  direction: ltr;
}

.feature-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffcfd4 0%, #ff9faa 100%);
  color: #1d3666;
  padding: 5px 14px; /* Reduced padding */
  border-radius: 18px; /* Reduced border-radius */
  font-size: 0.7rem; /* Reduced font size */
  font-weight: 600;
  margin-bottom: 1.25rem; /* Reduced margin */
}

.feature-highlights {
  margin-top: 1.5rem; /* Reduced margin */
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem; /* Reduced margin */
  padding: 1.25rem; /* Reduced padding */
  background: rgba(240, 247, 255, 0.5);
  border-radius: 8px;
  border-left: 3px solid #ffcfd4;
}

.highlight-icon {
  margin-right: 0.8rem; /* Reduced margin */
  margin-top: 0.2rem; /* Adjusted margin */
  flex-shrink: 0;
}

.highlight-icon svg {
  display: block;
}

.highlight-content h4 {
  margin-bottom: 0.4rem; /* Reduced margin */
  color: #1d3666;
  font-size: 0.95rem; /* Reduced font size */
}

.highlight-content p {
  margin-bottom: 0;
  font-size: 0.85rem; /* Reduced font size */
  opacity: 0.9;
}

/* Integration Section */
.integration {
  padding: 40px 0; /* Reduced padding to remove unwanted spacing */
  background-color: #ffffff;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax */
  gap: 1.75rem; /* Reduced gap */
  margin-top: 2.5rem; /* Reduced margin */
}

.integration-category {
  text-align: center;
  padding: 1.75rem; /* Reduced padding */
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-radius: 10px; /* Reduced border-radius */
  border: 1px solid rgba(255, 207, 212, 0.2);
  transition: all 0.3s ease;
}

.integration-category:hover {
  transform: translateY(-3px); /* Reduced transform */
  box-shadow: 0 6px 20px rgba(29, 54, 102, 0.08); /* Adjusted shadow */
}

.integration-icon {
  margin: 0 auto 1.25rem; /* Reduced margin */
  padding: 0.8rem; /* Reduced padding */
  background: linear-gradient(135deg, #ffcfd4 0%, #ff9faa 100%);
  border-radius: 10px; /* Reduced border-radius */
  display: inline-block;
}

.integration-icon svg {
  display: block;
}

.integration-category h3 {
  margin-bottom: 0.75rem; /* Reduced margin */
  color: #1d3666;
}

.integration-category p {
  font-size: 0.85rem; /* Reduced font size */
  color: #1d3666;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Security Section */
.security {
  padding: 70px 0; /* Reduced padding */
  background: linear-gradient(135deg, #1d3666 0%, #2a4a7a 100%);
  color: #ffffff;
}

.security-content {
  max-width: 1000px;
  margin: 0 auto;
}

.security h2 {
  color: #ffffff;
  margin-bottom: 0.75rem; /* Reduced margin */
  text-align: center;
}

.security-text > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem; /* Reduced font size */
  margin-bottom: 2.5rem; /* Reduced margin */
  text-align: center;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Adjusted minmax */
  gap: 1.75rem; /* Reduced gap */
}

.security-feature {
  display: flex;
  gap: 1.25rem; /* Reduced gap */
  align-items: flex-start;
  padding: 1.75rem; /* Reduced padding */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 207, 212, 0.2);
}

.security-icon {
  flex-shrink: 0;
  margin-top: 0.2rem; /* Adjusted margin */
}

.security-icon svg {
  display: block;
}

.security-details h4 {
  color: #ffcfd4;
  margin-bottom: 0.4rem; /* Reduced margin */
  font-size: 1.05rem; /* Reduced font size */
}

.security-details p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 0.85rem; /* Reduced font size */
}

/* CTA Section */
.cta {
  padding: 70px 0; /* Reduced padding */
  background: linear-gradient(135deg, #ffcfd4 0%, #f0f7ff 100%);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 0.75rem; /* Reduced margin */
}

.cta p {
  font-size: 1.05rem; /* Reduced font size */
  margin-bottom: 1.5rem; /* Reduced margin */
  opacity: 0.9;
}

.cta-buttons {
  margin-bottom: 1.5rem; /* Reduced margin */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem; /* Reduced gap */
}

.cta-guarantee {
  margin-top: 1.5rem; /* Reduced margin */
}

.guarantee-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem; /* Reduced gap */
}

.guarantee-item {
  font-size: 0.85rem; /* Reduced font size */
  color: #1d3666;
  font-weight: 500;
}

/* FAQ Section - WORKING FUNCTIONALITY */
.faq {
  padding: 70px 0; /* Reduced padding */
  background-color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(29, 54, 102, 0.1);
  border-radius: 8px;
  margin-bottom: 0.8rem; /* Reduced margin */
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem; /* Reduced padding */
  cursor: pointer;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #e8f4ff 0%, #f8fbff 100%);
}

.faq-question h4 {
  margin-bottom: 0;
  color: #1d3666;
  font-size: 0.99rem; /* Reduced font size */
  flex: 1;
}

.faq-toggle {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffcfd4;
  color: #1d3666;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.faq-toggle:hover {
  background: #1d3666;
  color: #ffffff;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem; /* Reduced padding */
  background: #ffffff;
  display: none;
}

.faq-answer p {
  margin-bottom: 0;
  color: #000000;
  opacity: 0.8;
  font-size: 0.99rem; /* Reduced font size */
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0 15px; /* Further reduced padding for mobile */
  }

  h1 {
    font-size: 2rem; /* Adjusted font size */
  }

  h2 {
    font-size: 1.75rem; /* Adjusted font size */
  }

  .hero {
    padding: 50px 0; /* Reduced padding */
  }

  .hero-content {
    grid-template-columns: 1fr; /* ✅ Stack hero content vertically */
    text-align: left;         /* ✅ Center text for hero on mobile */
    gap: 1.5rem;                /* Keep reduced gap */
  }

  .hero-image {
    margin-top: 20px;  /* ✅ Space below hero text */
    width: 100%;       /* ✅ Full width */
  }

  .hero-image img {
    width: 100%;       /* ✅ Responsive image */
    height: auto;
    display: block;
  }

  .hero-cta {
    text-align: center;
  }

  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem; /* Reduced gap */
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    grid-template-columns: 1fr; /* ✅ Stack feature text & image vertically */
    text-align: left;         /* ✅ Optional: center text on mobile */
  }

  .feature-image {
    margin-top: 20px;  /* ✅ Space below feature text */
    width: 100%;       /* ✅ Full width image container */
  }

  .feature-image img {
    width: 100%;       /* ✅ Responsive image */
    height: auto;
    display: block;
  }

  .feature-item {
    gap: 1.5rem; /* Reduced gap for features */
    margin-bottom: 4rem; /* Keep your existing margin if needed */
    padding: 1.5rem 0;   /* Keep your existing padding if needed */
  }

  .feature-highlights {
    gap: 1.5rem;
  }

  .section-header {
    text-align: left;
  }

  .integration-grid {
    grid-template-columns: 1fr;
  }

  .security-features {
    grid-template-columns: 1fr;
  }

  .guarantee-items {
    gap: 0.8rem; /* Reduced gap */
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 250px; /* Adjusted max-width */
  }

  section {
    padding: 40px 0; /* Reduced padding for mobile */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem; /* Adjusted font size */
  }

  .hero-subtitle {
    font-size: 1rem; /* Adjusted font size */
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .module-card,
  .security-feature,
  .integration-category {
    padding: 1.25rem; /* Reduced padding */
  }

  .feature-item {
    padding: 0.8rem 0; /* Reduced padding */
  }

  .highlight-item {
    padding: 0.8rem; /* Reduced padding */
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.faq-question:focus {
  outline: 2px solid #1d3666;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .btn-primary,
  .btn-secondary {
    border: 1px solid #1d3666;
    background: transparent;
    color: #1d3666;
  }
}
