/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@400;500;600;700&display=swap');

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.heroBanner {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #ff1dce);
}

.heroBanner .container {
  position: relative;
  z-index: 2;
}

.heroTitle {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.heroSubtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.button {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  border: 2px solid transparent;
}

.buttonPrimary {
  background: white;
  color: var(--ifm-color-primary-darkest);
}

.buttonPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--ifm-color-primary-darkest);
}

.buttonSecondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
}

.buttonSecondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.emoji {
  font-size: 1.5rem;
}

.features {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--ifm-color-emphasis-100) 0%, var(--ifm-background-color) 100%);
  position: relative;
}

.featureCard {
  background: var(--ifm-background-color);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--ifm-color-emphasis-200);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featureCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--ifm-color-primary);
}

.featureTitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ifm-color-primary);
  font-family: 'Inter', sans-serif;
}

.featureDescription {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ifm-color-emphasis-700);
  margin: 0;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.sectionAlt {
  background: linear-gradient(180deg, var(--ifm-background-color) 0%, var(--ifm-color-emphasis-100) 100%);
}

.sectionInner {
  margin: 0 auto;
  max-width: var(--ifm-container-width);
  padding: 0 var(--ifm-spacing-horizontal);
  width: 100%;
}

.sectionTitle {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--ifm-color-primary);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4.5rem;
  margin: 0 auto;
  max-width: var(--ifm-container-width);
  padding: 0 var(--ifm-spacing-horizontal);
}

.codeComparison {
  padding: 8rem 0;
  background: var(--ifm-background-color);
  position: relative;
  z-index: 1;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.codeComparison .row {
  margin: 0 -1rem;
}

.codeComparison .col {
  padding: 0 1rem;
}

.codeBlockTitle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--ifm-color-primary);
}

.codeBlock {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.codeBlock > div {
  margin: 0 !important;
}

.codeBlock pre {
  margin: 0 !important;
}

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

.heroImage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 2;
}

.heroImage img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.heroImage img:hover {
  transform: scale(1.02);
}

.ecosystemGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 0 auto;
  max-width: var(--ifm-container-width);
  padding: 0 var(--ifm-spacing-horizontal);
}

.ecosystemCard {
  background: var(--ifm-background-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--ifm-color-emphasis-200);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ecosystemCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--ifm-color-primary);
}

.ecosystemImage {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.ecosystemCard:hover .ecosystemImage {
  transform: scale(1.1);
}

.ecosystemCard h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ifm-color-primary);
  font-family: 'Inter', sans-serif;
}

.ecosystemCard p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ifm-color-emphasis-700);
  margin: 0;
}

@media screen and (max-width: 996px) {
  .heroBanner {
    padding: 6rem 2rem 4rem;
  }
  
  .heroTitle {
    font-size: 3rem;
  }
  
  .heroSubtitle {
    font-size: 1.25rem;
  }
  
  .sectionTitle {
    font-size: 2.5rem;
  }
  
  .codeComparison .row {
    flex-direction: column;
    margin: 0;
  }
  
  .codeComparison .col {
    margin-bottom: 2rem;
    padding: 0;
  }
  
  .codeComparison .col:last-child {
    margin-bottom: 0;
  }
  
  .buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .button {
    width: 100%;
    max-width: 300px;
  }
}
