/**
 * walking-platforms.html — fundo Valores, cartões “Como construímos” e valores.
 * Diamond glass: css/diamond-glass-wall.css. Tema espacial: space-theme-enhancements.css
 * (Fundo azul da secção Valores e metas: tech-advantages-section.css — não sobrescrever aqui.)
 */

/*
  Engenharia & produto: o .section-premium-gray usa clip diagonal (100% 95% → 0% 100%).
  O canto inferior direito fica FORA do polígono — a faixa do satélite mostrava o fundo do body.
  Base retangular só nesta secção, alinhada ao ::before e ::after.
*/
#como-construimos.section-premium-gray,
#como-construimos.section-premium-gray::before,
#como-construimos.section-premium-gray::after {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

/*
  #valores-metas (tech-advantages-section.css) usa z-index: 15 e margin-top: -10rem.
  Isso sobrepõe o fundo azul na faixa inferior de #como-construimos (z-index 14), onde está o satélite.
  Subir esta secção acima de Valores só na página walking-platforms para a faixa voltar ao preto.
*/
#como-construimos.section-premium-gray {
  z-index: 20 !important;
}

/* Engenharia & produto — painéis “módulo de bordo” (viagem espacial) */
@keyframes wp-como-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wp-como-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#valores-metas .wp-como-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  max-width: 56rem;
  margin: 2rem auto 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  #valores-metas .wp-como-grid--space {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#valores-metas .wp-como-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(0, 110, 127, 0.18), transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #020617 48%, #030712 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -20px 50px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  animation: wp-como-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

#valores-metas .wp-como-card:nth-child(1) {
  animation-delay: 0.06s;
}
#valores-metas .wp-como-card:nth-child(2) {
  animation-delay: 0.12s;
}
#valores-metas .wp-como-card:nth-child(3) {
  animation-delay: 0.18s;
}
#valores-metas .wp-como-card:nth-child(4) {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  #valores-metas .wp-como-card {
    animation: none;
  }
}

/* Campo de estrelas (painel) */
#valores-metas .wp-como-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 58% 18%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 82% 42%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 76% 78%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1px 1px at 44% 38%, rgba(147, 197, 253, 0.35), transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Faixa de luz superior (horizonte da nave) */
#valores-metas .wp-como-card::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.25),
    rgba(0, 110, 127, 0.85),
    rgba(125, 211, 252, 0.45),
    transparent
  );
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 110, 127, 0.45);
  z-index: 2;
  pointer-events: none;
}

#valores-metas .wp-como-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.38);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 110, 127, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#valores-metas .wp-como-card-inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.2rem 1.45rem;
  text-align: center;
}

/* Cantos tipo HUD / moldura de janela */
#valores-metas .wp-como-card-inner::before,
#valores-metas .wp-como-card-inner::after {
  content: '';
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

#valores-metas .wp-como-card-inner::before {
  top: 0.55rem;
  left: 0.55rem;
  border-left: 2px solid rgba(125, 211, 252, 0.45);
  border-top: 2px solid rgba(125, 211, 252, 0.45);
  border-radius: 3px 0 0 0;
}

#valores-metas .wp-como-card-inner::after {
  bottom: 0.55rem;
  right: 0.55rem;
  border-right: 2px solid rgba(125, 211, 252, 0.32);
  border-bottom: 2px solid rgba(125, 211, 252, 0.32);
  border-radius: 0 0 3px 0;
}

#valores-metas .wp-como-card-badge {
  margin: 0 0 0.85rem;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.85);
  text-shadow: 0 0 18px rgba(0, 110, 127, 0.5);
}

#valores-metas .wp-como-card-viewport {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
}

#valores-metas .wp-como-card-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.75rem;
  height: 4.75rem;
  margin: -2.375rem 0 0 -2.375rem;
  border: 1px dashed rgba(125, 211, 252, 0.32);
  border-radius: 50%;
  animation: wp-como-orbit-spin 32s linear infinite;
}

#valores-metas .wp-como-card-orbit--outer {
  width: 5.65rem;
  height: 5.65rem;
  margin: -2.825rem 0 0 -2.825rem;
  border-color: rgba(0, 110, 127, 0.38);
  animation-duration: 48s;
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  #valores-metas .wp-como-card-orbit,
  #valores-metas .wp-como-card-orbit--outer {
    animation: none;
  }
}

#valores-metas .wp-como-card[data-step='1'] .wp-como-card-icon-ring {
  background: linear-gradient(145deg, #006e7f, #22d3ee, #0891b2);
}
#valores-metas .wp-como-card[data-step='2'] .wp-como-card-icon-ring {
  background: linear-gradient(145deg, #1d4ed8, #38bdf8, #7dd3fc);
}
#valores-metas .wp-como-card[data-step='3'] .wp-como-card-icon-ring {
  background: linear-gradient(145deg, #5b21b6, #818cf8, #38bdf8);
}
#valores-metas .wp-como-card[data-step='4'] .wp-como-card-icon-ring {
  background: linear-gradient(145deg, #940a37, #f43f5e, #fb7185);
}

#valores-metas .wp-como-card-icon-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 2px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

#valores-metas .wp-como-card:hover .wp-como-card-icon-ring {
  box-shadow: 0 0 32px rgba(125, 211, 252, 0.35);
}

#valores-metas .wp-como-card-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.28rem;
  color: #f0f9ff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14), transparent 52%),
    linear-gradient(165deg, #0f172a 0%, #020617 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#valores-metas .wp-como-card-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

#valores-metas .wp-como-card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: rgba(226, 232, 240, 0.94);
  text-align: left;
}

#valores-metas .wp-como-card-text strong {
  color: #fff;
  font-weight: 600;
}

#como-construimos .wp-valores-inner {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

#como-construimos .wp-valores-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  #como-construimos .wp-valores-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Propósito: cartões com tema viagem espacial (painel de bordo / nébula suave) */
#como-construimos .wp-valor-card {
  position: relative;
  text-align: center;
  border-radius: 1rem;
  padding: 1.35rem 1.15rem 1.4rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(0, 110, 127, 0.18), transparent 55%),
    radial-gradient(1.5px 1.5px at 18% 35%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 78% 62%, rgba(147, 197, 253, 0.4), transparent),
    radial-gradient(1px 1px at 42% 78%, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(165deg, rgba(15, 23, 42, 0.88), rgba(30, 27, 75, 0.18), rgba(0, 45, 55, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 50px rgba(59, 130, 246, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#como-construimos .wp-valor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.35),
    rgba(0, 110, 127, 0.85),
    rgba(125, 211, 252, 0.45),
    transparent
  );
  box-shadow: 0 0 14px rgba(0, 110, 127, 0.45);
  pointer-events: none;
  z-index: 0;
}

#como-construimos .wp-valor-card > * {
  position: relative;
  z-index: 1;
}

#como-construimos .wp-valor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(59, 130, 246, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(0, 110, 127, 0.15);
}

#como-construimos .wp-valor-card-icon {
  width: 2.85rem;
  height: 2.85rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #e0f2fe;
  background: radial-gradient(circle at 30% 25%, rgba(96, 165, 250, 0.45), rgba(0, 110, 127, 0.35));
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow:
    0 0 18px rgba(0, 110, 127, 0.4),
    0 0 36px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#como-construimos .wp-valor-card-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  text-shadow: 0 0 28px rgba(125, 211, 252, 0.12);
}

#como-construimos .wp-valor-card-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.wp-mission {
  max-width: 48rem;
  margin: 0 auto 1.75rem;
  padding: 0 0.5rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .wp-mission {
    font-size: 1rem;
  }
}

/* Missão — painel tipo “comunicado de bordo” (só Propósito / #como-construimos) */
#como-construimos .wp-mission {
  max-width: 48rem;
  margin: 0 auto 1.85rem;
  padding: 1.2rem 1.35rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.96);
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(0, 0, 0, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 40px rgba(59, 130, 246, 0.04),
    0 10px 36px rgba(0, 0, 0, 0.38);
}

@media (min-width: 768px) {
  #como-construimos .wp-mission {
    font-size: 1rem;
    padding: 1.35rem 1.6rem;
  }
}

#como-construimos .wp-mission strong {
  color: #bae6fd;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 0 20px rgba(125, 211, 252, 0.25);
}

.wp-metas-box {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  border: 1px solid rgba(0, 110, 127, 0.42);
  background: linear-gradient(155deg, rgba(0, 0, 0, 0.55), rgba(0, 55, 65, 0.35));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(96, 165, 250, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  color: rgba(226, 232, 240, 0.95);
}

@media (min-width: 768px) {
  .wp-metas-box {
    padding: 1.75rem 2rem;
  }
}

.wp-metas-box h3 {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  text-align: center;
}

.wp-metas-box ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: disc;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .wp-metas-box ul {
    font-size: 1rem;
  }
}

.wp-metas-box li {
  margin-top: 0.75rem;
  color: rgba(226, 232, 240, 0.88);
}

.wp-metas-box li:first-child {
  margin-top: 0;
}

/* Metas — bloco tipo painel de navegação (só Propósito / #como-construimos) */
#como-construimos .wp-metas-box {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(0, 110, 127, 0.14), transparent 60%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.72), rgba(30, 27, 90, 0.12), rgba(0, 55, 65, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.1),
    0 22px 52px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

#como-construimos .wp-metas-box h3 {
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: #f1f5f9;
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.2);
}

#como-construimos .wp-metas-box li::marker {
  color: rgba(125, 211, 252, 0.75);
}

.wp-link-accent {
  color: #0abab1;
  text-decoration: underline;
  font-weight: 600;
}

.wp-link-accent:hover {
  color: #fff;
}

/* Título Propósito: sem “caixa dentro da caixa” na descrição (mantém só o painel do header do space-theme) */
#como-construimos .section-premium-description {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 0.5rem !important;
  margin-top: 1.25rem !important;
}
