/* Hero Section */
.tx-container {
  background: #e5ebff;
  padding: 4rem 0 6rem;
}

[data-md-color-scheme="slate"] .tx-container {
  background: #e5ebff;
}

.tx-hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 0 0.8rem;
  color: #1a202c;
}

.tx-hero__content {
  flex: 1;
  max-width: 35rem;
}

.tx-hero__content h1 {
  margin-bottom: 1.5rem;
  color: currentColor;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
}

.tx-hero__content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

.tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tx-hero .md-button {
  margin: 0;
  color: var(--md-primary-fg-color);
  border: 2px solid var(--md-primary-fg-color);
  background-color: transparent;
}

.tx-hero .md-button:hover,
.tx-hero .md-button:focus {
  color: white;
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
}

.tx-hero .md-button--primary {
  color: white;
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
}

.tx-hero .md-button--primary:hover,
.tx-hero .md-button--primary:focus {
  color: var(--md-primary-fg-color);
  background-color: transparent;
  border-color: var(--md-primary-fg-color);
}

.tx-hero__image {
  flex: 1;
  max-width: 30rem;
  text-align: center;
}

.tx-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Parallax Groups */
.mdx-parallax__group {
  background-color: var(--md-default-bg-color);
  color: var(--md-typeset-color);
  display: block;
  padding: 4rem 0;
}

.mdx-parallax__group header h1 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Spotlight Section */
.mdx-spotlight {
  margin: 2em 0;
}

.mdx-spotlight__feature {
  display: flex;
  flex: 1 0 48%;
  flex-flow: row nowrap;
  gap: 3.2rem;
  margin: 0 0 3.2rem;
  align-items: flex-start;
}

.mdx-spotlight__feature:last-child {
  margin-bottom: 1em;
}

.mdx-spotlight__feature > img {
  display: block;
  flex-shrink: 0;
  border-radius: 0.5rem;
  box-shadow: var(--md-shadow-z2);
  width: 25rem;
  max-width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: contain;
  object-position: center;
  background-color: white;
}

.mdx-spotlight__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
}

.mdx-spotlight__icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.mdx-spotlight__icon-inner svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

[data-md-color-scheme="slate"] .mdx-spotlight__icon-inner {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.mdx-spotlight__feature figcaption {
  margin-top: 0;
  flex: 1;
}

.mdx-spotlight__feature figcaption h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.mdx-spotlight__feature figcaption p {
  margin-bottom: 0.8rem;
}

.mdx-spotlight__feature figcaption a {
  text-decoration: none;
}

.mdx-spotlight__feature figcaption a:hover {
  text-decoration: underline;
}

/* Statistics Section */
.mdx-stats {
  text-align: center;
}

.mdx-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.mdx-stats__item {
  padding: 2rem;
}

.mdx-stats__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.5rem;
}

.mdx-stats__label {
  font-size: 1.1rem;
  color: var(--md-typeset-color);
  opacity: 0.8;
}

/* Testimonials Section */
.mdx-users {
  display: flex;
  gap: 3.2rem;
  margin: 2.4rem 0;
}

.mdx-users__testimonial {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0;
  text-align: center;
}

.mdx-users__testimonial img {
  border-radius: 50%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  width: 10rem;
  background-color: var(--md-default-fg-color--lightest);
}

.mdx-users__testimonial figcaption {
  display: block;
}

.mdx-users__testimonial h3 {
  font-size: 1rem;
  margin: 0;
}

.mdx-users__testimonial hr {
  margin-left: auto;
  margin-right: auto;
  width: 5rem;
  opacity: 0.3;
}

.mdx-users__testimonial cite {
  display: block;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-align: center;
  font-style: italic;
  opacity: 0.9;
}

/* Call to Action Section */
.mdx-cta {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem;
}

.mdx-cta h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.mdx-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.mdx-cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Design */
@media screen and (max-width: 76.1875em) {
  .tx-hero {
    flex-direction: column;
    text-align: center;
  }

  .tx-hero__content {
    max-width: 100%;
  }

  .tx-hero__actions {
    justify-content: center;
  }

  .tx-hero__image {
    order: -1;
    max-width: 25rem;
  }
}

@media screen and (max-width: 59.9375em) {
  .mdx-spotlight__feature {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mdx-spotlight__feature > img {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 25rem;
  }

  .mdx-spotlight__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .mdx-spotlight__feature figcaption {
    text-align: center;
  }

  .mdx-users {
    flex-direction: column;
  }

  .md-content__inner-testimonials {
    padding: 2.2rem 0.8rem !important;
  }

  .mdx-stats__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 44.9375em) {
  .tx-hero__content h1 {
    font-size: 2rem;
  }

  .tx-hero__content p {
    font-size: 1rem;
  }

  .mdx-stats__number {
    font-size: 2.5rem;
  }

  .mdx-cta h2 {
    font-size: 1.5rem;
  }

  .mdx-cta p {
    font-size: 1rem;
  }
}

/* Alternating Layout for Product Spotlights */
@media screen and (min-width: 60em) {
  .mdx-spotlight__feature:nth-child(even) {
    flex-direction: row-reverse;
  }
}
