/* Divisor de entrada para as principais funções públicas da Milky. */
.landing .home-functions-divider {
  position: relative;
  order: 4;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: clamp(13px, 2vw, 26px);
  padding: clamp(42px, 5.2vw, 68px) 0 clamp(8px, 1.4vw, 18px);
}

.landing .home-functions-divider > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 213, 255, 0.2) 30%, rgba(255, 217, 151, 0.62));
  box-shadow: 0 0 12px rgba(255, 213, 145, 0.09);
}

.landing .home-functions-divider > span:last-child {
  background: linear-gradient(90deg, rgba(255, 217, 151, 0.62), rgba(156, 213, 255, 0.2) 70%, transparent);
}

.landing .home-functions-divider h2 {
  position: relative;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid rgba(255, 218, 157, 0.17);
  border-radius: 999px;
  color: #ffe4b3;
  background: linear-gradient(135deg, rgba(255, 213, 145, 0.09), rgba(112, 175, 255, 0.055));
  box-shadow: 0 0 24px rgba(255, 204, 112, 0.08), inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 230, 184, 0.68), 0 0 22px rgba(255, 196, 99, 0.32);
  animation: home-functions-label-glow 3.2s ease-in-out infinite;
}

.landing .home-functions-divider h2::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -18px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 205, 118, 0.16), transparent 67%);
  filter: blur(8px);
}

.landing .home-functions-divider h2 i {
  display: inline-block;
  margin-right: 7px;
  color: #fff4d4;
  font-style: normal;
  text-shadow: 0 0 10px rgba(255, 234, 186, 0.9), 0 0 22px rgba(255, 195, 94, 0.48);
  animation: home-functions-star-glow 2.2s ease-in-out infinite;
}

/* O novo divisor assume a linha que antes ficava presa à seção de missões. */
.landing .home-missions-preview::before,
.landing .home-missions-preview::after {
  content: none;
}

.landing .home-missions-preview {
  padding-top: clamp(36px, 4.5vw, 58px);
}

@keyframes home-functions-label-glow {
  0%, 100% {
    border-color: rgba(255, 218, 157, 0.15);
    box-shadow: 0 0 18px rgba(255, 204, 112, 0.06), inset 0 1px rgba(255, 255, 255, 0.05);
  }
  50% {
    border-color: rgba(255, 224, 173, 0.32);
    box-shadow: 0 0 30px rgba(255, 204, 112, 0.16), 0 0 48px rgba(111, 175, 255, 0.06), inset 0 1px rgba(255, 255, 255, 0.09);
  }
}

@keyframes home-functions-star-glow {
  0%, 100% { opacity: 0.72; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(8deg); }
}

@media (max-width: 620px) {
  .landing .home-functions-divider {
    gap: 9px;
    padding: 34px 0 5px;
  }

  .landing .home-functions-divider h2 {
    padding: 8px 11px;
    letter-spacing: 0.1em;
  }

  .landing .home-missions-preview {
    padding-top: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing .home-functions-divider h2,
  .landing .home-functions-divider h2 i {
    animation: none !important;
  }
}
