/* ==========================================================================
   SEÇÃO 04: O DIFERENCIAL DO EASY GUIDE - CSS (Figma Node 559:1220)
   ========================================================================== */

.section-diferencial {
  background-color: #f3faf8;
  padding: 100px 0;
  overflow: hidden;
  position: relative;
  contain: paint;
}

.diferencial-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 306px;
    align-items: center;
    margin-bottom: 70px;
    max-width: 1250px;
    justify-self: center;
}

.diferencial-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.diferencial-intro .eyebrow {
  margin-bottom: 24px;
}

.diferencial-title {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.18;
  color: #101828;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.diferencial-desc {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: #475467;
  max-width: 580px;
}

/* Visual do Motor de Regras (HTML/CSS Nativo / Figma Node 559:1227) */
.diferencial-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.motor-regras-container {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Órbitas Circulares Concêntricas (Sem bordas, clareando do centro para fora) */
.orbit-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: none;
}

/* 3º Círculo (Mais externo, mais claro que o segundo) */
.orbit-outer {
  width: 530px;
  height: 530px;
  background: rgba(110, 221, 212, 0.06);
  border: none;
}

/* 2º Círculo (Intermediário, mais escuro que o terceiro) */
.orbit-middle {
  width: 435px;
  height: 435px;
  background: rgba(110, 221, 212, 0.16);
  border: none;
}

/* 1º Círculo / Núcleo Central (Mais ao centro, Branco, sem borda) */
.orbit-core {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 16px 40px rgba(18, 131, 116, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.core-sparkle-icon {
  margin-bottom: 2px;
  animation: pulseSparkle 4s ease-in-out infinite alternate;
}

.core-brand-title {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 46px;
  font-weight: 700;
  color: #22948B;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0;
}

.core-brand-subtitle {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 17px;
  font-weight: 400;
  color: #4e4e4e;
  margin-top: 4px;
}

/* Sistema Orbital dos Satélites Circulando (Fluxo Contínuo Ininterrupto) */
.orbiting-system {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbitRotate 28s linear infinite;
  z-index: 3;
  pointer-events: auto;
}

.satellite-pill {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Posições dos 4 Satélites na Órbita */
.satellite-1 {
  top: 14%;
  left: 18%;
}

.satellite-2 {
  top: 12%;
  left: 82%;
}

.satellite-3 {
  top: 86%;
  left: 80%;
}

.satellite-4 {
  top: 88%;
  left: 18%;
}

.satellite-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1000px;
  box-shadow: 0 8px 24px rgba(18, 131, 116, 0.12);
  animation: counterRotate 28s linear infinite;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.satellite-inner:hover {
  background: #ffffff;
  border-color: #22948b;
  box-shadow: 0 12px 30px rgba(18, 131, 116, 0.22);
}

.satellite-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.satellite-label {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #4e4e4e;
  white-space: nowrap;
}

/* Animações de Rotação Orbital e Contra-rotação */
@keyframes orbitRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes counterRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pulseSparkle {
  0% {
    transform: scale(0.92) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(4deg);
  }
  100% {
    transform: scale(0.92) rotate(0deg);
  }
}

/* Grid de Pilares (2 Cards) */
.diferencial-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1270px;
    width: 100%;
    justify-self: center;
}

.pillar-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(110, 221, 212, 0.20) 100%);
  border-radius: 28px;
  padding: 36px 36px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(110, 221, 212, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pillar-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(110, 221, 212, 0.28) 100%);
  box-shadow: 0 16px 40px rgba(110, 221, 212, 0.18);
}

.pillar-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  transform: none;
}

.pillar-header-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.pillar-title {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 22px;
  font-weight: 600;
  color: #101828;
  line-height: 1.3;
}

.pillar-content-wrapper {
  width: 100%;
  margin-top: 14px;
}

.pillar-desc {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: #667085;
  margin: 0;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Responsividade */
@media (max-width: 1024px) {
  .diferencial-top-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .diferencial-title {
    font-size: 36px;
  }

  .motor-regras-container {
    max-width: 480px;
    height: 480px;
  }

  .orbit-outer {
    width: 470px;
    height: 470px;
  }

  .orbit-middle {
    width: 390px;
    height: 390px;
  }

  .orbit-core {
    width: 300px;
    height: 300px;
  }

  .core-brand-title {
    font-size: 40px;
  }

  .diferencial-pillars-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
  }

  /* Cards de Pilares no Mobile / Tablet - Conteúdo Exposto */
  .pillar-card {
    padding: 24px 22px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-radius: 20px;
    cursor: default;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(110, 221, 212, 0.22) 100%);
  }

  .pillar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    transform: none !important;
  }

  .pillar-header-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .pillar-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .pillar-content-wrapper {
    width: 100%;
    margin-top: 14px;
  }

  .pillar-desc {
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    padding-top: 12px;
    border-top: 1px solid rgba(18, 131, 116, 0.15);
  }
}

@media (max-width: 768px) {
  .section-diferencial {
    padding: 60px 0;
  }

  .diferencial-intro {
    align-items: center;
    text-align: center;
  }

  .diferencial-intro .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .diferencial-title {
    font-size: 30px;
    text-align: center;
  }

  .diferencial-desc {
    font-size: 15px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .motor-regras-container {
    max-width: 340px;
    height: 340px;
  }

  .orbit-outer {
    width: 330px;
    height: 330px;
  }

  .orbit-middle {
    width: 270px;
    height: 270px;
  }

  .orbit-core {
    width: 210px;
    height: 210px;
  }

  .core-sparkle-icon svg {
    width: 32px;
    height: 32px;
  }

  .core-brand-title {
    font-size: 28px;
  }

  .core-brand-subtitle {
    font-size: 13px;
  }

  .satellite-inner {
    padding: 5px 12px 5px 6px;
    gap: 6px;
  }

  .satellite-icon-circle {
    width: 22px;
    height: 22px;
  }

  .satellite-icon-circle svg {
    width: 10px;
    height: 10px;
  }

  .satellite-label {
    font-size: 12.5px;
  }
}
