/* Home page identity and lightweight motion for the EcomSmart documentation. */
.ecomsmart-hero {
  position: relative;
  overflow: hidden;
  margin: -1rem -0.8rem 2.25rem;
  padding: 3.75rem clamp(1.5rem, 6vw, 5.5rem) 3.5rem;
  color: #f8fbff;
  background:
    linear-gradient(125deg, #093969 0%, #0c5f7f 48%, #149488 100%);
  border-radius: 0 0 1rem 1rem;
}

.ecomsmart-hero::before,
.ecomsmart-hero::after {
  position: absolute;
  z-index: 0;
  width: 24rem;
  height: 24rem;
  content: "";
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  pointer-events: none;
}

.ecomsmart-hero::before {
  top: -15rem;
  right: -5rem;
  box-shadow: 0 0 0 3.5rem rgb(255 255 255 / 5%), 0 0 0 7rem rgb(255 255 255 / 3%);
  animation: ecomsmart-drift 14s ease-in-out infinite;
}

.ecomsmart-hero::after {
  bottom: -18rem;
  left: -10rem;
  animation: ecomsmart-drift 18s ease-in-out infinite reverse;
}

.ecomsmart-hero > * {
  position: relative;
  z-index: 1;
}

.ecomsmart-hero__eyebrow {
  margin: 0 0 1rem;
  color: rgb(235 255 251 / 84%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ecomsmart-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
}

.ecomsmart-hero__lead {
  max-width: 43rem;
  margin: 1.35rem 0 1.8rem;
  color: rgb(248 251 255 / 88%);
  font-size: 1.13rem;
  line-height: 1.65;
}

.ecomsmart-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ecomsmart-hero .md-button {
  margin: 0;
  color: #fff;
  border-color: rgb(255 255 255 / 60%);
}

.ecomsmart-hero .md-button--primary {
  color: #073b52;
  background-color: #e9ffbd;
  border-color: #e9ffbd;
}

.ecomsmart-hero__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.4rem;
  color: rgb(248 251 255 / 84%);
  font-size: 0.75rem;
  font-weight: 600;
}

.ecomsmart-hero__signal span {
  width: 0.5rem;
  height: 0.5rem;
  background: #d5fb79;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(213 251 121 / 65%);
  animation: ecomsmart-pulse 2.3s ease-out infinite;
}

.ecomsmart-paths .md-typeset__scrollwrap,
.ecomsmart-paths table {
  margin: 0;
}

.ecomsmart-paths > ul > li {
  border-top: 3px solid #14a28d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ecomsmart-paths > ul > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.65rem 1.5rem rgb(9 57 105 / 14%);
}

@keyframes ecomsmart-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1rem, 1.2rem, 0); }
}

@keyframes ecomsmart-pulse {
  0% { box-shadow: 0 0 0 0 rgb(213 251 121 / 65%); }
  70% { box-shadow: 0 0 0 0.55rem rgb(213 251 121 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(213 251 121 / 0%); }
}

@media screen and (max-width: 76.1875em) {
  .ecomsmart-hero { margin: -1rem -0.8rem 2rem; }
}

@media screen and (max-width: 44.9375em) {
  .ecomsmart-hero { padding: 3rem 1.4rem 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ecomsmart-hero::before,
  .ecomsmart-hero::after,
  .ecomsmart-hero__signal span { animation: none; }
  .ecomsmart-paths > ul > li { transition: none; }
  div.mermaid { animation: none; }
}

/* Oculta o código bruto do Mermaid antes e durante a compilação no navegador */
pre.mermaid,
pre.mermaid-raw {
  display: none !important;
}

/* Transição suave ao exibir o diagrama pronto */
div.mermaid {
  margin: 1.5rem 0;
  animation: ecomsmart-diagram-fade 0.25s ease-out;
}

@keyframes ecomsmart-diagram-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
