.como-trabalho-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  margin-top: -1px;
  padding-top: clamp(98px, 9vw, 124px);
  padding-bottom: clamp(98px, 9vw, 126px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.008));
}

.como-trabalho-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(4, 11, 25, 0.98) 0%, rgba(5, 13, 29, 0.92) 36%, rgba(6, 16, 34, 0.72) 60%, rgba(6, 16, 34, 0.92) 100%),
    url('../../ativos/imagens/como-trabalho-bg.webp') center center / cover no-repeat;
  opacity: 0.76;
  transform: scale(1.14) translate3d(0, 28px, 0);
  transform-origin: center;
  filter: saturate(0.72) brightness(0.56) contrast(1.05);
  transition:
    transform 1.85s cubic-bezier(0.16, 0.84, 0.22, 1),
    opacity 1.05s ease,
    filter 1.05s ease;
}

.como-trabalho-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.16) 13%, rgba(7, 17, 31, 0.14) 85%, rgba(7, 17, 31, 0.98) 100%),
    linear-gradient(120deg, rgba(6, 16, 34, 0.84) 0%, rgba(6, 16, 34, 0.58) 46%, rgba(6, 16, 34, 0.9) 100%),
    radial-gradient(circle at 14% 24%, rgba(79, 179, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(79, 179, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(255, 102, 0, 0.08), transparent 18%);
}

.como-trabalho-section.is-inview::before {
  opacity: 0.92;
  transform: scale(1.03) translate3d(0, 0, 0);
  filter: saturate(0.82) brightness(0.64) contrast(1.08);
}

.como-trabalho-wrapper {
  position: relative;
  z-index: 1;
  width: calc(100% - (var(--gutter-fluid) * 2));
  max-width: none;
  margin-inline: auto;
}

.como-trabalho-wrapper::before,
.como-trabalho-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(1260px, 100%);
  height: clamp(74px, 10vw, 138px);
  transform: translateX(-50%);
  pointer-events: none;
}

.como-trabalho-wrapper::before {
  top: calc(clamp(98px, 9vw, 124px) * -0.72);
  background:
    radial-gradient(ellipse at center, rgba(79, 179, 255, 0.19) 0%, rgba(79, 179, 255, 0.05) 26%, rgba(79, 179, 255, 0) 70%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.02) 0%, rgba(7, 17, 31, 0.54) 68%, rgba(7, 17, 31, 0.9) 100%);
  opacity: 0.95;
}

.como-trabalho-wrapper::after {
  bottom: calc(clamp(98px, 9vw, 126px) * -1.08);
  background:
    radial-gradient(ellipse at center, rgba(79, 179, 255, 0.16) 0%, rgba(79, 179, 255, 0.04) 28%, rgba(79, 179, 255, 0) 70%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.9) 0%, rgba(7, 17, 31, 0.48) 34%, rgba(7, 17, 31, 0.02) 100%);
  opacity: 0.58;
  filter: blur(10px);
}

.como-trabalho-heading {
  margin-bottom: 42px;
  max-width: none;
}

.como-trabalho-heading .secao-titulo {
  display: inline-block;
  max-width: none;
  font-size: clamp(1.7rem, 2.2vw, 2.65rem);
  white-space: nowrap;
  color: #eef6ff;
  background: linear-gradient(180deg, #ffffff 0%, #c1deff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

@media (max-width: 1080px) {
  .como-trabalho-heading .secao-titulo {
    white-space: normal;
  }
}

.como-trabalho-heading .secao-titulo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 179, 255, 0.98), rgba(255, 102, 0, 0.45));
  box-shadow: 0 0 18px rgba(79, 179, 255, 0.22);
}

.como-trabalho-subtitulo {
  max-width: 920px;
  margin-top: 32px;
  font-size: clamp(1.14rem, 1.62vw, 1.34rem);
  line-height: 1.72;
  color: #e6f2ff;
}

.como-trabalho-highlight {
  color: #64c8ff;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(79, 179, 255, 0.18);
}

.como-trabalho-intro {
  margin: 16px 0 0;
  max-width: 820px;
  color: var(--cor-texto-secundario);
  font-size: 1.03rem;
  line-height: 1.84;
}

.como-trabalho-timeline {
  position: relative;
  height: 26px;
  margin: 0 0 12px;
}

.como-trabalho-timeline::before {
  content: "";
  position: absolute;
  left: clamp(24px, 3vw, 38px);
  right: clamp(24px, 3vw, 38px);
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(79, 179, 255, 0.1), rgba(79, 179, 255, 0.58), rgba(255, 102, 0, 0.2), rgba(79, 179, 255, 0.58), rgba(79, 179, 255, 0.1));
  box-shadow: 0 0 28px rgba(79, 179, 255, 0.14);
}

.como-trabalho-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 24px);
  align-items: stretch;
}

.como-trabalho-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 26px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 18, 37, 0.8), rgba(7, 18, 37, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.como-trabalho-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(79, 179, 255, 0), rgba(79, 179, 255, 0.78), rgba(255, 102, 0, 0.18), rgba(79, 179, 255, 0));
  opacity: 0.72;
}

.como-trabalho-card::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 179, 255, 0.12) 0%, rgba(79, 179, 255, 0) 70%);
  pointer-events: none;
}

.como-trabalho-card:hover {
  transform: translateY(-8px);
  border-color: rgba(118, 207, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, rgba(7, 18, 37, 0.86), rgba(7, 18, 37, 0.66));
}

.como-trabalho-card__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.como-trabalho-card__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(79, 179, 255, 0.18), rgba(79, 179, 255, 0.07));
  border: 1px solid rgba(140, 214, 255, 0.2);
  color: #8fd4ff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 30px rgba(6, 18, 36, 0.22), inset 0 1px 0 rgba(255,255,255,0.04);
}

.como-trabalho-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e9f4ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.como-trabalho-card h3 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  line-height: 1.36;
  color: #ffffff;
}

.como-trabalho-card p {
  margin: 0;
  color: var(--cor-texto-secundario);
  line-height: 1.82;
  font-size: 1rem;
}

.como-trabalho-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 2vw, 34px);
  align-items: center;
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 22, 46, 0.78), rgba(8, 22, 46, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  position: relative;
}

.como-trabalho-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 32%, rgba(79, 179, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 68%, rgba(255, 102, 0, 0.08), transparent 20%);
  pointer-events: none;
}

.como-trabalho-cta__content,
.como-trabalho-cta__action {
  position: relative;
  z-index: 1;
}

.como-trabalho-cta__action {
  justify-self: end;
}

.como-trabalho-cta__content p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.02rem, 1.18vw, 1.12rem);
  line-height: 1.78;
  color: #eef5ff;
}

.como-trabalho-cta__button {
  min-width: 248px;
  min-height: 56px;
  padding-inline: 30px;
  font-size: 1rem;
  background: linear-gradient(180deg, #64c8ff 0%, #238fff 100%);
  border-color: rgba(166, 221, 255, 0.24);
  box-shadow: 0 18px 36px rgba(22, 106, 196, 0.28);
}

.como-trabalho-cta__button:hover {
  background: linear-gradient(180deg, #72d0ff 0%, #1b84ef 100%);
  box-shadow: 0 22px 40px rgba(22, 106, 196, 0.32);
}

.como-trabalho-cta__button::before {
  display: none;
}

.como-trabalho-reveal {
  --scroll-progress: 0;
  opacity: 0;
  transform: translate3d(0, calc(84px - (var(--scroll-progress) * 30px)), 0) scale(0.952);
  transform-origin: center top;
  filter: blur(16px);
  transition:
    opacity 1.06s ease,
    transform 1.06s cubic-bezier(0.16, 0.84, 0.22, 1),
    filter 1.06s ease;
}

.como-trabalho-section.is-inview .como-trabalho-reveal,
.como-trabalho-reveal.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.como-trabalho-reveal--delay-1 { transition-delay: 0.08s; }
.como-trabalho-reveal--delay-2 { transition-delay: 0.16s; }
.como-trabalho-reveal--delay-3 { transition-delay: 0.24s; }
.como-trabalho-reveal--delay-4 { transition-delay: 0.32s; }
.como-trabalho-reveal--delay-5 { transition-delay: 0.4s; }

@media (max-width: 1320px) {
  .como-trabalho-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .como-trabalho-timeline {
    margin-bottom: 18px;
  }

  .como-trabalho-timeline::before {
    left: clamp(24px, 4vw, 42px);
    right: clamp(24px, 4vw, 42px);
  }
}

@media (max-width: 1120px) {
  .como-trabalho-cta {
    grid-template-columns: 1fr;
  }

  .como-trabalho-cta__action {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .como-trabalho-timeline {
    display: none;
  }

  .como-trabalho-card {
    border-radius: 24px;
    padding: 26px 22px 22px;
  }
}

@media (max-width: 720px) {
  .como-trabalho-grid {
    grid-template-columns: 1fr;
  }

  .como-trabalho-heading {
    margin-bottom: 36px;
  }

  .como-trabalho-subtitulo {
    margin-top: 26px;
  }

  .como-trabalho-card__topo {
    align-items: flex-start;
    flex-direction: column;
  }

  .como-trabalho-cta {
    margin-top: 28px;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .como-trabalho-cta__button {
    width: 100%;
    min-width: 0;
  }
}

/* Refresh clean 2026 */
.como-trabalho-section {
  background:
    linear-gradient(100deg, rgba(246, 248, 251, 0.93) 0%, rgba(246, 248, 251, 0.86) 48%, rgba(246, 248, 251, 0.6) 100%),
    url('../../ativos/imagens/como-trabalho-bg.webp') center / cover no-repeat;
  padding-top: clamp(82px, 8vw, 112px);
  padding-bottom: clamp(82px, 8vw, 112px);
}

.como-trabalho-section::before,
.como-trabalho-section::after,
.como-trabalho-wrapper::before,
.como-trabalho-wrapper::after,
.como-trabalho-card::after,
.como-trabalho-cta::before {
  display: none;
}

.como-trabalho-heading .secao-titulo,
.como-trabalho-subtitulo,
.como-trabalho-card h3,
.como-trabalho-cta__content p {
  color: var(--cor-texto-principal);
}

.como-trabalho-intro,
.como-trabalho-card p {
  color: var(--cor-texto-secundario);
}

.como-trabalho-highlight {
  color: var(--cor-azul);
  text-shadow: none;
}

.como-trabalho-timeline::before {
  background: rgba(16, 32, 51, 0.14);
  box-shadow: none;
}

.como-trabalho-card,
.como-trabalho-cta {
  border-radius: var(--raio-cartao);
  border-color: var(--cor-borda-suave);
  background: #ffffff;
  box-shadow: var(--sombra-principal);
}

.como-trabalho-card::before {
  background: var(--cor-destaque);
}

.como-trabalho-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 105, 194, 0.18);
  box-shadow: 0 22px 46px rgba(15, 37, 64, 0.12);
  background: #ffffff;
}

.como-trabalho-card__numero,
.como-trabalho-chip {
  border-radius: var(--raio-cartao);
  background: var(--cor-azul-claro);
  border-color: rgba(23, 105, 194, 0.1);
  color: var(--cor-azul);
  box-shadow: none;
}

.como-trabalho-cta__button,
.como-trabalho-cta__button:hover {
  background: var(--cor-destaque);
  border-color: var(--cor-destaque);
  box-shadow: var(--sombra-botao);
}

.como-trabalho-cta__button:hover {
  background: var(--cor-destaque-hover);
}
