/* Hero - entrada da home */
body {
  overflow-x: clip;
}

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 0;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #eef4fb 45%, #fff 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  flex: 1;
  padding-bottom: 80px;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.hero__title--fx {
  display: flex;
  flex-direction: column;
  gap: 0.02em;
}

.hero__title-line,
.hero__fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroTextIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--hero-fx-delay, 0.12s) * var(--i, 0));
}

.hero__title-line {
  display: block;
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title-line,
  .hero__fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  text-align: justify;
  text-justify: inter-word;
}

.hero__wave {
  position: relative;
  z-index: 5;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.hero__wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

.hero--split {
  width: 100%;
  max-width: 100%;
  min-height: clamp(480px, 85vh, 640px);
  padding-top: calc(var(--header-height) + 40px);
  background-color: #f5f9fc;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 108%;
  max-width: none;
  transform: translateX(-50%) scale(1.04);
  transform-origin: center center;
  background-color: #f5f9fc;
  background-image: url("../../assets/images/shared/backgrounds/hero-fundo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f5f9fc 0%,
    rgba(245, 249, 252, 0.92) 18%,
    rgba(245, 249, 252, 0.45) 34%,
    transparent 52%
  );
  pointer-events: none;
}

.hero--split > .container {
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: var(--spacing-x);
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero--split .hero__inner {
  display: block;
  flex: 1;
  min-height: calc(clamp(480px, 85vh, 640px) - var(--header-height) - 100px);
  padding-bottom: 64px;
}

.hero--split .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(560px, 52vw);
  min-height: inherit;
  padding-left: 2px;
}

.hero--split .hero__subtitle {
  color: var(--color-text);
  font-weight: 500;
}

.hero__tagline {
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 480px;
  text-align: justify;
  text-justify: inter-word;
}

/* Sobre a PSM (home) */
.about-psm {
  position: relative;
  padding: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(56, 166, 221, 0.08), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.about-psm::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(31, 157, 214, 0.08);
}

.about-psm__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(460px, 50vw, 820px);
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.about-psm__content {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: max(24px, var(--spacing-x-tight));
  padding-right: var(--spacing-x);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 84px);
  max-width: min(680px, calc(var(--container-max) * 0.58));
  width: 100%;
}

.about-psm__visual {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: 100%;
  position: relative;
  display: block;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.about-psm__visual-img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-50%) scaleY(1.1);
  transform-origin: center center;
  filter: brightness(1.04) saturate(0.95);
}

.about-psm__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #075fae;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.about-psm__title {
  margin-bottom: 24px;
  color: var(--color-primary);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.about-psm__title span {
  color: #168fd0;
}

.about-psm__text {
  max-width: 650px;
  color: #30445e;
  font-size: 0.91rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
}

.about-psm__text p + p {
  margin-top: 14px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 168px;
  padding: 22px;
  border: 1px solid #dceaf5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 18px rgba(8, 74, 126, 0.06);
  cursor: pointer;
  outline: none;
  overflow: visible;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.about-pillar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: calc(100% - 28px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(207, 249, 255, 0.18) 0%, #d7fbff 18%, #9aefff 50%, #d7fbff 82%, rgba(207, 249, 255, 0.18) 100%);
  box-shadow:
    0 0 10px rgba(125, 233, 255, 0.7),
    0 0 22px rgba(74, 194, 255, 0.34),
    0 10px 24px rgba(41, 141, 210, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
}

.about-pillar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #075fae;
  background: #e8f5fc;
  box-shadow: 0 6px 14px rgba(7, 95, 174, 0.12);
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.about-pillar__icon svg {
  width: 25px;
  height: 25px;
}

.about-pillar h3 {
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.about-pillar p {
  color: #4e6076;
  font-size: 0.75rem;
  line-height: 1.5;
}

.about-pillar:hover,
.about-pillar:focus-visible,
.about-pillar.is-active {
  border-color: #168fd0;
  background: linear-gradient(145deg, #075fae 0%, #003d7d 100%);
  box-shadow: 0 18px 34px rgba(0, 67, 126, 0.24);
  transform: translateY(-8px);
}

.about-pillar:hover .about-pillar__icon,
.about-pillar:focus-visible .about-pillar__icon,
.about-pillar.is-active .about-pillar__icon {
  color: #075fae;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 31, 69, 0.2);
  transform: translateY(-3px) scale(1.06);
}

.about-pillar:hover h3,
.about-pillar:focus-visible h3,
.about-pillar.is-active h3 {
  color: #fff;
}

.about-pillar:hover p,
.about-pillar:focus-visible p,
.about-pillar.is-active p {
  color: rgba(255, 255, 255, 0.86);
}

.about-pillars.is-reveal-ready .about-pillar {
  opacity: 0;
  transition:
    opacity 1.25s ease,
    transform 1.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.about-pillars.is-reveal-ready .about-pillar:nth-child(odd) {
  transform: translateX(-150px) scale(0.96);
}

.about-pillars.is-reveal-ready .about-pillar:nth-child(even) {
  transform: translateX(150px) scale(0.96);
}

.about-pillars.is-reveal-ready .about-pillar:nth-child(3),
.about-pillars.is-reveal-ready .about-pillar:nth-child(4) {
  transition-delay: 0.18s;
}

.about-pillars.is-reveal-ready.is-visible .about-pillar {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Responsivo - home */
@media (max-width: 1100px) {
  .hero--split .hero__content {
    max-width: min(520px, 62vw);
  }

  .about-psm__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .about-psm__content {
    flex: none;
    max-width: none;
    padding-left: max(24px, var(--spacing-x-tight));
    padding-right: var(--spacing-x);
    padding-top: 28px;
    padding-bottom: clamp(40px, 6vw, 64px);
  }

  .about-psm__visual {
    flex: none;
    order: -1;
    width: 100%;
    min-height: clamp(300px, 58vw, 460px);
    height: clamp(300px, 58vw, 460px);
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .about-psm__text {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .hero--split {
    min-height: auto;
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero--split .hero__inner {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero--split .hero__content {
    max-width: 100%;
    min-height: auto;
    padding-top: 0;
    padding-bottom: clamp(180px, 42vw, 260px);
  }

  .hero__backdrop {
    width: 100%;
    left: 0;
    transform: none;
    background-position: center 28%;
  }

  .hero__backdrop::after {
    background: linear-gradient(
      180deg,
      #f5f9fc 0%,
      rgba(245, 249, 252, 0.94) 28%,
      rgba(245, 249, 252, 0.55) 48%,
      rgba(245, 249, 252, 0.15) 68%,
      transparent 88%
    );
  }

  .hero__title {
    font-size: clamp(1.85rem, 7.2vw, 2.6rem);
  }

  .hero__subtitle,
  .hero__tagline {
    max-width: none;
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  }

  .about-psm {
    padding: 0 0 56px;
  }

  .about-psm__visual {
    min-height: clamp(280px, 62vw, 400px);
    height: clamp(280px, 62vw, 400px);
    margin: 0;
  }
}

@media (max-width: 768px) {
  .hero__wave svg {
    height: clamp(44px, 12vw, 72px);
  }

  .about-pillars {
    gap: 16px;
  }

  .about-pillar {
    min-height: 152px;
    padding: 18px 16px;
  }

  .about-psm__title {
    font-size: clamp(1.9rem, 6.5vw, 2.75rem);
  }
}

@media (max-width: 600px) {
  .hero--split {
    padding-top: calc(var(--header-height) + 16px);
  }

  .about-psm__eyebrow {
    font-size: 0.72rem;
  }

  .about-psm__title {
    margin-bottom: 18px;
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .about-psm__text {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .hero--split > .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .hero--split .hero__inner {
    padding-bottom: 24px;
  }

  .hero--split .hero__content {
    padding-bottom: clamp(160px, 50vw, 220px);
  }

  .hero__title {
    font-size: clamp(1.65rem, 8.5vw, 2.15rem);
    margin-bottom: 18px;
  }

  .hero__subtitle {
    margin-bottom: 20px;
    line-height: 1.65;
  }

  .hero__tagline {
    margin-top: 14px;
    font-size: 0.9rem;
  }

  .about-psm {
    padding: 0 0 48px;
  }

  .about-psm__content {
    padding-top: 24px;
  }

  .about-psm__visual {
    min-height: clamp(260px, 68vw, 380px);
    height: clamp(260px, 68vw, 380px);
    border-radius: 0;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .about-pillar {
    width: 100%;
    min-height: 0;
    padding: 20px 18px;
  }

  .about-pillar p {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 1.55rem;
  }

  .about-psm__visual {
    min-height: clamp(240px, 72vw, 340px);
    height: clamp(240px, 72vw, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-pillars.is-reveal-ready .about-pillar,
  .about-pillars.is-reveal-ready .about-pillar:nth-child(odd),
  .about-pillars.is-reveal-ready .about-pillar:nth-child(even) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Modo escuro  home */
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .hero--split {
  background-color: #07111f;
}

:root[data-theme="dark"] .hero__backdrop {
  background-color: #07111f;
  background-image: url("../../assets/images/shared/backgrounds/hero-fundo.png");
  filter: brightness(0.78) saturate(0.88);
}

:root[data-theme="dark"] .hero__backdrop::after {
  background: linear-gradient(
    90deg,
    #07111f 0%,
    rgba(7, 17, 31, 0.94) 20%,
    rgba(7, 17, 31, 0.52) 38%,
    rgba(7, 17, 31, 0.14) 55%,
    transparent 72%
  );
}

:root[data-theme="dark"] .hero__title {
  color: #e8f2ff;
}

:root[data-theme="dark"] .hero__subtitle,
:root[data-theme="dark"] .hero__tagline {
  color: var(--color-text-muted);
}

:root[data-theme="dark"] .hero__wave path {
  fill: #07111f;
}

:root[data-theme="dark"] .about-psm {
  background:
    radial-gradient(circle at 12% 15%, rgba(79, 195, 255, 0.1), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0d1b2d 100%);
}

:root[data-theme="dark"] .about-psm::after {
  background: rgba(79, 195, 255, 0.1);
}

:root[data-theme="dark"] .about-psm__eyebrow {
  color: #7bd4ff;
}

:root[data-theme="dark"] .about-psm__title {
  color: #e8f2ff;
}

:root[data-theme="dark"] .about-psm__title span {
  color: #4fc3ff;
}

:root[data-theme="dark"] .about-psm__text {
  color: #a9bdd4;
}

:root[data-theme="dark"] .about-psm__visual {
  background: #0d1b2d;
}

:root[data-theme="dark"] .about-psm__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #07111f 0%, rgba(7, 17, 31, 0.42) 32%, transparent 58%);
  pointer-events: none;
}

:root[data-theme="dark"] .about-psm__visual-img {
  filter: brightness(0.9) saturate(0.92);
}

:root[data-theme="dark"] .about-pillar {
  background: rgba(11, 23, 40, 0.94);
  border-color: rgba(79, 195, 255, 0.24);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(79, 195, 255, 0.1);
}

:root[data-theme="dark"] .about-pillar::before {
  background: linear-gradient(90deg, rgba(79, 195, 255, 0.08) 0%, #4fc3ff 50%, rgba(79, 195, 255, 0.08) 100%);
  box-shadow:
    0 0 12px rgba(79, 195, 255, 0.45),
    0 0 24px rgba(0, 134, 212, 0.22);
}

:root[data-theme="dark"] .about-pillar__icon {
  color: #7bd4ff;
  background: rgba(79, 195, 255, 0.14);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .about-pillar h3 {
  color: #e8f2ff;
}

:root[data-theme="dark"] .about-pillar p {
  color: #a9bdd4;
}

:root[data-theme="dark"] .about-pillar:hover,
:root[data-theme="dark"] .about-pillar:focus-visible,
:root[data-theme="dark"] .about-pillar.is-active {
  border-color: #4fc3ff;
  background: linear-gradient(145deg, #075fae 0%, #003d7d 100%);
  box-shadow:
    0 18px 34px rgba(0, 67, 126, 0.35),
    0 0 24px rgba(79, 195, 255, 0.2);
}

:root[data-theme="dark"] .about-pillar:hover .about-pillar__icon,
:root[data-theme="dark"] .about-pillar:focus-visible .about-pillar__icon,
:root[data-theme="dark"] .about-pillar.is-active .about-pillar__icon {
  color: #075fae;
  background: #fff;
}

@media (max-width: 900px) {
  :root[data-theme="dark"] .hero__backdrop::after {
    background: linear-gradient(
      180deg,
      #07111f 0%,
      rgba(7, 17, 31, 0.94) 30%,
      rgba(7, 17, 31, 0.55) 50%,
      rgba(7, 17, 31, 0.14) 72%,
      transparent 90%
    );
  }

  :root[data-theme="dark"] .about-psm__visual::after {
    background: linear-gradient(
      180deg,
      #07111f 0%,
      rgba(7, 17, 31, 0.35) 28%,
      transparent 55%
    );
  }
}
